SOLVED: Deluge Down After Power Failure

burn913
Posts: 71
Joined: Sun Mar 09, 2014 12:02 pm

SOLVED: Deluge Down After Power Failure

Postby burn913 » Mon Oct 24, 2016 9:53 am

Hello,

Just had a short power failure here. My amahi server got back up and running no problem along with most of my apps. However, Deluge does not work after restarting my server. When navigating to my deluge URL, i get a 503 "The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later." I'm not sure what to do about this. I'd rather not have to uninstall and reinstall, but if push comes to shove, i can do that. Any ideas before i reinstall?

Thanks as always!

EDIT: even though Subsonic was working after the power came on, after a restart of my server, it isn't working any more either. a 503 error too.

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

Re: Deluge Down After Power Failure

Postby bigfoot65 » Mon Oct 24, 2016 11:01 am

Try the following as root (or precede with sudo)for deluge App:

Code: Select all

service deluge restart service deluge status
If it doesn't start, the second command should display what is wrong.

For subsonic App, try as root (or precede with sudo):

Code: Select all

systemctl restart subsonic systemctl status subsonic
Same here. If it does not start, the second command should indicate why.
ßîgƒσστ65
Applications Manager

burn913
Posts: 71
Joined: Sun Mar 09, 2014 12:02 pm

Re: Deluge Down After Power Failure

Postby burn913 » Mon Oct 24, 2016 11:05 am

Thanks, I tried to remember that command to restart the apps, but I had it slightly wrong. I'll try this out when I get home in a few hours and I'll post back here with the results.

burn913
Posts: 71
Joined: Sun Mar 09, 2014 12:02 pm

Re: Deluge Down After Power Failure

Postby burn913 » Mon Oct 24, 2016 2:13 pm

I restarted both Subsonic and Deluge, and still no luck.

This is what i got for Deluge:

Code: Select all

[burn913@localhost ~]$ sudo service deluge status ● deluge.service - SYSV: deluged is the Deulge bit torrent daemon, Loaded: loaded (/etc/rc.d/init.d/deluge) Active: active (running) since Mon 2016-10-24 19:07:36 EDT; 3min 47s ago Docs: man:systemd-sysv-generator(8) Process: 5087 ExecStop=/etc/rc.d/init.d/deluge stop (code=exited, status=0/SUCCESS) Process: 5114 ExecStart=/etc/rc.d/init.d/deluge start (code=exited, status=0/SUCCESS) CGroup: /system.slice/deluge.service └─5125 /usr/bin/python /bin/deluged -c /home/burn913/.deluge -p 58846 -l /home/burn913/.deluge/deluged.log Oct 24 19:07:36 localhost.localdomain deluge[5114]: File "/usr/lib/python2.7/site-packages/deluge/ui/web/server.py", line 662, in start_normal Oct 24 19:07:36 localhost.localdomain deluge[5114]: self.socket = reactor.listenTCP(self.port, self.site) Oct 24 19:07:36 localhost.localdomain deluge[5114]: File "/usr/lib64/python2.7/site-packages/twisted/internet/posixbase.py", line 478, in listenTCP Oct 24 19:07:36 localhost.localdomain deluge[5114]: p.startListening() Oct 24 19:07:36 localhost.localdomain deluge[5114]: File "/usr/lib64/python2.7/site-packages/twisted/internet/tcp.py", line 984, in startListening Oct 24 19:07:36 localhost.localdomain deluge[5114]: raise CannotListenError(self.interface, self.port, le) Oct 24 19:07:36 localhost.localdomain deluge[5114]: twisted.internet.error.CannotListenError: Couldn't listen on any:6881: [Errno 98] Address already in use. Oct 24 19:08:36 localhost.localdomain systemd[1]: Started SYSV: deluged is the Deulge bit torrent daemon,. Oct 24 19:09:36 localhost.localdomain systemd[1]: Started SYSV: deluged is the Deulge bit torrent daemon,. Oct 24 19:10:37 localhost.localdomain systemd[1]: Started SYSV: deluged is the Deulge bit torrent daemon,. ● deluge.service - SYSV: deluged is the Deulge bit torrent daemon, Loaded: loaded (/etc/rc.d/init.d/deluge) Active: active (running) since Mon 2016-10-24 19:07:36 EDT; 3min 47s ago Docs: man:systemd-sysv-generator(8) Process: 5087 ExecStop=/etc/rc.d/init.d/deluge stop (code=exited, status=0/SUCCESS) Process: 5114 ExecStart=/etc/rc.d/init.d/deluge start (code=exited, status=0/SUCCESS) CGroup: /system.slice/deluge.service └─5125 /usr/bin/python /bin/deluged -c /home/burn913/.deluge -p 58846 -l /home/burn913/.deluge/deluged.log Oct 24 19:07:36 localhost.localdomain deluge[5114]: File "/usr/lib/python2.7/site-packages/deluge/ui/web/server.py", line 662, in start_normal Oct 24 19:07:36 localhost.localdomain deluge[5114]: self.socket = reactor.listenTCP(self.port, self.site) Oct 24 19:07:36 localhost.localdomain deluge[5114]: File "/usr/lib64/python2.7/site-packages/twisted/internet/posixbase.py", line 478, in listenTCP Oct 24 19:07:36 localhost.localdomain deluge[5114]: p.startListening() Oct 24 19:07:36 localhost.localdomain deluge[5114]: File "/usr/lib64/python2.7/site-packages/twisted/internet/tcp.py", line 984, in startListening Oct 24 19:07:36 localhost.localdomain deluge[5114]: raise CannotListenError(self.interface, self.port, le) Oct 24 19:07:36 localhost.localdomain deluge[5114]: twisted.internet.error.CannotListenError: Couldn't listen on any:6881: [Errno 98] Address already in use. Oct 24 19:08:36 localhost.localdomain systemd[1]: Started SYSV: deluged is the Deulge bit torrent daemon,. Oct 24 19:09:36 localhost.localdomain systemd[1]: Started SYSV: deluged is the Deulge bit torrent daemon,. Oct 24 19:10:37 localhost.localdomain systemd[1]: Started SYSV: deluged is the Deulge bit torrent daemon,.
And for Subsonic:

Code: Select all

[burn913@localhost ~]$ sudo systemctl status subsonic ● subsonic.service - LSB: Subsonic daemon Loaded: loaded (/etc/rc.d/init.d/subsonic) Active: active (exited) since Mon 2016-10-24 19:07:52 EDT; 4min 42s ago Docs: man:systemd-sysv-generator(8) Process: 5179 ExecStop=/etc/rc.d/init.d/subsonic stop (code=exited, status=0/SUCCESS) Process: 5195 ExecStart=/etc/rc.d/init.d/subsonic start (code=exited, status=0/SUCCESS) Oct 24 19:07:52 localhost.localdomain systemd[1]: Starting LSB: Subsonic daemon... Oct 24 19:07:52 localhost.localdomain subsonic[5195]: Starting subsonic ... Oct 24 19:07:52 localhost.localdomain su[5202]: (to burn913) root on none Oct 24 19:07:52 localhost.localdomain subsonic[5195]: Started Subsonic [PID 5211, /var/subsonic/subsonic_sh.log] Oct 24 19:07:52 localhost.localdomain systemd[1]: Started LSB: Subsonic daemon.
I don't see anything wrong at first glance, but I also don't really know what i'm looking at. Still getting a 503 for each...

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

Re: Deluge Down After Power Failure

Postby bigfoot65 » Mon Oct 24, 2016 5:26 pm

Ok I see errors with deluge App. Not sure why, but the power outage might have damaged some files.

As for subsonic App, don't see any errors so not sure why it won't work.

Try clearing your browser cache.
ßîgƒσστ65
Applications Manager

burn913
Posts: 71
Joined: Sun Mar 09, 2014 12:02 pm

Re: Deluge Down After Power Failure

Postby burn913 » Mon Oct 24, 2016 5:40 pm

Well that's a bummer. Not sure I knew that was even possible. Would you recommend reinstalling the apps? Do you think amahi itself is intact?

I've already tried on multiple browser and computers. Nothing different.

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

Re: Deluge Down After Power Failure

Postby bigfoot65 » Mon Oct 24, 2016 6:29 pm

Well that's a bummer. Not sure I knew that was even possible.
Anytime a server is not shut down gracefully, there is a chance of data loss. It could have been writing something to disk and sudden loss of power will corrupt files. That's why a UPS is important for servers. If power goes out, there is enough time for a graceful shutdown.
Would you recommend reinstalling the apps? Do you think amahi itself is intact?
You can try uninstalling, then reinstalling the apps. I would do a reboot before reinstalling just to ensure things are clean.

As for whether Amahi is damaged, you can only watch for issues. If something that worked stops, then it likely is affected as well. If there was damage to the OS drive or files on that drive, good chance Amahi got it too.
ßîgƒσστ65
Applications Manager

burn913
Posts: 71
Joined: Sun Mar 09, 2014 12:02 pm

Re: Deluge Down After Power Failure

Postby burn913 » Tue Oct 25, 2016 2:31 am

The hard drive is only a couple of months old so I really hope it's not that.

I've reinstalled the apps and they seem to be functioning normally. I'll keep an eye out for any odd behavior. Is there an easy way to test for damage to the drive?

Any recommendations for a UPS? I'd like to keep it simple and cheap if possible.

Thanks for your help.

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

Re: Deluge Down After Power Failure

Postby bigfoot65 » Tue Oct 25, 2016 4:41 am

I've reinstalled the apps and they seem to be functioning normally.
Good to hear. Odd how they stopped working, then the uninstall/reinstall fixed it.
Is there an easy way to test for damage to the drive?
There are some command line utilities you can run to check. I don't recall what they are, but yo should be able to find guidance on the internet.
Any recommendations for a UPS?
Pretty much any brand works. I like APC myself. You can typically get one for around $40.

Will mark this as solved.
ßîgƒσστ65
Applications Manager

burn913
Posts: 71
Joined: Sun Mar 09, 2014 12:02 pm

Re: SOLVED: Deluge Down After Power Failure

Postby burn913 » Tue Oct 25, 2016 6:24 am

I found this interesting thread from earlier this year: viewtopic.php?f=16&t=6406&p=36361&hilit=ups#p36361

Since I don't see a follow up to the other user's installation, I'm guessing that it went ok.

If I got an APC UPS with the ability to automatically shut down my computer, I see this manual for installing and configuring apcupsd http://www.apcupsd.org/manual/manual.ht ... ng-apcupsd. But I think this manual assumes some knowledge that I don't have.

I haven't yet found an easy to use, line by line guide to install and configure apcupsd on fedora.

Thanks for your help

Who is online

Users browsing this forum: No registered users and 2 guests