Increasing the timeout for a session (no "lib/server.coffee")

I am queuing up tasks my clients and they seem to be taking too long to respond to the ACS.

On the ACS side:

2023-03-03T19:40:28.807Z [INFO] ::ffff:76.188.67.161 C0EE40-sentrius-RG1xx293778: ACS request; acsRequestId=“186a8fd561e0005” acsRequestName=“GetParameterValues”

2023-03-03T19:40:58.812Z [ERROR] ::ffff:76.188.67.161 C0EE40-sentrius-RG1xx293778: Session timeout; sessionTimestamp=1677872420382

2023-03-03T19:40:58.812Z [WARN] ::ffff:76.188.67.161 C0EE40-sentrius-RG1xx293778: Channel has faulted; channel=“task_64024d0a4ccf393baa19ece9” retries=0 faultCode=“session_terminated” faultMessage=“The TR-069 session was unsuccessfully terminated”

On the client side: (easycwmpd)

Mar 3 19:40:28 RG1xx293778 daemon.notice easycwmpd: received GetParameterValues method from the ACS
Mar 3 19:40:28 RG1xx293778 daemon.notice easycwmpd: external: execute get value InternetGatewayDevice.WiFi.EndPoint.1.Enable
Mar 3 19:40:29 RG1xx293778 daemon.notice easycwmpd: external: execute get value InternetGatewayDevice.WiFi.EndPoint.1.ProfileNumberOfEntries
Mar 3 19:40:30 RG1xx293778 daemon.notice easycwmpd: external: execute get value InternetGatewayDevice.WiFi.EndPoint.1.ProfileReference
Mar 3 19:40:31 RG1xx293778 daemon.notice easycwmpd: external: execute get value InternetGatewayDevice.WiFi.EndPoint.1.Profiles.1.Alias

[lots more deleted for brevity]

Mar 3 19:40:58 RG1xx293778 daemon.notice easycwmpd: external: execute get value InternetGatewayDevice.WiFi.EndPoint.1.Status
Mar 3 19:40:59 RG1xx293778 daemon.notice easycwmpd: send GetParameterValuesResponse to the ACS
Mar 3 19:40:59 RG1xx293778 daemon.notice easycwmpd: LibCurl Error: The requested URL returned error: 400 Bad Request

I DID see this topic:

Which sounds like what I am seeing - however the solution:

“Patch lib/server.coffee and see if that helps.”

References a file I can’t find on my ACS installation:

/var/log/genieacs$ locate coffee
/usr/share/mime/application/vnd.coffeescript.xml

This was also mentioned:

“I can add a config option to override the default keep-alive timeout.”

Was this config option ever added?

Thanks

GenieACS switched from coffeescript to Typescript with v1.2.

OK, how and where do I adjust the session timeout using typescript?

From my logs - it looks like the default timeout is 30 seconds, and it’s taking my client 31 seconds to respond, so I’d like to adjust it a bit higher.

thanks

Have you tried this? it’s from version 1.2.0 but I guess it should be present. From changelog

Removed the config option CWMP_KEEP_ALIVE_TIMEOUT. SESSION_TIMEOUT is now used to determine the TCP connection timeout.

less  bin/genieacs-cwmp
/SESSION_TIMEOUT

SESSION_TIMEOUT:{type:“int”,default:30}