Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Pre-requisite

Update below webpa URL Webpa URL is configured in /etc/partners_defaults.json, for community profile update webpa URL - httpfor community profile from https://webpagithub.com/rdkcentral.com:8080/tr69hostif/blob/develop/partners_defaults.json#L60


Code Block
"Device.X_RDK_
Code Block
"Device.X_RDK_WebPA_Server.URL" : "httphttps://webpa.rdkcentral.com:8080",
Note

we need to manually configure webPA url now, until the INFRA ticket is addressed.

Steps to validate

Steps to validate

Restart tr69hostif Restart tr69hostif or reboot the device once you made the above changes.

Restart parodus

Code Block
sysetmctl restart parodus

Success Logs

Go to /opt/logs/parodus.log to see the logs

root@raspberrypi4-64-rdke:/opt/logs# ls -l parodus.log
-rw-rw-r--    1 root     root         13662 Dec 20 09:32 parodus.log

Code Block
2024-12-05T11:21:38.296Z "parodus"[14903]:  241205-11:21:38.296193 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: webpa_backoff_max is 9
2024-12-05T11:21:38.296Z "parodus"[14903]:  241205-11:21:38.296228 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: cert_path is /etc/ssl/certs/ca-certificates.crt
2024-12-05T11:21:38.296Z "parodus"[14903]:  241205-11:21:38.296263 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: acquire jwt option is 1
2024-12-05T11:21:38.296Z "parodus"[14903]:  241205-11:21:38.296299 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: parodus dns-txt-url is webpa.rdkcentral.com
2024-12-05T11:21:38.297Z "parodus"[14903]:  241205-11:21:38.296395 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: 451 bytes read
2024-12-05T11:21:38.297Z "parodus"[14903]:  241205-11:21:38.296434 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: jwt_key is -----BEGIN PUBLIC KEY-----
2024-12-05T11:21:38.297Z "parodus"[14903]:  MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkZeQUMqDkMu/dQgTcycJ
2024-12-05T11:21:38.297Z "parodus"[14903]:  /rrgqfKQkoYFTMO7GnK87/OWiftHmtDJYPgktlcHheOPfkGln5ay1WJSitmtWNaH
2024-12-05T11:21:38.297Z "parodus"[14903]:  +RvBFK/ZsXpIuGm7R6wdSc7e6g9fTaSAfNX/+a8VxHUo58AinXxcq4LnHbuaGjEz
2024-12-05T11:21:38.297Z "parodus"[14903]:  jw77TLuZGyUuHiany8O8tc+DbnYKvRquScsccI6z/QwZKFtXUjJZ91hJ97zC8o7N
2024-12-05T11:21:38.297Z "parodus"[14903]:  Ae7n/Jg+Bs0uz9c1/bf/Jqbu6OidFbCr2FN42UupuAZ8DiPp2fWD5Q9qmp1ADk+V
2024-12-05T11:21:38.297Z "parodus"[14903]:  +TeZPxTCq/WB4dzSCd5v/FvFmO8tH6Ptkltij4pke7Dsi80TVRlcMDXAWxSFXOQV
2024-12-05T11:21:38.297Z "parodus"[14903]:  qwIDAQAB
2024-12-05T11:21:38.297Z "parodus"[14903]:  -----END PUBLIC KEY-----
2024-12-05T11:21:38.297Z "parodus"[14903]:  241205-11:21:38.296494 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: jwt_algo is 1024
2024-12-05T11:21:38.297Z "parodus"[14903]:  241205-11:21:38.296535 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: record_jwt_file is /tmp/xmidt-jwt-payload.json
2024-12-05T11:21:38.297Z "parodus"[14903]:  241205-11:21:38.296571 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: crud_config_file is /opt/parodus_cfg.json
2024-12-05T11:21:38.298Z "parodus"[14903]:  241205-11:21:38.296605 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: hw_manufacturer is RaspberryPi
2024-12-05T11:21:38.298Z "parodus"[14903]:  241205-11:21:38.296639 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: fw_name is lib32-middleware-test-image-RPI4-20241205084445
2024-12-05T11:21:38.298Z "parodus"[14903]:  241205-11:21:38.296673 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: hw-model is RPI4
2024-12-05T11:21:38.298Z "parodus"[14903]:  241205-11:21:38.296709 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: hw_serial_number is 100000001ab96f17
2024-12-05T11:21:38.298Z "parodus"[14903]:  241205-11:21:38.296744 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: boot_time is 1733395663
2024-12-05T11:21:38.298Z "parodus"[14903]:  241205-11:21:38.296778 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: hw_last_reboot_reason is HARD_POWER
2024-12-05T11:21:38.298Z "parodus"[14903]:  241205-11:21:38.296813 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: client_cert_path is
2024-12-05T11:21:38.298Z "parodus"[14903]:  241205-11:21:38.296848 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: token_server_url is
2024-12-05T11:21:38.298Z "parodus"[14903]:  241205-11:21:38.298823 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: Received reboot_reason as:HARD_POWER
2024-12-05T11:21:38.299Z "parodus"[14903]:  241205-11:21:38.298883 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: Received reconnect_reason as:webpa_process_starts
2024-12-05T11:21:38.299Z "parodus"[14903]:  241205-11:21:38.298926 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: User-Agent: PARODUS-2.0-2.0.0-109-g7a3ebc6 (lib32-middleware-test-image-RPI4-20241205084445; RPI4/RaspberryPi;)
2024-12-05T11:21:38.299Z "parodus"[14903]:  241205-11:21:38.299013 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: X-WebPA-Convey Header: [312]{"hw-model":"RPI4","hw-serial-number":"100000001ab96f17","hw-manufacturer":"RaspberryPi","fw-name
2024-12-05T11:21:38.299Z "parodus"[14903]:  241205-11:21:38.299120 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: Device_id mac:d83add0aaa30
2024-12-05T11:21:38.299Z "parodus"[14903]:  241205-11:21:38.299158 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: full url: httphttps://webpa.rdkcentral.com:8080
2024-12-05T11:21:38.299Z "parodus"[14903]:  241205-11:21:38.299191 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: server address copied from url
2024-12-05T11:21:38.299Z "parodus"[14903]:  241205-11:21:38.299233 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: server webpa.rdkcentral.com, port 8080, http_match 1
2024-12-05T11:21:38.299Z "parodus"[14903]:  241205-11:21:38.299267 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: default server_Address webpa.rdkcentral.com
2024-12-05T11:21:38.299Z "parodus"[14903]:  241205-11:21:38.299300 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: default port 8080
2024-12-05T11:21:38.299Z "parodus"[14903]:  241205-11:21:38.299356 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: dns_txt_record_id d83add0aaa30.webpa.rdkcentral.com
2024-12-05T11:21:38.299Z "parodus"[14903]:  241205-11:21:38.299404 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: nsbuf (1) 0x1287af0
2024-12-05T11:21:38.299Z "parodus"[14903]:  241205-11:21:38.299561 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: nquery: domain : d83add0aaa30.webpa.rdkcentral.com
2024-12-05T11:21:38.303Z "parodus"[14903]:  241205-11:21:38.303765 [mod=PARODUS, lvl=ERROR] [tid=14909] PARODUS: Error in res_nquery: No address associated with name
2024-12-05T11:21:38.303Z "parodus"[14903]:  241205-11:21:38.303821 [mod=PARODUS, lvl=ERROR] [tid=14909] PARODUS: nquery returns error: l value is -1
2024-12-05T11:21:38.304Z "parodus"[14903]:  241205-11:21:38.303858 [mod=PARODUS, lvl=ERROR] [tid=14909] PARODUS: Failed in DNS query
2024-12-05T11:21:38.307Z "parodus"[14903]:  241205-11:21:38.306810 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: ../../git/src/nopoll_conn.c:336 IPv4 address of webpa.rdkcentral.com is 52.88.248.43
2024-12-05T11:21:38.307Z "parodus"[14903]:
2024-12-05T11:21:38.307Z "parodus"[14903]:  241205-11:21:38.306984 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: ../../git/src/nopoll_conn.c:382 Create socket with non blocking-mode
2024-12-05T11:21:38.564Z "parodus"[14903]:  241205-11:21:38.563771 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: ../../git/src/nopoll_conn.c:263 Result of wait after connect EINPROGRESS = 0
2024-12-05T11:21:38.564Z "parodus"[14903]:
2024-12-05T11:21:38.825Z "parodus"[14903]:  241205-11:21:38.825398 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: ../../git/src/nopoll_conn.c:5397 *****End nopoll_conn_wait_for_status_until_connection_ready ****
2024-12-05T11:21:38.825Z "parodus"[14903]:  241205-11:21:38.825469 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: Connected to server
2024-12-05T11:21:38.825Z "parodus"[14903]:  241205-11:21:38.825526 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: connect_time-diff-boot_time=2035
2024-12-05T11:21:38.826Z "parodus"[14903]:  241205-11:21:38.825722 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: cloud_status set as online after successful connection
2024-12-05T11:21:38.826Z "parodus"[14903]:  241205-11:21:38.825760 [mod=PARODUS, lvl=INFO] [tid=14913] PARODUS: Received cloud status signal proceed to event processing
2024-12-05T11:21:38.827Z "parodus"[14903]:  241205-11:21:38.827338 [mod=PARODUS, lvl=INFO] [tid=14922] PARODUS: No clients are registered, waiting ..
2024-12-05T11:21:38.827Z "parodus"[14903]:  241205-11:21:38.827371 [mod=PARODUS, lvl=INFO] [tid=14909] PARODUS: libseshat disabled, Hence proceeding without registration
2024-12-05T11:21:38.827Z "parodus"[14903]:  241205-11:21:38.827478 [mod=PARODUS, lvl=INFO] [tid=14918] PARODUS: nanomsg server gone into the listening mode...
2024-12-05T11:21:39.526Z "parodus"[14903]:  241205-11:21:39.524831 [mod=PARODUS, lvl=INFO] [tid=14918] PARODUS: Upstream message received from nanomsg client
2024-12-05T11:21:39.526Z "parodus"[14903]:  241205-11:21:39.525052 [mod=PARODUS, lvl=INFO] [tid=14919] PARODUS:
2024-12-05T11:21:39.526Z "parodus"[14903]:   Nanomsg client Registration for Upstream
2024-12-05T11:21:39.526Z "parodus"[14903]:  241205-11:21:39.526034 [mod=PARODUS, lvl=INFO] [tid=14919] PARODUS: Adding first client to list
2024-12-05T11:21:39.526Z "parodus"[14903]:  241205-11:21:39.526087 [mod=PARODUS, lvl=INFO] [tid=14919] PARODUS: client service config is added to list with url: tcp://127.0.0.1:6667
2024-12-05T11:21:39.526Z "parodus"[14903]:  241205-11:21:39.526124 [mod=PARODUS, lvl=INFO] [tid=14919] PARODUS: sending auth status to reg client
2024-12-05T11:21:39.526Z "parodus"[14903]:  241205-11:21:39.526181 [mod=PARODUS, lvl=INFO] [tid=14919] PARODUS: Client config Registered successfully. Sending Acknowledgement...
2024-12-05T11:21:39.526Z "parodus"[14903]:   241205-11:21:39.526267 [mod=PARODUS, lvl=INFO] [tid=14919] PARODUS: Sending ack:new_node->sock 1 service:config

Open issues

...


Example for Get parameter

Code Block
curl -H 'Authorization:Basic d3B1c2VyOndlYnBhQDEyMzQ1Njc4OTAK' -i 'https://webpa.rdkcentral.com:9003/api/v2/device/mac:D83ADD0AAA30/config?names=Device.DeviceInfo.ModelName'
HTTP/1.1 200 OK
Content-Type: application/json
X-Midt-Server: tr1d1um
X-Midt-Version: development
X-Scytale-Build: 0.1.4
X-Scytale-Flavor: mint
X-Scytale-Region: east
X-Scytale-Server: webpa.rdkcentral.com
X-Scytale-Start-Time: 24 Sep 25 06:02 UTC
X-Talaria-Build: 0.1.4
X-Talaria-Flavor: mint
X-Talaria-Region: east
X-Talaria-Server: webpa.rdkcentral.com
X-Talaria-Start-Time: 09 Oct 25 12:01 UTC
X-Webpa-Transaction-Id: DDcTL6_TZTJa2C0azW0Jrg
X-Xmidt-Span: "https://webpa.rdkcentral.com:8080/api/v3/device/send","2025-11-27T05:57:25Z","263.74122ms"
Date: Thu, 27 Nov 2025 05:57:25 GMT
Content-Length: 143

{"parameters":[{"name":"Device.DeviceInfo.ModelName","value":"RDKERPi4","dataType":0,"parameterCount":1,"message":"Success"}],"statusCode":200}


Example for set parameter

Code Block
 curl -X PATCH https://webpa.rdkcentral.com:9003/api/v2/device/mac:D83ADD0AAA30/config -d '{"parameters": [ {"dataType": 3, "name": "Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.AppHibernate.Enable", "value": "true"}]}' -H 'Authorization:Basic d3B1c2VyOndlYnBhQDEyMzQ1Njc4OTAK'
{"parameters":[{"name":"Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.AppHibernate.Enable","message":"Success"}],"statusCode":200}


...