NAS542 bootloop after Debian/OMV (get a new firmware) (solved)
Comments
-
mount -o remount,rw /firmware/mnt/nand/
0 -
I've found that command, too.This changes my console to this sign in the front '>' and nothing is in there.No command works and 'ls' gives nothing.0
-
The upgrade script on the NAS (/sbin/fwupgrade_erase_write_ras.sh) does it this way:
echo -e "\033[033mWrite system disk image to NAND flash ...\033[0m"<br><br> if [ ! -d ${NANDPATH} ]; then<br> mkdir -p ${NANDPATH}<br> fi<br><br> # Mount spare sysdisk img partition<br> MNT_POINT="`mount| grep ^ubi${IMG_MTD} |awk '{print $3}'`"<br> if [ "${MNT_POINT}" != "" ]; then<br> umount ${MNT_POINT}<br> fi<br> ubinfo | grep ${IMG_MTD}<br> if [ "$?" = "0" ]; then<br> ubidetach -m ${IMG_MTD}<br> fi<br><br> /sbin/flash_erase /dev/mtd${IMG_MTD} 0 0 2>&1 > /dev/null<br> ubiattach -m ${IMG_MTD} -d ${IMG_MTD}<br> ubimkvol /dev/ubi${IMG_MTD} -N ubi_rootfs${NEXT_BOOTFROM} -s 100MiB<br> mount -t ubifs ubi${IMG_MTD}:ubi_rootfs${NEXT_BOOTFROM} ${NANDPATH}<br> /bin/mv /mnt/ram1/DATA_1004 ${NANDPATH}/${IMG_NAME}.gz<br>
0 -
So, i am not exactly shure what i have to do.Should i make a seperate NANDPATH? Or skip this, cause i will use the existing?MNT_POINT i can choose one?How to give him the ubi${IMG_MTD}? => ubi${dev/sda1/sysdisk.img.gz.520ABAG1C0} ?Or do i only need the last mount line?Sorry, i am really not used to this kind of stuff.0
-
It's a bit hard to guess the exact command without seeing the output. But I think the relevant part for you is
<div>umount /firmware/mnt/nand</div><div><br></div><div>ubidetach -m 5</div><div><br></div><div>/sbin/flash_erase /dev/mtd5 0 0 <br></div><div>ubiattach -m 5 -d 5<br>ubimkvol /dev/ubi5 -N ubi_rootfs1 -s 100MiB<br>mount -t ubifs ubi5:ubi_rootfs1 /firmware/mnt/nand<br>cp /path/to/file /firmware/mnt/nand/sysdisk.img.gz<br></div><div><br></div><div></div>
0 -
Thank you alot for your detailed steps.So i've done a regular boot without interaction, till i can write to the console, here the attached LOG starts. Then i used your commands and they worked. At the end i didn't know how to boot from it. The boot commands didn't work so i rebooted it completely and then i ended with the SSLCertificate error (as some weeks before).I tried to connect to the webinterface, without success. When i try to change the IP, i get this:/ # ifconfig egiga0 192.168.178.31 netmask 255.255.255.0
2019/07/23 20:57:19 [ipnotify] : rth->rta_type = 1, IFA_ADDRESS=1, IFA_LOCAL=2
2019/07/23 20:57:19 [ipnotify] : detect a delete IP and execute /sbin/ipnotify_exec.sh
2019/07/23 20:57:19 [ipnotify] : rth->rta_type = 1, IFA_ADDRESS=1, IFA_LOCAL=2
2019/07/23 20:57:19 [ipnotify] : detect a new IP and execute /sbin/ipnotify_exec.sh
/ # [ipnotify_exec.sh]: ******** detect egiga0 delete IP********
[ipnotify_exec.sh]: ******** detect egiga0 new IP********
[23/Jul/2019:20:57:21] [network_common.py.pre](parsing_and_update)(201): the interface egiga0 is down or unusable
[23/Jul/2019:20:57:21] [network_common.py.pre](parsing_and_update)(201): the interface egiga0 is down or unusable
[23/Jul/2019:20:57:21] [network_common.py.pre](check_link_status)(275): the interface bond0 is down or unusable
[23/Jul/2019:20:57:21] [network_common.py.pre](check_link_status)(275): the interface bond1 is down or unusable
[23/Jul/2019:20:57:21] [network_common.py.pre](check_link_status)(275): the interface bond0 is down or unusable
[23/Jul/2019:20:57:21] [network_common.py.pre](check_link_status)(275): the interface bond1 is down or unusableAlso tried it for egiga1 to be shure i didn't mix them.0 -
When you get a certificate error, the network is up. Else it couldn't send you the wrong certificate. What happened here is that apparently the config partition was also damaged.When you scan the log for ubi3 and ubi_config you will see that it couldn't mount the config partition, and so erased it and put a new ubifs on it. This deleted all config, including the generated certificate.I think you should be able to access the box over http. Maybe after cleaning the browser cache & cookies. Don't know if the revision number in the URL is still the same.It's a bit concerning that both ubi partitions are corrupt at the same time. Did anything special happen before the problems started?0
-
Nothing special happened, you got it running, i played a little bit with it's settings, then it was off most of the time. Then i've done the factory reset (with 3 beeps) and now it isn't working.
My browser deletes everything, everytime i close it and i tried to connect through IP (not through URL or Name).
I bought this NAS from a company, which used it before and they sold it with a discount.
Maybe they have done weird things to it? Maybe that was also the reason why the second slot was empty after i wanted to return from Debian to Zyxels firmware?
Before i put Debian on it, everything worked with the Zyxel firmware, updates and so on, no problems. Debian worked also.
0 -
Can you post the output of
<div>ifconfig</div><div><br></div><div>netstat -l</div>
Maybe they have done weird things to it?I'm not really a hardware guy, but I can't think of a way to damage flash in that way that months later the ubi partitions get corrupt, while the other flash partitions are fine.A factory reset does remove the config partition:So after all it's not strange that that partition was damaged. Maybe it's a coincidence that mtd5 was also damaged?umount /etc/zyxel<br>ubirmvol /dev/ubi3 -N ubi_config<br>ubidetach -m 3<br>rm -rf /etc/zyxel/<br>
0 -
The output you have requested:ifconfig
egiga0 Link encap:Ethernet HWaddr 00:ED:CD:EF:AA:CC
inet addr:169.254.20.62 Bcast:169.254.255.255 Mask:255.255.0.0
inet6 addr: fe80::2ed:cdff:feef:aacc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:232 errors:0 dropped:222 overruns:0 frame:0
TX packets:103 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:13976 (13.6 KiB) TX bytes:18238 (17.8 KiB)
egiga1 Link encap:Ethernet HWaddr 00:2A:2B:2C:2D:2E
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 TX bytes:238 (238.0
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1449 errors:0 dropped:0 overruns:0 frame:0
TX packets:1449 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:102564 (100.1 KiB) TX bytes:102564 (100.1 KiB)
/ # netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 (null):548 (null):* LISTEN
tcp 0 0 (null):873 (null):* LISTEN
tcp 0 0 (null):139 (null):* LISTEN
tcp 0 0 (null):631 (null):* LISTEN
tcp 0 0 (null):445 (null):* LISTEN
tcp 0 0 :::873 :::* LISTEN
tcp 0 0 :::139 :::* LISTEN
tcp 0 0 :::445 :::* LISTEN
udp 0 0 (null):631 (null):*
udp 0 0 (null):137 (null):*
udp 0 0 (null):137 (null):*
udp 0 0 (null):137 (null):*
udp 0 0 (null):138 (null):*
udp 0 0 (null):138 (null):*
udp 0 0 (null):138 (null):*
udp 0 0 (null):5353 (null):*
udp 0 0 (null):22377 (null):*
udp 0 0 (null):39823 (null):*
udp 0 0 (null):38832 (null):*
udp 0 0 (null):50127 (null):*
udp 0 0 (null):990 (null):*
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 4139 /var/run/avahi-daemon/socket
unix 2 [ ACC ] STREAM LISTENING 331 /tmp/main_wsgi.sock
unix 2 [ ACC ] STREAM LISTENING 5507 /var/run/samba/nmbd/unexpected
unix 2 [ ACC ] STREAM LISTENING 3987 /dev/user-notify
unix 2 [ ACC ] STREAM LISTENING 3989 /dev/user-requestWhen i change it with "ifconfig egiga0 192.168.178.31 netmask 255.255.255.0" it will be overwritten after some seconds (after: network_common.py.pre), see here:
ifconfig egiga0 192.168.178.31 netmask 255.255.255.0
/ # cp: can't stat '/etc/zyxel/cert/default.cer': No such file or directory
cp: can't stat '/etc/zyxel/cert/key/default_key.cer': No such file or directory
Syntax error on line 62 of /etc/service_conf/httpd_zld.conf:
SSLCertificateFile: file '/etc/service_conf/CA.cer' does not exist or is empty
ifconfig
egiga0 Link encap:Ethernet HWaddr 00:ED:CD:EF:AA:CC
inet addr:192.168.178.31 Bcast:192.168.178.255 Mask:255.255.255.0
inet6 addr: fe80::2ed:cdff:feef:aacc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:573 errors:0 dropped:502 overruns:0 frame:0
TX packets:164 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:35034 (34.2 KiB) TX bytes:21979 (21.4 KiB)
egiga1 Link encap:Ethernet HWaddr 00:2A:2B:2C:2D:2E
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 TX bytes:238 (238.0
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3622 errors:0 dropped:0 overruns:0 frame:0
TX packets:3622 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:256505 (250.4 KiB) TX bytes:256505 (250.4 KiB)
/ # 2019/07/26 18:25:25 [ipnotify] : rth->rta_type = 1, IFA_ADDRESS=1, IFA_LOCAL=2
2019/07/26 18:25:25 [ipnotify] : detect a delete IP and execute /sbin/ipnotify_exec.sh
[ipnotify_exec.sh]: ******** detect egiga0 delete IP********
cp: can't stat '/etc/zyxel/cert/default.cer': No such file or directory
cp: can't stat '/etc/zyxel/cert/key/default_key.cer': No such file or directory
[26/Jul/2019:18:25:27] [network_common.py.pre](parsing_and_update)(201): the interface egiga0 is down or unusable
[26/Jul/2019:18:25:27] [network_common.py.pre](check_link_status)(275): the interface bond0 is down or unusable
[26/Jul/2019:18:25:27] [network_common.py.pre](check_link_status)(275): the interface bond1 is down or unusable
Syntax error on line 62 of /etc/service_conf/httpd_zld.conf:
SSLCertificateFile: file '/etc/service_conf/CA.cer' does not exist or is empty
ifconfig
egiga0 Link encap:Ethernet HWaddr 00:ED:CD:EF:AA:CC
inet6 addr: fe80::2ed:cdff:feef:aacc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:585 errors:0 dropped:514 overruns:0 frame:0
TX packets:171 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:35754 (34.9 KiB) TX bytes:22309 (21.7 KiB)
egiga1 Link encap:Ethernet HWaddr 00:2A:2B:2C:2D:2E
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 TX bytes:238 (238.0
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3726 errors:0 dropped:0 overruns:0 frame:0
TX packets:3726 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:263681 (257.5 KiB) TX bytes:263681 (257.5 KiB)
/ # cp: can't stat '/etc/zyxel/cert/default.cer': No such file or directory
cp: can't stat '/etc/zyxel/cert/key/default_key.cer': No such file or directory
Syntax error on line 62 of /etc/service_conf/httpd_zld.conf:
SSLCertificateFile: file '/etc/service_conf/CA.cer' does not exist or is empty
2019/07/26 18:25:37 [ipnotify] : rth->rta_type = 1, IFA_ADDRESS=1, IFA_LOCAL=2
2019/07/26 18:25:37 [ipnotify] : detect a new IP and execute /sbin/ipnotify_exec.sh
[ipnotify_exec.sh]: ******** detect egiga0 new IP********
[26/Jul/2019:18:25:39] [network_common.py.pre](parsing_and_update)(201): the interface egiga0 is down or unusable
[26/Jul/2019:18:25:39] [network_common.py.pre](check_link_status)(275): the interface bond0 is down or unusable
[26/Jul/2019:18:25:39] [network_common.py.pre](check_link_status)(275): the interface bond1 is down or unusable
cp: can't stat '/etc/zyxel/cert/default.cer': No such file or directory
cp: can't stat '/etc/zyxel/cert/key/default_key.cer': No such file or directory
cp: can't stat '/etc/zyxel/cert/default.cer': No such file or directory
cp: can't stat '/etc/zyxel/cert/key/default_key.cer': No such file or directory
killall: httpd: no process killed
killall: httpd: no process killed
ifconfig
egiga0 Link encap:Ethernet HWaddr 00:ED:CD:EF:AA:CC
inet addr:169.254.20.62 Bcast:169.254.255.255 Mask:255.255.0.0
inet6 addr: fe80::2ed:cdff:feef:aacc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:595 errors:0 dropped:524 overruns:0 frame:0
TX packets:182 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:36354 (35.5 KiB) TX bytes:25603 (25.0 KiB)
egiga1 Link encap:Ethernet HWaddr 00:2A:2B:2C:2D:2E
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 TX bytes:238 (238.0
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3791 errors:0 dropped:0 overruns:0 frame:0
TX packets:3791 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:268453 (262.1 KiB) TX bytes:268453 (262.1 KiB)
0
Categories
- All Categories
- 415 Beta Program
- 2.4K Nebula
- 144 Nebula Ideas
- 94 Nebula Status and Incidents
- 5.6K Security
- 238 USG FLEX H Series
- 267 Security Ideas
- 1.4K Switch
- 71 Switch Ideas
- 1.1K Wireless
- 40 Wireless Ideas
- 6.3K Consumer Product
- 247 Service & License
- 384 News and Release
- 83 Security Advisories
- 29 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.2K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 83 About Community
- 71 Security Highlight