I’m trying to call a tiny extension script from a provision. Whenever it is being called the session is terminated unsuccessfully. I read this might be related to the script having a long runtime, but I stripped it down to the bare minimum:
ext/pppmon.js:
function addVals(args, callback) {
callback(null, {});
}
exports.addValues = addVals;
The provision calling the extension only gets one parameter and passes it to the extension:
let manufacturer = declare('InternetGatewayDevice.DeviceInfo.Manufacturer', {value: Date.now() - (50 * 1000)}).value[0];
ext('pppmon', 'addValues', manufacturer)
If I comment the extension call, the log file looks fine:
2021-08-11T14:12:22.449Z [INFO] 100.64.32.191 00040E-FRITZ%21Box-444E6D6F0761: Inform; cpeRequestId="1498" informEvent="2 PERIODIC" informRetryCount=0
2021-08-11T14:12:22.807Z [INFO] 100.64.32.191 00040E-FRITZ%21Box-444E6D6F0761: ACS request; acsRequestId="17b358e96dd0100" acsRequestName="GetParameterValues"
When calling the extension I get:
2021-08-11T14:13:22.460Z [INFO] 100.64.32.191 00040E-FRITZ%21Box-444E6D6F0761: Inform; cpeRequestId="1499" informEvent="2 PERIODIC" informRetryCount=0
2021-08-11T14:13:22.821Z [INFO] 100.64.32.191 00040E-FRITZ%21Box-444E6D6F0761: ACS request; acsRequestId="17b358f81430100" acsRequestName="GetParameterValues"
2021-08-11T14:13:23.277Z [ERROR] 100.64.32.191 00040E-FRITZ%21Box-444E6D6F0761: Connection dropped
2021-08-11T14:13:23.278Z [WARN] 100.64.32.191 00040E-FRITZ%21Box-444E6D6F0761: Channel has faulted; channel="default" retries=0 faultCode="session_terminated" faultMessage="The TR-069 session was unsuccessfully terminated"
2021-08-11T14:13:23.323Z [ERROR] 100.64.32.191: Invalid session
We are at v1.2.3 and use Apache as a reverse proxy with disablereuse=On. I couldn’t attach PCAP files for pass and fail so I uploaded them here: WeTransfer