Re: pkg_add - error while reading header / read short file / gzheader truncated

2023-12-09 Thread David Rinehart
On Sat, 2023-12-09 at 11:55 +, Stuart Henderson wrote:
> I suggest trying a mirror instead then, and see if there's any
> difference. Pick one from www.openbsd.org/ftp.html.

Good suggestion.

Recent installer changes to simplify the sets "disk" option are
awesome.  At the same time, this likely increased the number of
installations configured for cdn.openbsd.org (and maybe load on the
server).



Re: pkg_add - error while reading header / read short file / gzheader truncated

2023-12-09 Thread Stuart Henderson
On 2023/12/08 15:40, David Rinehart wrote:
> On Fri, 2023-12-08 at 08:37 +, Stuart Henderson wrote:
> > On 2023-12-07, David Rinehart  wrote:
> > > 
> > > I see the same with multiple installs - Started with 7.4.  No
> > > modification to default installurl.
> > 
> > The contents of the 'default' installurl depend on whuch mirror you
> > selected to install from.
> > 
> 
> I select "disk" for file sets and do not recall selecting a mirror.  I
> believe this puts https://cdn.openbsd.org/pub/OpenBSD in the file.
> 
> The issue may have started before 7.4, but was not seen at 7.3 release
> timeframe.
> 
> After giving it more thought, I believe I started seeing errors on
> package installation before 7.4 release.  I figured it was a web site
> issue because I'm running -stable and no patches seemed related (so
> more likely an external issue).  Then, the errors were familiar when I
> did reinstalls with 7.4.  The errors are temporary and the package
> installations will complete if run again, or maybe a couple times.
> 
> Thanks, for the reply and any help!

I suggest trying a mirror instead then, and see if there's any
difference. Pick one from www.openbsd.org/ftp.html.



Re: pkg_add - error while reading header / read short file / gzheader truncated

2023-12-08 Thread David Rinehart
On Fri, 2023-12-08 at 08:37 +, Stuart Henderson wrote:
> On 2023-12-07, David Rinehart  wrote:
> > 
> > I see the same with multiple installs - Started with 7.4.  No
> > modification to default installurl.
> 
> The contents of the 'default' installurl depend on whuch mirror you
> selected to install from.
> 

I select "disk" for file sets and do not recall selecting a mirror.  I
believe this puts https://cdn.openbsd.org/pub/OpenBSD in the file.

The issue may have started before 7.4, but was not seen at 7.3 release
timeframe.

After giving it more thought, I believe I started seeing errors on
package installation before 7.4 release.  I figured it was a web site
issue because I'm running -stable and no patches seemed related (so
more likely an external issue).  Then, the errors were familiar when I
did reinstalls with 7.4.  The errors are temporary and the package
installations will complete if run again, or maybe a couple times.

Thanks, for the reply and any help!
--
David Rinehart



Re: pkg_add - error while reading header / read short file / gzheader truncated

2023-12-08 Thread Stuart Henderson
On 2023-12-07, David Rinehart  wrote:
>
> I see the same with multiple installs - Started with 7.4.  No
> modification to default installurl.

The contents of the 'default' installurl depend on whuch mirror you
selected to install from.



Re: pkg_add - error while reading header / read short file / gzheader truncated

2023-12-07 Thread David Rinehart


I see the same with multiple installs - Started with 7.4.  No
modification to default installurl.

It is amazing - For 5 years, I never considered that pkg_add(1) could
fail (and it didn't)!  Updating my install scripts to try until the
last package add, with -l option, is confirmed.  A little concerned
that a package could be partially installed / marked manual and not
work (I think this has happened and I restarted from scratch).


On Thu, 2023-12-07 at 00:07 -0800, Joe B wrote:
> Hello Misc,
> 
> I am configuring a couple of laptops for my kids, i had installed 70
> with
> i3 and gcompris in them, its been a while since the last update so i
> decided to make a fresh install.
> 
> So I installed 74 in both of them, used the autoinstall so the
> process was
> straightforward as always, rebooted, hw_update, syspatch, everything
> as
> expected.
> 
> The problem comes when trying to install a package, i am trying just
> to of
> them: feh and gcompris, in both laptops, and i get the following
> errors,
> they are several since i do a few tries and then the problem goes and
> comes
> at different packages
> 
> pkg_add: Ustar [package name, it is different every try, meaning
> lcms2-2.15.tgz, gstreamer, libass-] [?]: Error while reading header
> https://cdn.openbsd.org/pub/OpenBSD/7.4/packages/amd64/lame-3.100p1.tgz
> :
> Read short file
> 
> My configuration are:
> 1 laptop, re0, trying pkg_add feh
> 1 laptop, iwn0, trying pkg_add gcompris
> 
> both with the same results, maybe i should try in another LAN, but
> could it
> be a problem with the CDN server ?
> 
> Thank you for your time,
> 
> --  Manuel Solis
> 
> > > 
> 
> Hello,
> 
> I'm new to openBSD about 3 days old. and I ran into the same issue as
> you. I would
> 
> pkg_add something and I kept getting the header message. someone on
> IRC helped me
> 
> Simple. change the cdn to another mirror
> 
> look at https://www.openbsd.org/faq/faq15.html#Mirror
> 
> Basically You find a mirror probably ftp like I did go to vim or nano
> /etc/installurl
> 
> delete the cdn add another mirror and re-run the pkg_add you might
> need to pkg_delete
> 
> the partial and then re-run. pkg_add After all that you might need
> pkg_add -u to see if the new mirror
> 
> fixes all the other partials
> 
> 
> Hope this helps
> 
> 
> ~ Joe B



Re: pkg_add - error while reading header / read short file / gzheader truncated

2023-12-07 Thread Crystal Kolipe
On Thu, Dec 07, 2023 at 12:35:01PM -, Stuart Henderson wrote:
> pkg_add/ftp aren't good at retrying when network connections fail.
> I'd think it's more likely a problem with your network connection
> than the cdn server, but you could try one of the other mirrors
> listed in www.openbsd.org/ftp.html (either set in /etc/installurl
> or set in the PKG_PATH environment variable; you can just use the
> hostname in the latter)

Read the previous email carefully, paying attention to the bizarre quoting
style...

The person you replied to was actually answering the original question :-).



Re: pkg_add - error while reading header / read short file / gzheader truncated

2023-12-07 Thread Stuart Henderson
On 2023-12-07, Joe B  wrote:
> Hello Misc,
>
> I am configuring a couple of laptops for my kids, i had installed 70 with
> i3 and gcompris in them, its been a while since the last update so i
> decided to make a fresh install.
>
> So I installed 74 in both of them, used the autoinstall so the process was
> straightforward as always, rebooted, hw_update, syspatch, everything as
> expected.
>
> The problem comes when trying to install a package, i am trying just to of
> them: feh and gcompris, in both laptops, and i get the following errors,
> they are several since i do a few tries and then the problem goes and comes
> at different packages
>
> pkg_add: Ustar [package name, it is different every try, meaning
> lcms2-2.15.tgz, gstreamer, libass-] [?]: Error while reading header
> https://cdn.openbsd.org/pub/OpenBSD/7.4/packages/amd64/lame-3.100p1.tgz:
> Read short file
>
> My configuration are:
> 1 laptop, re0, trying pkg_add feh
> 1 laptop, iwn0, trying pkg_add gcompris
>
> both with the same results, maybe i should try in another LAN, but could it
> be a problem with the CDN server ?

pkg_add/ftp aren't good at retrying when network connections fail.
I'd think it's more likely a problem with your network connection
than the cdn server, but you could try one of the other mirrors
listed in www.openbsd.org/ftp.html (either set in /etc/installurl
or set in the PKG_PATH environment variable; you can just use the
hostname in the latter)


> Thank you for your time,
>
> --  Manuel Solis
>
>>>
>
> Hello,
>
> I'm new to openBSD about 3 days old. and I ran into the same issue as
> you. I would
>
> pkg_add something and I kept getting the header message. someone on
> IRC helped me
>
> Simple. change the cdn to another mirror
>
> look at https://www.openbsd.org/faq/faq15.html#Mirror
>
> Basically You find a mirror probably ftp like I did go to vim or nano
> /etc/installurl
>
> delete the cdn add another mirror and re-run the pkg_add you might
> need to pkg_delete
>
> the partial and then re-run. pkg_add After all that you might need
> pkg_add -u to see if the new mirror
>
> fixes all the other partials
>
>
> Hope this helps
>
>
> ~ Joe B
>


-- 
Please keep replies on the mailing list.



pkg_add - error while reading header / read short file / gzheader truncated

2023-12-07 Thread Joe B
Hello Misc,

I am configuring a couple of laptops for my kids, i had installed 70 with
i3 and gcompris in them, its been a while since the last update so i
decided to make a fresh install.

So I installed 74 in both of them, used the autoinstall so the process was
straightforward as always, rebooted, hw_update, syspatch, everything as
expected.

The problem comes when trying to install a package, i am trying just to of
them: feh and gcompris, in both laptops, and i get the following errors,
they are several since i do a few tries and then the problem goes and comes
at different packages

pkg_add: Ustar [package name, it is different every try, meaning
lcms2-2.15.tgz, gstreamer, libass-] [?]: Error while reading header
https://cdn.openbsd.org/pub/OpenBSD/7.4/packages/amd64/lame-3.100p1.tgz:
Read short file

My configuration are:
1 laptop, re0, trying pkg_add feh
1 laptop, iwn0, trying pkg_add gcompris

both with the same results, maybe i should try in another LAN, but could it
be a problem with the CDN server ?

Thank you for your time,

--  Manuel Solis

>>

Hello,

I'm new to openBSD about 3 days old. and I ran into the same issue as
you. I would

pkg_add something and I kept getting the header message. someone on
IRC helped me

Simple. change the cdn to another mirror

look at https://www.openbsd.org/faq/faq15.html#Mirror

Basically You find a mirror probably ftp like I did go to vim or nano
/etc/installurl

delete the cdn add another mirror and re-run the pkg_add you might
need to pkg_delete

the partial and then re-run. pkg_add After all that you might need
pkg_add -u to see if the new mirror

fixes all the other partials


Hope this helps


~ Joe B


pkg_add - error while reading header / read short file / gzheader truncated

2023-11-14 Thread Manuel Solis
Hello Misc,

I am configuring a couple of laptops for my kids, i had installed 70 with
i3 and gcompris in them, its been a while since the last update so i
decided to make a fresh install.

So I installed 74 in both of them, used the autoinstall so the process was
straightforward as always, rebooted, hw_update, syspatch, everything as
expected.

The problem comes when trying to install a package, i am trying just to of
them: feh and gcompris, in both laptops, and i get the following errors,
they are several since i do a few tries and then the problem goes and comes
at different packages

pkg_add: Ustar [package name, it is different every try, meaning
lcms2-2.15.tgz, gstreamer, libass-] [?]: Error while reading header

https://cdn.openbsd.org/pub/OpenBSD/7.4/packages/amd64/lame-3.100p1.tgz:
Read short file

My configuration are:
1 laptop, re0, trying pkg_add feh
1 laptop, iwn0, trying pkg_add gcompris

both with the same results, maybe i should try in another LAN, but could it
be a problem with the CDN server ?

Thank you for your time,

--  Manuel Solis