sixones / nzbvr

episode downloader written in php5 for sabnzbd+ and newzbin
http://sixones.com/projects/nzbvr
13 stars 0 forks source link

is my installation updating? #13

Closed Markyb0y closed 14 years ago

Markyb0y commented 14 years ago

Hi Sixones,

when I run an update manually it takes nearly 15 minutes and says there is nothing to update. when it runs via the plist file I see this in the console (I am on OSX BTW) I see the permission denied error but the 2 paths are fully available to everyone? any idea? the check seems to be running fine as the dashboard gets updated every 15 minutes

thanks in advance

MarkyBoy

8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918] <!DOCTYPE html> 8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918] 8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918] 8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918] 8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918] 8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918] Exception Occurred 8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918] 8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918] 8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918] 8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]

8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]

Picnic caught a 'ErrorException'

8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]

fopen(/Library/WebServer/Documents/data/image/movies/poster/iron-man-2-original.jpg): failed to open stream: Permission denied

8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]

The exception was thrown from '/Library/WebServer/Documents/application/classes/class.localstore.php' line 34 8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918] .

8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]

Trace:

8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]
#0 [internal function]: Picnic::errorHandler('/Library/WebSer...', 'wb')
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918] #1 /Library/WebServer/Documents/application/classes/class.localstore.php(34): fopen('movies/poster', 'http://hwcdn.th...')
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918] #2 /Library/WebServer/Documents/application/models/class.movie.php(180): LocalStore->storeImage()
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918] #3 /Library/WebServer/Documents/application/models/class.movie.php(28): Movie->update()
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918] #4 /Library/WebServer/Documents/application/controllers/class.watchers.php(66): MovieWatcher->update()
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918] #5 /Library/WebServer/Documents/picnic/picnic/class.controller.php(34): WatchersController->update('update')
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918] #6 /Library/WebServer/Documents/picnic/picnic/class.picnic.php(147): PicnicController->call()
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918] #7 /Library/WebServer/Documents/index.php(24): Picnic->render()
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918] #8 /Library/WebServer/Documents/update.php(15): require_once('/Library/WebSer...')
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918] #8 /Library/WebServer/Documents/update.php(15): require_once('/Library/WebSer...')
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918] #8 /Library/WebServer/Documents/update.php(15): require_once('/Library/WebSer...')
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918] #9 {main}
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]
8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918] 8/4/10 9:54:59 PM org.sixones.nzbvr.update[3918]

sixones commented 14 years ago

It looks like your "/Library/WebServer/Documents/data/image/movies/poster/" is not writable from PHP, make sure the directory has write permissions to the php or web server's user and try again! It will be taking a while as theres no error checking there, so each time it fails to download the image it will be going on to the next one rather than quitting until the error has been fixed.

Markyb0y commented 14 years ago

Hi Sixones,

the folder has read and write access for everyone, _www and admin via OSX security properties, but I can try using chmod 777 via terminal later when I get back

thanks for taking the time to respond and the great code :)

how is the Ruby version coming along? you were hoping to have something out a couple of months back but I have not seen anything yet.

MarkyBoy

sixones commented 14 years ago

You should chmod 777 on /Library/WebServer/Documents/data and its children, not sure why its not working with the permissions you have set via OSX though. Its possible PHP runs as a different user to www (though the everyone rule should pick that up).

Markyb0y commented 14 years ago

Hmmm, still not working, I am going to reinstall from scratch again, which files can I save so that I dont have to enter all my shows and movies again?

sixones commented 14 years ago

You can keep all the XML files from inside the data folder, these store your preferences and list of shows / movies.