"Illegal character 0x7F in state=HEADER_IN_VALUE" warnings in log

Hello!

I’ve installed openHABian v1.4 with openHAB 2.2 (fresh install, not upgrade). Everything installed by default (except I used “Move root to USB” from openhabian-config). Even before I added some settings (items, rules, sitemaps) I started to see a lot of strange warning in openhab log. Every minute I see “Illegal character 0x7F in state=HEADER_IN_VALUE” warning in log.
I configured openhab, added add-ons, items, rules, etc. Looks like everything works as expected. But log becomes unusable because of these warnings.

Cannot understand what can be wrong, as this problem appeared before I added any configurations. I saw this warning was mentioned in other topics but with no solution and looks like with another context.

Please point me where to look in order to find reason/fix it.

Thank you in advance!

Part of log:

2017-12-23 23:14:48.377 [WARN ] [org.eclipse.jetty.http.HttpParser   ] - Illegal character 0x7F in state=HEADER_IN_VALUE for buffer DirectByteBuffer@1909d76[p=188,l=2416,c=16384,r=2228]={HTTP/1.1 200 OK\r\n... 2017 21:14:48<<<\r\nEXT:\r\n\r\n<?xml v.../device></root>>>>ge</name>\n       ...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}

2017-12-23 23:14:48.382 [WARN ] [org.eclipse.jetty.http.HttpParser   ] - bad HTTP parsed: 400 Illegal character 0x7F for HttpReceiverOverHTTP@69a6db(rsp=HEADER,failure=null)[HttpParser{s=HEADER_IN_VALUE,0 of 2218}]

2017-12-23 23:15:48.372 [WARN ] [org.eclipse.jetty.http.HttpParser   ] - Illegal character 0x7F in state=HEADER_IN_VALUE for buffer DirectByteBuffer@1909d76[p=188,l=1448,c=16384,r=1260]={HTTP/1.1 200 OK\r\n... 2017 21:15:48<<<\r\nEXT:\r\n\r\n<?xml v...rl>/icons/lrg.j>>>pg</url></icon></...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}

2017-12-23 23:15:48.394 [WARN ] [org.eclipse.jetty.http.HttpParser   ] - bad HTTP parsed: 400 Illegal character 0x7F for HttpReceiverOverHTTP@cff9fd(rsp=HEADER,failure=null)[HttpParser{s=HEADER_IN_VALUE,0 of 2218}]

2017-12-23 23:16:48.398 [WARN ] [org.eclipse.jetty.http.HttpParser   ] - Illegal character 0x7F in state=HEADER_IN_VALUE for buffer DirectByteBuffer@1909d76[p=188,l=2416,c=16384,r=2228]={HTTP/1.1 200 OK\r\n... 2017 21:16:48<<<\r\nEXT:\r\n\r\n<?xml v.../device></root>>>>ge</name>\n       ...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}

2017-12-23 23:16:48.403 [WARN ] [org.eclipse.jetty.http.HttpParser   ] - bad HTTP parsed: 400 Illegal character 0x7F for HttpReceiverOverHTTP@10ebb9c(rsp=HEADER,failure=null)[HttpParser{s=HEADER_IN_VALUE,0 of 2218}]

2017-12-23 23:17:48.400 [WARN ] [org.eclipse.jetty.http.HttpParser   ] - Illegal character 0x7F in state=HEADER_IN_VALUE for buffer DirectByteBuffer@1909d76[p=188,l=2416,c=16384,r=2228]={HTTP/1.1 200 OK\r\n... 2017 21:17:48<<<\r\nEXT:\r\n\r\n<?xml v.../device></root>>>>ge</name>\n       ...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}

2017-12-23 23:17:48.413 [WARN ] [org.eclipse.jetty.http.HttpParser   ] - bad HTTP parsed: 400 Illegal character 0x7F for HttpReceiverOverHTTP@e8ebc(rsp=HEADER,failure=null)[HttpParser{s=HEADER_IN_VALUE,0 of 2218}]

2017-12-23 23:17:48.512 [WARN ] [org.eclipse.jetty.http.HttpParser   ] - Illegal character 0x7F in state=HEADER_IN_VALUE for buffer DirectByteBuffer@1909d76[p=188,l=2416,c=16384,r=2228]={HTTP/1.1 200 OK\r\n... 2017 21:17:48<<<\r\nEXT:\r\n\r\n<?xml v.../device></root>>>>ge</name>\n       ...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}

2017-12-23 23:17:48.518 [WARN ] [org.eclipse.jetty.http.HttpParser   ] - bad HTTP parsed: 400 Illegal character 0x7F for HttpReceiverOverHTTP@1aa4567(rsp=HEADER,failure=null)[HttpParser{s=HEADER_IN_VALUE,0 of 2218}]

2017-12-23 23:18:48.393 [WARN ] [org.eclipse.jetty.http.HttpParser   ] - Illegal character 0x7F in state=HEADER_IN_VALUE for buffer DirectByteBuffer@1909d76[p=188,l=2416,c=16384,r=2228]={HTTP/1.1 200 OK\r\n... 2017 21:18:48<<<\r\nEXT:\r\n\r\n<?xml v.../device></root>>>>ge</name>\n       ...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}

2017-12-23 23:18:48.398 [WARN ] [org.eclipse.jetty.http.HttpParser   ] - bad HTTP parsed: 400 Illegal character 0x7F for HttpReceiverOverHTTP@1a1d4b5(rsp=HEADER,failure=null)[HttpParser{s=HEADER_IN_VALUE,0 of 2218}]
  • Platform information:
    • Hardware: Raspberry Pi 3
    • OS: openHABian v1.4
    • Java Runtime Environment: 1.8.0_91-b14
    • openHAB version: v2.2

I found the reason for myself.

1 Like

Thanks @Olymp I’ve found a reason.

This warings i openHAB logs is caused by minidlna server in my network. There is option notify_interval in minidlna config. Its value was 60 seconds. Having played with this option I see direct dependency between it and warnings. And if I shutdown minidna - issue disappears.

For me this is solution - as I actually don’t use minidlna at all. So now my log is clean again.

As a temporary solution change this option in minidlna configuration file /etc/minidlna.conf to some big enought value:

# Notify interval, in seconds.
notify_interval=60

Or as an option - disable minidlna from autostart:

sudo /bin/systemctl disable minidlna

Or simply remove minidlna at all:

sudo apt-get remove minidlna

I replaced it with plex

disable everything you can, all bindings, all the services you have installed, exclude a computer with openHAB from the network. When the problem goes away, connect gradually backwards and see when the problem returns. I was looking for it.