SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
3.04k stars 1.24k forks source link

Couchpotato Server crash after being started #262

Closed PTony closed 12 years ago

PTony commented 12 years ago

Hi, I have installed CPS (version: 20120830-1) on my DS209J. The installation process appear to be ok, but when I start CPS, it's crash after few seconds and I can't use it.

My original post on nas-forum (fr) : http://www.nas-forum.com/forum/topic/29740-couchpotato-server-plantage-au-lancement/#entry1319156365

and a sample of log:

10-03 14:46:08 INFO [ couchpotato.core.loader] Loading core: _core
10-03 14:46:09 INFO [ couchpotato.core.loader] Loading core: clientscript
10-03 14:46:10 INFO [ couchpotato.core.loader] Loading core: desktop
10-03 14:46:13 INFO [ couchpotato.core.loader] Loading core: scheduler
10-03 14:46:16 INFO [ couchpotato.core.loader] Loading core: updater
10-03 14:46:16 INFO [hpotato.core.plugins.base] Opening url: https://api.github.com/repos/RuudBurger/CouchPotatoServer/commits?per_page=1&sha=master, params: []
10-03 14:46:18 INFO [tato.core._base.scheduler] Scheduling updater.check, interval: hours = 6, minutes = 0, seconds = 0
10-03 14:46:18 INFO [ couchpotato.core.loader] Loading automation_provider: bluray
10-03 14:46:19 INFO [ couchpotato.core.loader] Loading automation_provider: cp
10-03 14:46:19 INFO [ couchpotato.core.loader] Loading automation_provider: imdb
10-03 14:46:19 INFO [ couchpotato.core.loader] Loading automation_provider: kinepolis
10-03 14:46:19 INFO [ couchpotato.core.loader] Loading automation_provider: movies_io
10-03 14:46:19 INFO [ couchpotato.core.loader] Loading automation_provider: trakt
10-03 14:46:20 INFO [ couchpotato.core.loader] Loading metadata_provider: xbmc
10-03 14:46:20 INFO [ couchpotato.core.loader] Loading movie_provider: _modifier
10-03 14:46:21 INFO [ couchpotato.core.loader] Loading movie_provider: couchpotatoapi
10-03 14:46:21 INFO [ couchpotato.core.loader] Loading movie_provider: imdbapi
10-03 14:46:21 INFO [ couchpotato.core.loader] Loading movie_provider: themoviedb
10-03 14:46:29 INFO [ couchpotato.core.loader] Loading nzb_provider: mysterbin
10-03 14:46:30 INFO [ couchpotato.core.loader] Loading nzb_provider: newzbin
10-03 14:46:30 INFO [ couchpotato.core.loader] Loading nzb_provider: newznab
10-03 14:46:30 INFO [ couchpotato.core.loader] Loading nzb_provider: nzbclub
10-03 14:46:30 INFO [ couchpotato.core.loader] Loading nzb_provider: nzbindex
10-03 14:46:30 INFO [ couchpotato.core.loader] Loading nzb_provider: nzbmatrix
10-03 14:46:30 INFO [ couchpotato.core.loader] Loading nzb_provider: nzbsrus
10-03 14:46:31 INFO [ couchpotato.core.loader] Loading torrent_provider: kickasstorrents
10-03 14:46:31 INFO [ couchpotato.core.loader] Loading torrent_provider: publichd
10-03 14:46:31 INFO [ couchpotato.core.loader] Loading torrent_provider: sceneaccess
10-03 14:46:31 INFO [ couchpotato.core.loader] Loading torrent_provider: scenehd
10-03 14:46:31 INFO [ couchpotato.core.loader] Loading torrent_provider: thepiratebay
10-03 14:46:31 INFO [ couchpotato.core.loader] Loading torrent_provider: torrentleech
10-03 14:46:32 INFO [ couchpotato.core.loader] Loading trailer_provider: hdtrailers
10-03 14:46:32 INFO [ couchpotato.core.loader] Loading userscript_provider: allocine
10-03 14:46:32 INFO [ couchpotato.core.loader] Loading userscript_provider: appletrailers
10-03 14:46:32 INFO [ couchpotato.core.loader] Loading userscript_provider: imdb
10-03 14:46:32 INFO [ couchpotato.core.loader] Loading userscript_provider: letterboxd
10-03 14:46:32 INFO [ couchpotato.core.loader] Loading userscript_provider: moviemeter
10-03 14:46:32 INFO [ couchpotato.core.loader] Loading userscript_provider: moviesio
10-03 14:46:32 INFO [ couchpotato.core.loader] Loading userscript_provider: rottentomatoes
10-03 14:46:32 INFO [ couchpotato.core.loader] Loading userscript_provider: sharethe
10-03 14:46:32 INFO [ couchpotato.core.loader] Loading userscript_provider: tmdb
10-03 14:46:32 INFO [ couchpotato.core.loader] Loading userscript_provider: trakt
10-03 14:46:32 INFO [ couchpotato.core.loader] Loading userscript_provider: whiwa
10-03 14:46:33 INFO [ couchpotato.core.loader] Loading userscript_provider: youteather
10-03 14:46:33 INFO [ couchpotato.core.loader] Loading downloaders: blackhole
10-03 14:46:33 INFO [ couchpotato.core.loader] Loading downloaders: nzbget
10-03 14:46:33 INFO [ couchpotato.core.loader] Loading downloaders: pneumatic
10-03 14:46:34 INFO [ couchpotato.core.loader] Loading downloaders: sabnzbd
10-03 14:46:34 INFO [ couchpotato.core.loader] Loading downloaders: transmission
10-03 14:46:34 INFO [ couchpotato.core.loader] Loading notifications: boxcar
10-03 14:46:35 INFO [ couchpotato.core.loader] Loading notifications: core
10-03 14:46:36 INFO [ couchpotato.core.loader] Loading notifications: growl
10-03 14:46:36 INFO [ couchpotato.core.loader] Loading notifications: nmj
10-03 14:46:36 INFO [ couchpotato.core.loader] Loading notifications: notifo
10-03 14:46:36 INFO [ couchpotato.core.loader] Loading notifications: notifymyandroid
10-03 14:46:37 INFO [ couchpotato.core.loader] Loading notifications: notifymywp
10-03 14:46:37 INFO [ couchpotato.core.loader] Loading notifications: plex
10-03 14:46:37 INFO [ couchpotato.core.loader] Loading notifications: prowl
10-03 14:46:37 INFO [ couchpotato.core.loader] Loading notifications: pushover
10-03 14:46:37 INFO [ couchpotato.core.loader] Loading notifications: synoindex
10-03 14:46:40 INFO [ couchpotato.core.loader] Loading notifications: twitter
10-03 14:46:40 INFO [ couchpotato.core.loader] Loading notifications: xbmc
10-03 14:46:40 INFO [ couchpotato.core.loader] Loading plugin: automation
10-03 14:46:40 INFO [tato.core._base.scheduler] Scheduling automation.add_movies, interval: hours = 12, minutes = 0, seconds = 0
10-03 14:46:41 INFO [ couchpotato.core.loader] Loading plugin: browser
10-03 14:46:41 INFO [ couchpotato.core.loader] Loading plugin: file
10-03 14:46:41 INFO [ couchpotato.core.loader] Loading plugin: library
10-03 14:46:41 INFO [ couchpotato.core.loader] Loading plugin: log
10-03 14:46:41 INFO [ couchpotato.core.loader] Loading plugin: manage
10-03 14:46:41 INFO [ couchpotato.core.loader] Loading plugin: movie
10-03 14:46:42 INFO [ couchpotato.core.loader] Loading plugin: profile
10-03 14:46:42 INFO [ couchpotato.core.loader] Loading plugin: quality
10-03 14:46:57 INFO [ couchpotato.core.loader] Loading plugin: release
10-03 14:46:57 INFO [ couchpotato.core.loader] Loading plugin: renamer
10-03 14:46:57 INFO [ couchpotato.core.loader] Loading plugin: scanner
10-03 14:46:58 INFO [ couchpotato.core.loader] Loading plugin: score
10-03 14:46:58 INFO [ couchpotato.core.loader] Loading plugin: searcher
10-03 14:46:58 INFO [tato.core._base.scheduler] Scheduling "searcher.all", cron: day = *, hour = None, minute = None
10-03 14:46:58 INFO [tato.core._base.scheduler] Scheduling searcher.check_snatched, interval: hours = 0, minutes = 1, seconds = 0
10-03 14:46:58 INFO [ couchpotato.core.loader] Loading plugin: status
10-03 14:46:58 INFO [ couchpotato.core.loader] Loading plugin: subtitle
10-03 14:46:58 INFO [ couchpotato.core.loader] Loading plugin: suggestion
10-03 14:46:59 INFO [ couchpotato.core.loader] Loading plugin: trailer
10-03 14:46:59 INFO [ couchpotato.core.loader] Loading plugin: userscript
10-03 14:46:59 INFO [ couchpotato.core.loader] Loading plugin: v1importer
10-03 14:46:59 INFO [ couchpotato.core.loader] Loading plugin: wizard
10-03 14:47:37 INFO [tato.core.plugins.quality] Creating quality: BR-Disk
10-03 14:47:38 INFO [tato.core.plugins.quality] Creating profile: BR-Disk
10-03 14:47:39 INFO [tato.core.plugins.quality] Creating quality: 1080P
10-03 14:47:39 INFO [tato.core.plugins.quality] Creating profile: 1080P
10-03 14:47:41 INFO [tato.core.plugins.quality] Creating quality: 720P
10-03 14:47:42 INFO [tato.core.plugins.quality] Creating profile: 720P
10-03 14:47:43 INFO [tato.core.plugins.quality] Creating quality: BR-Rip
10-03 14:47:43 INFO [tato.core.plugins.quality] Creating profile: BR-Rip
10-03 14:47:44 INFO [tato.core.plugins.quality] Creating quality: DVD-R
10-03 14:47:44 INFO [tato.core.plugins.quality] Creating profile: DVD-R
10-03 14:47:45 INFO [tato.core.plugins.quality] Creating quality: DVD-Rip
10-03 14:47:45 INFO [tato.core.plugins.quality] Creating profile: DVD-Rip
10-03 14:47:45 INFO [tato.core.plugins.quality] Creating quality: Screener
10-03 14:47:46 INFO [tato.core.plugins.quality] Creating profile: Screener
10-03 14:47:46 INFO [tato.core.plugins.quality] Creating quality: R5
10-03 14:47:46 INFO [tato.core.plugins.quality] Creating profile: R5
10-03 14:47:47 INFO [tato.core.plugins.quality] Creating quality: TeleCine
10-03 14:47:47 INFO [tato.core.plugins.quality] Creating profile: TeleCine
10-03 14:47:47 INFO [tato.core.plugins.quality] Creating quality: TeleSync
10-03 14:47:48 INFO [tato.core.plugins.quality] Creating profile: TeleSync
10-03 14:47:48 INFO [tato.core.plugins.quality] Creating quality: Cam
10-03 14:47:48 INFO [tato.core.plugins.quality] Creating profile: Cam
10-03 14:47:49 INFO [tato.core.plugins.profile] Creating default profile: Best
10-03 14:47:51 INFO [tato.core.plugins.profile] Creating default profile: HD
10-03 14:47:52 INFO [tato.core.plugins.profile] Creating default profile: SD
10-03 14:47:53 INFO [otato.core.plugins.status] Creating status: Needs update
10-03 14:47:53 INFO [otato.core.plugins.status] Creating status: Ignored
10-03 14:47:54 INFO [otato.core.plugins.status] Creating status: Done
10-03 14:47:54 INFO [otato.core.plugins.status] Creating status: Failed
10-03 14:47:54 INFO [otato.core.plugins.status] Creating status: Snatched
10-03 14:47:54 INFO [otato.core.plugins.status] Creating status: Downloaded
10-03 14:47:55 INFO [otato.core.plugins.status] Creating status: Active
10-03 14:47:55 INFO [otato.core.plugins.status] Creating status: Wanted
10-03 14:47:55 INFO [otato.core.plugins.status] Creating status: Deleted
10-03 14:48:07 INFO [        couchpotato.runner] Starting server on port 5050
10-03 14:48:08 CRITICAL [                           __main__] Traceback (most recent call last):
File "/usr/local/couchpotatoserver/share/CouchPotatoServer/CouchPotato.py", line 129, in <module>
l.run()
File "/usr/local/couchpotatoserver/share/CouchPotatoServer/CouchPotato.py", line 84, in run
runCouchPotato(self.options, base_path, sys.argv[1:], data_dir = self.data_dir, log_dir = self.log_dir, Env = Env)
File "/volume1/@appstore/couchpotatoserver/share/CouchPotatoServer/couchpotato/runner.py", line 239, in runCouchPotato
loop = IOLoop.instance()
File "/usr/local/couchpotatoserver/share/CouchPotatoServer/libs/tornado/ioloop.py", line 151, in instance
IOLoop._instance = IOLoop()
File "/usr/local/couchpotatoserver/share/CouchPotatoServer/libs/tornado/ioloop.py", line 111, in __init__
self._impl = impl or _poll()
IOError: [Errno 38] Function not implemented

Traceback (most recent call last):
File "/usr/local/couchpotatoserver/share/CouchPotatoServer/CouchPotato.py", line 129, in <module>
l.run()
File "/usr/local/couchpotatoserver/share/CouchPotatoServer/CouchPotato.py", line 84, in run
runCouchPotato(self.options, base_path, sys.argv[1:], data_dir = self.data_dir, log_dir = self.log_dir, Env = Env)
File "/volume1/@appstore/couchpotatoserver/share/CouchPotatoServer/couchpotato/runner.py", line 239, in runCouchPotato
loop = IOLoop.instance()
File "/usr/local/couchpotatoserver/share/CouchPotatoServer/libs/tornado/ioloop.py", line 151, in instance
IOLoop._instance = IOLoop()
File "/usr/local/couchpotatoserver/share/CouchPotatoServer/libs/tornado/ioloop.py", line 111, in __init__
self._impl = impl or _poll()
IOError: [Errno 38] Function not implemented
10-03 14:48:10 INFO Shutting down thread pool
Diaoul commented 12 years ago

I'll update tornado to latest to see if that fix the issue.

Diaoul commented 12 years ago

Nevermind, tornado is included with CPS, please report this to CPS.

NdyGen commented 12 years ago

there's no epoll suport in the synology kernel :-(

a quick hack:

edit ioloop

change:

if hasattr(select, "epoll"):

Python 2.6+ on Linux

_poll = select.epoll

elif hasattr(select, "kqueue"):

into if hasattr(select, "kqueue"):

this is a quick workaround that did the trick for me.

Diaoul commented 12 years ago

Could you report this to tornado?

NdyGen commented 12 years ago

already done, in V3 there will be a config setting to disable epoll stuf :-)

PTony commented 12 years ago

Ok, it's work fine. :)

just for informations, here the issues created by NdyGen:

Thanks you guys

Diaoul commented 12 years ago

Thanks for the pointers