Session timeout with TP-LINK Router

Hi,
I´m trying to connect a TP-LINK Archer device but always get a session timeout. Anyone having the same issue with TP-LINK?

event: incoming HTTP request
timestamp: 2021-07-12T10:21:02.575Z
remoteAddress: 192.168.62.2
deviceId: D807B6-VR600-D807B6FDEF67
connection: 2021-07-12T10:21:02.575Z
localPort: 7547
method: POST
url: /
headers: 
  host: x.x.x.x
  x-real-ip: 185.78.255.244, 185.78.255.244
  x-forwarded-for: 185.78.255.244
  x-forwarded-proto: http
  x-forwarded-server: x.x.x.x
  x-customer: SYNVIA
  connection: upgrade
  content-length: "2484"
  user-agent: TR069_AGENT/1.0
  content-type: text/xml; charset=utf-8
  soapaction: ""
body: >
  <?xml version="1.0" encoding="UTF-8" ?>

  <SOAP-ENV:Envelope
  SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:cwmp="urn:dslforum-org:cwmp-1-0">

  <SOAP-ENV:Header>

  <cwmp:ID SOAP-ENV:mustUnderstand="1">1011</cwmp:ID>

  </SOAP-ENV:Header>

  <SOAP-ENV:Body>

  <cwmp:Inform>

  <DeviceId>

  <Manufacturer>TP-LINK</Manufacturer>

  <OUI>D807B6</OUI>

  <ProductClass>VR600</ProductClass>

  <SerialNumber>D807B6FDEF67</SerialNumber>

  </DeviceId>

  <Event xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cwmp:EventStruct[1]">

  <EventStruct>

  <EventCode>2 PERIODIC</EventCode>

  <CommandKey></CommandKey>

  </EventStruct>

  </Event>

  <MaxEnvelopes>1</MaxEnvelopes>

  <CurrentTime>2021-07-12T11:21:02</CurrentTime>

  <RetryCount>10</RetryCount>

  <ParameterList xsi:type="SOAP-ENC:Array"
  SOAP-ENC:arrayType="cwmp:ParameterValueStruct[8]">

  <ParameterValueStruct>

  <Name>InternetGatewayDevice.DeviceSummary</Name>

  <Value xsi:type="xsd:string">InternetGatewayDevice:1.1[](Baseline:1,
  EthernetLAN:1)</Value>

  </ParameterValueStruct>

  <ParameterValueStruct>

  <Name>InternetGatewayDevice.DeviceInfo.SpecVersion</Name>

  <Value xsi:type="xsd:string">1.0</Value>

  </ParameterValueStruct>

  <ParameterValueStruct>

  <Name>InternetGatewayDevice.DeviceInfo.HardwareVersion</Name>

  <Value xsi:type="xsd:string">Archer VR600 v2 00000000</Value>

  </ParameterValueStruct>

  <ParameterValueStruct>

  <Name>InternetGatewayDevice.DeviceInfo.SoftwareVersion</Name>

  <Value xsi:type="xsd:string">0.2.0 0.9.1 v0074.0 Build 170504 Rel.68210n</Value>

  </ParameterValueStruct>

  <ParameterValueStruct>

  <Name>InternetGatewayDevice.DeviceInfo.ProvisioningCode</Name>

  <Value xsi:type="xsd:string"></Value>

  </ParameterValueStruct>

  <ParameterValueStruct>

  <Name>InternetGatewayDevice.ManagementServer.ConnectionRequestURL</Name>

  <Value xsi:type="xsd:string">http://100.72.32.119:7547/tr069</Value>

  </ParameterValueStruct>

  <ParameterValueStruct>

  <Name>InternetGatewayDevice.ManagementServer.ParameterKey</Name>

  <Value xsi:type="xsd:string"></Value>

  </ParameterValueStruct>

  <ParameterValueStruct>

  <Name>InternetGatewayDevice.WANDevice.2.WANConnectionDevice.1.WANPPPConnection.1.ExternalIPAddress</Name>

  <Value xsi:type="xsd:string">100.72.32.119</Value>

  </ParameterValueStruct>

  </ParameterList>

  </cwmp:Inform>

  </SOAP-ENV:Body>

  </SOAP-ENV:Envelope>
---
event: outgoing HTTP response
timestamp: 2021-07-12T10:21:02.576Z
remoteAddress: 192.168.62.2
deviceId: D807B6-VR600-D807B6FDEF67
connection: 2021-07-12T10:21:02.575Z
statusCode: 200
headers: 
  content-length: 524
  server: GenieACS/1.2.4+20210308113719
  soapserver: GenieACS/1.2.4+20210308113719
  content-type: text/xml; charset="utf-8"
  set-cookie: session=324dffae7f141043
body: >-
  <?xml version="1.0" encoding="UTF-8"?>

  <soap-env:Envelope xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><soap-env:Header><cwmp:ID
  soap-env:mustUnderstand="1">1011</cwmp:ID></soap-env:Header><soap-env:Body><cwmp:InformResponse><MaxEnvelopes>1</MaxEnvelopes></cwmp:InformResponse></soap-env:Body></soap-env:Envelope>
---
event: incoming HTTP request
timestamp: 2021-07-12T10:21:32.576Z
remoteAddress: 192.168.62.2
deviceId: D807B6-VR600-D807B6FDEF67
connection: 2021-07-12T10:21:32.576Z
localPort: 7547
method: POST
url: /
headers: 
  host: x.x.x.x
  x-real-ip: 185.78.255.244, 185.78.255.244
  x-forwarded-for: 185.78.255.244
  x-forwarded-proto: http
  x-forwarded-server: x.x.x.x
  x-customer: SYNVIA
  connection: upgrade
  content-length: "2484"
  user-agent: TR069_AGENT/1.0
  content-type: text/xml; charset=utf-8
  soapaction: ""
body: >
  <?xml version="1.0" encoding="UTF-8" ?>

  <SOAP-ENV:Envelope
  SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:cwmp="urn:dslforum-org:cwmp-1-0">

  <SOAP-ENV:Header>

  <cwmp:ID SOAP-ENV:mustUnderstand="1">1012</cwmp:ID>

  </SOAP-ENV:Header>

  <SOAP-ENV:Body>

  <cwmp:Inform>

  <DeviceId>

  <Manufacturer>TP-LINK</Manufacturer>

  <OUI>D807B6</OUI>

  <ProductClass>VR600</ProductClass>

  <SerialNumber>D807B6FDEF67</SerialNumber>

  </DeviceId>

  <Event xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cwmp:EventStruct[1]">

  <EventStruct>

  <EventCode>2 PERIODIC</EventCode>

  <CommandKey></CommandKey>

  </EventStruct>

  </Event>

  <MaxEnvelopes>1</MaxEnvelopes>

  <CurrentTime>2021-07-12T11:21:32</CurrentTime>

  <RetryCount>11</RetryCount>

  <ParameterList xsi:type="SOAP-ENC:Array"
  SOAP-ENC:arrayType="cwmp:ParameterValueStruct[8]">

  <ParameterValueStruct>

  <Name>InternetGatewayDevice.DeviceSummary</Name>

  <Value xsi:type="xsd:string">InternetGatewayDevice:1.1[](Baseline:1,
  EthernetLAN:1)</Value>

  </ParameterValueStruct>

  <ParameterValueStruct>

  <Name>InternetGatewayDevice.DeviceInfo.SpecVersion</Name>

  <Value xsi:type="xsd:string">1.0</Value>

  </ParameterValueStruct>

  <ParameterValueStruct>

  <Name>InternetGatewayDevice.DeviceInfo.HardwareVersion</Name>

  <Value xsi:type="xsd:string">Archer VR600 v2 00000000</Value>

  </ParameterValueStruct>

  <ParameterValueStruct>

  <Name>InternetGatewayDevice.DeviceInfo.SoftwareVersion</Name>

  <Value xsi:type="xsd:string">0.2.0 0.9.1 v0074.0 Build 170504 Rel.68210n</Value>

  </ParameterValueStruct>

  <ParameterValueStruct>

  <Name>InternetGatewayDevice.DeviceInfo.ProvisioningCode</Name>

  <Value xsi:type="xsd:string"></Value>

  </ParameterValueStruct>

  <ParameterValueStruct>

  <Name>InternetGatewayDevice.ManagementServer.ConnectionRequestURL</Name>

  <Value xsi:type="xsd:string">http://100.72.32.119:7547/tr069</Value>

  </ParameterValueStruct>

  <ParameterValueStruct>

  <Name>InternetGatewayDevice.ManagementServer.ParameterKey</Name>

  <Value xsi:type="xsd:string"></Value>

  </ParameterValueStruct>

  <ParameterValueStruct>

  <Name>InternetGatewayDevice.WANDevice.2.WANConnectionDevice.1.WANPPPConnection.1.ExternalIPAddress</Name>

  <Value xsi:type="xsd:string">100.72.32.119</Value>

  </ParameterValueStruct>

  </ParameterList>

  </cwmp:Inform>

  </SOAP-ENV:Body>

  </SOAP-ENV:Envelope>
---
event: outgoing HTTP response
timestamp: 2021-07-12T10:21:32.578Z
remoteAddress: 192.168.62.2
deviceId: D807B6-VR600-D807B6FDEF67
connection: 2021-07-12T10:21:32.576Z
statusCode: 400
headers: 
  content-length: 22
  connection: close
body: CPE already in session

Hi sroehrig - having a similar issue with a router from a popular OEM. Looks like you’re running the server behind an NGINX reverse-proxy? Have you managed to solve this issue yet? Not sure if this is relevant but I was getting an error much like this when my client_max_body_size was too small - setting it to 20M solved that issue but alas I’m still hitting a separate issue! Hopefully that helps though :slight_smile: