View Issue Details

IDProjectCategoryView StatusLast Update
0000357easycwmpHelppublic2019-01-02 09:49
Reporterrunsfastman Assigned To 
PriorityimmediateSeveritymajorReproducibilityhave not tried
Status newResolutionopen 
Summary0000357: `/usr/sbin/easycwmp get value Device.` prints empty line breaks
DescriptionI'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.
TagsNo tags attached.
e-mail notification

Activities

mohamed.kallel

2018-09-12 15:29

administrator   ~0000911

sudo /usr/sbin/easycwmp get value Device.

runsfastman

2018-09-12 16:03

reporter   ~0000913

I have added sudo and it still prints out 25-30 blank lines.

runsfastman

2018-09-13 00:32

reporter   ~0000914

sudo uci show

now shows

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

at the end of it.

runsfastman

2018-09-13 00:33

reporter   ~0000915

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.

runsfastman

2018-09-13 01:19

reporter   ~0000916

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.

mohamed.kallel

2018-09-13 17:37

administrator   ~0000917

may be you modified manually the easycwmp config and you made a typo. That's why there is uci parse error

runsfastman

2018-09-14 02:30

reporter   ~0000918

# 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?

gopimohan

2018-11-20 08:26

reporter   ~0000920

I get the same issue on ARM32. 10-12 blank lines are getting printed when easycwmp get value is executed

gopimohan

2018-11-20 14:42

reporter   ~0000921

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
{ }

gopimohan

2018-11-20 14:48

reporter   ~0000922

How important is it to make with LUA=OFF?
cmake CMakeLists.txt -DBUILD_LUA=OFF

I using the latest version 1.8.0.

runsfastman

2018-11-20 16:31

reporter   ~0000923

I had the problems whether or not I did -DBUILD_LUA=OFF on arm32.

mairead

2018-11-28 16:05

reporter   ~0000924

My empty lines went away when I rebuilt with -D_GNU_SOURCE. Problem seemed to be due to warning about implicit declaration of asprintf

gopimohan

2018-12-15 12:38

reporter   ~0000925

For which module -D_GNU_SOURCE was defined?
(easycwmp uses aprintf and the warnings get removed by defining _GNU_SOURCE) but it only generates one binary easycwmpd which does not get used in "easycwmp get value

gopimohan

2019-01-02 09:49

reporter   ~0000927

The issue got resolved for me because of my development environment - It was causing issues in libubox. The -D_GNU_SOURCE was not the issue..Thanks

Issue History

Date Modified Username Field Change
2018-09-10 12:06 runsfastman New Issue
2018-09-12 15:29 mohamed.kallel Note Added: 0000911
2018-09-12 16:03 runsfastman Note Added: 0000913
2018-09-13 00:32 runsfastman Note Added: 0000914
2018-09-13 00:33 runsfastman Note Added: 0000915
2018-09-13 01:19 runsfastman Note Added: 0000916
2018-09-13 17:37 mohamed.kallel Note Added: 0000917
2018-09-14 02:30 runsfastman Note Added: 0000918
2018-11-20 08:26 gopimohan Note Added: 0000920
2018-11-20 14:42 gopimohan Note Added: 0000921
2018-11-20 14:48 gopimohan Note Added: 0000922
2018-11-20 16:31 runsfastman Note Added: 0000923
2018-11-28 16:05 mairead Note Added: 0000924
2018-12-15 12:38 gopimohan Note Added: 0000925
2019-01-02 09:49 gopimohan Note Added: 0000927