Bus error refreshing packages

107 views
Skip to first unread message

stefano pierotti

unread,
Dec 9, 2020, 8:51:45 AM12/9/20
to Alt-F
Hi everyone, it's been five days that I am getting this error

Bus error An error ocurred, return value: 2. 

Collected errors: ipkg_download: ERROR: Command failed with return value 135: `wget --passive-ftp -q -P /tmp/ipkg-6r6YtC https://downloads.sourceforge.net/project/alt-f/pkgs/stable/Packages' ipkg_download: ERROR: Command failed with return value 135: `wget --passive-ftp -q -P /tmp/ipkg-6r6YtC https://downloads.sourceforge.net/project/alt-f/pkgs/unstable/Packages

Any known solutions?

Best Regards,

Stefano
 

João Cardoso

unread,
Dec 9, 2020, 2:45:34 PM12/9/20
to Alt-F
It looks like the wget binary is in error? Try the following from the command line:


Post its output (verbatim).
If last line display a '0' and a file named Packages exists in /tmp (ls '/tmp/Packages'), wget is OK and the issue might be in ipkg, try

ipkg -V3 update
echo $?

Post its output

stefano pierotti

unread,
Dec 10, 2020, 8:27:21 AM12/10/20
to Alt-F
Hi Joao, 

thanks for your support, it seems wget is broken.

Here is the output


------------------

[root@DNS-323]# wget --passive-ftp -P /tmp https://downloads.sourceforge.net/pro

ject/alt-f/pkgs/unstable/Packages echo $?

Bus error

[root@DNS-323]# echo  $?

135

[root@DNS-323]# 

--------------------





João Cardoso

unread,
Dec 10, 2020, 11:36:15 AM12/10/20
to Alt-F
On Thursday, December 10, 2020 at 1:27:21 PM UTC pierotti...@gmail.com wrote:
Hi Joao, 

thanks for your support, it seems wget is broken.

Here is the output


------------------

[root@DNS-323]# wget --passive-ftp -P /tmp https://downloads.sourceforge.net/pro

ject/alt-f/pkgs/unstable/Packages echo $?

Bus error

[root@DNS-323]# echo  $?

135

[root@DNS-323]# 


Looks like the wget binary has been corrupted?
You have to download the wget package to your PC and transfer it to the box to a folder or share, say /Public/RW. Then, using the command line after login the box as the "root" user, use the following commands to re-install it:

ipkg -force-reinstall -force-defaults install /Public/RW/wget_1.20.3_arm.ipk

Hopefully your last successful 'ipkg update' command has updated the package index, and it will re-install OK.
If however you get an error such as 
     Package wget md5sum mismatch. Either the ipkg or the package index are corrupt. Try 'ipkg update'.
then you have to extract the wget binary yourself using the following commands:

ar -vx /Public/RW/wget_1.20.3_arm.ipk data.tar.gz # extract data.tar.gz from the ipkg ar archive
tar -C / -xvzf data.tar.gz ./usr/bin/wget # extract the wget binary to /usr/bin
rm -rf wget_1.20.3_arm.ipk data.tar.gz ./usr # cleanup, notice the ./usr, *not* /usr
wget --version | head -1 # check wget installed version
ldd /usr/bin/wget # check wget dependence libraries. No "not found" should appear

Now try again the wget --passive-ftp... command. Solved?

PS-You didn't mention the box model or Alt-F version, it might matter

stefano pierotti

unread,
Dec 13, 2020, 1:30:55 PM12/13/20
to Alt-F
Hi Joao,
thanks for your support.
I think that my box DNS-323 rev. B1 has some fault.
I cannot decopress wget as you stated above as it takes forever executing "tar -vx /Public/RW/wget_1.20.3_arm.ipk data.tar.gz"

After a reboot i noticed a disk error but on the system log
Dec 13 19:17:06 DNS-323 daemon.crit smartd[1671]: Device: /dev/sdb [SAT], 3 Currently unreadable (pending) sectors
Dec 13 19:17:06 DNS-323 daemon.crit smartd[1671]: Device: /dev/sdb [SAT], 3 Offline uncorrectable sectors
although the error isn't on the disk that has alt-f installed (installed on sda).

Do you think that a reflash with a clean nvram could resolve the issue?

Thanks in advance, regards

Stefano

João Cardoso

unread,
Dec 13, 2020, 3:13:28 PM12/13/20
to Alt-F
On Sunday, December 13, 2020 at 6:30:55 PM UTC pierotti...@gmail.com wrote:
Hi Joao,
thanks for your support.
I think that my box DNS-323 rev. B1 has some fault.
I cannot decopress wget as you stated above as it takes forever executing "tar -vx /Public/RW/wget_1.20.3_arm.ipk data.tar.gz"

After a reboot i noticed a disk error but on the system log
Dec 13 19:17:06 DNS-323 daemon.crit smartd[1671]: Device: /dev/sdb [SAT], 3 Currently unreadable (pending) sectors
 
That means that the drive couldn't read some sectors, so they are marked pending and will be remapped to other good disk area upon a write on them. Those sectors might or not belong to user files. The errors might have happened once , or if the number of sectors in error start increase might indicate the start of a disk failure. Do a Smart long test (Disk->Utilities)

Dec 13 19:17:06 DNS-323 daemon.crit smartd[1671]: Device: /dev/sdb [SAT], 3 Offline uncorrectable sectors
related. 

Those critical errors should generate an e-mail warning you. Have setup and test e-mail (Setup->Mail) and checked "Send e-mail when an error is detected" in SMART Setup (Services->System, smart, Configure)? You should.
 
although the error isn't on the disk that has alt-f installed (installed on sda).
At first sight it looks unrelated, but it depends on many factors (RAID? swap?). You know that a disk has errors. Fix what you know that is in error.

Do you think that a reflash with a clean nvram could resolve the issue?

Most certainly it will not.
You can boot disable the on-disk Alt-F packages, reboot, and try the 'wget --passive...' command again, to see if the error persists even when running directly from flash.

stefano pierotti

unread,
Dec 15, 2020, 2:48:48 AM12/15/20
to Alt-F
Hi Joao,

I managed to fix my DNS-323.
I tried, as you suggested to use wget from the flash and it worked.
So  i decided to delete the Alt-f packages (probably corrupted) from the disk where they where installed.
Then, I installed the package back again on a different drive and... boom it worked like a charm.

Thank you again for your support, best regards

Stefano

Reply all
Reply to author
Forward
0 new messages