For the last week, whenever I attempt to upload a torrent file via the web UI, I get a pop-up error message that says "Failed to upload torrent". When I attempt to add another torrent, the previously-added torrent file appears in the list as though it had been added, but with no options available. Connecting to the server, no new torrent files have been added to the state directory.
Both deluged and deluge-web are running as systemd services under a dedicated deluge user.
When running deluged and deluge-web interactively in debug mode and trying to add a torrent, no errors, warnings, or other relevant messages appear.
I'm wondering if this is possibly a permissions problem or a Python versioning problem, but those are basically shots in the dark.
I have verified the following:
- The same error messages appear on Vivaldi, Safari, and Edge
- Attempting to upload a non-torrent file (e.g., a PNG) as a torrent I get the same message (so I suspect the file is not even making it to the server for verification)
- Flexget is still able to add torrents
- Using the web UI to add a torrent via a magnet link works fine
- Directly transferring the torrent file to the server then adding it on the deluge console works fine
- Connecting via a thin client to add a torrent via a torrent file works fine
deluge-web 2.1.1
deluged 2.1.1
libtorrent: 2.0.9.0
Python: 3.8.0
OS: Linux Ubuntu 18.04 bionic
Important notes:
- I recently upgraded the system python3 from 3.6 to 3.8. (System python still points to 2.7.17.) I recall being able to add torrents via the web UI after the upgrade, though it's possible this issue is related and the system and services simply hadn't been rebooted
- In an effort to fix the issue, I repeatedly uninstalled and reinstalled deluge via both apt and pip, which obviously didn't help. I have uninstalled everything and reinstalled deluge via apt (PPA)
- I'm hoping that I don't have to upgrade Ubuntu to the latest LTS (I'm pretty busy and I'm hoping to defer that a couple months; I don't want to have to deal with the headache that this will involve), but if it has to happen I'll do it