FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
3,516 views 6 comments
by anonymous

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?

by

I am experiencing the same issue, upgraded bootloader to 3.01 and firmware to RUT9XX_R_00.06.02 (

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'}

Tried RUT9XX_R_00.06.02.2 but experienced a lot of bugs, in almost every feature of the router. 

On RUT9XX_R_00.06.02 most things seemed to work but after a while the admin web ui becomes inaccessible and gives Bad Gateway error after attempting to load for a long time. It's quite problematic as the whole point in getting this router is to enable remote access - and that I can not always get on site to reboot it. 

I have a 950 LTE 

2 Answers

0 votes
by anonymous
Hello,

Which firmware version was installed in router, when you got this error?
Best answer
by anonymous

Hi, 

cat /etc/version

RUT9XX_R_00.01.497

so it's pretty old (2015?) and should have been updated long ago. 
by anonymous

Check bootloader version with command mnf_info blver. If your router has old bootloader version (latest version is 3.0.1), it won't allow to upgrade firmware and in this case you will need to upgrade bootloader first.

And most likely, you will need physically connect to router to fix this issue.

by anonymous

 mnf_info.sh blver

Parameter 'blver' not supported

Displays manufacturer information

Usage: /sbin/mnf_info.sh <PARAM> <EOL>

<PARAM> - mac, name, wps, sn, batch, hwver, simpin

<EOL> - any string for a no-last-new-line output (optional)

So, not supported on this firmware. Any other way to check?
It's for sure not 3.0.1, so I need to update bootloader in order to update firmware I guess.
Can this error be due to an "unclean shutdown" or can it be bad flash storage?
by anonymous
No, there is no other way. But it's doesn't matter, since it's quite clear that this router bootloader is older than 3.0.1.

Only way to fix is to install firmware without keeping settings, but to install new firmware you will need to upgrade bootloader, so it's necessary to physical connect to router.

Cannot say for sure, why this issue occurred.
0 votes
by
Hi,

Try updating routers bootlaoder and firmware via "bootloader menu", here is link to Wiki where you will find instructions how to do bootlaoder and firmware update.

https://wiki.teltonika.lt/view/RUT9xx_Bootloader_Upgrade

https://wiki.teltonika.lt/view/RUT9xx_Firmware_via_The_Bootloader_Menu
by anonymous
Hi,

the router is in a remote location, so I cant do this right now. I guess I can upgrade via ssh as well, but I would like to find out if this is a hardware error - then an upgrade can make things worse, or if it's the filesystem that is broken (or something else), then an upgrade might solve the problem.