Repeated syslog message

I am repeatedly getting this message in the Ubuntu 18.04 syslog
nymead[1926]: #033[33m W | WebServer: User-Agent header is missing#033[0m

nymea is up to date

Suggestions as to what I have miss configured that causes the message?

There is probably another machine in your network which tries to poll nymea repeatedly without having a user agent set.

You can turn on the debug messages for the webaerver in the nymea debug interface. Then you should be able to find out where those requests are coming from.

So I tried with only WebServer turned on but did not get new info. Therefore I also turned on WebServerTraffic and WebSocketServer.

I extracted the following (among others not listed):
I | WebServer: Webserver client 192.168.1.1:46415 connected
W | WebServer: User-Agent header is missing
I | WebServerTraffic: Received request from “{70f797a5-97dd-4839-8534-aad3d3ce456f}” “192.168.1.1” HttpRequest:
GET /server.xml HTTP/1.1
Host: 192.168.1.158:6969
Accept: /
CPFN.UPNP.ORG: Greenwave control point
I | WebServer: Got valid request from 192.168.1.1:46415 GET /server.xml
I | WebServer: Server XML request call
I | WebServerTraffic: Send reply to “192.168.1.1” HttpReply("{70f797a5-97dd-4839-8534-aad3d3ce456f}")
HTTP/1.1 200 Ok
Date: Mon, 19 Oct 2020 12:01:18
Content-Length: 3790
Keep-Alive: timeout=60000, max=50
Server: nymea/0.23.1+202009081353~bionic1
Cache-Control: no-cache
Content-Type: text/xml
Connection: Keep-Alive
Access-Control-Allow-Origin: *

<?xml version="1.0" encoding="UTF-8"?> 1 1 http://192.168.1.158:6969 urn:schemas-upnp-org:device:Basic:1 nymea nymea GmbH http://nymea.io IoT server nymead 0.23.1+202009081353~bionic1 http://nymea.io uuid:161cd626-4bcc-abcf-b2db-c2d8538b0812 image/png 8 8 8 /icons/nymea-logo-8x8.png image/png 16 16 8 /icons/nymea-logo-16x16.png image/png 22 22 8 /icons/nymea-logo-22x22.png image/png 32 32 8 /icons/nymea-logo-32x32.png image/png 48 48 8 /icons/nymea-logo-48x48.png image/png 64 64 8 /icons/nymea-logo-64x64.png image/png 120 120 8 /icons/nymea-logo-120x120.png image/png 128 128 8 /icons/nymea-logo-128x128.png image/png 256 256 8 /icons/nymea-logo-256x256.png image/png 512 512 8 /icons/nymea-logo-512x512.png urn:nymea.io:service:wss:1 urn:nymea.io:serviceId:wss:1 wss://192.168.1.158:4444 urn:nymea.io:service:nymeas:1 urn:nymea.io:serviceId:nymeas:1 nymeas://192.168.1.158:2222

I | WebServer: Respond “192.168.1.1” 200 “Ok”
I | WebServer: Client socket error 192.168.1.1:46415 -> The remote host closed the connection
I | WebServer: Delete client “192.168.1.1”
I | WebServer: Webserver client disonnected 192.168.1.1:46415

I do not understand what the source is unless it is my router (which is the address 192.168.1.1 - If it is the router, what is it I need to do to stop these messages or get further diagnostics? Any clues would be appreciated.

It does seem to be your router performing UPnP requests. This is not unusual except that normally devices do send some user agent string with such requests. Apparently yours doesn’t which causes nymea to print this warning.

Those messages are not really a problem though and perhaps they shouldn’t even be warnings. I’ll turn them into debug messages so they won’t spam your log any more and one would only see them when explicitly enabling Webserver debug output.

Thank you.

And thank you all for the nymea software. I really like it.

2 Likes

We’d totally appreciate if you could blog/tweet/instagram/tiktok/whatever about it :slight_smile: