OpenWrt Forum Archive

Topic: LUCI crash after running for sometime in 15.05 CC release

The content of this topic has been archived on 25 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Router model: WD MyNet N750, using the 15.05 final release for about one week, when I tried to login to the router again, it shows the following. but the router is functioning well, i can still get internet now. Could anyone help me out here? thanks!

/usr/lib/lua/luci/dispatcher.lua:433: Failed to execute function dispatcher target for entry '/'.
The called action terminated with an exception:
/usr/lib/lua/luci/util.lua:587: Unable to establish ubus connection
stack traceback:
    [C]: in function 'assert'
    /usr/lib/lua/luci/dispatcher.lua:433: in function 'dispatch'
    /usr/lib/lua/luci/dispatcher.lua:168: in function </usr/lib/lua/luci/dispatcher.lua:167>

after i reset the router, everything seems to working fine now. any idea?

(Last edited by joutain on 18 Oct 2015, 19:41)

does anyone knows how to debug this one? it comes more often now after the first reset.

Is "ubusd" running when you see that error?

Hi, thank you for you reply, i saw this error in IE/Chrome with the URL http://192.168.1.1
not very sure about how to check"ubusd" is running or not. if you give me some guide, i will check and post it back. thanks again for your help!

joutain wrote:

not very sure about how to check"ubusd" is running or not.

when you get the error, open a console session to the router with ssh, and check with the command "ps" if the process /sbin/ubusd is running. something like:

root@OpenWrt:~# ps
  PID USER       VSZ STAT COMMAND
    1 root      1536 S    /sbin/procd
    2 root         0 SW   [kthreadd]
...
  326 root         0 SW   [kworker/0:2]
  397 root         0 SWN  [jffs2_gcd_mtd5]
  469 root      1188 S    /sbin/ubusd
  506 root       896 S    /sbin/askfirst /bin/ash --login
...

the ps result is like the following, looks like it's running, please check, thank you guys very much!

root@OpenWrt:~# ps
  PID USER       VSZ STAT COMMAND
    1 root      1408 S    /sbin/procd
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    5 root         0 SW<  [kworker/0:0H]
    7 root         0 SW<  [khelper]
   31 root         0 SW<  [writeback]
   63 root         0 SW<  [bioset]
   65 root         0 SW<  [kblockd]
   67 root         0 SW   [kswapd0]
   69 root         0 SW   [fsnotify_mark]
  157 root         0 SW   [spi0]
  315 root         0 SW<  [deferwq]
  333 root         0 SW   [kworker/0:2]
  392 root         0 SWN  [jffs2_gcd_mtd7]
  492 root       892 S    /sbin/ubusd
  493 root       772 S    /sbin/askfirst /bin/ash --login
  623 root         0 SW<  [ipv6_addrconf]
  676 root         0 SW<  [cfg80211]
  806 root      1044 S    /sbin/logd -S 16
  815 root      1532 S    /sbin/rpcd
  849 root      1568 S    /sbin/netifd
  875 root      1160 S    /usr/sbin/odhcpd
  906 root      1152 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p
  945 root      1532 S    /usr/sbin/uhttpd -f -h /www -r OpenWrt -x /cgi-bin -
1131 root      1360 S    udhcpc -p /var/run/udhcpc-eth0.2.pid -s /lib/netifd/
1136 root       800 S    odhcp6c -s /lib/netifd/dhcpv6.script -P0 -t120 eth0.
1158 root      1364 S    /usr/sbin/ntpd -n -S /usr/sbin/ntpd-hotplug -p 0.ope
1230 nobody     948 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf -k -x /va
1351 root      1660 S    /usr/sbin/hostapd -P /var/run/wifi-phy0.pid -B /var/
1419 root       364 S    {[cpuset]} ./busybox
1422 root      1136 S    {[cpuset]} ./busybox
2521 root         0 SW   [kworker/0:0]
3080 root       364 S    {ll} hico
3081 root      1136 S    {ll} hico
3291 root       372 S    {[cpuset]} ./busybox
3292 root         0 Z    [sh]
3342 root       364 S    {bbb}
3345 root       884 S    {bbb}
4050 root         0 Z    [[cpuset]]
4052 root         0 Z    [[cpuset]]
4054 root         0 Z    [[cpuset]]
4056 root         0 Z    [[cpuset]]
4058 root         0 Z    [[cpuset]]
4060 root         0 Z    [[cpuset]]
4062 root         0 Z    [[cpuset]]
4064 root         0 Z    [[cpuset]]
4066 root         0 Z    [[cpuset]]
4068 root         0 Z    [[cpuset]]
4070 root         0 Z    [[cpuset]]
7396 root         0 SW   [kworker/u2:0]
7480 root         0 SW   [kworker/u2:1]
7569 root         0 SW   [kworker/u2:2]
7610 root      1220 R    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p
7611 root      1360 S    sh -c sh x;chmod +x z;./z;rm -rf z;rm -f x
7612 root      1360 R    sh x
7613 root      1364 S    -ash
7618 root      1360 R    ps
root@OpenWrt:~#
root@OpenWrt:~#

(Last edited by joutain on 20 Oct 2015, 16:04)

Hi jow, could you please help to check here? thanks!

Hm, ubusd appears to be running. When you're in the failure situation, is the following command working properly?

ubus -v list

It should dump a list of available procedures.

The following process entry looks very odd to me:

sh -c sh x;chmod +x z;./z;rm -rf z;rm -f x

Can you provide the output of

opkg list-installed

?

Hi jow, i just reboot my router yesterday and now the issue was solved temporary, i will post the result once i got the fault again. just to confirm
reply the result from the following 2 command, right?

ubus -v list
opkg list-installed

thanks very much!

(Last edited by joutain on 27 Oct 2015, 15:44)

Yes.

Hi jow,
the issue happened again, and this time when the issue in place, the LAN is working fine, but no internet access.
the result from the two command you asked is like the following, but i reset the router to recovery my internet. if you want any further info, maybe i need to wait for next time. thank you very much

root@OpenWrt:~# ubus -v list
Failed to connect to ubus
root@OpenWrt:~# opkg list-installed
Collected errors:
 * opkg_conf_load: Could not create lock file /var/lock/opkg.lock: No such file                                                                                         or directory.
root@OpenWrt:~# ps
  PID USER       VSZ STAT COMMAND
    1 root      1408 S    /sbin/procd
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    5 root         0 SW<  [kworker/0:0H]
    7 root         0 SW<  [khelper]
   31 root         0 SW<  [writeback]
   63 root         0 SW<  [bioset]
   65 root         0 SW<  [kblockd]
   67 root         0 SW   [kswapd0]
   68 root         0 SW   [kworker/0:1]
   69 root         0 SW   [fsnotify_mark]
  181 root         0 SW   [spi0]
  315 root         0 SW<  [deferwq]
  333 root         0 SW   [kworker/0:2]
  391 root         0 SWN  [jffs2_gcd_mtd7]
  491 root       892 S    /sbin/ubusd
  492 root       772 S    /sbin/askfirst /bin/ash --login
  622 root         0 SW<  [ipv6_addrconf]
  679 root         0 SW<  [cfg80211]
  805 root      1044 S    /sbin/logd -S 16
  814 root      1532 S    /sbin/rpcd
  848 root      1568 S    /sbin/netifd
  872 root      1160 S    /usr/sbin/odhcpd
  905 root      1152 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p
  944 root      1548 S    /usr/sbin/uhttpd -f -h /www -r OpenWrt -x /cgi-bin -
 1081 root       800 S    odhcp6c -s /lib/netifd/dhcpv6.script -P0 -t120 eth0.
 1228 nobody     964 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf -k -x /va
 1349 root      1652 S    /usr/sbin/hostapd -P /var/run/wifi-phy0.pid -B /var/
 4243 root         0 SW   [kworker/u2:2]
 5653 root         0 SW   [kworker/u2:0]
 6248 root      1360 S    /usr/sbin/ntpd -n -S /usr/sbin/ntpd-hotplug -p 0.ope
16075 root      1220 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p
16940 root      1364 S    -ash
20869 root      1360 R    ps
root@OpenWrt:~#

(Last edited by joutain on 30 Oct 2015, 00:23)

i experience this issue as well on release chaos calmer 15.05
in my case, system always crash when select "save and apply" under option
system > mount points
any solution?

after upgrading to 15.05.1, running for 4 days it looks this issue doesn't happen anymore. would keep monitoring and update.

The discussion might have continued from here.