View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000015 | easycwmp | Help | public | 2014-10-01 07:32 | 2014-10-08 13:16 |
Reporter | janmus | Assigned To | mohamed.kallel | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | ARMv5TEJ | OS | Linux | OS Version | 3.0.8 |
Summary | 0000015: Run easycwmp scripts problem | ||||
Description | I always get some error after I try to run command as '/usr/sbin/easycwmp --json get name "" 0' on my platform. root # /usr/sbin/easycwmp --json get name "" 0 The error message output as below : -------------------------------------------------------- sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory sh: can't execute 'readonly': No such file or directory flags:ERROR missing flag info variable (__flags_type_) flags:FATAL call to _flags_type_ failed flags:FATAL unrecognized option (json,help,nojson,nohelp) | ||||
Tags | No tags attached. | ||||
e-mail notification | |||||
|
This issue could be the same of issue 0000006. Please check that your /bin/sh is linked to bash As indicated in the manual, you have to execute this command: sudo ln -sf bash /bin/sh |
|
There are only one shell(/bin/sh) that linked to busybox in my system. /root# ls -al /bin/sh lrwxrwxrwx 1 root root 7 Dec 4 14:27 /bin/sh -> busybox Definitely need bash shell? |
|
What Linux system are you using? Is it OpenWRT? could you provide the ouput of the command busybox --list | grep sh |
|
No,it is not OpenWRT, I use the MontaVista Linux Kernel (version: 3.0.8) Now , I had update the busybox that is support with bash shell. and the Problem has been solved !! # busybox --list | grep sh add-shell ash bash fbsplash fdflush hush msh remove-shell sh sha1sum sha256sum sha512sum showkey But new problems have arisen as below : root # bash /usr/sbin/easycwmp --json get name "" 0 /usr/sbin/easycwmp: export: line 208: illegal option -n Problem may seem UCI.sh and its implementation |
|
as indicated in the issue 0000006, you have to link the /bin/sh to ash with the following command on root root@Linux:~# ln -sf /usr/sbin/ash /bin/sh Make sure that your ash is really under /usr/sbin/ check now that your /bin/sh is linked to the ash with root@Linux:~# ls -l /bin/sh lrwxrwxrwx 1 root root 13 Mar 12 21:47 /bin/sh -> /usr/sbin/ash Now you can get the easycwmp data model output with: root@Linux:~# /bin/sh /usr/sbin/easycwmp --json get name "" 0 |
|
I tried as you said, but, the Problem still exists. ------------------------------------------------------------------------ root # which busybox /usr/sbin/busybox root # ls -al /usr/sbin/ash lrwxrwxrwx 1 root root 17 Mar 23 20:59 /usr/sbin/ash -> /usr/sbin/busybox root # ls -l /bin/sh lrwxrwxrwx 1 root root 13 Mar 23 21:00 /bin/sh -> /usr/sbin/ash root # /bin/sh /usr/sbin/easycwmp --json get name "" 0 /usr/sbin/easycwmp: export: line 208: illegal option -n ------------------------------------------------------------------------ ------------------------------------ |
|
could you provide the result of these commands : root # busybox --help root # uname -a |
|
Sure, the output as below root # busybox --help BusyBox v1.20.2 (2014-10-06 17:30:20 CST) multi-call binary. root # uname -a Linux MontaVista 3.0.8 #1 Tue Aug 5 14:45:54 CST 2014 armv5tejl GNU/Linux |
|
I tracked the problem takes place and see from the output of error messages seem to be and related to UCI.sh running. Yes,I had, the output as below, # uci show easycwmp.@local[0]=local easycwmp.@local[0].interface=eth0 easycwmp.@local[0].port=7547 easycwmp.@local[0].ubus_socket=/var/run/ubus.sock easycwmp.@local[0].date_format=%FT%T%z easycwmp.@acs[0]=acs easycwmp.@acs[0].scheme=http easycwmp.@acs[0].username=openacs easycwmp.@acs[0].password=openacs easycwmp.@acs[0].hostname=192.168.0.97 easycwmp.@acs[0].port=8080 easycwmp.@acs[0].path=/openacs/acs easycwmp.@acs[0].periodic_enable=1 easycwmp.@acs[0].periodic_interval=100 easycwmp.@device[0]=device easycwmp.@device[0].manufacturer=lpc easycwmp.@device[0].oui=FFFFFF easycwmp.@device[0].product_class=easycwmp-v3 easycwmp.@device[0].serial_number=FFFFFF123456 easycwmp.@device[0].hardware_version=v0.153 easycwmp.@device[0].software_version=v1.553 easycwmp.@scripts[0]=scripts easycwmp.@scripts[0].location=/lib/functions/network.sh /usr/share/easycwmp/functions/common /usr/share/easycwmp/functions/device_info /usr/share/easycwmp/functions/lan_device /usr/share/easycwmp/functions/management_server /usr/share/easycwmp/functions/wan_device easycwmp.@scripts[0].function=device_info lan_device management_server wan_device I had add your account from skype, Please check. |
|
Now ,I try to change busybox version and patch it ,then the problem has fixed. The issue would be closed, Thank you very much ! |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-10-01 07:32 | janmus | New Issue | |
2014-10-01 17:02 |
|
Note Added: 0000061 | |
2014-10-01 18:37 | mohamed.kallel | Note Edited: 0000061 | |
2014-10-01 18:38 | mohamed.kallel | Note Edited: 0000061 | |
2014-10-01 18:41 | mohamed.kallel | View Status | private => public |
2014-10-02 05:27 | janmus | Note Added: 0000063 | |
2014-10-02 08:31 | mohamed.kallel | Note Added: 0000064 | |
2014-10-02 13:22 | janmus | Note Added: 0000065 | |
2014-10-02 14:20 | mohamed.kallel | Note Added: 0000066 | |
2014-10-02 14:21 | mohamed.kallel | Note Edited: 0000066 | |
2014-10-03 04:46 | janmus | Note Added: 0000067 | |
2014-10-07 11:21 |
|
Note Added: 0000068 | |
2014-10-07 12:33 |
|
Note Edited: 0000068 | |
2014-10-07 13:41 | janmus | Note Added: 0000069 | |
2014-10-08 04:48 | janmus | Note Added: 0000071 | |
2014-10-08 12:00 | janmus | Note Added: 0000073 | |
2014-10-08 12:01 | janmus | Note Edited: 0000073 | |
2014-10-08 12:26 | janmus | Note Edited: 0000073 | |
2014-10-08 13:16 | mohamed.kallel | Status | new => resolved |
2014-10-08 13:16 | mohamed.kallel | Resolution | open => fixed |
2014-10-08 13:16 | mohamed.kallel | Assigned To | => mohamed.kallel |