Open ghost opened 8 years ago
Any status on this?
looks like this is the same error. it occurs every few minutes.
19-Dec-2016 08:55:33 - ERROR :: MainThread : Uncaught exception: Traceback (most recent call last):
File "headphones/Headphones.py", line 235, in <module>
main()
File "headphones/Headphones.py", line 204, in main
webstart.initialize(web_config)
File "/opt/headphones/headphones/headphones/webstart.py", line 120, in initialize
cherrypy.server.start()
File "headphones/lib/cherrypy/_cpserver.py", line 168, in start
ServerAdapter.start(self)
File "headphones/lib/cherrypy/process/servers.py", line 177, in start
self.wait()
File "headphones/lib/cherrypy/process/servers.py", line 227, in wait
time.sleep(.1)
File "/opt/headphones/headphones/headphones/__init__.py", line 358, in sig_handler
shutdown()
File "/opt/headphones/headphones/headphones/__init__.py", line 622, in shutdown
SCHED.shutdown(wait=False)
File "headphones/lib/apscheduler/schedulers/background.py", line 37, in shutdown
super(BackgroundScheduler, self).shutdown(wait)
File "headphones/lib/apscheduler/schedulers/blocking.py", line 22, in shutdown
super(BlockingScheduler, self).shutdown(wait)
File "headphones/lib/apscheduler/schedulers/base.py", line 147, in shutdown
raise SchedulerNotRunningError
SchedulerNotRunningError: Scheduler is not running
Guys!
I have the same Issue over here; and I have tryied Re-installing it and upgrade and still the same I'm Runnig it on Ubuntu Server 16.04.01 This is the Log:
2017-01-25 13:53:54 DEBUG If you read this message, debug logging is available 2017-01-25 13:53:54 INFO Verbose toggled, set to True 2017-01-25 13:53:44 ERROR Uncaught exception: Traceback (most recent call last): File "/home/aleany/.headphones/Headphones.py", line 235, in main() File "/home/aleany/.headphones/Headphones.py", line 204, in main webstart.initialize(web_config) File "/home/aleany/.headphones/headphones/webstart.py", line 120, in initialize cherrypy.server.start() File "/home/aleany/.headphones/lib/cherrypy/_cpserver.py", line 168, in start ServerAdapter.start(self) File "/home/aleany/.headphones/lib/cherrypy/process/servers.py", line 177, in start self.wait() File "/home/aleany/.headphones/lib/cherrypy/process/servers.py", line 227, in wait time.sleep(.1) File "/home/aleany/.headphones/headphones/__init__.py", line 358, in sig_handler shutdown() File "/home/aleany/.headphones/headphones/__init__.py", line 622, in shutdown SCHED.shutdown(wait=False) File "/home/aleany/.headphones/lib/apscheduler/schedulers/background.py", line 37, in shutdown super(BackgroundScheduler, self).shutdown(wait) File "/home/aleany/.headphones/lib/apscheduler/schedulers/blocking.py", line 22, in shutdown super(BlockingScheduler, self).shutdown(wait) File "/home/aleany/.headphones/lib/apscheduler/schedulers/base.py", line 147, in shutdown raise SchedulerNotRunningError SchedulerNotRunningError: Scheduler is not running 2017-01-25 13:53:44 INFO Signal 15 caught, saving and exiting... 2017-01-25 13:53:44 INFO Starting Headphones web server on http://10.192.171.3:9003/ 2017-01-25 13:53:44 INFO Daemonized to PID: 13834 2017-01-25 13:53:44 INFO Headphones is up to date 2017-01-25 13:53:43 INFO Retrieving latest version information from GitHub 2017-01-25 13:53:43 INFO Checking to see if the database has all tables....
Edit: I have had a little better luck with Type=forking
under [Services]. It appears to be working mostly, it will still fail out with the same message once and a while. I skipped it because I had modeled my .services after SAB
[Unit]
Description=Headphones - Automatic music downloader for SABnzbd
Wants=network-online.target
After=network-online.target
[Service]
ExecStart=/opt/headphones/Headphones.py --daemon --config /srv/usenet/configs/headphones/config.ini --datadir /srv/usenet/configs/headphones --nolaunch --quiet
GuessMainPID=no
Type=forking
User=%I
[Install]
WantedBy=multi-user.target
Origonal: Any updates on this? It runs fine as the user without the --daemon but using the --daemon option and systemd fails with that error. My .services is /lib/systemd/system/headphones@.service
and started by systemctl start headphones@usenet.service
[Unit]
Description=Headphones - Automatic music downloader for SABnzbd
Wants=network-online.target
After=network-online.target
[Service]
ExecStart=/usr/bin/python /opt/headphones/Headphones.py --daemon --config /srv/usenet/configs/headphones/config.ini --datadir /srv/usenet/configs/headphones --nolaunch
Type=simple
User=%I
Restart=on-failure
[Install]
WantedBy=multi-user.target
Error using the latest git master
26-Feb-2017 21:40:00 - INFO :: MainThread : Checking to see if the database has all tables....
26-Feb-2017 21:40:00 - INFO :: MainThread : Retrieving latest version information from GitHub
26-Feb-2017 21:40:00 - INFO :: MainThread : Headphones is up to date
26-Feb-2017 21:40:00 - INFO :: MainThread : Daemonized to PID: 5916
26-Feb-2017 21:40:00 - INFO :: MainThread : Starting Headphones web server on https://0.0.0.0:9093/
26-Feb-2017 21:40:00 - INFO :: MainThread : Web server authentication is enabled, username is 'scotepi'
26-Feb-2017 21:40:01 - INFO :: MainThread : Signal 15 caught, saving and exiting...
26-Feb-2017 21:40:01 - ERROR :: MainThread : Uncaught exception: Traceback (most recent call last):
File "/opt/headphones/Headphones.py", line 235, in <module>
main()
File "/opt/headphones/Headphones.py", line 204, in main
webstart.initialize(web_config)
File "/srv/usenet/programs/headphones/headphones/webstart.py", line 120, in initialize
cherrypy.server.start()
File "/opt/headphones/lib/cherrypy/_cpserver.py", line 168, in start
ServerAdapter.start(self)
File "/opt/headphones/lib/cherrypy/process/servers.py", line 177, in start
self.wait()
File "/opt/headphones/lib/cherrypy/process/servers.py", line 227, in wait
time.sleep(.1)
File "/srv/usenet/programs/headphones/headphones/__init__.py", line 358, in sig_handler
shutdown()
File "/srv/usenet/programs/headphones/headphones/__init__.py", line 622, in shutdown
SCHED.shutdown(wait=False)
File "/opt/headphones/lib/apscheduler/schedulers/background.py", line 37, in shutdown
super(BackgroundScheduler, self).shutdown(wait)
File "/opt/headphones/lib/apscheduler/schedulers/blocking.py", line 22, in shutdown
super(BlockingScheduler, self).shutdown(wait)
File "/opt/headphones/lib/apscheduler/schedulers/base.py", line 147, in shutdown
raise SchedulerNotRunningError
SchedulerNotRunningError: Scheduler is not running
I'm more of a PHP person then Python but it looks like the error starts at File "/opt/headphones/lib/cherrypy/process/servers.py", line 227, in wait time.sleep(.1)
, it is waiting for the http server to start but the odd thing is, the http(s) server has started and works for about 30 seconds before getting killed off.
This used to happen to me on docker (hotio.dev image) and then I switched to NZBGet.
But now that NZBGet is in maintenance mode I wanted to try SABNZBd again, but now in Kubernetes setup I GET THE SAME PROBLEM. I'll try the linuxserver docker image now to see if it's any different...
Any idea what's going on here? Headphones service restarts quite frequently. I am updated with the most recent version. Thanks!
2016-06-09 20:07:34 ERROR Uncaught exception: Traceback (most recent call last): File "/opt/headphones/Headphones.py", line 226, in main() File "/opt/headphones/Headphones.py", line 195, in main webstart.initialize(web_config) File "/opt/headphones/headphones/webstart.py", line 120, in initialize cherrypy.server.start() File "/opt/headphones/lib/cherrypy/_cpserver.py", line 168, in start ServerAdapter.start(self) File "/opt/headphones/lib/cherrypy/process/servers.py", line 177, in start self.wait() File "/opt/headphones/lib/cherrypy/process/servers.py", line 227, in wait time.sleep(.1) File "/opt/headphones/headphones/init.py", line 358, in sig_handler shutdown() File "/opt/headphones/headphones/init.py", line 622, in shutdown SCHED.shutdown(wait=False) File "/opt/headphones/lib/apscheduler/schedulers/background.py", line 37, in shutdown super(BackgroundScheduler, self).shutdown(wait) File "/opt/headphones/lib/apscheduler/schedulers/blocking.py", line 22, in shutdown super(BlockingScheduler, self).shutdown(wait) File "/opt/headphones/lib/apscheduler/schedulers/base.py", line 147, in shutdown raise SchedulerNotRunningError SchedulerNotRunningError: Scheduler is not running 2016-06-09 20:07:34 INFO Signal 15 caught, saving and exiting... 2016-06-09 20:07:34 INFO Web server authentication is enabled, username is '*****' 2016-06-09 20:07:34 INFO Starting Headphones web server on https://0.0.0.0:8585/ 2016-06-09 20:07:34 INFO Daemonized to PID: 20180 2016-06-09 20:07:34 INFO Headphones is up to date 2016-06-09 20:07:34 INFO Retrieving latest version information from GitHub 2016-06-09 20:07:34 INFO Checking to see if the database has all tables....