CLOSED: Sickbeard

guerilla
Posts: 65
Joined: Thu Jan 13, 2011 3:11 pm

CLOSED: Sickbeard

Postby guerilla » Tue Nov 10, 2015 12:29 pm

I have just installed sickbeard from the app store on the latest version of amahi.

I am having a few problems, the first is that the server does not seem to be working at http://hda/tab/settings/servers. It always shows a red dot. It is possible to get sickbeard working by entering pythong SickBeard.py -d at the command line. But it isnt possible to start the server using the start it button.

The second problem in that it is not possible to upgrade sickbeard using the upgrade button in the app. It gives a permissions error. I have included the pertinent lines from the log.

Code: Select all

2015-11-10 19:23:35 ERROR CP Server Thread-9 :: Unable to write version file, update not complete: error 13 : Permission denied 2015-11-10 19:23:34 INFO CP Server Thread-9 :: Moving files from /var/hda/web-apps/sickbeard/html/sb-update/midgetspy-Sick-Beard-31ceaf1 to /var/hda/web-apps/sickbeard/html 2015-11-10 19:23:34 INFO CP Server Thread-9 :: Deleting file /var/hda/web-apps/sickbeard/html/sb-update/sb-update.tar 2015-11-10 19:23:34 INFO CP Server Thread-9 :: Extracting file /var/hda/web-apps/sickbeard/html/sb-update/sb-update.tar 2015-11-10 19:23:32 INFO CP Server Thread-9 :: Downloading update from 'https://github.com/midgetspy/Sick-Beard/tarball/master' 2015-11-10 19:23:32 INFO CP Server Thread-9 :: Creating update folder /var/hda/web-apps/sickbeard/html/sb-update before extracting
I think this error may be because I have started the python script meaning it isnt running with the permissions it expected, so this could be a problem caused by the server problem.

guerilla
Posts: 65
Joined: Thu Jan 13, 2011 3:11 pm

Re: Sickbeard

Postby guerilla » Tue Nov 10, 2015 12:32 pm

Code: Select all

[gunit@localhost html]$ ls -al total 4296 drwxrwxr-x 10 apache users 4096 Nov 10 19:24 . drwxrwxr-x 5 apache users 4096 Nov 10 18:50 .. drwxrwxr-x 2 apache users 4096 Nov 10 19:23 autoProcessTV drwxr-xr-x 2 gunit users 4096 Nov 10 19:07 cache -rw-r--r-- 1 gunit users 71680 Nov 10 19:24 cache.db drwxrwxr-x 5 apache users 4096 Nov 10 19:23 cherrypy -rw-r----- 1 gunit users 4757 Nov 10 19:13 config.ini -rw-rw-r-- 1 gunit users 4249 Nov 16 2014 CONTRIBUTING.md -rw-rw-r-- 1 gunit users 35132 Nov 16 2014 COPYING.txt drwxrwxr-x 6 apache users 4096 Nov 20 2013 data -rw-rw-r-- 1 gunit users 557 Nov 16 2014 .gitignore -rwxrwxr-x 1 gunit users 2042 Nov 16 2014 init.fedora -rwxrwxr-x 1 gunit users 2936 Nov 16 2014 init.freebsd -rw-rw-r-- 1 gunit users 2334 Nov 16 2014 init.solaris11 -rw-rw-r-- 1 gunit users 2119 Nov 16 2014 init.systemd -rwxrwxr-x 1 gunit users 4288 Nov 16 2014 init.ubuntu drwxrwxr-x 15 apache users 4096 Nov 10 19:23 lib drwxr-xr-x 2 gunit users 4096 Nov 10 19:07 Logs -rw-rw-r-- 1 gunit users 2656 Nov 16 2014 readme.md drwxrwxr-x 7 apache users 4096 Nov 10 19:23 sickbeard -rw-r----- 1 gunit users 4168704 Nov 10 19:13 sickbeard.db -rwxrwxr-x 1 gunit users 15016 Nov 16 2014 SickBeard.py drwxrwxr-x 2 apache users 4096 Nov 10 19:23 tests -rw-rw-r-- 1 gunit users 162 Nov 16 2014 .travis.yml -rw------- 1 apache users 40 Nov 10 18:57 version.txt
Th output from ls on the html directory may be helpful in diagnosis

guerilla
Posts: 65
Joined: Thu Jan 13, 2011 3:11 pm

Re: Sickbeard

Postby guerilla » Tue Nov 10, 2015 12:41 pm

Tried a reinstall and now I am unable to start sickbeard at all

Code: Select all

500 Internal Server Error The server encountered an unexpected condition which prevented it from fulfilling the request. Traceback (most recent call last): File "/var/hda/web-apps/sickbeard/html/cherrypy/_cprequest.py", line 660, in respond response.body = self.handler() File "/var/hda/web-apps/sickbeard/html/cherrypy/lib/encoding.py", line 193, in __call__ self.body = self.oldhandler(*args, **kwargs) File "/var/hda/web-apps/sickbeard/html/cherrypy/_cpdispatch.py", line 25, in __call__ return self.callable(*self.args, **self.kwargs) File "/var/hda/web-apps/sickbeard/html/sickbeard/webserve.py", line 1893, in index File "/var/hda/web-apps/sickbeard/html/sickbeard/webserve.py", line 122, in _munge t = PageTemplate(file="genericMessage.tmpl") File "/usr/lib64/python2.7/site-packages/Cheetah/Template.py", line 1010, in __unicode__ return getattr(self, mainMethName)() File "cheetah__var_hda_web_apps_sickbeard_html_data_interfaces_default_home_tmpl_1447184027_1_18430.py", line 107, in respond File "/var/hda/web-apps/sickbeard/html/sickbeard/db.py", line 152, in select sqlResults = self.action(query, args).fetchall() File "/var/hda/web-apps/sickbeard/html/sickbeard/db.py", line 129, in action sqlResult = self.connection.execute(query) OperationalError: no such table: tv_episodes Powered by CherryPy 3.2.0rc1

guerilla
Posts: 65
Joined: Thu Jan 13, 2011 3:11 pm

Re: Sickbeard

Postby guerilla » Tue Nov 10, 2015 12:51 pm

in the special instructions


Please edit the /etc/init.d/sickbeard file if you enable username and password in the sickbeard gui. Once installed go to http://sickbeard and click on the "Update Now" button to update to the latest version, wait about 2 mins and go back to http://sickbeard.

It isnt clear what i'm supposed to be editing

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Sickbeard

Postby bigfoot65 » Tue Nov 10, 2015 3:03 pm

First of all, the permissions in the /var/hda/web-apps/sickbeard/html should be apache:users for all files.

Are you using a user name and password for Sick Beard? If not or you don't need to, I would recommend leaving that alone.

Finally, since you installed, uninstalled, then reinstalled there my be some ghost processes running. A reboot after uninstall might be best before reinstall.

I will do a test install on a VM and see if I have issues. Last time I tested, everything was working fine. Is there any special manual configuration changes you made with Amahi or the app?
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Sickbeard

Postby bigfoot65 » Tue Nov 10, 2015 3:10 pm

I just did a manual test of Sick Beard and no issues. Did an update and all worked as expected. Our automated test system also indicated there was no issues.

Recommend you follow my guidance in the previous post and see if that clears things up. Also ensure you check /var/log/amahi-app-installer.log file for errors.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

guerilla
Posts: 65
Joined: Thu Jan 13, 2011 3:11 pm

Re: Sickbeard

Postby guerilla » Tue Nov 10, 2015 3:39 pm

I tried to use an ini and db file from a previous installation. These has a username and password. No real reason i need access outside the network so I'll look at removing them.

Having created my own web-app and manually installing sickbeard everything works.

I can't quite get to grips with the service command in fedora though. Is it essentially the same as ubuntu in that files need to go in /etc/initd/?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Sickbeard

Postby bigfoot65 » Tue Nov 10, 2015 3:50 pm

Ok, not sure why the Amahi app does not work for you unless it's because the files you added did not have proper ownership permissions.

Init scripts go in /etc/init.d but Fedora primarily uses systemd now so it's a bit different.

Do you still need assistance or can this be closed.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

guerilla
Posts: 65
Joined: Thu Jan 13, 2011 3:11 pm

Re: Sickbeard

Postby guerilla » Wed Nov 11, 2015 1:27 am

When I un-install with the dashboard is it creating and backups anywhere?

Are there any files it may be leaving behind?

I will investigate on my own further. I'm intrigued and would like to find out why for my own curiosity.

You can consider the thread closed after answering the backup question if you dont mind.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Sickbeard

Postby bigfoot65 » Wed Nov 11, 2015 4:46 am

Are there any files it may be leaving behind?
No. There is no backup routine in the Amahi 8 version.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: Google [Bot] and 11 guests