rembo10 / headphones

Automatic music downloader for SABnzbd
GNU General Public License v3.0
3.37k stars 601 forks source link

not starting webUI but service running #2778

Open layerviii opened 7 years ago

layerviii commented 7 years ago

I have just installed and followed a guide online. I have 2 other similar services running and a tranmsission client all with access to the associated webUIs. When I try to navigate to the headphones one it shows unable to connect.

netstat -antp shows that port 8181 is up and listening.

I had set it to autostart but this didnt seem to work. I navigated to the usr/local and ran python Headphones.py which kicked it off and I can see its still running with ps aux.

root@osmc:/usr/local/headphones# python Headphones.py 17-Nov-2016 22:19:57 - INFO :: MainThread : Checking to see if the database has all tables.... 17-Nov-2016 22:19:57 - INFO :: MainThread : Retrieving latest version information from GitHub 17-Nov-2016 22:19:58 - INFO :: MainThread : Headphones is up to date 17-Nov-2016 22:19:58 - INFO :: MainThread : Starting Headphones web server on http://localhost:8181/ 17-Nov-2016 22:19:59 - INFO :: MainThread : Scheduled background task: Search for Wanted 17-Nov-2016 22:19:59 - INFO :: MainThread : Scheduled background task: Download Scan 17-Nov-2016 22:19:59 - INFO :: MainThread : Scheduled background task: Library Scan 17-Nov-2016 22:19:59 - INFO :: MainThread : Scheduled background task: MusicBrainz Update 17-Nov-2016 22:19:59 - INFO :: MainThread : Scheduled background task: Check GitHub for updates 17-Nov-2016 22:19:59 - INFO :: MainThread : Scheduled background task: Torrent removal check

any help appreciated.

Gregifur commented 7 years ago

I have the same issue and found the problem, at least for me. I'm running on Windows 10 and have Usenetserver VPN account. The Headphones interface disappears as soon as I connect to the VPN. I've tried changing the port far away from 8181 and it makes no difference. As soon as I disconnect the VPN the interface comes back immediately.

fitur commented 7 years ago

I have this issue at first install. Tried changing listening host from localhost to 0.0.0.0 and port to something other than 8181. I freeze on the same place as you. Same thing with the startup script.

Tried running as root and as user. Changed permission of headphones folder. No luck.

OMV 3, Debian 8.6 and usure wich version of python but it should work.

EDIT: Changed /opt/headphones/config.ini > http_port to 8184 and http_host to 0.0.0.0 which lets me load the webUI indefinately instead of just fail right away. Not sure what else to do.

fitur commented 7 years ago

It started! Not sure what I did. Permissions set to headphones:headphones, host and port as above, ran python HeadPhones.py through terminal. Reloaded page 1 million times and poof, it was there. Was probably doing something fishy as the page never stopped loading until I restarted headphones.py.

sackman68 commented 1 year ago

I have the issue after upgrading to the latest version. It ran for a few days, and then last night it stopped.

I start it manually from the CLI because the Synology Package no longer works with Python3.

I run it as a daemon as follows: /volume1/@appstore/python310/bin/python3 /volume1/@appstore/headphones/share/Headphones/Headphones.py --daemon --config /volume1/@appstore/headphones/var/config.ini --datadir /volume1/@appstore/headphones/var

netstat -antp shows that port 8181 is up and listening.

I can see its still running with ps aux. I kill he service to run it without --daemon

I run it as follows as root: /volume1/@appstore/python310/bin/python3 /volume1/@appstore/headphones/share/Headphones/Headphones.py --config /volume1/@appstore/headphones/var/config.ini --datadir /volume1/@appstore/headphones/var

14-Oct-2022 08:13:05 - INFO :: MainThread : Checking to see if the database has all tables.... 14-Oct-2022 08:13:05 - INFO :: MainThread : Retrieving latest version information from GitHub 14-Oct-2022 08:13:05 - INFO :: MainThread : Headphones is up to date 14-Oct-2022 08:13:05 - INFO :: MainThread : Starting Headphones web server on http://localhost:8181/ 14-Oct-2022 08:13:06 - INFO :: MainThread : Scheduled background task: Search for Wanted 14-Oct-2022 08:13:06 - INFO :: MainThread : Scheduled background task: Download Scan 14-Oct-2022 08:13:06 - INFO :: MainThread : Scheduled background task: Library Scan 14-Oct-2022 08:13:06 - INFO :: MainThread : Scheduled background task: MusicBrainz Update 14-Oct-2022 08:13:06 - INFO :: MainThread : Scheduled background task: Check GitHub for updates

It consistently hangs at Check GitHub for updates.
Any help will be appreciated.