I have a RUT950, that just returns "Bad Gateway" in the Web UI after a reboot. Firewall, routing, VPN etc seems to work fine. I did not update firmware before reboot.
If I SSH in and run /www/cgi-bin/luci i get:
/usr/bin/lua: /usr/lib/lua/luci/util.lua:34: module 'luci.template.parser' not found:
no field package.preload['luci.template.parser']
no file './luci/template/parser.lua'
no file '/usr/share/lua/luci/template/parser.lua'
no file '/usr/share/lua/luci/template/parser/init.lua'
no file '/usr/lib/lua/luci/template/parser.lua'
no file '/usr/lib/lua/luci/template/parser/init.lua'
no file './luci/template/parser.so'
no file '/usr/lib/lua/luci/template/parser.so'
no file '/usr/lib/lua/loadall.so'
no file './luci.so'
no file '/usr/lib/lua/luci.so'
no file '/usr/lib/lua/loadall.so'
stack traceback:
[C]: in function 'require'
/usr/lib/lua/luci/util.lua:34: in main chunk
[C]: in function 'require'
/usr/lib/lua/luci/config.lua:28: in main chunk
[C]: in function 'require'
/usr/lib/lua/luci/cacheloader.lua:16: in main chunk
[C]: in function 'require'
/www/cgi-bin/luci:2: in main chunk
[C]: ?
If i run df i get this:
df -h
Filesystem Size Used Available Use% Mounted on
rootfs 896.0K 296.0K 600.0K 33% /
/dev/root 7.8M 7.8M 0 100% /rom
tmpfs 61.8M 328.0K 61.5M 1% /tmp
/dev/mtdblock5 896.0K 296.0K 600.0K 33% /overlay
overlayfs:/overlay 896.0K 296.0K 600.0K 33% /
tmpfs 512.0K 0 512.0K 0% /dev
/dev/mtdblock7 320.0K 244.0K 76.0K 76% /mnt/mtdblock7
Is something missing here?
I noticed that /etc/fstab is linked to /tmp/fstab, but that file is missing.
If i run dmesg I see these kind of errors:
[ 16.790000] SQUASHFS error: xz_dec_run error, data probably corrupt
[ 16.790000] SQUASHFS error: squashfs_read_data failed to read block 0x787a60
[ 16.800000] SQUASHFS error: Unable to read metadata cache entry [787a60]
[ 16.810000] SQUASHFS error: Unable to read directory block [787a60:1831]
[ 16.810000] SQUASHFS error: Unable to read metadata cache entry [787a60]
[ 16.820000] SQUASHFS error: Unable to read directory block [787a60:1831]
[ 16.830000] SQUASHFS error: Unable to read metadata cache entry [787a60]
[ 16.830000] SQUASHFS error: Unable to read directory block [787a60:1831]
I'm afraid to break it more if I try to upgrade firmware and storage is faulty.
How can I recover from this?