View Issue Details

IDProjectCategoryView StatusLast Update
0000433easycwmpQuestionpublic2021-10-12 19:44
Reportereazyz Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status newResolutionopen 
PlatformdebianOSubuntuOS Version18.04
Summary0000433: [ubuntu] easycwmpd doesn't send data to ACS
Description0. there is too much problems with install easycwmp on Ubuntu, due to not actual instruction at https://easycwmp.org/tutorial/
nbd.name doesnt work anymore, and part with name "Install few shell scripts from OpenWrt:" doesn't work too
I found uci libubox and ubus packets at https://launchpad.net/~stokito/+archive/ubuntu/openwrt/+packages
But I can't find scripts from part, site pastebin.lukaperkov.net was closed:
sudo mkdir -p /lib/{config,functions}
sudo wget https://pastebin.lukaperkov.net/openwrt/20121219_lib_functions.sh -O /lib/functions.sh
sudo wget https://pastebin.lukaperkov.net/openwrt/20121219_lib_config_uci.sh -O /lib/config/uci.sh
sudo wget https://pastebin.lukaperkov.net/openwrt/20121219_lib_functions_network.sh -O /lib/functions/network.sh

maybe my problem will be solved if I found this scripts.

1. vCPE with easycwmpd on 192.168.205.14
2. GenieACS on http://192.168.205.38:7547
3. telnet 192.168.205.38 7547 working fine:

Trying 192.168.205.38...
Connected to 192.168.205.38.
Escape character is '^]'.
dasda
HTTP/1.1 400 Bad Request
Connection: close

4. in terminal window i see this errors:
 CRITICAL - error occured when trying to write to the pipe
 NOTICE - sending Inform failed
 NOTICE - can't remove file /tmp/easycwmp_cookies

look at log below
Steps To Reproduceubuntu@cwmp-client:~$ sudo /usr/sbin/easycwmpd -f -b
2021-09-10 09:12:38 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2021-09-10 09:12:38 [easycwmp] NOTICE - add event '1 BOOT'
2021-09-10 09:12:38 [easycwmp] NOTICE - add event '2 PERIODIC'
2021-09-10 09:12:38 [easycwmp] NOTICE - external script init
2021-09-10 09:12:38 [easycwmp] NOTICE - init periodic inform: reference time = -62135596800, interval = 100
2021-09-10 09:12:38 [easycwmp] NOTICE - external: execute update_value_change
2021-09-10 09:12:38 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-09-10 09:12:38 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-09-10 09:12:38 [easycwmp] NOTICE - daemon started
2021-09-10 09:12:38 [easycwmp] NOTICE - external: execute inform device_id
2021-09-10 09:12:38 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-09-10 09:12:38 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-09-10 09:12:38 [easycwmp] NOTICE - external script exit
2021-09-10 09:12:38 [easycwmp] CRITICAL - error occured when trying to write to the pipe
2021-09-10 09:12:38 [easycwmp] NOTICE - add event '1 BOOT'
2021-09-10 09:12:38 [easycwmp] NOTICE - interface ens3 has ip 192.168.205.14
2021-09-10 09:12:38 [easycwmp] NOTICE - http server initialized
2021-09-10 09:12:38 [easycwmp] NOTICE - entering main loop
2021-09-10 09:12:38 [easycwmp] NOTICE - start session
2021-09-10 09:12:38 [easycwmp] NOTICE - configured acs url http://192.168.205.38:7547
2021-09-10 09:12:38 [easycwmp] NOTICE - external script init
2021-09-10 09:12:38 [easycwmp] NOTICE - sending Inform failed
2021-09-10 09:12:38 [easycwmp] NOTICE - can't remove file /tmp/easycwmp_cookies
2021-09-10 09:12:38 [easycwmp] NOTICE - external: execute apply service
2021-09-10 09:12:38 [easycwmp] NOTICE - external script exit
2021-09-10 09:12:38 [easycwmp] NOTICE - end session failed
2021-09-10 09:12:38 [easycwmp] NOTICE - retry session in 7 sec, RetryCount = 1
2021-09-10 09:12:45 [easycwmp] NOTICE - start session
2021-09-10 09:12:45 [easycwmp] NOTICE - configured acs url http://192.168.205.38:7547
2021-09-10 09:12:45 [easycwmp] NOTICE - external script init
2021-09-10 09:12:45 [easycwmp] NOTICE - sending Inform failed
2021-09-10 09:12:45 [easycwmp] NOTICE - can't remove file /tmp/easycwmp_cookies
2021-09-10 09:12:45 [easycwmp] NOTICE - external: execute apply service
2021-09-10 09:12:45 [easycwmp] NOTICE - external script exit
2021-09-10 09:12:45 [easycwmp] NOTICE - end session failed
2021-09-10 09:12:45 [easycwmp] NOTICE - retry session in 15 sec, RetryCount = 2

ubuntu@cwmp-client:~$ cat /etc/config/easycwmp
# easycwmp uci configuration

config local
        option enable '1'
        option interface ens3
        option port 7547
        option ubus_socket /var/run/ubus.sock
        option date_format %FT%T%z
        option username easycwmp
        option password easycwmp
        option provisioning_code ''
#basic authentication = 'Basic', Digest authentication = 'Digest', Default value = 'Digest'
        option authentication 'Digest'
#Logging levels: Critic=0, Warning=1, Notice=2, Info=3, Debug=4
        option logging_level '3'

config acs
        option scheme 'http'
        option url http://192.168.205.38:7547
        option username easycwmp
        option password easycwmp
        option parameter_key ''
        option periodic_enable '1'
        option periodic_interval '100'
        option periodic_time '0001-01-01T00:00:00Z'

config device
        option manufacturer easycwmp
        option oui FFFFFF
        option product_class easycwmp
        option serial_number FFFFFF123456
        option hardware_version example_hw_version
        option software_version example_sw_version

ubuntu@cwmp-client:~$ sudo ubus -s /var/run/ubus.sock call tr069 notify
2021-09-10 09:23:02 [easycwmp] NOTICE - triggered ubus notification
2021-09-10 09:23:02 [easycwmp] NOTICE - checking if there is notify value change
2021-09-10 09:23:02 [easycwmp] NOTICE - external script init
2021-09-10 09:23:02 [easycwmp] NOTICE - external: execute check_value_change
2021-09-10 09:23:02 [easycwmp] NOTICE - external script exit


Tagsubuntu
e-mail notification

Activities

mohamed.kallel

2021-10-12 19:44

administrator   ~0001035

Try to find these scripts in the openwrt project

Could you please share the output of the following command:

/usr/sbin/easycwmp --json get value Device.

Issue History

Date Modified Username Field Change
2021-09-10 11:29 eazyz New Issue
2021-09-10 11:29 eazyz Tag Attached: ubuntu
2021-10-12 19:44 mohamed.kallel Note Added: 0001035