"guix package -i" exception should be a normal error message

DoneSubmitted by Danny Milosavljevic.
Details
2 participants
  • Danny Milosavljevic
  • zimoun
Owner
unassigned
Severity
normal
D
D
Danny Milosavljevic wrote on 14 Feb 2017 09:41
(address . bug-guix@gnu.org)
20170214094106.73469612@scratchpost.org
When I have network problems sometimes I get a backtrace like this:

...
substitute: 1727: 3 [%start-stack load-stack #<procedure a97d60 at ice-9/boot-9.scm:4047:10 ()>]
substitute: 1732: 2 [#<procedure a99b70 ()>]
substitute: In unknown file:
substitute: ?: 1 [primitive-load "/gnu/store/175nlv448nk5kagwwl3zyy2w4726qfz6-guix-0.12.0-4.d9da/bin/.guix-real"]
substitute: In guix/ui.scm:
substitute: 1228: 0 [run-guix-command substitute "--query"]
substitute:
substitute: guix/ui.scm:1228:8: In procedure run-guix-command:
substitute: guix/ui.scm:1228:8: Throw to key `bad-response' with args `("Bad Response-Line: ~s" (""))'.

It might make sense to

(a) convert that into a normal runtime error message and
(b) Fallback to substituteless building (maybe only for this thing).
Z
Z
zimoun wrote on 1 Dec 2020 19:28
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 25719@debbugs.gnu.org)
868sahv0sj.fsf@gmail.com
Hi Danny,

This old bug #25719 is about exception and error message. See:


On Tue, 14 Feb 2017 at 09:41, Danny Milosavljevic <dannym@scratchpost.org> wrote:
Toggle quote (2 lines)
> When I have network problems sometimes I get a backtrace like this:

First, do you still experiment such behaviour? Since it 3 years old.

Toggle quote (15 lines)
> ...
> substitute: 1727: 3 [%start-stack load-stack #<procedure a97d60 at ice-9/boot-9.scm:4047:10 ()>]
> substitute: 1732: 2 [#<procedure a99b70 ()>]
> substitute: In unknown file:
> substitute: ?: 1 [primitive-load "/gnu/store/175nlv448nk5kagwwl3zyy2w4726qfz6-guix-0.12.0-4.d9da/bin/.guix-real"]
> substitute: In guix/ui.scm:
> substitute: 1228: 0 [run-guix-command substitute "--query"]
> substitute:
> substitute: guix/ui.scm:1228:8: In procedure run-guix-command:
> substitute: guix/ui.scm:1228:8: Throw to key `bad-response' with args `("Bad Response-Line: ~s" (""))'.
>
> It might make sense to
>
> (a) convert that into a normal runtime error message and

What do you mean?

Toggle quote (2 lines)
> (b) Fallback to substituteless building (maybe only for this thing).

Is it not the case currently?


All the best,
simon
D
D
Danny Milosavljevic wrote on 2 Dec 2020 14:35
(name . zimoun)(address . zimon.toutoune@gmail.com)(address . 25719@debbugs.gnu.org)
20201202143546.2d0fc349@scratchpost.org
Hi zimoun,

On Tue, 01 Dec 2020 19:28:12 +0100
zimoun <zimon.toutoune@gmail.com> wrote:

Toggle quote (9 lines)
> This old bug #25719 is about exception and error message. See:
>
> <http://issues.guix.gnu.org/issue/25719>
>
> On Tue, 14 Feb 2017 at 09:41, Danny Milosavljevic <dannym@scratchpost.org> wrote:
> > When I have network problems sometimes I get a backtrace like this:
>
> First, do you still experiment such behaviour? Since it 3 years old.

I haven't seen this particular exception in a long time. I cannot tell whether
the actual usability has been fixed, though--it could be that only the servers
are more reliable and this code path is thus not currently being entered.

Toggle quote (16 lines)
> > substitute: 1727: 3 [%start-stack load-stack #<procedure a97d60 at ice-9/boot-9.scm:4047:10 ()>]
> > substitute: 1732: 2 [#<procedure a99b70 ()>]
> > substitute: In unknown file:
> > substitute: ?: 1 [primitive-load "/gnu/store/175nlv448nk5kagwwl3zyy2w4726qfz6-guix-0.12.0-4.d9da/bin/.guix-real"]
> > substitute: In guix/ui.scm:
> > substitute: 1228: 0 [run-guix-command substitute "--query"]
> > substitute:
> > substitute: guix/ui.scm:1228:8: In procedure run-guix-command:
> > substitute: guix/ui.scm:1228:8: Throw to key `bad-response' with args `("Bad Response-Line: ~s" (""))'.
> >
> > It might make sense to
> >
> > (a) convert that into a normal runtime error message and
>
> What do you mean?

The above is an exception.

In this case the download failed--and unfortunately that is a completely normal
thing on the internet. Therefore, that is not something you'd use an exception
for.

There is no added information that could help the user in the exception.
For example it doesn't list the URL--the one thing that would actually help.

Toggle quote (4 lines)
> > (b) Fallback to substituteless building (maybe only for this thing).
>
> Is it not the case currently?

No, I'm pretty sure I had to manually specify "--fallback" like a week ago--otherwise
it would not fallback to building without substitutes, but it would just fail.
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl/HmDgACgkQ5xo1VCww
uqUqGwgAj641myihenk60/qGkEqUqbxydLJy3RzDroZBSmk+0GNlMhA3EbaBcT/+
p4xYHNREK3MoPTJpeS9rmol6gZFbVmFjF6esLWqyFysDEKrFWkIhisUJ8d9vt/v9
n9mOgp9mttPVkfpjQFoCQ4SMzncuTfglvqTeyWK6/ikufSXUqznW1Yrzv3RzXSrD
9VxlToBQLATrCUkJYcFTkr4PIb8a2F02sOC219VBjHYihddtWL24nUc5yWCthLG2
U838IZ2ftAKYJMlwnQVsaicN/7BzyaH1ivnZLvQ2baRz659aOrQfC/h/Wz4tKba9
TrfdggBbNeDBsVYZiHBh0lc0MAGGTw==
=irNF
-----END PGP SIGNATURE-----


Z
Z
zimoun wrote on 14 Dec 2020 14:11
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 25719@debbugs.gnu.org)
86czzco7m0.fsf@gmail.com
Hi Danny
On Wed, 02 Dec 2020 at 14:35, Danny Milosavljevic <dannym@scratchpost.org> wrote:

Toggle quote (25 lines)
>> > substitute: 1727: 3 [%start-stack load-stack #<procedure a97d60 at ice-9/boot-9.scm:4047:10 ()>]
>> > substitute: 1732: 2 [#<procedure a99b70 ()>]
>> > substitute: In unknown file:
>> > substitute: ?: 1 [primitive-load "/gnu/store/175nlv448nk5kagwwl3zyy2w4726qfz6-guix-0.12.0-4.d9da/bin/.guix-real"]
>> > substitute: In guix/ui.scm:
>> > substitute: 1228: 0 [run-guix-command substitute "--query"]
>> > substitute:
>> > substitute: guix/ui.scm:1228:8: In procedure run-guix-command:
>> > substitute: guix/ui.scm:1228:8: Throw to key `bad-response' with args `("Bad Response-Line: ~s" (""))'.
>> >
>> > It might make sense to
>> >
>> > (a) convert that into a normal runtime error message and
>>
>> What do you mean?
>
> The above is an exception.
>
> In this case the download failed--and unfortunately that is a completely normal
> thing on the internet. Therefore, that is not something you'd use an exception
> for.
>
> There is no added information that could help the user in the exception.
> For example it doesn't list the URL--the one thing that would actually help.

If I understand correctly, instead of the backtrace you would like a
message captured by the exception, right?

All the best,
simon
Z
Z
zimoun wrote on 22 Dec 2020 15:18
control message for bug #25719
(address . control@debbugs.gnu.org)
861rfh9b5t.fsf@gmail.com
tags 25719 + moreinfo
quit
Z
Z
zimoun wrote on 24 Mar 2021 22:57
Re: bug#25719: "guix package -i" exception should be a normal error message
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 25719@debbugs.gnu.org)
865z1gb4fa.fsf@gmail.com
Hi Danny,

On Wed, 02 Dec 2020 at 14:35, Danny Milosavljevic <dannym@scratchpost.org> wrote:
Toggle quote (16 lines)
> On Tue, 01 Dec 2020 19:28:12 +0100
> zimoun <zimon.toutoune@gmail.com> wrote:
>
>> This old bug #25719 is about exception and error message. See:
>>
>> <http://issues.guix.gnu.org/issue/25719>
>>
>> On Tue, 14 Feb 2017 at 09:41, Danny Milosavljevic <dannym@scratchpost.org> wrote:
>> > When I have network problems sometimes I get a backtrace like this:
>>
>> First, do you still experiment such behaviour? Since it 3 years old.
>
> I haven't seen this particular exception in a long time. I cannot tell whether
> the actual usability has been fixed, though--it could be that only the servers
> are more reliable and this code path is thus not currently being entered.

Therefore, I am in favor to close it. And maybe reopen it or open
another one it happens again. WDYT?


Cheers,
simon
D
D
Danny Milosavljevic wrote on 24 Mar 2021 23:23
(name . zimoun)(address . zimon.toutoune@gmail.com)(address . 25719-done@debbugs.gnu.org)
20210324232340.5ff63914@scratchpost.org
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAmBbu+wACgkQ5xo1VCww
uqXVygf/bEpVCOruwNfmeTMCRQxZueMfwSoBAaSF4Ap61DhtwqxfVWhZnyE9Uqb/
7dnUBYWH0V4GA8gvxl1juFMSsNW+euKbELjKE1M/gldWFe5eCtJkQUhmHr+nyMjk
0MlNrg4/IuQOrmNNsHQQetzKWONJ2YspHoOH9Pe3Mn+l7zRaVwHhwyd5LxhP6b55
levWnEfaLQlYMO+9eLmbTpvUBbakZWVYKXgAYwJwbvTp9MxYlFaUTqCHNlRVEelw
QP9wKjT+XRrsyZ7uiLQEg2QNk/+u2Cthslz4UB3zTAddk65LIa+tYkc86sHPxzkr
OTkk1pDm41OcX53DX5uTz9PuVy5H2Q==
=DdFN
-----END PGP SIGNATURE-----


Closed
?
Your comment

This issue is archived.

To comment on this conversation send email to 25719@debbugs.gnu.org