MR3020 - Unable to connect to wget: bad address & no FTP

Posted by localhost 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
MR3020 - Unable to connect to wget: bad address & no FTP
February 17, 2017 06:58AM
I have noticed a lot of problems with the MR3020 but have been unable to find a fix for the problem I'm having.
I am using a SanDisk Cruize Facet 8GB formatted in Linux.

When I run box_init_setup.sh the FTP configuration is not available and neither is the minidlna.

When I check /var/log/messages:
Jan  1 00:00:52 OpenWrt user.notice root: /etc/init.d/ext: No external Image-template file found... loading from Internet
Jan  1 00:00:52 OpenWrt user.notice root: wget: bad address 'downloads.piratebox.de'
Jan  1 00:00:52 OpenWrt user.notice root: /etc/init.d/ext: ERROR: wget failed... cancel
Jan  1 00:00:52 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:00:52 OpenWrt user.notice root: /bin/box_installer.sh : executing run_signaling_extendRoot_stop
Jan  1 00:00:52 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:00:52 OpenWrt user.notice root: /bin/box_installer.sh : executing exit
Jan  1 00:04:05 OpenWrt daemon.notice netifd: Interface 'lan' is now up
Jan  1 00:04:05 OpenWrt daemon.notice netifd: Interface 'loopback' is now up
Jan  1 00:04:05 OpenWrt user.notice firewall: Reloading firewall due to ifup of lan (br-lan)

Technical Summary

root@OpenWrt:~# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime,size=14592k)
tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,noatime,mode=600)
/dev/mtdblock3 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlayfs (rw,relatime,lowerdir=/,upperdir=/overlay)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
/dev/sda1 on /mnt/usb type vfat (rw,noatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
none on /proc/bus/usb type usbfs (rw,relatime)

root@OpenWrt:~# ls -la /mnt/
drwxr-xr-x    1 root     root             0 Jan  1  1970 .
drwxr-xr-x    1 root     root             0 Jan  1  1970 ..
drwxrwxrwx    4 root     root           512 Jan  1  1970 usb

root@OpenWrt:~# ls -la /mnt/usb
drwxrwxrwx    4 root     root           512 Jan  1  1970 .
drwxr-xr-x    1 root     root             0 Jan  1  1970 ..
drwxrwxrwx    2 root     root           512 Jan  1  1980 external_fs
drwxrwxrwx    2 root     root           512 Jan  1  1980 install
-rwxrwxrwx    1 root     root          7363 Jan  1  1970 install.log

root@OpenWrt:~# ls -la /mnt/usb/PirateBox
ls: /mnt/usb/PirateBox: No such file or directory

root@OpenWrt:~# ls -la /mnt/usb/install
drwxrwxrwx    2 root     root           512 Jan  1  1980 .
drwxrwxrwx    4 root     root           512 Jan  1  1970 ..

root@OpenWrt:~# ls -la /opt/piratebox
ls: /opt/piratebox: No such file or directory

root@OpenWrt:~# ls -la /opt/piratebox/www
ls: /opt/piratebox/www: No such file or directory

root@OpenWrt:~# cat /etc/pbx_custom_image
PBX_auto_Image_2.3.2

root@OpenWrt:~# cat /etc/pbx_custom_image
PBX_auto_Image_2.3.2
root@OpenWrt:~# cat /etc/openwrt_release
DISTRIB_ID="OpenWrt_backports"
DISTRIB_RELEASE="12.09.2"
DISTRIB_REVISION="r42647"
DISTRIB_CODENAME="attitude_adjustment"
DISTRIB_TARGET="ar71xx/generic"
DISTRIB_DESCRIPTION="OpenWrt_backports Attitude Adjustment 12.09.2"
DISTRIB_BACKPORT="V0.3-MaStr"

root@OpenWrt:~# cat /opt/piratebox/version
cat: can't open '/opt/piratebox/version': No such file or directory

root@OpenWrt:~# cat /opt/piratebox/tmp/error.log
cat: can't open '/opt/piratebox/tmp/error.log': No such file or directory

root@OpenWrt:~# cat /opt/piratebox/tmp/break.log
cat: can't open '/opt/piratebox/tmp/break.log': No such file or directory

config interface 'loopback'
	option ifname 'lo'
	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'

config interface 'lan'
	option ifname 'eth0'
	option type 'bridge'
	option proto 'static'
	option ipaddr '192.168.1.1'
	option netmask '255.255.255.0'

root@OpenWrt:~# cat /etc/config/wireless
config wifi-device  radio0
	option type     mac80211
	option channel  11
	option hwmode	11ng
	option macaddr	18:d6:c7:43:45:96
	option htmode	HT20
	list ht_capab	SHORT-GI-20
	list ht_capab	SHORT-GI-40
	list ht_capab	RX-STBC1
	list ht_capab	DSSS_CCK-40
	# REMOVE THIS LINE TO ENABLE WIFI:
	option disabled 1

config wifi-iface
	option device   radio0
	option network  lan
	option mode     ap
	option ssid     'PirateBox - Share freely'
	option encryption none

root@OpenWrt:~# dmesg | tail -n 20
[   37.700000] eth0: link up (100Mbps/Full duplex)
[   37.700000] br-lan: port 1(eth0) entered forwarding state
[   37.710000] br-lan: port 1(eth0) entered forwarding state
[   37.710000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   37.720000] ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   39.710000] br-lan: port 1(eth0) entered forwarding state
[   42.440000] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  243.730000] br-lan: port 1(eth0) entered disabled state
[  243.730000] device eth0 left promiscuous mode
[  243.740000] br-lan: port 1(eth0) entered disabled state
[  243.750000] eth0: link down
[  245.190000] ADDRCONF(NETDEV_UP): eth0: link is not ready
[  245.210000] device eth0 entered promiscuous mode
[  245.210000] ADDRCONF(NETDEV_UP): br-lan: link is not ready
[  245.830000] eth0: link up (100Mbps/Full duplex)
[  245.830000] br-lan: port 1(eth0) entered forwarding state
[  245.840000] br-lan: port 1(eth0) entered forwarding state
[  245.840000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  245.850000] ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[  247.840000] br-lan: port 1(eth0) entered forwarding state

root@OpenWrt:~# dmesg | grep sda
[    9.820000] sd 0:0:0:0: [sda] 15630336 512-byte logical blocks: (8.00 GB/7.45 Gicool smiley
[    9.820000] sd 0:0:0:0: [sda] Write Protect is off
[    9.830000] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[    9.830000] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    9.860000]  sda: sda1 sda2
[    9.870000] sd 0:0:0:0: [sda] Attached SCSI removable disk

ls /dev/sd*
/dev/sda   /dev/sda1  /dev/sda2

root@OpenWrt:~# ps
  PID USER       VSZ STAT COMMAND
    1 root      1504 S    init
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    5 root         0 SW   [kworker/u:0]
    6 root         0 SW<  [khelper]
    7 root         0 SW   [kworker/u:1]
   63 root         0 SW   [sync_supers]
   65 root         0 SW   [bdi-default]
   67 root         0 SW<  [kblockd]
   96 root         0 SW   [kswapd0]
  144 root         0 SW   [fsnotify_mark]
  173 root         0 SW<  [ath79-spi]
  184 root         0 SW   [mtdblock0]
  189 root         0 SW   [mtdblock1]
  194 root         0 SW   [mtdblock2]
  199 root         0 SW   [mtdblock3]
  204 root         0 SW   [mtdblock4]
  209 root         0 SW   [mtdblock5]
  250 root         0 SW   [kworker/0:1]
  442 root         0 SWN  [jffs2_gcd_mtd3]
  472 root         0 SW   [khubd]
  481 root         0 SW   [scsi_eh_0]
  482 root         0 SW   [usb-storage]
  483 root         0 SW   [kworker/0:2]
  507 root      1504 S    init
  540 root         0 SW<  [cfg80211]
  618 root         0 SW<  [bat_events]
  645 root      1508 S    /sbin/syslogd -C16
  647 root      1488 S    /sbin/klogd
  649 root       872 S    /sbin/hotplug2 --override --persistent --set-rules-file /etc/hotplug2.rules --set-coldplug-cmd /sbin/udevtrigger --max-children 1
  658 root       872 S    /sbin/ubusd
 1341 root      1152 S    /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
 1419 root      1500 S    /sbin/watchdog -t 5 /dev/watchdog
 1483 nobody     956 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf
 1500 root      1492 S    syslogd -n -L -R 192.168.1.2:9999
 1545 root      1500 S    /usr/sbin/ntpd -n -p 0.openwrt.pool.ntp.org -p 1.openwrt.pool.ntp.org -p 2.openwrt.pool.ntp.org -p 3.openwrt.pool.ntp.org
 1548 root      1244 S    /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
 1549 root      1508 S    -ash
 1647 root      1468 S    /sbin/netifd
 1792 root      1496 R    ps

root@OpenWrt:~# cat /mnt/usb/install.log
Jan  1 00:00:47 OpenWrt syslog.info syslogd started: BusyBox v1.19.4
---------------------------------------------
Jan  1 00:00:47 OpenWrt syslog.info syslogd started: BusyBox v1.19.4
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer_start.sh : Doing extendRoot initilization
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : executing run_test
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : Testing requirements...
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : .. USB storage modules available
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : extendRoot package is installed
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : executing run_signaling_extendRoot_start
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : executing run_prepare_extendRoot
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : configure initi step for extendRoot
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : executing run_init_extendRoot
Jan  1 00:00:47 OpenWrt user.notice root: /etc/init.d/ext: Mounting external USB storage...
Jan  1 00:00:47 OpenWrt user.notice root: /etc/init.d/ext: Forcing overwrite of /mnt/usb/external_fs/OpenWRT.img if it already exsits
Jan  1 00:00:47 OpenWrt user.notice root: /etc/init.d/ext: Creating ext loop image...
Jan  1 00:00:47 OpenWrt user.notice root: /etc/init.d/ext: No external Image-template file found... loading from Internet
Jan  1 00:00:47 OpenWrt user.notice root: wget: bad address 'downloads.piratebox.de'
Jan  1 00:00:47 OpenWrt user.notice root: /etc/init.d/ext: ERROR: wget failed... cancel
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : executing run_signaling_extendRoot_stop
Jan  1 00:00:47 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:00:48 OpenWrt syslog.info syslogd started: BusyBox v1.19.4
Jan  1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : executing run_test
Jan  1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : Testing requirements...
Jan  1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : .. USB storage modules available
Jan  1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : extendRoot package is installed
Jan  1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : executing run_signaling_extendRoot_start
Jan  1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : executing run_prepare_extendRoot
Jan  1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : configure initi step for extendRoot
Jan  1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : executing run_init_extendRoot
Jan  1 00:00:48 OpenWrt user.notice root: Please connect USB disk. If it is already plugged-in,
Jan  1 00:00:48 OpenWrt user.notice root: wait for a few seconds, and if nothing happens, please
Jan  1 00:00:48 OpenWrt user.notice root: reconnect the device. Keep in mind that your router's
Jan  1 00:00:48 OpenWrt user.notice root: ports may not be able to supply enough power to
Jan  1 00:00:48 OpenWrt user.notice root: spin-up a USB HDD.
Jan  1 00:05:52 OpenWrt user.notice root: .....................................................................................................................................................................................................................................
Jan  1 00:05:52 OpenWrt user.notice root: USB disk is now available. Continuing...
Jan  1 00:05:52 OpenWrt user.notice root: /etc/init.d/ext: Mounting external USB storage...
Jan  1 00:05:52 OpenWrt user.notice root: /etc/init.d/ext: Forcing overwrite of /mnt/usb/external_fs/OpenWRT.img if it already exsits
Jan  1 00:05:52 OpenWrt user.notice root: /etc/init.d/ext: Creating ext loop image...
Jan  1 00:05:52 OpenWrt user.notice root: /etc/init.d/ext: No external Image-template file found... loading from Internet
Jan  1 00:05:53 OpenWrt user.notice root: wget: bad address 'downloads.piratebox.de'
Jan  1 00:05:53 OpenWrt user.notice root: /etc/init.d/ext: ERROR: wget failed... cancel
Jan  1 00:05:53 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:05:53 OpenWrt user.notice root: /bin/box_installer.sh : executing run_signaling_extendRoot_stop
Jan  1 00:05:53 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:05:53 OpenWrt user.notice root: /bin/box_installer.sh : executing exit
---------------------------------------------
Jan  1 00:00:52 OpenWrt syslog.info syslogd started: BusyBox v1.19.4
Jan  1 00:00:52 OpenWrt user.notice root: /bin/box_installer_start.sh : Doing extendRoot initilization
Jan  1 00:00:52 OpenWrt user.notice root: /bin/box_installer.sh : executing run_test
Jan  1 00:00:52 OpenWrt user.notice root: /bin/box_installer.sh : Testing requirements...
Jan  1 00:00:52 OpenWrt user.notice root: /bin/box_installer.sh : .. USB storage modules available
Jan  1 00:00:52 OpenWrt user.notice root: /bin/box_installer.sh : extendRoot package is installed
Jan  1 00:00:52 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:00:52 OpenWrt user.notice root: /bin/box_installer.sh : executing run_signaling_extendRoot_start
Jan  1 00:00:52 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:00:52 OpenWrt user.notice root: /bin/box_installer.sh : executing run_prepare_extendRoot
Jan  1 00:00:52 OpenWrt user.notice root: /bin/box_installer.sh : configure initi step for extendRoot
Jan  1 00:00:52 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:00:52 OpenWrt user.notice root: /bin/box_installer.sh : executing run_init_extendRoot
Jan  1 00:00:52 OpenWrt user.notice root: /etc/init.d/ext: Mounting external USB storage...
Jan  1 00:00:52 OpenWrt user.notice root: /etc/init.d/ext: Forcing overwrite of /mnt/usb/external_fs/OpenWRT.img if it already exsits
Jan  1 00:00:52 OpenWrt user.notice root: /etc/init.d/ext: Creating ext loop image...
Jan  1 00:00:52 OpenWrt user.notice root: /etc/init.d/ext: No external Image-template file found... loading from Internet
Jan  1 00:00:52 OpenWrt user.notice root: wget: bad address 'downloads.piratebox.de'
Jan  1 00:00:52 OpenWrt user.notice root: /etc/init.d/ext: ERROR: wget failed... cancel
Jan  1 00:00:52 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:00:52 OpenWrt user.notice root: /bin/box_installer.sh : executing run_signaling_extendRoot_stop
Jan  1 00:00:52 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan  1 00:00:52 OpenWrt user.notice root: /bin/box_installer.sh : executing exit

In my research I also came across the README in [downloads.piratebox.de] and found the howto.html however had a number of issues restarting the network service, thinking I was on the wrong path I tried my best to revert the files I touched back to their original state.

I'm hoping this problem is as simple as "you didn't format correctly" or "you need to enable the networking".
Re: MR3020 - Unable to connect to wget: bad address & no FTP
February 20, 2017 09:05PM
> I'm hoping this problem is as simple as "you didn't format correctly" or
> "you need to enable the networking".

Yes, it is: It seems your USB stick is formatted with GPT (new partition table format) and not in MBR mode (old partition table format).
The old OpenWrt sees two instead of one partition in this case, but the first partition does not contain the needed files.

Repartition, and I recommend a reflash using this howto: [forum.piratebox.cc]

Sorry for my late reply,
best regards Matthias


This is only my signature.
Re: MR3020 - Unable to connect to wget: bad address & no FTP
February 21, 2017 02:08AM
I didn't even notice it on Disk Utilities! Thanks so much for solving that weekend log headache. thumbs up
Re: MR3020 - Unable to connect to wget: bad address & no FTP
February 21, 2017 05:22AM
You are welcome. With posting the command output, it was pretty easy ;-) and saved much time.

Have fun with your PirateBox thumbs up

Matthias
Re: MR3020 - Unable to connect to wget: bad address & no FTP
February 21, 2017 05:22AM
I reformatted the USB device using Linux and made sure to select FAT32 this time. I then followed the instructions in the reflashing link you sent, and it all seemed to work perfectly fine, however when I logged onto the Piratebox, I still get this problem:
root@OpenWrt:~# /opt/piratebox/bin/board-autoconf.sh
-ash: /opt/piratebox/bin/board-autoconf.sh: not found

I am currently doing the process again and will post the technical information once it is done.
Re: MR3020 - Unable to connect to wget: bad address & no FTP
February 21, 2017 05:23AM
So did you replace the install folder with a fresh copy?
It is important to wait a while after reflashing, it will take 3 or 4 additional reboots until everything is installed.
Re: MR3020 - Unable to connect to wget: bad address & no FTP
February 21, 2017 05:27AM
Yes I re-downloaded everything, to make sure. I will post back in an hour if nothing has changed smiling smiley
Re: MR3020 - Unable to connect to wget: bad address & no FTP
February 21, 2017 06:09AM
I was able to get it working this time after leaving it much longer, however the image forum appears as an index page listing just:

Index of /board/
Name	Last Modified	Size	Type
Parent Directory/	 	-  	Directory
kareha.pl	1980-Jan-01 00:00:00	0.1K	application/octet-stream

My password down not contain any characters such as `'" although it does contain a .
Re: MR3020 - Unable to connect to wget: bad address & no FTP
February 21, 2017 06:12AM
this looks more like your board installation broke or isn't completed yet.
Is the box still blinking regulary or are the LEDs steady for while.

If last, you need to post the install.log

best regards Mtthias
Re: MR3020 - Unable to connect to wget: bad address & no FTP
February 21, 2017 06:17AM
The power button is on.
The Internet light is flashing, slower than the WPS/RESET LIGHT.
The WLAN light is off.
The WPS/RESET light is flashing every second or so.

If installation is still going can I leave it be longer or will something be corrupted and I will need to start again?
Re: MR3020 - Unable to connect to wget: bad address & no FTP
February 21, 2017 06:22AM
Patience is obviously a virtue. It's all working properly now thank you very much for your help.