View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000357easycwmp[All Projects] Helppublic2018-09-10 12:062019-01-02 09:49
Assigned To 
PriorityimmediateSeveritymajorReproducibilityhave not tried
PlatformOSOS Version
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.@acs[0].url='' [^]
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.
Attached Files

- Relationships

-  Notes
mohamed.kallel (manager)
2018-09-12 15:29

sudo /usr/sbin/easycwmp get value Device.
runsfastman (reporter)
2018-09-12 16:03

I have added sudo and it still prints out 25-30 blank lines.
runsfastman (reporter)
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.
runsfastman (reporter)
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.
runsfastman (reporter)
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.
mohamed.kallel (manager)
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
runsfastman (reporter)
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 [^]
    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 (reporter)
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
gopimohan (reporter)
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
{ }
gopimohan (reporter)
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.
runsfastman (reporter)
2018-11-20 16:31

I had the problems whether or not I did -DBUILD_LUA=OFF on arm32.
mairead (reporter)
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
gopimohan (reporter)
2018-12-15 12:38

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 (reporter)
2019-01-02 09:49

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

Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker