Project

General

Profile

Bug #2006

qBittorrent: Watchdog logs error and info to monit.log.

Added by Dixxhead over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Apps
Target version:
Start date:
03/15/2016
Due date:
% Done:

0%


Description

Hello,

while it is just a rather small bug, I'm sort of a perfectionist so maybe someone here may be able to fix this annoying little bug. When I choose to keep watchdog on my qbittorrent server, it adds a new error/info log every 30 seconds to monit.log.

[code][CET Mar 14 19:07:43] info : 'qbittorrent-nox' trying to restart
[CET Mar 14 19:07:43] info : 'qbittorrent-nox' start: /usr/bin/systemctl
[CET Mar 14 19:08:13] error : 'qbittorrent-nox' failed to start (exit status 0) -- no output
[CET Mar 14 19:08:43] error : 'qbittorrent-nox' process is not running
[CET Mar 14 19:08:43] info : 'qbittorrent-nox' trying to restart
[CET Mar 14 19:08:43] info : 'qbittorrent-nox' start: /usr/bin/systemctl
[CET Mar 14 19:09:13] error : 'qbittorrent-nox' failed to start (exit status 0) -- no output
[CET Mar 14 19:09:43] error : 'qbittorrent-nox' process is not running
[CET Mar 14 19:09:43] info : 'qbittorrent-nox' trying to restart
[CET Mar 14 19:09:43] info : 'qbittorrent-nox' start: /usr/bin/systemctl
[CET Mar 14 19:10:13] error : 'qbittorrent-nox' failed to start (exit status 0) -- no output
[/code]

However, qbittorrent does in fact work and run. Any idea what might be the cause of this?

Amahi 8 on F21.


Related issues

Related to platform - Bug #2007: App Server Feature New 03/16/2016

History

#1 Updated by Dixxhead over 3 years ago

  • Category set to Apps
  • Target version set to amahi-8

#2 Updated by bigfoot65 over 3 years ago

  • Status changed from New to Feedback
  • Assignee set to Dixxhead

Due to how the service is run, the app cannot use the Amahi service feature. It has been removed and recommend you uninstall/reinstall the app.

If the app needs to be stopped, started, or restarted it will have to be done via command line unfortunately.

systemctl start qbittorrent.nox
systemctl restart qbittorrent.nox
systemctl stop qbittorrent.nox

Please let us know if it works as expected.

#3 Updated by Dixxhead over 3 years ago

bigfoot65 wrote:

Due to how the service is run, the app cannot use the Amahi service feature. It has been removed and recommend you uninstall/reinstall the app.

If the app needs to be stopped, started, or restarted it will have to be done via command line unfortunately.
[...]

Please let us know if it works as expected.

Does that mean it will not show up in server window/start at boot anymore? Otherwhise I'd prefer just keeping watchdog off.

#4 Updated by bigfoot65 over 3 years ago

Yes it will not show in the Servers tab anymore.

You can install and configure the Monit Server Manager app to do the same thing. It allows you to add any service to it where you can start/stop/restart them and reports status.

You can configure it to send emails as well when a service goes down.

See https://www.amahi.org/apps/monit-service-manager for more info. It's BETA for Amahi 8. If you want to test we can give you access.

#5 Updated by Dixxhead over 3 years ago

bigfoot65 wrote:

Yes it will not show in the Servers tab anymore.

You can install and configure the Monit Server Manager app to do the same thing. It allows you to add any service to it where you can start/stop/restart them and reports status.

You can configure it to send emails as well when a service goes down.

See https://www.amahi.org/apps/monit-service-manager for more info. It's BETA for Amahi 8. If you want to test we can give you access.

Thanks for the quick replies!

I don't fancy loosing the qBittorrent server tab, so I still did not uninstall/reinstall.
In fact, disabling "watchdog" stops the error/info logs.

All the other functions seem to work just fine in the server tab (e.g. I can stop, restart and start the server just fine and it also reports the status correctly both on the WebUI aswell as with 'systemctl status qbittorrent-nox'). It's just that watchdog appears to think the server is down and tries to start it but can't (because it's already running).

------------------------------------------------------------------------
After boot

[root@localhost ~]# systemctl status qbittorrent-nox
? qbittorrent-nox.service - qBittorrent Daemon Service
Loaded: loaded (/usr/lib/systemd/system/qbittorrent-nox.service; enabled)
Active: active (running) since Wed 2016-03-16 22:04:57 CET; 32min ago
Process: 592 ExecStart=/usr/bin/qbittorrent-nox -d (code=exited, status=0/SUCCESS)
Main PID: 656 (qbittorrent-nox)
CGroup: /system.slice/qbittorrent-nox.service
??656 /usr/bin/qbittorrent-nox-bin -d

Stopped in Server Tab
[root@localhost ~]# systemctl status qbittorrent-nox
? qbittorrent-nox.service - qBittorrent Daemon Service
Loaded: loaded (/usr/lib/systemd/system/qbittorrent-nox.service; enabled)
Active: inactive (dead) since Wed 2016-03-16 22:38:19 CET; 4s ago
Process: 592 ExecStart=/usr/bin/qbittorrent-nox -d (code=exited, status=0/SUCCESS)
Main PID: 656 (code=exited, status=0/SUCCESS)
Started in Servertab

[root@localhost ~]# systemctl status qbittorrent-nox
? qbittorrent-nox.service - qBittorrent Daemon Service
Loaded: loaded (/usr/lib/systemd/system/qbittorrent-nox.service; enabled)
Active: active (running) since Wed 2016-03-16 22:38:39 CET; 4s ago
Process: 2557 ExecStart=/usr/bin/qbittorrent-nox -d (code=exited, status=0/SUCCESS)
Main PID: 2562 (qbittorrent-nox)
CGroup: /system.slice/qbittorrent-nox.service
??2562 /usr/bin/qbittorrent-nox-bin -d


Might be a smaller issue actually? Did you basicly change the installer to remove the application from the server tab? A better idea might be to default the watchdog to OFF.

Anyhow, I'd love to help out with testing and trying out the monit-service manager, it sounds like a really nice feature indeed.

#6 Updated by bigfoot65 over 3 years ago

It's your choice if you want to keep the app as is on your server.

Since the Amahi server feature cannot determine if the service is running or not, we cannot use the feature. There is no automated way to disable watchdog. This must be done manually.

Due to the inability to determine if the service is running or not, the use of the Server feature is not practical. The problem is based on the service being called qbittorrent-nox and Fedora sees it as qbittorrent-nox-bin. This is not good practice, but we cannot change how the app is coded.

Until this is corrected by the vendor or we find an automated solution for Amahi, it will not be part of the app.

Since this is resolved we will close.

#7 Updated by bigfoot65 over 3 years ago

  • Status changed from Feedback to Closed

Also available in: Atom