Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BUG] No label submenu #423

Open
CpHeat opened this issue Jan 16, 2025 · 8 comments
Open

[BUG] No label submenu #423

CpHeat opened this issue Jan 16, 2025 · 8 comments

Comments

@CpHeat
Copy link

CpHeat commented Jan 16, 2025

I use binhex/arch-deluge-vpn under docker/WSL

Labels (partially) stopped working mid-use

Preivously added labels are still present
The label tab and filters are still available and working
But if I right click on a torrent, I can't set a label for it (no label submenu)
If I right click under the labels tab, I can't create a new label (it will show the right click menu for my browser)
In the torrents view, there is no more label column

I tried restarting the container, composing it again, disabling the plugin, restarting the container and enabling it again, nothing solved the issue

I don't really know how to reproduce it, it happened mid session and I don't really know what triggered it

If it can help here is my docker compose template

deluge-vpn: container_name: deluge-vpn image: binhex/arch-delugevpn:latest cap_add: - NET_ADMIN network_mode: bridge privileged: true environment: - VPN_ENABLED=yes - TZ=Europe/Paris - VPN_PROV=custom - VPN_USER=**** - VPN_PASS=****** - VPN_CLIENT=openvpn - ENABLE_PRIVOXY=yes - LAN_NETWORK=**** - NAME_SERVERS=**** - DELUGE_DAEMON_LOG_LEVEL=info - DELUGE_WEB_LOG_LEVEL=info - DELUGE_ENABLE_WEBUI_PASSWORD=no - ENABLE_STARTUP_SCRIPTS=no - USERSPACE_WIREGUARD=no - VPN_INPUT_PORTS=1234 - VPN_OUTPUT_PORTS=5678 - DEBUG=true - PUID=99 - PGID=100 - UMASK=000 ports: - 8112:8112 - 8118:8118 - 9118:9118 - 58846:58846 - 58946:58946 - 58945:58946/udp volumes: - /mnt/h/mediacenter:/mediacenter - ./downloaders/config-deluge-vpn:/config restart: unless-stopped

@Makerblaker
Copy link

Makerblaker commented Jan 16, 2025

Is the Label plugin enabled?

Image

@CpHeat
Copy link
Author

CpHeat commented Jan 16, 2025

Yes it is enabled and some of its functions are working (the filtering part) (will add a screenshot soon)

@CpHeat
Copy link
Author

CpHeat commented Jan 16, 2025

You can see here even though it is enabled I don't have a label submenu in settings, neither in the webui

Image

Image

@Makerblaker
Copy link

Can you try it in a private browser window? Do you have the buttons then?

@CpHeat
Copy link
Author

CpHeat commented Jan 16, 2025

No it is the same in a private window (or another browser)

@CpHeat
Copy link
Author

CpHeat commented Jan 16, 2025

Just checked the logs on restart I get this error

17:04:19 [INFO ][deluge.configmanager:49 ] Setting config directory to: /config
17:04:19 [INFO ][deluge.ui.ui:68 ] Deluge ui 2.1.1
17:04:19 [INFO ][deluge.ui.ui:70 ] Starting web ui..
17:04:19 [INFO ][deluge.i18n.util :101 ] Setting up translations from /usr/lib/python3.13/site-packages/deluge/i18n
17:04:19 [INFO ][deluge.ui.web.server :1652] Starting webui server at PID 740
17:04:19 [INFO ][deluge.ui.web.server :1652] Serving at http://0.0.0.0:8112/
17:04:19 [ERROR ][deluge.pluginmanagerbase :1652] Unable to instantiate plugin 'Label' from '/usr/lib/python3.13/site-packages/deluge/plugins/Label-0.3-py3.13.egg'!
17:04:19 [ERROR ][deluge.pluginmanagerbase :1652] Can't extract file(s) to egg cache

The following error occurred while trying to extract file(s)
to the Python egg cache:

[Errno 1] Operation not permitted: '/config/python-eggs/Label-0.3-py3.13.egg-tmp/deluge_label/data/tmp0xxiw2_f.$extract'

The Python egg cache directory is currently set to:

/config/python-eggs

Perhaps your account does not have write access to this directory?
You can change the cache directory by setting the PYTHON_EGG_CACHE
environment variable to point to an accessible directory.
Traceback (most recent call last):
File "/usr/lib/python3.13/site-packages/pkg_resources/init.py", line 2094, in _extract_resource
utime(tmpnam, (timestamp, timestamp))
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 1] Operation not permitted: '/config/python-eggs/Label-0.3-py3.13.egg-tmp/deluge_label/data/tmp0xxiw2_f.$extract'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.13/site-packages/deluge/pluginmanagerbase.py", line 148, in enable_plugin
instance = cls(plugin_name.replace('-', '_'))
File "/usr/lib/python3.13/site-packages/deluge/plugins/Label-0.3-py3.13.egg/deluge_label/init.py", line 34, in init
from .webui import WebUI as _pluginCls
File "/usr/lib/python3.13/site-packages/deluge/plugins/Label-0.3-py3.13.egg/deluge_label/webui.py", line 22, in
class WebUI(WebPluginBase):
scripts = [get_resource('label.js')]
debug_scripts = scripts
File "/usr/lib/python3.13/site-packages/deluge/plugins/Label-0.3-py3.13.egg/deluge_label/webui.py", line 23, in WebUI
scripts = [get_resource('label.js')]
~~~~~~~~~~~~^^^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/deluge/plugins/Label-0.3-py3.13.egg/deluge_label/common.py", line 20, in get_resource
return resource_filename(package, os.path.join('data', filename))
File "/usr/lib/python3.13/site-packages/pkg_resources/init.py", line 1384, in resource_filename
return get_provider(package_or_requirement).get_resource_filename(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
self, resource_name
^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/lib/python3.13/site-packages/pkg_resources/init.py", line 2053, in get_resource_filename
return self._extract_resource(manager, zip_path)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/pkg_resources/init.py", line 2115, in _extract_resource
manager.extraction_error()
~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/pkg_resources/init.py", line 1438, in extraction_error
raise err
pkg_resources.ExtractionError: Can't extract file(s) to egg cache

The following error occurred while trying to extract file(s)
to the Python egg cache:

[Errno 1] Operation not permitted: '/config/python-eggs/Label-0.3-py3.13.egg-tmp/deluge_label/data/tmp0xxiw2_f.$extract'

The Python egg cache directory is currently set to:

/config/python-eggs

Perhaps your account does not have write access to this directory?
You can change the cache directory by setting the PYTHON_EGG_CACHE
environment variable to point to an accessible directory.

17:04:19 [INFO ][deluge.ui.web.pluginmanager:1652] Label plugin contains no WebUI code, ignoring WebUI enable call.

@Makerblaker
Copy link

I would clear the config folder and start over. That's just what I would do.

@CpHeat
Copy link
Author

CpHeat commented Jan 16, 2025

but what files can I put aside to keep my torrent and labels collection ? It would be a hassle adding everything back

What's strange is I changed nothing, it just stopped working.

Edit: I restarted from scratch and imported my state folder and label.conf in the recreated folder and I got it to work again. Just had to reset my settings ofc. I hope it won't happen again, I alrady had this kind of issue before where the label plugin would disable itself but it never stayed broken between restarts before

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants