I had a sudden poweroff while using deluge (nothing to do with deluge itself but some issue at the Electricity provider) . In any case the system was not in a clean slate when it went down.
When power cam back and ext4 cleaned the filesystem as it was not a clean shutdown I tried to run deluge, I got the following error :-
Code: Select all
[ERROR ] 00:40:54 ipcinterface:156 Deluge restart failed: Couldn't listen on any:/home/shirish/.config/deluge/ipc/deluge-gtk: Cannot acquire lock.
This was the state before I removed the lock :-
Code: Select all
~/.config/deluge/ipc$ ll
total 0
srw-rw-rw- 1 shirish shirish 0 Jul 31 14:29 deluge-gtk
lrwxrwxrwx 1 shirish shirish 4 Jul 31 14:29 deluge-gtk.lock -> 4626
Code: Select all
$ rm ~/.config/deluge/ipc/deluge-gtk
$ deluge
[ERROR ] 00:41:10 ipcinterface:137 Problem deleting lockfile or socket file!
[ERROR ] 00:41:10 ipcinterface:138 [Errno 2] No such file or directory: '/home/shirish/.config/deluge/ipc/deluge-gtk'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/ipcinterface.py", line 135, in __init__
os.remove(socket)
OSError: [Errno 2] No such file or directory: '/home/shirish/.config/deluge/ipc/deluge-gtk'
[ERROR ] 00:41:11 init:50 Unable to enable plugin!
[ERROR ] 00:41:11 init:51 'Pieces'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/deluge/plugins/init.py", line 48, in enable
self.plugin.enable()
File "/home/shirish/.config/deluge/plugins/Pieces-0.5-py2.7.egg/pieces/gtkui.py", line 454, in enable
component.get("TorrentDetails").add_tab(self._pieces_tab)
File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/torrentdetails.py", line 210, in add_tab
self.generate_menu()
File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/torrentdetails.py", line 309, in generate_menu
menuitem = gtk.CheckMenuItem(self.translate_tabs[name], True)
KeyError: 'Pieces'
Code: Select all
$ deluge -L error -l deluge-error.txt
Now for the queries :-
a. What is this lock ?
b. Was the pieces plugin the main problem or just something which has not been updated for python 2.7 or something?
Looking forward to some answers and understanding. Thank you for your time.