BroadbandForum / obuspa

OB-USP-AGENT is a system daemon providing a User Services Platform (USP) Agent. https://github.com/BroadbandForum/obuspa/wiki
BSD 3-Clause "New" or "Revised" License
93 stars 62 forks source link

Unable to get response for SET command #89

Closed M0ulinamary closed 1 year ago

M0ulinamary commented 1 year ago

Hi,

I am trying to set value for PeriodicInforNotif parameter from Controller. Default periodic is working with 60 sec. I want to change the value to 120.

Command in Executing file in Controller:

msg_id:"101" to_id:"proto::AgentA" stomp_agent_dest:"/queue/controller-notify-dest" stomp_instance:"1" msg_type:"Set" update_objs{obj_path:"Device.LocalAgent.Controller.1." {param:"PeriodicNotifInterval" value:"120"}}

But, getting the below error. Could you please help ?

Error on Agent: header { msg_id: "101" msg_type: SET_RESP } body { response { set_resp { updated_obj_results { requested_path: "Device.LocalAgent.Controller.1." oper_status { oper_success { updated_inst_results { affected_path: "Device.LocalAgent.Controller.1." param_errs { param: "PeriodicNotifInterval" err_code: 7003 err_msg: "DATABASE_SetParameterValue(569): sqlite3_step failed (err=1032) attempt to write a readonly database"**** } } } } }

Please help here to solve this issue

holme-r commented 1 year ago

"attempt to write a readonly database" usually occurs due to permission errors. Perhaps the database was created as root, and you are not now running as root ?

holme-r commented 1 year ago

For the "attempt to write a read only database" issue, if you're using the /tmp directory to store your USP DB then one possible cause might be: https://unix.stackexchange.com/questions/691441/root-cannot-write-to-file-that-is-owned-by-regular-user

holme-r commented 1 year ago

Closing as there has been no comments for a while. Please re-open if there are any further comments.