Can't activate Plugins

General support for problems installing or using Deluge
FlyingPersian
Member
Member
Posts: 14
Joined: Thu Jul 03, 2014 1:56 am

Re: Can't activate Plugins

Post by FlyingPersian »

EDIT: I got it to work! The reason as stated here is that some eggs are stored as zip files and they need to be extracted in the cache folder. The simplest thing to do is create a folder called .python-eggs in /root/. Make the user and group deluge owner of that folder and then restart deluge. I think this solves your issue with using plugins in the webgui.

I might have found something.. This is my deluge_web.log:

Code: Select all

[INFO    ] 01:37:04 configmanager:70 Setting config directory to: /deluge/.config/deluge
[INFO    ] 01:37:04 ui:121 Deluge ui 1.3.6
[DEBUG   ] 01:37:04 ui:122 options: {'fork': True, 'profile': False, 'loglevel': 'debug', 'quiet': False, 'ssl': False, 'base': None, 'logfile': '/var/tmp/deluge-web.log', 'config': '/deluge/.config/deluge', 'port': None}
[DEBUG   ] 01:37:04 ui:123 args: []
[INFO    ] 01:37:04 ui:124 Starting web ui..
[DEBUG   ] 01:37:04 configmanager:111 Getting config 'web.conf'
[DEBUG   ] 01:37:04 config:197 Setting 'sidebar_show_zero' to False of <type 'bool'>
[DEBUG   ] 01:37:04 config:197 Setting 'show_session_speed' to False of <type 'bool'>
[DEBUG   ] 01:37:04 config:197 Setting 'first_login' to True of <type 'bool'>
[DEBUG   ] 01:37:04 config:197 Setting 'https' to False of <type 'bool'>
[DEBUG   ] 01:37:04 config:197 Setting 'sessions' to {} of <type 'dict'>
[DEBUG   ] 01:37:04 config:197 Setting 'enabled_plugins' to [] of <type 'list'>
[DEBUG   ] 01:37:04 config:197 Setting 'pwd_sha1' to 2ce1a410bcdcc53064129b6d950f2e9fee4edc1e of <type 'str'>
[DEBUG   ] 01:37:04 config:197 Setting 'cert' to ssl/daemon.cert of <type 'str'>
[DEBUG   ] 01:37:04 config:197 Setting 'pkey' to ssl/daemon.pkey of <type 'str'>
[DEBUG   ] 01:37:04 config:197 Setting 'port' to 8112 of <type 'int'>
[DEBUG   ] 01:37:04 config:197 Setting 'theme' to gray of <type 'str'>
[DEBUG   ] 01:37:04 config:197 Setting 'session_timeout' to 3600 of <type 'int'>
[DEBUG   ] 01:37:04 config:197 Setting 'show_sidebar' to True of <type 'bool'>
[DEBUG   ] 01:37:04 config:197 Setting 'default_daemon' to  of <type 'str'>
[DEBUG   ] 01:37:04 config:197 Setting 'sidebar_multiple_filters' to True of <type 'bool'>
[DEBUG   ] 01:37:04 config:197 Setting 'pwd_salt' to c26ab3bbd8b137f99cd83c2c1c0963bcc1a35cad of <type 'str'>
[DEBUG   ] 01:37:04 config:197 Setting 'base' to / of <type 'str'>
[DEBUG   ] 01:37:04 config:391 Config /deluge/.config/deluge/web.conf version: 1.1 loaded: {'port': 8112, 'enabled_plugins': [], 'pwd_sha1': u'6c6d7581c72c2bf2494442faab1f99020b6d82a4', 'theme': u'gray', 'show_sidebar': True, 'sidebar_show_zero': False, 'pkey': u'ssl/daemon.pkey', 'https': False, 'sessions': {u'cc107bd0aba494814487326be51432e3': {u'login': u'admin', u'expires': 1404520587.0, u'level': 10}}, 'base': u'/', 'pwd_salt': u'c99a46033c8334fd00c6663b84aebea039f93a7f', 'show_session_speed': False, 'first_login': False, 'cert': u'ssl/daemon.cert', 'session_timeout': 3600, 'default_daemon': u'', 'sidebar_multiple_filters': True}
[DEBUG   ] 01:37:04 server:253 Adding directory `/usr/local/lib/python2.7/site-packages/deluge/ui/web/css` with path ``
[DEBUG   ] 01:37:04 server:253 Adding directory `/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons` with path ``
[DEBUG   ] 01:37:04 server:253 Adding directory `/usr/local/lib/python2.7/site-packages/deluge/ui/web/images` with path ``
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.add_host
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.add_torrents
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.connect
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.connected
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.deregister_event_listener
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.disconnect
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.download_torrent_from_url
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.get_config
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.get_events
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.get_host_status
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.get_hosts
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.get_magnet_info
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.get_plugin_info
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.get_plugin_resources
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.get_plugins
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.get_torrent_files
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.get_torrent_info
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.get_torrent_status
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.register_event_listener
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.remove_host
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.set_config
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.start_daemon
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.stop_daemon
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.update_ui
[DEBUG   ] 01:37:04 json_api:315 Registering method: web.upload_plugin
[DEBUG   ] 01:37:04 configmanager:111 Getting config 'hostlist.conf.1.2'
[DEBUG   ] 01:37:04 config:197 Setting 'hosts' to [('e67c4f29135ef77ac18185a0b02939adac995234', '127.0.0.1', 58846, '', '')] of <type 'list'>
[WARNING ] 01:37:04 config:361 Unable to open config file /deluge/.config/deluge/hostlist.conf.1.2: [Errno 2] No such file or directory: '/deluge/.config/deluge/hostlist.conf.1.2'
[DEBUG   ] 01:37:04 coreconfig:43 CoreConfig init..
[DEBUG   ] 01:37:04 sessionproxy:55 SessionProxy init..
[DEBUG   ] 01:37:04 json_api:315 Registering method: auth.change_password
[DEBUG   ] 01:37:04 json_api:315 Registering method: auth.check_session
[DEBUG   ] 01:37:04 json_api:315 Registering method: auth.delete_session
[DEBUG   ] 01:37:04 json_api:315 Registering method: auth.login
[DEBUG   ] 01:37:04 configmanager:111 Getting config 'web.conf'
[DEBUG   ] 01:37:04 pluginmanagerbase:65 Plugin manager init..
[DEBUG   ] 01:37:04 configmanager:111 Getting config 'web.conf'
[DEBUG   ] 01:37:04 pluginmanagerbase:124 Found plugin: AutoAdd 1.04 at /usr/local/lib/python2.7/site-packages/deluge/plugins/AutoAdd-1.04-py2.7.egg
[DEBUG   ] 01:37:04 pluginmanagerbase:124 Found plugin: Execute 1.2 at /usr/local/lib/python2.7/site-packages/deluge/plugins/Execute-1.2-py2.7.egg
[DEBUG   ] 01:37:04 pluginmanagerbase:124 Found plugin: Blocklist 1.2 at /usr/local/lib/python2.7/site-packages/deluge/plugins/Blocklist-1.2-py2.7.egg
[DEBUG   ] 01:37:04 pluginmanagerbase:124 Found plugin: Extractor 0.2 at /usr/local/lib/python2.7/site-packages/deluge/plugins/Extractor-0.2-py2.7.egg
[DEBUG   ] 01:37:04 pluginmanagerbase:124 Found plugin: AutoRemovePlus 0.2 at /deluge/.config/deluge/plugins/AutoRemovePlus-0.2-py2.7.egg
[DEBUG   ] 01:37:04 pluginmanagerbase:124 Found plugin: Label 0.2 at /usr/local/lib/python2.7/site-packages/deluge/plugins/Label-0.2-py2.7.egg
[DEBUG   ] 01:37:04 pluginmanagerbase:124 Found plugin: Notifications 0.1 at /usr/local/lib/python2.7/site-packages/deluge/plugins/Notifications-0.1-py2.7.egg
[DEBUG   ] 01:37:04 pluginmanagerbase:124 Found plugin: WebUi 0.1 at /usr/local/lib/python2.7/site-packages/deluge/plugins/WebUi-0.1-py2.7.egg
[DEBUG   ] 01:37:04 pluginmanagerbase:124 Found plugin: Scheduler 0.2 at /usr/local/lib/python2.7/site-packages/deluge/plugins/Scheduler-0.2-py2.7.egg
[INFO    ] 01:37:04 server:661 Starting server in PID 53303.
[INFO    ] 01:37:04 server:675 serving on 0.0.0.0:8112 view at http://127.0.0.1:8112
[DEBUG   ] 01:37:13 server:269 Requested path: 'ext-all-notheme.css'
[DEBUG   ] 01:37:13 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/css/ext-all-notheme.css'
[DEBUG   ] 01:37:13 server:269 Requested path: 'ext-extensions.css'
[DEBUG   ] 01:37:13 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/css/ext-extensions.css'
[DEBUG   ] 01:37:13 server:269 Requested path: 'deluge.css'
[DEBUG   ] 01:37:13 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/css/deluge.css'
[DEBUG   ] 01:37:13 server:420 Requested path: 'ext-extensions.js'
[DEBUG   ] 01:37:13 server:437 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/js/ext-extensions.js'
[DEBUG   ] 01:37:13 server:420 Requested path: 'deluge-all.js'
[DEBUG   ] 01:37:13 server:437 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/js/deluge-all.js'
[DEBUG   ] 01:37:13 server:420 Requested path: 'ext-base.js'
[DEBUG   ] 01:37:13 server:437 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/js/ext-base.js'
[DEBUG   ] 01:37:13 server:420 Requested path: 'ext-all.js'
[DEBUG   ] 01:37:13 server:437 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/js/ext-all.js'
[DEBUG   ] 01:37:14 server:269 Requested path: 'ok.png'
[DEBUG   ] 01:37:14 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/ok.png'
[DEBUG   ] 01:37:14 server:269 Requested path: 'error.png'
[DEBUG   ] 01:37:14 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/error.png'
[DEBUG   ] 01:37:14 server:269 Requested path: 'deluge.png'
[DEBUG   ] 01:37:14 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/deluge.png'
[DEBUG   ] 01:37:14 server:269 Requested path: 'add.png'
[DEBUG   ] 01:37:14 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/add.png'
[DEBUG   ] 01:37:14 server:269 Requested path: 'remove.png'
[DEBUG   ] 01:37:14 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/remove.png'
[DEBUG   ] 01:37:14 server:269 Requested path: 'pause.png'
[DEBUG   ] 01:37:14 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/pause.png'
[DEBUG   ] 01:37:14 server:269 Requested path: 'up.png'
[DEBUG   ] 01:37:14 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/up.png'
[DEBUG   ] 01:37:14 server:269 Requested path: 'start.png'
[DEBUG   ] 01:37:14 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/start.png'
[DEBUG   ] 01:37:14 server:269 Requested path: 'down.png'
[DEBUG   ] 01:37:14 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/down.png'
[DEBUG   ] 01:37:14 server:269 Requested path: 'preferences.png'
[DEBUG   ] 01:37:14 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/preferences.png'
[DEBUG   ] 01:37:14 server:269 Requested path: 'connection_manager.png'
[DEBUG   ] 01:37:14 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/connection_manager.png'
[DEBUG   ] 01:37:14 server:269 Requested path: 'help.png'
[DEBUG   ] 01:37:14 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/help.png'
[DEBUG   ] 01:37:14 server:269 Requested path: 'logout.png'
[DEBUG   ] 01:37:14 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/logout.png'
[DEBUG   ] 01:37:14 server:269 Requested path: 's.gif'
[DEBUG   ] 01:37:14 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/images/s.gif'
[DEBUG   ] 01:37:14 json_api:255 json-request: {"method":"system.listMethods","params":[],"id":0}
[DEBUG   ] 01:37:14 json_api:255 json-request: {"method":"auth.check_session","params":[],"id":1}
[DEBUG   ] 01:37:14 json_api:255 json-request: {"method":"web.register_event_listener","params":["PluginDisabledEvent"],"id":2}
[DEBUG   ] 01:37:14 json_api:255 json-request: {"method":"web.register_event_listener","params":["PluginEnabledEvent"],"id":3}
[DEBUG   ] 01:37:14 json_api:255 json-request: {"method":"web.register_event_listener","params":["PluginDisabledEvent"],"id":4}
[DEBUG   ] 01:37:14 json_api:255 json-request: {"method":"web.register_event_listener","params":["PluginEnabledEvent"],"id":5}
[DEBUG   ] 01:37:14 json_api:255 json-request: {"method":"web.get_events","params":[],"id":6}
[DEBUG   ] 01:37:14 json_api:255 json-request: {"method":"web.connected","params":[],"id":7}
[DEBUG   ] 01:37:14 server:269 Requested path: 'connection_manager.png'
[DEBUG   ] 01:37:14 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/connection_manager.png'
[DEBUG   ] 01:37:14 server:269 Requested path: 'error.png'
[DEBUG   ] 01:37:14 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/error.png'
[DEBUG   ] 01:37:15 json_api:255 json-request: {"method":"web.get_hosts","params":[],"id":8}
[DEBUG   ] 01:37:15 json_api:782 get_hosts called
[DEBUG   ] 01:37:15 json_api:255 json-request: {"method":"web.get_hosts","params":[],"id":9}
[DEBUG   ] 01:37:15 json_api:782 get_hosts called
[DEBUG   ] 01:37:15 json_api:255 json-request: {"method":"web.get_host_status","params":["e67c4f29135ef77ac18185a0b02939adac995234"],"id":10}
[INFO    ] 01:37:15 client:217 Connecting to daemon at 127.0.0.1:58846..
[INFO    ] 01:37:15 client:121 Connected to daemon at 127.0.0.1:58846..
[DEBUG   ] 01:37:15 json_api:255 json-request: {"method":"web.get_host_status","params":["e67c4f29135ef77ac18185a0b02939adac995234"],"id":11}
[INFO    ] 01:37:15 client:217 Connecting to daemon at 127.0.0.1:58846..
[INFO    ] 01:37:15 client:121 Connected to daemon at 127.0.0.1:58846..
[INFO    ] 01:37:15 client:224 Connection lost to daemon at 127.0.0.1:58846 reason: Connection was closed cleanly.
[INFO    ] 01:37:15 client:224 Connection lost to daemon at 127.0.0.1:58846 reason: Connection was closed cleanly.
[DEBUG   ] 01:37:16 json_api:255 json-request: {"method":"web.get_host_status","params":["e67c4f29135ef77ac18185a0b02939adac995234"],"id":12}
[INFO    ] 01:37:16 client:217 Connecting to daemon at 127.0.0.1:58846..
[INFO    ] 01:37:16 client:121 Connected to daemon at 127.0.0.1:58846..
[INFO    ] 01:37:16 client:224 Connection lost to daemon at 127.0.0.1:58846 reason: Connection was closed cleanly.
[DEBUG   ] 01:37:16 json_api:255 json-request: {"method":"web.connect","params":["e67c4f29135ef77ac18185a0b02939adac995234"],"id":13}
[INFO    ] 01:37:16 client:217 Connecting to daemon at 127.0.0.1:58846..
[INFO    ] 01:37:16 client:121 Connected to daemon at 127.0.0.1:58846..
[ERROR   ] 01:37:16 pluginmanagerbase:146 Unable to instantiate plugin!
[ERROR   ] 01:37:16 pluginmanagerbase:147 Can't extract file(s) to egg cache

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

  [Errno 13] Permission denied: '/root/.python-eggs'

The Python egg cache directory is currently set to:

  /root/.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/local/lib/python2.7/site-packages/deluge/pluginmanagerbase.py", line 144, in enable_plugin
    instance = cls(plugin_name.replace("-", "_"))
  File "build/bdist.freebsd-9.2-RELEASE-p4-amd64/egg/execute/__init__.py", line 52, in __init__
    from webui import WebUI as _plugin_cls
  File "build/bdist.freebsd-9.2-RELEASE-p4-amd64/egg/execute/webui.py", line 45, in <module>
  File "build/bdist.freebsd-9.2-RELEASE-p4-amd64/egg/execute/webui.py", line 47, in WebUI
  File "build/bdist.freebsd-9.2-RELEASE-p4-amd64/egg/execute/common.py", line 40, in get_resource
    return pkg_resources.resource_filename("execute", os.path.join("data", filename))
  File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 950, in resource_filename
    self, resource_name
  File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 1621, in get_resource_filename
    return self._extract_resource(manager, zip_path)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 1650, in _extract_resource
    self.egg_name, self._parts(zip_path)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 1016, in get_cache_path
    self.extraction_error()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 996, in extraction_error
    raise err
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 13] Permission denied: '/root/.python-eggs'

The Python egg cache directory is currently set to:

  /root/.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.

[INFO    ] 01:37:16 pluginmanager:108 Plugin has no web ui
[DEBUG   ] 01:37:16 json_api:255 json-request: {"method":"system.listMethods","params":[],"id":14}
[DEBUG   ] 01:37:17 server:269 Requested path: 'drive.png'
[DEBUG   ] 01:37:17 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/drive.png'
[DEBUG   ] 01:37:17 server:269 Requested path: 'dht.png'
[DEBUG   ] 01:37:17 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/dht.png'
[DEBUG   ] 01:37:17 server:269 Requested path: 'traffic.png'
[DEBUG   ] 01:37:17 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/traffic.png'
[DEBUG   ] 01:37:17 server:269 Requested path: 'seeding.png'
[DEBUG   ] 01:37:17 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/seeding.png'
[DEBUG   ] 01:37:17 server:269 Requested path: 'downloading.png'
[DEBUG   ] 01:37:17 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/downloading.png'
[DEBUG   ] 01:37:17 server:269 Requested path: 'connections.png'
[DEBUG   ] 01:37:17 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/connections.png'
[DEBUG   ] 01:37:17 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":15}
[DEBUG   ] 01:37:17 json_api:255 json-request: {"method":"web.get_plugins","params":[],"id":16}
[DEBUG   ] 01:37:17 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":17}
[DEBUG   ] 01:37:17 server:269 Requested path: 'all.png'
[DEBUG   ] 01:37:17 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/all.png'
[DEBUG   ] 01:37:18 json_api:255 json-request: {"method":"web.get_hosts","params":[],"id":18}
[DEBUG   ] 01:37:18 json_api:782 get_hosts called
[DEBUG   ] 01:37:18 json_api:255 json-request: {"method":"web.get_hosts","params":[],"id":19}
[DEBUG   ] 01:37:18 json_api:782 get_hosts called
[DEBUG   ] 01:37:18 json_api:255 json-request: {"method":"web.get_host_status","params":["e67c4f29135ef77ac18185a0b02939adac995234"],"id":20}
[DEBUG   ] 01:37:18 json_api:255 json-request: {"method":"web.get_host_status","params":["e67c4f29135ef77ac18185a0b02939adac995234"],"id":21}
[DEBUG   ] 01:37:19 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":22}
[DEBUG   ] 01:37:19 json_api:255 json-request: {"method":"web.get_events","params":[],"id":23}
[DEBUG   ] 01:37:21 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":24}
[DEBUG   ] 01:37:21 json_api:255 json-request: {"method":"core.get_config","params":[],"id":25}
[DEBUG   ] 01:37:21 json_api:255 json-request: {"method":"core.get_config","params":[],"id":26}
[DEBUG   ] 01:37:21 json_api:255 json-request: {"method":"web.get_plugins","params":[],"id":27}
[DEBUG   ] 01:37:23 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":28}
[DEBUG   ] 01:37:23 server:269 Requested path: 'install_plugin.png'
[DEBUG   ] 01:37:23 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/install_plugin.png'
[DEBUG   ] 01:37:23 server:269 Requested path: 'find_more.png'
[DEBUG   ] 01:37:23 server:280 Serving path: '/usr/local/lib/python2.7/site-packages/deluge/ui/web/icons/find_more.png'
[DEBUG   ] 01:37:25 json_api:255 json-request: {"method":"web.get_events","params":[],"id":29}
[DEBUG   ] 01:37:25 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":30}
[DEBUG   ] 01:37:25 json_api:255 json-request: {"method":"web.get_plugin_info","params":["Execute"],"id":31}
[DEBUG   ] 01:37:25 json_api:255 json-request: {"method":"core.enable_plugin","params":["Execute"],"id":32}
[DEBUG   ] 01:37:27 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":33}
[DEBUG   ] 01:37:29 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":34}
[DEBUG   ] 01:37:30 json_api:255 json-request: {"method":"web.get_events","params":[],"id":35}
[DEBUG   ] 01:37:31 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":36}
[DEBUG   ] 01:37:33 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":37}
[DEBUG   ] 01:37:35 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":38}
[DEBUG   ] 01:37:35 json_api:255 json-request: {"method":"web.get_events","params":[],"id":39}
[DEBUG   ] 01:37:37 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":40}
[DEBUG   ] 01:37:39 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":41}
[DEBUG   ] 01:37:40 json_api:255 json-request: {"method":"web.get_events","params":[],"id":42}
[DEBUG   ] 01:37:41 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":43}
[DEBUG   ] 01:37:43 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":44}
[DEBUG   ] 01:37:45 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":45}
[DEBUG   ] 01:37:46 json_api:255 json-request: {"method":"web.get_events","params":[],"id":46}
[DEBUG   ] 01:37:47 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":47}
[DEBUG   ] 01:37:49 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":48}
[DEBUG   ] 01:37:51 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":49}
[DEBUG   ] 01:37:52 json_api:255 json-request: {"method":"web.get_events","params":[],"id":50}
[DEBUG   ] 01:37:53 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":51}
[DEBUG   ] 01:37:55 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":52}
[DEBUG   ] 01:37:57 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":53}
[DEBUG   ] 01:37:58 json_api:255 json-request: {"method":"web.get_events","params":[],"id":54}
[DEBUG   ] 01:37:59 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":55}
[DEBUG   ] 01:38:01 json_api:255 json-request: {"method":"web.update_ui","params":[["queue","name","total_size","state","progress","num_seeds","total_seeds","num_peers","total_peers","download_payload_rate","upload_payload_rate","eta","ratio","distributed_copies","is_auto_managed","time_added","tracker_host","save_path","total_done","total_uploaded","max_download_speed","max_upload_speed","seeds_peers_ratio"],{}],"id":56}
Within this there's a bunch of lines that might be really important to this:

Code: Select all

[ERROR   ] 01:37:16 pluginmanagerbase:146 Unable to instantiate plugin!
[ERROR   ] 01:37:16 pluginmanagerbase:147 Can't extract file(s) to egg cache

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

  [Errno 13] Permission denied: '/root/.python-eggs'

The Python egg cache directory is currently set to:

  /root/.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/local/lib/python2.7/site-packages/deluge/pluginmanagerbase.py", line 144, in enable_plugin
    instance = cls(plugin_name.replace("-", "_"))
  File "build/bdist.freebsd-9.2-RELEASE-p4-amd64/egg/execute/__init__.py", line 52, in __init__
    from webui import WebUI as _plugin_cls
  File "build/bdist.freebsd-9.2-RELEASE-p4-amd64/egg/execute/webui.py", line 45, in <module>
  File "build/bdist.freebsd-9.2-RELEASE-p4-amd64/egg/execute/webui.py", line 47, in WebUI
  File "build/bdist.freebsd-9.2-RELEASE-p4-amd64/egg/execute/common.py", line 40, in get_resource
    return pkg_resources.resource_filename("execute", os.path.join("data", filename))
  File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 950, in resource_filename
    self, resource_name
  File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 1621, in get_resource_filename
    return self._extract_resource(manager, zip_path)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 1650, in _extract_resource
    self.egg_name, self._parts(zip_path)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 1016, in get_cache_path
    self.extraction_error()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 996, in extraction_error
    raise err
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 13] Permission denied: '/root/.python-eggs'

The Python egg cache directory is currently set to:

  /root/.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.
I have to change the cache folder to something like /deluge/.python-eggs or something. I don't know where exactly I have to put this.. I assume that this goes into the /usr/lorcal/etc/rc.d/deluge_web file. I don't know where in there, so I need you to tell me if possible..
FlyingPersian
Member
Member
Posts: 14
Joined: Thu Jul 03, 2014 1:56 am

Re: Can't activate Plugins

Post by FlyingPersian »

Edit: Fixed it!!! This forum post describes it perfectly fine. The only thing I had to do was go into /usr/ports/lang/python, do "make install" et voila, python was installed successfully. Now deluge executes my command. I have to enter it without python in front tho, the path to the script is sufficient. If you like me to I can write a single post on how to fix this and you can pin it or something.

Last but not least I'm having trouble with executing the command upon complete.. This is the extract out of the logfile:

Code: Select all

[WARNING ] 02:26:38 core:124 [execute] command 'python /media/Stuff/scripts/nzbToMedia_deluge/TorrentToMedia.py' failed with exit code 1
[WARNING ] 02:26:38 core:128 [execute] stderr: Upon execvpe python /path/to/script.py ['python /path/to/script.py', 'e3a05414469422a127583a9d8a7b72c94024294d', 'Name.of.Torrent', '/download/dir] in environment id 34474415200
:Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/twisted/internet/process.py", line 403, in _fork
    path, uid, gid, executable, args, environment)
  File "/usr/local/lib/python2.7/site-packages/twisted/internet/process.py", line 453, in _execChild
    os.execvpe(executable, args, environment)
  File "/usr/local/lib/python2.7/os.py", line 353, in execvpe
    _execvpe(file, args, env)
  File "/usr/local/lib/python2.7/os.py", line 368, in _execvpe
    func(file, *argrest)
OSError: [Errno 2] No such file or directory
When I do this without python in front of the command I get this:

Code: Select all

[WARNING ] 02:35:35 core:124 [execute] command '/media/Stuff/scripts/nzbToMedia_deluge/TorrentToMedia.py' failed with exit code 127
[WARNING ] 02:35:35 core:128 [execute] stderr: env: python: No such file or directory
I think I have to take the command without python in front of it. BUT it seems I don't have the python command installed, which is why I cannot execute the script. But that's weird since deluge is listed as python2.7 process in top. So what can I do to get the python command?
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Can't activate Plugins

Post by Cas »

Good to know you sorted it.

What is the env line at the top of your script?
FlyingPersian
Member
Member
Posts: 14
Joined: Thu Jul 03, 2014 1:56 am

Re: Can't activate Plugins

Post by FlyingPersian »

I don't have any, I tried to use the variable to change the cache dir, but it didn't work. I most likely wrote that into the wrong file. And since I didn't know how to do so I think the easiest way to do so is just creating the .python-egg folder in /root/ and gave the deluge user ownership. And I think it solves the entire plugin issue you mentioned with the WebGUI.

There's one thing I couldn#t solve with CouchPotato.. Maybe you can help me. When it sends the .torrent file to deluge it fails. This is because I have the wrong information filled in. It asks me for a Username, Password and Host. I'm not quite sure what to fill in where. In Transdroid, a client for Android, I disabled the auth login and simply entered a WebGUI password (there was an option for that), but CP doesn't offer that. I tried to leave the username out as I don't need that in the WebGUI, gave it the local IP (192.168.1.x:8112) instead of localhost:58846 and it didn't work. Same goes with the username delugeuser I created. Any ideas or should i better contact the dev.?
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Can't activate Plugins

Post by Cas »

I have no idea what you are talking about now but your python script should contain this as the first line:

Code: Select all

#!/usr/bin/env python
If it still cannot find python then specify it e.g.:

Code: Select all

#!/usr/bin/python
FlyingPersian
Member
Member
Posts: 14
Joined: Thu Jul 03, 2014 1:56 am

Re: Can't activate Plugins

Post by FlyingPersian »

I have no issue with python anymore, as I said, I just had to install python itself. Just read the links I posted and it's explained there, if you want to know.
Post Reply