EasyCwmp - easycwmp
View Issue Details
0000229easycwmp[All Projects] Bugpublic2017-05-22 11:352017-05-25 10:43
andy_yang 
Anis 
immediateblockalways
resolvedfixed 
openwrt15linuxlinux
0000229: system reboot constantly by running command "easycwmpd start" or "easycwmpd boot"
run easycwmpd program in the openwrt15, the console don't have log message,and the CPE reboot constantly.
1. I have install easycwmp-openwrt-1.5.2.tar.gz by Official manual
2. run easycwmp by following command
root@Openwrt:/usr/sbin# easycwmpd start
root@Openwrt:/usr/sbin#
root@Openwrt:/usr/sbin#

3.another console ,we can see the easycwmpd process status of the CPE:

root@Openwrt:~# ps | grep easycwmp
 3400 root 1920 S /usr/sbin/easycwmpd -f --boot
 3655 root 1556 S {easycwmp} /bin/sh /usr/sbin/easycwmp --json-input
 3863 root 1348 S grep easycwmp
root@Openwrt:~# ps | grep easycwmp
root@Openwrt:~# ps | grep easycwmp
 3917 root 1348 S grep easycwmp
root@Openwrt:~#

4. for a few seconds, we find the CPE reboot constantly
root@EBANG:/usr/sbin# [ 137.230000] save exit: isCheckpointed 1
[ 138.790000] br-lan: port 1(eth1.1) entering disabled state
[ 138.790000] device eth1.1 left promiscuous mode
[ 138.800000] device eth1 left promiscuous mode
[ 138.800000] br-lan: port 1(eth1.1) entering disabled state
[ 138.820000] ADDRCONF(NETDEV_UP): eth1.1: link is not ready
[ 139.930000]
[ 139.930000] mv_eth_txq_cpu_clean: port=0, txp=0, txq=0, mode=CPU
[ 139.930000] Free 0 buffers: from desc=1507 to desc=1507, tx_count=0
[ 139.940000] eth1: stopped
[ 141.270000] save exit: isCheckpointed 1
[ 141.290000] save exit: isCheckpointed 1
[ 141.310000] save exit: isCheckpointed 1
[ 144.360000] Shutting Down Marvell Ethernet Driver
[ 144.360000] Restarting system.
[ 144.360000] Reseting !!

BootROM 1.34
Booting from NAND flash
BootROM: Image checksum verification PASSED
.....
.....
please refer to attatchment.
The console_1 and console_2 is the same CPE meanwhile.
No tags attached.
rar console.rar (78,482) 2017-05-22 11:35
http://support.easycwmp.org/file_download.php?file_id=103&type=bug
Issue History
2017-05-22 11:35andy_yangNew Issue
2017-05-22 11:35andy_yangFile Added: console.rar
2017-05-23 19:16mohamed.kallelNote Added: 0000700
2017-05-23 19:16mohamed.kallelNote Added: 0000701
2017-05-24 04:45andy_yangNote Added: 0000702
2017-05-24 04:48andy_yangNote Added: 0000703
2017-05-24 05:57andy_yangNote Added: 0000704
2017-05-24 06:00andy_yangNote Added: 0000705
2017-05-24 12:27AnisNote Added: 0000706
2017-05-25 02:51andy_yangNote Added: 0000707
2017-05-25 10:42AnisStatusnew => resolved
2017-05-25 10:42AnisResolutionopen => fixed
2017-05-25 10:42AnisAssigned To => Anis

Notes
(0000700)
mohamed.kallel   
2017-05-23 19:16   
Please check you acs, may be your acs is sending reboot method to the easycwmp
(0000701)
mohamed.kallel   
2017-05-23 19:16   
You can see the log of easycwmp with logread command
(0000702)
andy_yang   
2017-05-24 04:45   
The console log stop at entering main loop, can you give me the conclustion?
root@EBANG:~# easycwmpd boot
2017-05-24 10:46:32 [easycwmp] NOTICE - external script init
config_init_local(55):: easycwmp.@local[0].interface=eth1.4093
config_init_local(65):: easycwmp.@local[0].port=7547
config_init_local(83):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(94):: easycwmp.@local[0].logging_level=3
config_init_local(71):: easycwmp.@local[0].username=rms61391322
config_init_local(77):: easycwmp.@local[0].password=rms37117846
config_init_acs(159):: easycwmp.@acs[0].url=http://192.168.4.11:9090/ACS-server/ACS [^]
config_init_acs(177):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(183):: easycwmp.@acs[0].periodic_interval=100
config_init_acs(190):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
config_init_acs(165):: easycwmp.@acs[0].username=cpe12693157
config_init_acs(171):: easycwmp.@acs[0].password=cpe69156167
2017-05-24 10:46:32 [easycwmp] NOTICE - init periodic inform: reference time = n/a, interval = 100
2017-05-24 10:46:32 [easycwmp] NOTICE - external: execute update_value_change
2017-05-24 10:46:32 [easycwmp] NOTICE - daemon started
2017-05-24 10:46:32 [easycwmp] NOTICE - external: execute inform device_id
2017-05-24 10:46:32 [easycwmp] NOTICE - external script exit
2017-05-24 10:46:32 [easycwmp] NOTICE - interface eth1.4093 has ip 192.168.20.99
+++ HTTP SERVER CONFIGURATION +++
ip: '192.168.20.99'
port: '7547'
--- HTTP SERVER CONFIGURATION ---
2017-05-24 10:46:32 [easycwmp] NOTICE - http server initialized
root@EBANG:~# 2017-05-24 10:46:32 [easycwmp] NOTICE - entering main loop
(0000703)
andy_yang   
2017-05-24 04:48   
By the way, I don't know why the ACS send reboot method? I have use the ACS to test other CPE running other tr069 program, the CPE don't receive the reboot method from ACS.
(0000704)
andy_yang   
2017-05-24 05:57   
I have find the key of the problem.
I use the two acs, the one URL is http://192.168.4.11:9090/ACS-server/ACS. [^]
Another is http://192.168.20.36:80/acs. [^] The former URL is not OK. I think the reasion it the special character "-" in the path of ACS-server/ACS.
so, your idea? can you help me check the code together?
(0000705)
andy_yang   
2017-05-24 06:00   
It seems that the special character "-" in the path of /ACS-server/ACS cause above reboot method from acs or other strange issue.
(0000706)
Anis   
2017-05-24 12:27   
if the ACS url is wrong the easycwmp can not connect to the ACS server and could not be the cause of reboot.
if you want to be sure if the reboot is caused by ACS or not, you have see the traffic between Easycwmp and your ACS.

maybe it is hardware watchdog which causes this issue.

check the log of dmesg command before reboot !
(0000707)
andy_yang   
2017-05-25 02:51   
Thanks, the reboot is caused by ACS. I have restore my acs's environment