SOLVED: Deluge Down After Power Failure

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

Re: SOLVED: Deluge Down After Power Failure

Postby bigfoot65 » Tue Oct 25, 2016 7:02 am

I haven't yet found an easy to use, line by line guide to install and configure apcupsd on fedora.
The UPS setup guidance in the wiki might help. There should be something out on the internet to help as well.

Keep in mind, these sorts of modifications to the HDA are considered for advanced users. Running a Linux server is not something that is straight forward. The learning curve is steep for some. I always recommend users get more familiar with Linux.
ßî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 7:13 am

Ok, I think I'll punt for now. Past power failures haven't caused this problem, so hopefully future ones won't be a problem either. I have it on a surge protector, so that should help somewhat I hope.

Thanks

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

Re: SOLVED: Deluge Down After Power Failure

Postby bigfoot65 » Tue Oct 25, 2016 8:45 am

Understand.

BTW, having the server hooked into an UPS is beneficial regardless if it will be integrated to shut down the machine. If you ever have a brief power loss (5 minutes or less), the server will remain running.

Without it, it will shutdown hard. This can cause file corruption as well as hardware damage. I would recommend at least keeping it plugged into an UPS. It's cheaper than having to replace the hardware or time needed to rebuild a machine.
ßî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 9:11 am

This is a good point. I've lived over 5 years in one place, and have only had one power outage more than 5 minutes. So even having a UPS without the automatic shutdown capability would be better than nothing?

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

Re: SOLVED: Deluge Down After Power Failure

Postby bigfoot65 » Tue Oct 25, 2016 9:22 am

So even having a UPS without the automatic shutdown capability would be better than nothing?
Yes. It will save you one day and you will be glad you had it.

We have brown outs occasionally and the power goes off for 2-3 seconds, but that is long enough to shut off the computer in a bad way. So I have them on all my machines and no issues.
ßîgƒσστ65
Applications Manager

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

Re: SOLVED: Deluge Down After Power Failure

Postby burn913 » Thu Oct 27, 2016 11:01 am

Here's an interesting update on this. I got my new ~$40 UPS today. I had always had my server plugged into a surge protector, which in turn was plugged into an outlet in the closet where it is all located. I replaced the old surge protector with my new UPS and the UPS gives a warning that there is faulty building wiring. Hmmm. I then tried in two other outlets and that warning was not triggered on the UPS. I wonder if that faulty outlet caused an issue when the power failed. Hopefully my surge protector minimized any potential damage.

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

Re: SOLVED: Deluge Down After Power Failure

Postby bigfoot65 » Thu Oct 27, 2016 1:45 pm

I have the same issue in my house. Most of the plugs are 3-prong grounded, but not wired that way.

Never had any problems, so hopefully you won't either.
ßîgƒσστ65
Applications Manager

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

Re: SOLVED: Deluge Down After Power Failure

Postby burn913 » Thu Oct 27, 2016 2:38 pm

Some bad news related to this thread. After my restart of my server (which i did properly) in order to do the UPS, Deluge is no longer working. I get the same 503 error as before. Subsonic seems to be working normally. I restarted Deluge with no luck. This is what the service deluge status reads:

Do you see any problems that I can fix so that I don't have to keep reinstalling it?

Code: Select all

[burn913@localhost ~]$ 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 Thu 2016-10-27 17:33:43 EDT; 32s ago Docs: man:systemd-sysv-generator(8) Process: 5221 ExecStop=/etc/rc.d/init.d/deluge stop (code=exited, status=0/SUCCESS) Process: 5243 ExecStart=/etc/rc.d/init.d/deluge start (code=exited, status=0/SUCCESS) CGroup: /system.slice/deluge.service └─5255 /usr/bin/python /bin/deluged -c /home/burn913/.deluge -p 58846 -l /home/burn913/.deluge/deluged.log Oct 27 17:33:43 localhost.localdomain deluge[5243]: deluge_web.start() Oct 27 17:33:43 localhost.localdomain deluge[5243]: File "/usr/lib/python2.7/site-packages/deluge/ui/web/server.py", line 654, in start Oct 27 17:33:43 localhost.localdomain deluge[5243]: self.start_normal() Oct 27 17:33:43 localhost.localdomain deluge[5243]: File "/usr/lib/python2.7/site-packages/deluge/ui/web/server.py", line 662, in start_normal Oct 27 17:33:43 localhost.localdomain deluge[5243]: self.socket = reactor.listenTCP(self.port, self.site) Oct 27 17:33:43 localhost.localdomain deluge[5243]: File "/usr/lib64/python2.7/site-packages/twisted/internet/posixbase.py", line 478, in listenTCP Oct 27 17:33:43 localhost.localdomain deluge[5243]: p.startListening() Oct 27 17:33:43 localhost.localdomain deluge[5243]: File "/usr/lib64/python2.7/site-packages/twisted/internet/tcp.py", line 984, in startListening Oct 27 17:33:43 localhost.localdomain deluge[5243]: raise CannotListenError(self.interface, self.port, le) Oct 27 17:33:43 localhost.localdomain deluge[5243]: twisted.internet.error.CannotListenError: Couldn't listen on any:6881: [Errno 98] Address already in use. ● deluge.service - SYSV: deluged is the Deulge bit torrent daemon, Loaded: loaded (/etc/rc.d/init.d/deluge) Active: active (running) since Thu 2016-10-27 17:33:43 EDT; 32s ago Docs: man:systemd-sysv-generator(8) Process: 5221 ExecStop=/etc/rc.d/init.d/deluge stop (code=exited, status=0/SUCCESS) Process: 5243 ExecStart=/etc/rc.d/init.d/deluge start (code=exited, status=0/SUCCESS) CGroup: /system.slice/deluge.service └─5255 /usr/bin/python /bin/deluged -c /home/burn913/.deluge -p 58846 -l /home/burn913/.deluge/deluged.log Oct 27 17:33:43 localhost.localdomain deluge[5243]: deluge_web.start() Oct 27 17:33:43 localhost.localdomain deluge[5243]: File "/usr/lib/python2.7/site-packages/deluge/ui/web/server.py", line 654, in start Oct 27 17:33:43 localhost.localdomain deluge[5243]: self.start_normal() Oct 27 17:33:43 localhost.localdomain deluge[5243]: File "/usr/lib/python2.7/site-packages/deluge/ui/web/server.py", line 662, in start_normal Oct 27 17:33:43 localhost.localdomain deluge[5243]: self.socket = reactor.listenTCP(self.port, self.site) Oct 27 17:33:43 localhost.localdomain deluge[5243]: File "/usr/lib64/python2.7/site-packages/twisted/internet/posixbase.py", line 478, in listenTCP Oct 27 17:33:43 localhost.localdomain deluge[5243]: p.startListening() Oct 27 17:33:43 localhost.localdomain deluge[5243]: File "/usr/lib64/python2.7/site-packages/twisted/internet/tcp.py", line 984, in startListening Oct 27 17:33:43 localhost.localdomain deluge[5243]: raise CannotListenError(self.interface, self.port, le) Oct 27 17:33:43 localhost.localdomain deluge[5243]: twisted.internet.error.CannotListenError: Couldn't listen on any:6881: [Errno 98] Address already in use.
Also, if i go into deluge-console, i get:

Code: Select all

Failed to connect to 127.0.0.1:58846 with reason: Password does not match
I have no idea what password doesn't match what.
Thanks again for your help

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

Re: SOLVED: Deluge Down After Power Failure

Postby bigfoot65 » Thu Oct 27, 2016 2:53 pm

Please submit a bug report.

Best to try and diagnose the issue there.
ßîgƒσστ65
Applications Manager

Who is online

Users browsing this forum: No registered users and 5 guests