EasyCwmp - easycwmp
View Issue Details
0000357easycwmp[All Projects] Helppublic2018-09-10 12:062018-11-28 16:05
runsfastman 
 
immediatemajorhave not tried
newopen 
0000357: `/usr/sbin/easycwmp get value Device.` prints empty line breaks
I've made and installed on an arm32 linux. I'm seeing a couple of things going wrong. First is when I run the suggested command:

/usr/sbin/easycwmp get value Device.

from the Docs, it prints out 25-30 blank lines. Furthermore when I run

sudo uci show

I get

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.@local[0].username='easycwmp'
easycwmp.@local[0].password='easycwmp'
easycwmp.@local[0].authentication='Digest'
easycwmp.@local[0].logging_level='3'
easycwmp.@acs[0]=acs
easycwmp.@acs[0].url='http://192.168.1.110:8080/openacs/acs' [^]
easycwmp.@acs[0].username='easycwmp'
easycwmp.@acs[0].password='easycwmp'
easycwmp.@acs[0].periodic_enable='1'
easycwmp.@acs[0].periodic_interval='100'
easycwmp.@acs[0].periodic_time='0001-01-01T00:00:00Z'
easycwmp.@device[0]=device
easycwmp.@device[0].manufacturer='easycwmp'
easycwmp.@device[0].oui='FFFFFF'
easycwmp.@device[0].product_class='easycwmp'
easycwmp.@device[0].serial_number='FFFFFF123456'
easycwmp.@device[0].hardware_version='example_hw_version'
easycwmp.@device[0].software_version='example_sw_version'
uci: Parse error (invalid command) at line 1, byte 0

Notice the parse error at the end there.

Immediate assistance on this would be appreciated, thank you.
No tags attached.
Issue History
2018-09-10 12:06runsfastmanNew Issue
2018-09-12 15:29mohamed.kallelNote Added: 0000911
2018-09-12 16:03runsfastmanNote Added: 0000913
2018-09-13 00:32runsfastmanNote Added: 0000914
2018-09-13 00:33runsfastmanNote Added: 0000915
2018-09-13 01:19runsfastmanNote Added: 0000916
2018-09-13 17:37mohamed.kallelNote Added: 0000917
2018-09-14 02:30runsfastmanNote Added: 0000918
2018-11-20 08:26gopimohanNote Added: 0000920
2018-11-20 14:42gopimohanNote Added: 0000921
2018-11-20 14:48gopimohanNote Added: 0000922
2018-11-20 16:31runsfastmanNote Added: 0000923
2018-11-28 16:05maireadNote Added: 0000924

Notes
(0000911)
mohamed.kallel   
2018-09-12 15:29   
sudo /usr/sbin/easycwmp get value Device.
(0000913)
runsfastman   
2018-09-12 16:03   
I have added sudo and it still prints out 25-30 blank lines.
(0000914)
runsfastman   
2018-09-13 00:32   
sudo uci show

now shows

uci: Parse error (invalid command) at line 4, byte 0

at the end of it.
(0000915)
runsfastman   
2018-09-13 00:33   
sudo easycwmpd -b -f
2018-09-12 22:33:09 [easycwmp] NOTICE - add event '0 BOOTSTRAP'
2018-09-12 22:33:09 [easycwmp] NOTICE - external script init
config_init_local(59):: easycwmp.@local[0].interface=eth0
config_init_local(69):: easycwmp.@local[0].port=7547
config_init_local(87):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(75):: easycwmp.@local[0].username=easycwmp
config_init_local(81):: easycwmp.@local[0].password=easycwmp
config_init_local(109):: easycwmp.@local[0].authentication=Digest
config_init_local(98):: easycwmp.@local[0].logging_level=3
config_init_acs(174):: easycwmp.@acs[0].url=https://cwmcpe.charter.com/ [^]
config_init_acs(180):: easycwmp.@acs[0].username=easycwmp
config_init_acs(186):: easycwmp.@acs[0].password=easycwmp
config_init_acs(192):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(198):: easycwmp.@acs[0].periodic_interval=100
config_init_acs(205):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
2018-09-12 22:33:09 [easycwmp] NOTICE - init periodic inform: reference time = n/a, interval = 100
2018-09-12 22:33:09 [easycwmp] NOTICE - external: execute update_value_change
2018-09-12 22:33:09 [easycwmp] NOTICE - daemon started
2018-09-12 22:33:09 [easycwmp] NOTICE - external: execute inform device_id
cwmp_init_deviceid(642): in device you must define product_class
2018-09-12 22:33:09 [easycwmp] NOTICE - external script exit


This output stays at this point and i must send a ctrl + c to stop it.
(0000916)
runsfastman   
2018-09-13 01:19   
What kind of shell does this depend on? I'm in a busybox bash. ls -l /bin/sh links to -> /bin/bash, which is a busybox distribution of bash.
(0000917)
mohamed.kallel   
2018-09-13 17:37   
may be you modified manually the easycwmp config and you made a typo. That's why there is uci parse error
(0000918)
runsfastman   
2018-09-14 02:30   
# easycwmp uci configuration

config local
    option interface eth0
    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 url http://192.168.1.110:8080/openacs/acs [^]
    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


The above is my config. Any ideas why it would be printing a bunch of blank lines like that?
(0000920)
gopimohan   
2018-11-20 08:26   
I get the same issue on ARM32. 10-12 blank lines are getting printed when easycwmp get value is executed
(0000921)
gopimohan   
2018-11-20 14:42   
Some change after updating few linkages but still having problems - instead of empty lines, I am getting empty curly braces
root:~ easycwmp get value Device
{ }
(0000922)
gopimohan   
2018-11-20 14:48   
How important is it to make with LUA=OFF?
cmake CMakeLists.txt -DBUILD_LUA=OFF

I using the latest version 1.8.0.
(0000923)
runsfastman   
2018-11-20 16:31   
I had the problems whether or not I did -DBUILD_LUA=OFF on arm32.
(0000924)
mairead   
2018-11-28 16:05   
My empty lines went away when I rebuilt with -D_GNU_SOURCE. Problem seemed to be due to warning about implicit declaration of asprintf