RESOLVED: A7, SABnzbd just stopped working without error

TeamTherrien
Posts: 11
Joined: Sun Feb 09, 2014 12:14 pm

RESOLVED: A7, SABnzbd just stopped working without error

Postby TeamTherrien » Sun Jun 15, 2014 2:22 pm

SAB had been setup and working for months. Maybe it had to do with an unsafe shutdown of the server, the power cord was accidentally pulled.

When I try to send it a download, it just stopped working.
Went to site, got an amahi.net error. Went to another amahi.net application I had and that worked.
Control panel works.

Service status is doesn't show error, but does look a little odd

Code: Select all

systemctl status sabnzbd.service sabnzbd.service - SABnzbd Plus server Loaded: loaded (/usr/lib/systemd/system/sabnzbd.service; enabled) Active: activating (start) since Sun 2014-06-15 13:54:02 PDT; 1min 13s ago Process: 16140 ExecStart=/var/hda/web-apps/sabnzbdplus/html/SABnzbd.py --browser 0 --daemon --pid /var/run/sabnzbd/ --config-file /var/hda/web-apps/sabnzbdplus/html/sabnzbd.ini (code=exited, status=0/SUCCESS) Process: 16137 ExecStartPre=/usr/bin/chown -R apache:users /var/run/sabnzbd/ (code=exited, status=0/SUCCESS) Process: 16135 ExecStartPre=/usr/bin/mkdir -p /var/run/sabnzbd/ (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/sabnzbd.service └─16147 /usr/bin/python -OO /var/hda/web-apps/sabnzbdplus/html/SABnzbd.py --browser 0 --daemon --pid /var/run/sabnzbd/ --config-file /var/hda/web-apps/sabnzbdplus/html/sabnzbd.ini Jun 15 13:54:02 new-host.home systemd[1]: PID file /var/run/sabnzbd/sabnzbd-25915.pid not readable (yet?) after start.
It says the service has been started for about a minute and it can't read the pid.
I go to the path for the PID and the file I see is not "sabnzbd-25915.pid, but sabnzbd-8080.pid.
Sometimes when do an ls -l, the dir is empty, sometimes the sabnzbd-8080.pid is there. So it keeps getting recreated/removed. Create time confirms that.

The other clue is in /var/hda/web-apps/sabnzbdplus/html/logs/
No errors listed, but the logs had blown up starting last weekend (around 6/7).
It's always a warning followed by line of INFO.

Code: Select all

2014-06-15 14:09:32,020::WARNING::[__init__:169] Signal 15 caught, saving and exiting... 2014-06-15 14:09:32,020::INFO::[nzbqueue:211] Saving queue 2014-06-15 14:09:32,020::INFO::[__init__:904] Saving data for queue9.sab in /var/hda/web-apps/sabnzbdplus/html/admin/queue9.sab 2014-06-15 14:09:32,021::INFO::[__init__:904] Saving data for totals9.sab in /var/hda/web-apps/sabnzbdplus/html/admin/totals9.sab 2014-06-15 14:09:32,021::INFO::[__init__:904] Saving data for rss_data.sab in /var/hda/web-apps/sabnzbdplus/html/admin/rss_data.sab 2014-06-15 14:09:32,022::INFO::[__init__:904] Saving data for bookmarks.sab in /var/hda/web-apps/sabnzbdplus/html/admin/bookmarks.sab 2014-06-15 14:09:32,022::INFO::[__init__:904] Saving data for watched_data.sab in /var/hda/web-apps/sabnzbdplus/html/admin/watched_data.sab 2014-06-15 14:09:32,022::INFO::[postproc:84] Saving postproc queue 2014-06-15 14:09:32,022::INFO::[__init__:904] Saving data for postproc1.sab in /var/hda/web-apps/sabnzbdplus/html/admin/postproc1.sab 2014-06-15 14:10:02,244::INFO::[SABnzbd:1256] -------------------------------- 2014-06-15 14:10:02,244::INFO::[SABnzbd:1257] SABnzbd.py-0.7.16 (rev=14f39a21e3aa063d128f16505032e759c7ba3265) 2014-06-15 14:10:02,244::INFO::[SABnzbd:1269] Platform = posix 2014-06-15 14:10:02,244::INFO::[SABnzbd:1270] Python-version = 2.7.5 (default, Jul 8 2013, 09:48:59) [GCC 4.8.1 20130603 (Red Hat 4.8.1-1)] 2014-06-15 14:10:02,245::INFO::[SABnzbd:1271] Arguments = /var/hda/web-apps/sabnzbdplus/html/SABnzbd.py --browser 0 --daemon --pid /var/run/sabnzbd/ --config-file /var/hda/web-apps/sabnzbdplus/html/sabnzbd.ini 2014-06-15 14:10:02,245::INFO::[SABnzbd:1284] Read INI file /var/hda/web-apps/sabnzbdplus/html/sabnzbd.ini 2014-06-15 14:10:02,246::INFO::[__init__:928] Loading data for bookmarks.sab from /var/hda/web-apps/sabnzbdplus/html/admin/bookmarks.sab 2014-06-15 14:10:02,246::INFO::[__init__:928] Loading data for rss_data.sab from /var/hda/web-apps/sabnzbdplus/html/admin/rss_data.sab 2014-06-15 14:10:02,247::INFO::[__init__:928] Loading data for totals9.sab from /var/hda/web-apps/sabnzbdplus/html/admin/totals9.sab 2014-06-15 14:10:02,247::INFO::[postproc:90] Loading postproc queue 2014-06-15 14:10:02,247::INFO::[__init__:928] Loading data for postproc1.sab from /var/hda/web-apps/sabnzbdplus/html/admin/postproc1.sab 2014-06-15 14:10:02,248::INFO::[__init__:928] Loading data for queue9.sab from /var/hda/web-apps/sabnzbdplus/html/admin/queue9.sab 2014-06-15 14:10:02,248::INFO::[__init__:928] Loading data for watched_data.sab from /var/hda/web-apps/sabnzbdplus/html/admin/watched_data.sab 2014-06-15 14:10:02,249::INFO::[scheduler:172] Setting schedule for midnight BPS reset 2014-06-15 14:10:02,249::INFO::[downloader:211] Resuming 2014-06-15 14:10:02,256::INFO::[__init__:330] All processes started 2014-06-15 14:10:02,256::INFO::[SABnzbd:334] Web dir is /var/hda/web-apps/sabnzbdplus/html/interfaces/Plush 2014-06-15 14:10:02,257::INFO::[SABnzbd:334] Web dir is /var/hda/web-apps/sabnzbdplus/html/interfaces/Config 2014-06-15 14:10:02,265::INFO::[SABnzbd:463] _yenc module... found! 2014-06-15 14:10:02,265::INFO::[SABnzbd:471] par2 binary... found (/usr/bin/par2) 2014-06-15 14:10:02,265::INFO::[SABnzbd:479] unrar binary... found (/usr/bin/unrar) 2014-06-15 14:10:02,265::INFO::[SABnzbd:484] unzip binary... found (/usr/bin/unzip) 2014-06-15 14:10:02,265::INFO::[SABnzbd:490] nice binary... found (/usr/bin/nice) 2014-06-15 14:10:02,265::INFO::[SABnzbd:494] ionice binary... found (/usr/bin/ionice) 2014-06-15 14:10:02,265::INFO::[SABnzbd:499] pyOpenSSL... found (True) 2014-06-15 14:10:02,266::INFO::[SABnzbd:1483] Starting web-interface on 127.0.0.1:8080 2014-06-15 14:10:02,267::INFO::[_cplogging:55] [15/Jun/2014:14:10:02] ENGINE Bus STARTING 2014-06-15 14:10:02,269::INFO::[_cplogging:55] [15/Jun/2014:14:10:02] ENGINE Started monitor thread '_TimeoutMonitor'. 2014-06-15 14:10:02,371::INFO::[_cplogging:55] [15/Jun/2014:14:10:02] ENGINE Serving on 127.0.0.1:8080 2014-06-15 14:10:02,371::INFO::[_cplogging:55] [15/Jun/2014:14:10:02] ENGINE Bus STARTED 2014-06-15 14:10:03,042::INFO::[SABnzbd:1552] Starting SABnzbd.py-0.7.16 2014-06-15 14:10:03,044::INFO::[dirscanner:274] Dirscanner starting up 2014-06-15 14:10:03,044::INFO::[urlgrabber:77] URLGrabber starting up
For the most part this repeats every 2 minutes. I see spans of time where it's further in between, but at least while I'm actively trying to use it, about every 2-3 minutes.

So any clues as why the pid isn't matching what it's looking for? Is that the cause or the symptom of the issue.

Also wanted to note that I had purhcased this through the amahi store, then later after being prompted in app about an upgrade, I upgraded. I don't recall if the upgrade is standard source and if that's not compatable with the amahi version I had. It didn't complain about it and I thought it was working afterward.

Help is much appreciated! I tried to troubleshoot and it seems a little out reach

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

Re: A7, SABnzbd just stopped working without actual error

Postby bigfoot65 » Sun Jun 15, 2014 5:12 pm

Also wanted to note that I had purhcased this through the amahi store, then later after being prompted in app about an upgrade, I upgraded. I don't recall if the upgrade is standard source and if that's not compatable with the amahi version I had. It didn't complain about it and I thought it was working afterward.
The upgrade you performed is not compatible with the Amahi app version. It's best if you uninstall, then reinstall the app from the Amahi store.

The Amahi app uses a different port and the service is specifically configured for Amahi. By doing the upgrade from the app, those were overwritten and changed thus breaking 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

TeamTherrien
Posts: 11
Joined: Sun Feb 09, 2014 12:14 pm

Re: A7, SABnzbd just stopped working without actual error

Postby TeamTherrien » Sun Jun 15, 2014 11:09 pm

Okay, I'll try that today. May be a great easy fix :)
Thank you very much :)

SABnzbd within the application was telling me inside of the web application that there was an update available, so I assumed it was ok.

Before I do this (likely in about 20h), is there a particular recommended way to handle an uninstall/reinstall without loosing all of my settings? Will it just work or do I need to back up a certain folder?

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

Re: A7, SABnzbd just stopped working without actual error

Postby bigfoot65 » Mon Jun 16, 2014 5:11 am

That must be a new feature. I don't recall seeing that option in past versions. When you uninstall, your configuration file is backed up in the Newsgroups share. Upon install, the app will look there for an existing file and use it if it exists.

Please let us know how it goes.
ßîgƒσστ65
Applications Manager

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

TeamTherrien
Posts: 11
Joined: Sun Feb 09, 2014 12:14 pm

Re: A7, SABnzbd just stopped working without actual error

Postby TeamTherrien » Mon Jun 16, 2014 11:57 pm

No love.

through HDA I uninstalled then reinstalled. Absolutely no change.

Uninstalled again and started looking for files left behind and didn't really find much of anything.

Looked in the ini file on the newsgroup share and noticed it had the port set to 8080. Changed that to 25915 (the pid it was looking for when the pid file was 8080).

Installed.

Now for service I get this message:

Code: Select all

systemctl status sabnzbd.service sabnzbd.service - SABnzbd Plus server Loaded: loaded (/usr/lib/systemd/system/sabnzbd.service; enabled) Active: active (running) since Mon 2014-06-16 23:17:23 PDT; 4min 37s ago Main PID: 21930 (SABnzbd.py) CGroup: name=systemd:/system/sabnzbd.service └─21930 /usr/bin/python -OO /var/hda/web-apps/sabnzbdplus/html/SABnzbd.py --browser 0 --daemon --pid /var/run/sabnzbd/ --config-file /var/hda/web-apps/sabnzbdplus/html/sabnzbd.ini Jun 16 23:17:23 new-host.home systemd[1]: PID file /var/run/sabnzbd/sabnzbd-25915.pid not readable (yet?) after start. Jun 16 23:17:23 new-host.home systemd[1]: Started SABnzbd Plus server. Jun 16 23:17:28 new-host.home systemd[1]: Started SABnzbd Plus server.
First, it's nice to see it above 2min.
Second, the file it's looking for is there... but not readable?

sudo vi /var/run/sabnzbd/sabnzbd-25915.pid
the only text in there is 21930. sudo is needed, otherwise permission is denied.

-rw------- 1 apache users 6 Jun 16 23:17 sabnzbd-25915.pid

Figured my ini was hosed. I copied it off, deleted it and reinstalled again.

This time it created the pid with the proper port (got the port from the fresh ini file), but still get the message that the pid is not readable, though the service seems to be running.

Code: Select all

systemctl status sabnzbd.service sabnzbd.service - SABnzbd Plus server Loaded: loaded (/usr/lib/systemd/system/sabnzbd.service; enabled) Active: active (running) since Mon 2014-06-16 23:45:56 PDT; 2min 24s ago Process: 23952 ExecStart=/var/hda/web-apps/sabnzbdplus/html/SABnzbd.py --browser 0 --daemon --pid /var/run/sabnzbd/ --config-file /var/hda/web-apps/sabnzbdplus/html/sabnzbd.ini (code=exited, status=0/SUCCESS) Process: 23950 ExecStartPre=/usr/bin/chown -R apache:users /var/run/sabnzbd/ (code=exited, status=0/SUCCESS) Process: 23947 ExecStartPre=/usr/bin/mkdir -p /var/run/sabnzbd/ (code=exited, status=0/SUCCESS) Main PID: 23958 (SABnzbd.py) CGroup: name=systemd:/system/sabnzbd.service └─23958 /usr/bin/python -OO /var/hda/web-apps/sabnzbdplus/html/SABnzbd.py --browser 0 --daemon --pid /var/run/sabnzbd/ --config-file /var/hda/web-apps/sabnzbdplus/html/sabnzbd.ini Jun 16 23:45:55 new-host.home systemd[1]: PID file /var/run/sabnzbd/sabnzbd-25915.pid not readable (yet?) after start. Jun 16 23:45:56 new-host.home systemd[1]: Started SABnzbd Plus server.
So the service isn't booting every 2 minutes. Thats good.

Aside from this line about the pid not being readable, I can't find any indication of things not working correctly in the logs.
http://sabnzbdplus.amahi.net/ doesn't work still, but other urls for applications on amahi.net that I have installed work, so it's not that the dns isn't working...

Any thoughts?

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

Re: A7, SABnzbd just stopped working without actual error

Postby bigfoot65 » Tue Jun 17, 2014 8:08 am

Try restarting the service via the Dashboard servers tab. That should correct the PID issue.

As for the link, some have experienced problems in the past with ProxyPass directive that it uses.

You can then try the following as root user:
1. Edit /etc/httpd/conf.d/####-sabnzbdplus.conf
2. Comment out the following lines (add #):
3. Uncomment the following lines (remove #):
#RewriteEngine On
#RewriteCond %{SERVER_PORT} 80
#RewriteRule (.*) http://%{HTTP_HOST}:25915/sabnzbd/ [R,L]
4. Restart httpd by doing

Code: Select all

systemctl restart httpd.service
5. Clear your browser cache.
6. Access the dashboard and try the link now. It should work, but will now show the Port at the end of the URL.

Please report back if this helps.
ßîgƒσστ65
Applications Manager

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

TeamTherrien
Posts: 11
Joined: Sun Feb 09, 2014 12:14 pm

Re: A7, SABnzbd just stopped working without actual error

Postby TeamTherrien » Thu Jun 19, 2014 7:29 pm

No .htaccess file found.

I followed the rest of your steps and it worked like a champ!

-- Edit

Oh and in case it helps someone, I had a different path for my conf.
/etc/httpd/conf.d/####-sabnzbdplus.conf

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

Re: A7, SABnzbd just stopped working without actual error

Postby bigfoot65 » Fri Jun 20, 2014 3:35 am

Good to hear. Sorry, made a few typos in the guidance above. I have corrected them for the correct path.
ßîgƒσστ65
Applications Manager

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

TeamTherrien
Posts: 11
Joined: Sun Feb 09, 2014 12:14 pm

Re: RESOLVED: A7, SABnzbd just stopped working without error

Postby TeamTherrien » Fri Jun 20, 2014 8:39 am

Again thank you very much :)

A tip that may help someone:
Restarting through the SABnzbd page itself sometimes doesn't bring the site back up.
So far, doing the service reset through the Amahi dashboard has always fixed this so far :)

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

Re: RESOLVED: A7, SABnzbd just stopped working without error

Postby bigfoot65 » Fri Jun 20, 2014 10:44 am

Thanks for the tip. I have seen that happen occasionally. Sometimes restart through the app works too.
ßî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: No registered users and 7 guests