TL;DR: POSTing to the /upload endpoint is returning a 400 error, but nothing in the logs.
On info-level logging, I see no additional log items when I attempt to upload a torrent
file.
Info-level logs for deluge-web:
Code: Select all
/usr/bin/deluge-web:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import load_entry_point
11:03:13 [INFO ][deluge.ui.ui:68 ] Deluge ui 2.1.1
11:03:13 [INFO ][deluge.ui.ui:70 ] Starting web ui..
11:03:13 [INFO ][deluge.i18n.util :101 ] Setting up translations from /var/lib/deluge/.local/lib/python3.8/site-packages/deluge/i18n
11:03:13 [INFO ][deluge.ui.web.server :731 ] Starting webui server at PID 19375
11:03:13 [INFO ][deluge.ui.web.server :746 ] Serving at http://0.0.0.0:8112/
11:03:36 [INFO ][deluge.pluginmanagerbase :189 ] Plugin Label enabled...
11:03:36 [INFO ][deluge.pluginmanagerbase :189 ] Plugin Scheduler enabled...
Info-level logs for deluged:
Code: Select all
/usr/bin/deluged:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import load_entry_point
11:03:04 [INFO ][deluge.core.daemon :91 ] Deluge daemon 2.1.1
11:03:04 [INFO ][deluge.core.core :334 ] Successfully loaded session.state: /var/lib/deluge/.config/deluge/session.state
11:03:04 [INFO ][deluge.core.core :334 ] Successfully loaded session.state: /var/lib/deluge/.config/deluge/session.state.bak
11:03:04 [INFO ][deluge.core.alertmanager :138 ] Alert Queue Size set to 10000
11:03:04 [INFO ][deluge.core.rpcserver :410 ] Starting DelugeRPC server :58846
11:03:04 [INFO ][deluge.core.daemon :151 ] Deluge daemon starting...
11:03:04 [WARNING ][deluge.core.preferencesmanager:465 ] GeoIP Unavailable: 'NoneType' object is not callable
11:03:04 [INFO ][deluge_label.core :78 ] *** Start Label plugin ***
11:03:04 [INFO ][deluge.pluginmanagerbase :189 ] Plugin Label enabled...
11:03:04 [INFO ][deluge.pluginmanagerbase :189 ] Plugin Scheduler enabled...
11:03:04 [INFO ][deluge.core.authmanager :224 ] Opening auth for load: /var/lib/deluge/.config/deluge/auth
11:03:04 [INFO ][deluge.core.authmanager :232 ] Successfully loaded auth: /var/lib/deluge/.config/deluge/auth
11:03:04 [INFO ][deluge.core.torrentmanager :811 ] Loading torrent state: /var/lib/deluge/.config/deluge/state/torrents.state
11:03:04 [INFO ][deluge.core.torrentmanager :824 ] Successfully loaded /var/lib/deluge/.config/deluge/state/torrents.state
11:03:04 [INFO ][deluge.core.torrentmanager :1071] Opening torrents.fastresume for load: /var/lib/deluge/.config/deluge/state/torrents.fastresume
11:03:04 [INFO ][deluge.core.torrentmanager :1082] Successfully loaded torrents.fastresume: /var/lib/deluge/.config/deluge/state/torrents.fastresume
11:03:04 [INFO ][deluge.core.torrentmanager :673 ] Torrent REDACTED from user "localclient" loaded
11:03:04 [INFO ][deluge.core.torrentmanager :673 ] Torrent REDACTED from user "flexget" loaded
11:03:04 [INFO ][deluge.core.torrentmanager :887 ] Finished loading 2 torrents in 0:00:00.290553
11:03:07 [INFO ][deluge.core.rpcserver :179 ] Deluge Client connection made from: 127.0.0.1:38460
11:03:07 [INFO ][deluge.core.rpcserver :179 ] Deluge Client connection made from: 127.0.0.1:38462
11:03:07 [INFO ][deluge.core.rpcserver :205 ] Deluge client disconnected: Connection to the other side was lost in a non-clean fashion: Connection lost.
11:03:07 [INFO ][deluge.core.rpcserver :205 ] Deluge client disconnected: Connection to the other side was lost in a non-clean fashion: Connection lost.
11:03:33 [INFO ][deluge.core.rpcserver :179 ] Deluge Client connection made from: 127.0.0.1:38556
11:03:33 [INFO ][deluge.core.rpcserver :179 ] Deluge Client connection made from: 127.0.0.1:38558
11:03:33 [INFO ][deluge.core.rpcserver :205 ] Deluge client disconnected: Connection to the other side was lost in a non-clean fashion: Connection lost.
11:03:33 [INFO ][deluge.core.rpcserver :205 ] Deluge client disconnected: Connection to the other side was lost in a non-clean fashion: Connection lost.
11:03:34 [INFO ][deluge.core.rpcserver :179 ] Deluge Client connection made from: 127.0.0.1:38634
11:03:34 [INFO ][deluge.core.rpcserver :179 ] Deluge Client connection made from: 127.0.0.1:38636
11:03:34 [INFO ][deluge.core.rpcserver :205 ] Deluge client disconnected: Connection to the other side was lost in a non-clean fashion: Connection lost.
11:03:34 [INFO ][deluge.core.rpcserver :205 ] Deluge client disconnected: Connection to the other side was lost in a non-clean fashion: Connection lost.
11:03:36 [INFO ][deluge.core.rpcserver :179 ] Deluge Client connection made from: 127.0.0.1:38640
11:03:36 [INFO ][deluge.core.rpcserver :205 ] Deluge client disconnected: Connection to the other side was lost in a non-clean fashion: Connection lost.
11:03:36 [INFO ][deluge.core.rpcserver :179 ] Deluge Client connection made from: 127.0.0.1:38644
When adding a torrent from the thin client, I get a log line as usual:
Code: Select all
11:07:57 [INFO ][deluge.core.torrentmanager :673 ] Torrent REDACTED from user "REDACTED" added
I repeated this exercise with debug-level logging and it's a constant deluge (sorry) of useless info, dozens of lines/second, but searching the logs I can see no reference to the
file I attempted to add or any requests to the "upload" endpoint. (I can post these logs if it's truly helpful.)
However, I did notice that when I attempt to add the torrent
file, there was actually an error that showed up in the browser console:
Code: Select all
POST IP_REDACTED:8112/upload 400 (Bad Request)
Failed to load resource: the server responded with a status of 400 (Bad Request)
It's been four years since my last web development job, so I'm quite rusty, but I guess it makes sense that a bad request wouldn't show up in the deluged logs, since it wouldn't actually hit be hitting the daemon, and if it's actually a malformed request I guess it wouldn't hit the deluge-web service either. Still don't understand what's wrong with the request, though (or why the server thinks there's something wrong with it).