[ERROR] 127.0.0.1: Invalid session

sven.roehrig at web.de sven.roehrig at web.de
Thu Dec 6 05:33:05 EST 2018


Hi,

I´m using nginx as proxy to genieacs cwmp and getting  [ERROR] 127.0.0.1:
Invalid session messages in log.
I already did some googeling and found 
https://github.com/genieacs/genieacs/issues/281
I can not figure out how to overcome this problem can someone help me with
this?

Nginx-config:

upstream cwmp_upstream {
               server 127.0.0.1:7547;
               keepalive 100;
       }


server {
        listen 80;
        access_log /var/log/nginx/proxy-access.log;                
        location / {
                proxy_pass         http://cwmp_upstream;
                proxy_set_header        Host $host;
                proxy_set_header        X-Real-IP $remote_addr;
                proxy_set_header        X-Forwarded-For
$proxy_add_x_forwarded_for;
                proxy_set_header        X-Forwarded-Proto $scheme;
                proxy_http_version 1.1;
                proxy_set_header        Upgrade $http_upgrade;
                proxy_set_header        Connection "";
	}
}

########
T 127.0.0.1:38990 -> 127.0.0.1:7547 [AP]
POST / HTTP/1.1.
Host: test.test.de
X-Real-IP: 185.143.168.49.
X-Forwarded-For: 185.143.168.49.
X-Forwarded-Proto: https.
Connection: upgrade.
X-Customer: TKRZ.
Content-Length: 1440.
User-Agent: AVM/154.07.01.
Cookie: session=29af90fe5cd7b625.
Content-Type: text/xml; charset="utf-8".
SOAPAction: .
.

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
<soap:Header>
<cwmp:ID soap:mustUnderstand="1">167830e6d9d0100</cwmp:ID></soap:Header>
<soap:Body>
<cwmp:GetParameterValuesResponse>
<ParameterList soap-enc:arrayType="cwmp:ParameterValueStruct[5]">
<ParameterValueStruct>
<Name>InternetGatewayDevice.DeviceInfo.SerialNumber</Name>
<Value xsi:type="xsd:string">444E6D632CF6</Value></ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnecti
on.1.Username</Name>
<Value xsi:type="xsd:string">20091992</Value></ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.ManagementServer.PeriodicInformInterval</Name>
<Value xsi:type="xsd:unsignedInt">60</Value></ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnecti
on.2.Username</Name>
<Value xsi:type="xsd:string"></Value></ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnecti
on.2.ExternalIPAddress</Name>
<Value
xsi:type="xsd:string">185.143.168.49</Value></ParameterValueStruct></Paramet
erList></cwmp:GetParameterValuesResponse></soap:Body></soap:Envelope>
##
T 127.0.0.1:7547 -> 127.0.0.1:38990 [AP]
HTTP/1.1 204 No Content.
Server: GenieACS/1.1.3.
SOAPServer: GenieACS/1.1.3.
Connection: close.
Content-Length: 0.
Date: Thu, 06 Dec 2018 10:27:00 GMT.
.

########
T 127.0.0.1:38992 -> 127.0.0.1:7547 [AP]
POST / HTTP/1.1.
Host: test.test.de
X-Real-IP: 185.143.168.49.
X-Forwarded-For: 185.143.168.49.
X-Forwarded-Proto: https.
Connection: upgrade.
X-Customer: TKRZ.
Content-Length: 0.
User-Agent: AVM/154.07.01.
Cookie: session=29af90fe5cd7b625.
.

##
T 127.0.0.1:7547 -> 127.0.0.1:38992 [AP]
HTTP/1.1 400 Bad Request.
Connection: close.
Date: Thu, 06 Dec 2018 10:27:00 GMT.
Transfer-Encoding: chunked.
.
f.
Invalid session.
0.
.


Best regards,
Sven Röhrig




More information about the Users mailing list