dhrone / pydPiper

A general purpose program to display song metadata on LCD and OLED devices
MIT License
78 stars 36 forks source link

pydPiper cannot connect to Volumio 3.198 HTTP error [Errno -2] Name or service not known #132

Open DaPiMan opened 2 years ago

DaPiMan commented 2 years ago

I've been trying to troubleshoot this issue and not having much luck.

I have a hd44780_i2c 16x2 display connected to my RPi4 running Volumio 3.198 and installed pydPiper from cloning the GIT to my PC and installing docker/volumio .sh scripts.

Docker is running and pydPiper service is running but I see the following in the log and nothing on the display:

2022-03-24 22:21:39,823:DEBUG:Starting new HTTP connection (906): audiostreamer.local 2022-03-24 22:21:39,841:WARNING:audiostreamer.local:3000/socket.io [engine.io waiting for connection] HTTPConnectionPool(host='audiostreamer.local', port=3000): Max retries exceeded with url: /socket.io/?EIO=3&transport=polling&t=1648160499821-0 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x1625510>: Failed to establish a new connection: [Errno -2] Name or service not known',))

Accessing audiostreamer.local/socket.io/?EIO=3&transport=polling&t=1648160499821-0 via chrome on my windows machine results in a file called "download" downloading with the following text:

ÿ0{"sid":"2nomW53Hw952M9qCAAAD","upgrades":["websocket"],"pingInterval":25000,"pingTimeout":60000}

I get the feeling that Docker is being blocked on port 3000; even thought pydPiper is started with --network=host which should technically open/let it see Volumio on port 3000.

Does anyone have any idea what the issue might be?

DaPiMan commented 2 years ago

I was able to get a bash shell into the docker container and realised the docker couldn't resolve .local after removing .local the service successfully started but no dice getting anything on the 16x2 display as yet.

Getting the following now:

Mar 25 04:06:54 audiostreamer docker[8404]: http://audiostreamer:3000 "GET /socket.io/?EIO=3&transport=polling&t=1648181213922-0 HTTP/1.1" 200 101 Mar 25 04:06:54 audiostreamer docker[8404]: Connected to Volumio Web Service Mar 25 04:06:55 audiostreamer docker[8404]: Music Controller Starting Mar 25 04:06:55 audiostreamer docker[8404]: Loading pages_lcd_16x2.py as page file Mar 25 04:06:55 audiostreamer docker[8404]: Initializing current system status update process. System status will update every five minutes Mar 25 04:06:55 audiostreamer docker[8404]: Weather service not enabled Mar 25 04:06:55 audiostreamer docker[8404]: Weather service not enabled Mar 25 04:06:55 audiostreamer docker[8404]: System status: Temp 52°c, Disk space remaining 95%, IP address 192.168.1.128 Mar 25 04:06:56 audiostreamer docker[8404]: Loading image progbar Mar 25 04:06:56 audiostreamer docker[8404]: v out of range with value -1. Should have been between 0 and 100