No automatic scan
Hobbabobba opened this issue · 12 comments
After sudo python3 scan.py update
everything started working and i got some releases.
my problem: if i don´t run the update
command, even after "sleeping" for 300 seconds, nothing happens:
(here is my update.log
)
2016-01-06 14:31:29 INFO scan: processing releases...
2016-01-06 14:31:29 DEBUG release: [Seinfeld.S09E02.HDTV.x264-REGRET] - removed (nzb only)
2016-01-06 14:31:29 DEBUG category: (alt.binaries.teevee) [Seinfeld.S09E02.HDTV.x264-REGRET]: 5030
2016-01-06 14:31:29 INFO release: [Seinfeld S09E02 HDTV x264 REGRET]: added release (1 rars, 11 rarparts)
2016-01-06 14:31:29 DEBUG release: [Jimmy.Fallon.2016.01.05.Kristen.Stewart.HDTV.x264-aAF] - removed (nzb only)
2016-01-06 14:31:29 DEBUG category: (alt.binaries.teevee) [Jimmy.Fallon.2016.01.05.Kristen.Stewart.HDTV.x264-aAF]: 5060
2016-01-06 14:31:29 INFO release: [Jimmy Fallon 2016 01 05 Kristen Stewart HDTV x264 aAF]: added release (1 rars, 23 rarparts)
2016-01-06 14:31:30 DEBUG category: (alt.binaries.teevee) [Sherlock.Holmes.1984.S01E06.720p.BDRip.AAC2.0.x264-KUNO-DIY]: 5040
2016-01-06 14:31:30 INFO release: [Sherlock Holmes 1984 S01E06 720p BDRip AAC2 0 x264 KUNO DIY]: added release (1 rars, 18 rarparts)
2016-01-06 14:31:30 DEBUG category: (alt.binaries.teevee) [Sherlock.Holmes.1984.S01E05.720p.BDRip.AAC2.0.x264-KUNO-DIY]: 5040
2016-01-06 14:31:30 INFO release: [Sherlock Holmes 1984 S01E05 720p BDRip AAC2 0 x264 KUNO DIY]: added release (1 rars, 17 rarparts)
2016-01-06 14:31:31 DEBUG category: (alt.binaries.teevee) [The.Daily.Show.with.Trevor.Noah.2016.01.05.Ryan.Coogler.Extended .720p.CC.WEBRip.AAC2.0.x264$
2016-01-06 14:31:31 INFO release: [The Daily Show with Trevor Noah 2016 01 05 Ryan Coogler Extended 720p CC WEBRip AAC2 0 x264 monkee]: added release $
2016-01-06 14:31:32 DEBUG category: (alt.binaries.teevee) [Jimmy.Kimmel.Live.2016.01.05.Jon.Favreau.Natalie.Dormer.PVRIS.720p.AMBC.WEBRip.AAC2.0.x264-m$
2016-01-06 14:31:32 INFO release: [Jimmy Kimmel Live 2016 01 05 Jon Favreau Natalie Dormer PVRIS 720p AMBC WEBRip AAC2 0 x264 monkee]: added release (1$
2016-01-06 14:31:33 DEBUG category: (alt.binaries.teevee) [At.Midnight.with.Chris.Hardwick.2016.01.05.Matt.Besser.Mary.Holland.Doug.Benson.720p.CC.WEBR$
2016-01-06 14:31:33 INFO release: [At Midnight with Chris Hardwick 2016 01 05 Matt Besser Mary Holland Doug Benson 720p CC WEBRip AAC2 0 x264 monkee]: $2016-01-06 14:31:33 INFO release: added 7 out of 9 binaries in 3.91s
2016-01-06 14:31:33 INFO scan: deleted 34 dead binaries
2016-01-06 14:31:33 INFO scan: vacuuming relevant tables...
2016-01-06 14:31:33 INFO scan: sleeping for 300 seconds...
2016-01-06 14:31:38 INFO log: started pynab logger
2016-01-06 14:31:38 INFO scan: starting update...
2016-01-06 14:31:49 INFO log: started pynab logger
…
2016-01-06 14:47:36 INFO log: started pynab logger
2016-01-06 14:47:36 INFO scan: starting update...
2016-01-06 14:47:46 INFO log: started pynab logger
2016-01-06 14:47:46 INFO scan: starting update...
when enter sudo python3 scan.py update
scanning und processing will work again. But just once...
here is the status of pynab services:
pynab@pynab:/opt/pynab$ sudo supervisorctl status
pynab:api RUNNING pid 10682, uptime 1:23:19
pynab:backfill RUNNING pid 27245, uptime 0:00:06
pynab:postproc RUNNING pid 27238, uptime 0:00:08
pynab:prebot STARTING
pynab:pubsub STOPPED Jan 06 01:28 PM
pynab:scan RUNNING pid 27257, uptime 0:00:01
pynab:stats RUNNING pid 27251, uptime 0:00:04
Do a sudo supervisorctl stop all
and ./pynab.py start
, wait 30 seconds and then paste the output of supervisorctl status
again. Looks like scan is crashing during the sleep, which should be... impossible?
waited for at least 40 sec
pynab:api STOPPED Jan 06 03:19 PM
pynab:backfill STOPPED Jan 06 03:19 PM
pynab:postproc RUNNING pid 32051, uptime 0:00:01
pynab:prebot STARTING
pynab:pubsub STOPPED Jan 06 01:28 PM
pynab:scan RUNNING pid 32041, uptime 0:00:04
pynab:stats RUNNING pid 32044, uptime 0:00:03
checked again after more than 30 minutes, scan
is crashing, restarting, crashing, restarting etc.
Check the logs in /var/log/supervisor/scan-stderr*
and /var/log/supervisor/scan-stdout*
, which is where the supervisor output is piped to.
The /var/log/supervisor/scan-stderr*
is here: https://dl.dropboxusercontent.com/u/24871301/scan-stderr---supervisor-pX6jri.log
The file /var/log/supervisor/scan-stdout*
is empty
It's trying to log into postgres using user www-data
, which doesn't exist.
Ok, I tried to read a manual or FAQ about postgres on Ubuntu, but I still have have to idea how to create and/our connect a user to database.
su - postgres
in Postgres:
psql pynab
create user www-data
GRANT ALL PRIVILEGES ON DATABASE pynab to www-data;
the last line gives me an error-message ERROR: syntax error at or near "-"
This page goes through it: http://www.postgresql.org/docs/9.1/static/app-createuser.html
Basically, createuser -P -e pynab
.
Ok, created the user pynab
(no error-message 👍 )
scan
keeps crashing. i am about to give up...
sorry for the stupid question: do i need to connect the user pynab
or www-data
to the database pynab
? If so: how to do that?
You need a postgres user (pynab
) connected to a database (pynab
). Something like:
createuser -P -e pynab
[and password]
psql -U pynab
[same password]
create database pynab;
grant all on pynab to pynab;
Then in your config.py under db
, you add those details: user (pynab), password (whatever you chose), database (pynab).
even tried with a fresh install, no success at all. Thanks for your time and support. Will stay with newznab+
No worries :)