You are not logged in.

#1 2012-07-19 07:42:49

Al3s
Member
Registered: 2011-10-12
Posts: 26

[SOLVED] Torrent state "Error" (deluge)

Hi all.

I've been using Deluge a few months now and never had a problem but after yesterday update and reboot all my old torrents have stopped working and are marked with Error. The state of the torrents say this:

"Operación no permitida: /mnt/Datos/Torrent/whatever"    (Operation not permitted:...)

I tryed to add a new torrent and it works fine, btw.

If i run deluge from console:

[alex@mierda ~]$ deluge -u gtk

** (deluge:1365): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

** (deluge:1365): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'

** (deluge:1365): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'

Any idea what is happening?

Thanks.

Last edited by Al3s (2012-07-20 05:53:21)

Offline

#2 2012-07-19 08:55:22

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Torrent state "Error" (deluge)

When you added a torrent, was it in the same folder as the other ones? Because it may be a permission issue.


Edit: For example, this shouldn't say "root":

 $ ls -l ~/.config/deluge/state
total 6964
drwxr-xr-x 2 dspider users   32768 Jul 19 11:53 .
drwx------ 7 dspider users    4096 Jul 18 00:50 ..
-rw-r--r-- 1 dspider users   23287 Jun 20 12:00 0198c968d00eeac2ec398507b584fb03bfea600d.torrent
-rw-r--r-- 1 dspider users   16820 Apr 28 20:43 e37f88772b9fb1a65ed60d64aa26747c7dcb3de1.torrent
-rw-r--r-- 1 dspider users    1003 Apr 24 14:02 e4bb15e1e1f3674f0111365b8b68c917e20fa78e.torrent
-rw-r--r-- 1 dspider users   14812 Jul 17 00:27 e6479972f33231370786bdf8908edcc6e7ca1c01.torrent
-rw-r--r-- 1 dspider users   36144 Nov 24  2011 ec4bd00cd7c4213e16d16d90060a32f27119818c.torrent
-rw-r--r-- 1 dspider users  190533 Dec 15  2011 ee0e0cdaf2380a16415a17961601b02879345aec.torrent
-rw-r--r-- 1 dspider users   12438 Jul 17 00:06 ef3d9ea31c1e2f1d23208327aa53a83cae9f9965.torrent
-rw-r--r-- 1 dspider users   20770 Jul 13 10:49 f0fa3f93b3b69a9da52df55ebd906bdf8eec9d23.torrent
-rw-r--r-- 1 dspider users   38723 Jul  3 10:45 f1eebba3e2b0c92ef93ea00ec968c9636dbfe18e.torrent
-rw-r--r-- 1 dspider users    4290 Apr  3 19:30 f2626d659c7c2e600ae9375e1e470668e6c309c0.torrent
-rw-r--r-- 1 dspider users   11678 May 27 10:32 f7625a88bb5f3b7f681618bc98637ecaeb57dcdb.torrent
-rw-r--r-- 1 dspider users   20020 Jul 16 23:49 f93037ecfab9c00426e41b9bc49b9acfced490ca.torrent
-rw-r--r-- 1 dspider users   13029 Jun 15 12:36 fb5774437e507bb05d3a340e739a05a0c7d0c3fe.torrent
-rw-r--r-- 1 dspider users 2243162 Jul 19 11:54 torrents.fastresume
-rw-r--r-- 1 dspider users  181399 Jul 19 11:53 torrents.state

(same for the download folder)

Last edited by DSpider (2012-07-19 12:28:14)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#3 2012-07-19 09:41:24

Al3s
Member
Registered: 2011-10-12
Posts: 26

Re: [SOLVED] Torrent state "Error" (deluge)

The owner of the download directory is "root" and the group "users" but i cant change it with chown or i dont know how. I tried:


[root@mierda alex]# chown -R alex /mnt/Datos/Torrent/
[root@mierda alex]# chown alex /mnt/Datos/Torrent/*
[root@mierda alex]# chown alex /mnt/Datos/Torrent/whathever.file

without results.

Thanks in advance.

Offline

#4 2012-07-19 10:09:00

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] Torrent state "Error" (deluge)

Did you check if you have any free space left? From what I remember deluge doesn't explicitly say it ran out of space.

Edit:
Nevermind, new torrents work so you have some free space.

Did you try accessing the files of the old torrents with any other program? Does the pathname and/or filename contain any "special" characters? By special I mean others than a-z and 0-9, if so do they display correctly in a file manager?

Last edited by R00KIE (2012-07-19 10:16:01)


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#5 2012-07-19 10:13:33

Al3s
Member
Registered: 2011-10-12
Posts: 26

Re: [SOLVED] Torrent state "Error" (deluge)

R00KIE wrote:

Did you check if you have any free space left? From what I remember deluge doesn't explicitly say it ran out of space.

No, that's not the problem I have free space and the new torrents i add work fine. The problem is with the old ones and only one of them is not completed.

Edit: Everything is fine, i can access the files, the pathnames are pretty simple, and yesterday i didnt have any problem.

Ok i though the new torrents were working but they stop too. I have no idea what is happening.

Edit2: now im trying with ktorrent and it appears to work fine but i cant add magnet links. Any suggestion?

Last edited by Al3s (2012-07-19 10:34:40)

Offline

#6 2012-07-19 11:07:18

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] Torrent state "Error" (deluge)

I've been using transmission lately and it works quite well, it also supports magnet links. Before I've tried qBittorrent and it wasn't bad either.

You may want to try to delete/rename the deluge configuration directory, reconfigure it from scratch and try re-adding the torrents to see if it works.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#7 2012-07-19 11:30:04

Al3s
Member
Registered: 2011-10-12
Posts: 26

Re: [SOLVED] Torrent state "Error" (deluge)

R00KIE wrote:

I've been using transmission lately and it works quite well, it also supports magnet links. Before I've tried qBittorrent and it wasn't bad either.

You may want to try to delete/rename the deluge configuration directory, reconfigure it from scratch and try re-adding the torrents to see if it works.

Doesnt work. The problem is in the permissions of the folder. I moved the download directory to my home and it works fine. Now what i want is to change the owner of the old download folder.

Edit: I dont know if it is important but the Torrent folder is in a ntfs partition that i share with a Microsoft SO that i use sometimes.

Last edited by Al3s (2012-07-19 11:36:30)

Offline

#8 2012-07-19 11:59:51

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Torrent state "Error" (deluge)

RTFM.

$ man chown

It's basically:

$ sudo chown -R alex:users /mnt/Datos/Torrent

You probably copied or created that folder using a LiveCD (most LiveCDs have the "root" user logged in by default).


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#9 2012-07-19 14:40:45

zwa
Member
Registered: 2005-12-05
Posts: 105

Re: [SOLVED] Torrent state "Error" (deluge)

I have the same problem!

[DEBUG   ] 10:36:47 alertmanager:123 file_error_alert: foo file
(/mnt/ntfs/Descargas/torrent/foo) error: Operación no permitida

ls -ldh /mnt/ntfs/Descargas/torrent/
drwxrwxr-x 1 root users 4,0K jul 18 22:44 /mnt/ntfs/Descargas/torrent/

id
uid=1000(me) gid=100(users) grupos=100(users),90(network),1002(ts3)

I am in the users group so I should be able to write. I can touch foobar and the file gets created.

Last edited by zwa (2012-07-19 14:52:55)

Offline

#10 2012-07-19 15:30:18

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] Torrent state "Error" (deluge)

Using ntfs with linux is not the best of ideas, specially for anything else than sporadic access. The problem is probably caused by something deluge tries to use, maybe sparse files for preallocation or some other feature supported by a linux native filesystem.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#11 2012-07-19 15:46:03

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Torrent state "Error" (deluge)

Al3s and zwa, post your /etc/fstab.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#12 2012-07-19 15:58:12

zwa
Member
Registered: 2005-12-05
Posts: 105

Re: [SOLVED] Torrent state "Error" (deluge)

# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
tmpfs		/tmp	tmpfs	nodev,nosuid	0	0
UUID=071dc928-f183-48a2-a033-fc98cd47a199 / ext4 defaults 0 1
UUID=0b658cdf-df2e-494e-9e93-d5f7d0bac6ad swap swap defaults 0 0
UUID=7f58c2fd-850a-4e93-b6df-494664355184 /boot ext2 defaults 0 1
UUID=365982a8-21e0-4968-a917-bfaaa8b43e51 /home ext4 defaults 0 1
UUID=DEB82D20B82CF8A3 /mnt/ntfs ntfs-3g gid=users,fmask=113,dmask=002   0 0
none  /proc/bus/usb  usbfs  auto,busgid=108,busmode=0775,devgid=128,devmode=664  0  0


I had a working deluge before. I never could successfully run deluged with initscript so I always run it as a non-root user.
I don't know if some update or a hdd sata port swap is responsible for this issue, cause before that it worked well.

Last edited by zwa (2012-07-19 16:32:15)

Offline

#13 2012-07-19 16:11:28

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Torrent state "Error" (deluge)

First of all, use [ code ] tags when posting code. Second, that is an ugly fstab right there... Only the "/" entry should have "1" at the end. Everything else should have either "2" or "0": https://wiki.archlinux.org/index.php/Fs … efinitions


Edit: Nah. They're NTFS-3G specific options.

Last edited by DSpider (2012-07-19 16:13:32)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#14 2012-07-19 16:41:29

zwa
Member
Registered: 2005-12-05
Posts: 105

Re: [SOLVED] Torrent state "Error" (deluge)

I think all my permission rights are ok so this is some configuration related or deluged problem.

cat /etc/conf.d/deluged
OPTIONS=""
WEB_OPTIONS=""

If I run deluged with rc.d start deluged, I get this when I run deluge-console:

[ERROR   ] 12:42:44 client:395 RPCError Message Received!                                  
                                                         --------------------------------------------------------------------------------
RPCRequest: daemon.login(localclient, 4e2b19bc0b583f178ddb0cb88148c82226832415)
                                  --------------------------------------------------------------------------------
File "/usr/lib/python2.7/site-packages/deluge/core/rpcserver.py", line 259, in dispatch ret = component.get("AuthManager").authorize(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/deluge/core/authmanager.py", line 93, in authorize raise BadLoginError("Password does not match")
                                        
BadLoginError: Password does not match
                                                                                   --------------------------------------------------------------------------------

but I have not set any password.

My /etc/rc.d/deluged, I applied the patch from this thread https://bbs.archlinux.org/viewtopic.php?id=144049 btw.

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions
. /etc/conf.d/deluged

PIDFILE=/run/deluge/deluged.pid
OPTIONS="-P $PIDFILE $OPTIONS"

[ -f $PIDFILE ] && PID=$(<$PIDFILE)
for ROGUE in $(pgrep -d' ' -f /usr/bin/deluged); do
  [ x$ROGUE == x$PID  ] || kill -9 $ROGUE &>/dev/null
done

case "$1" in
  start)
    stat_busy "Starting Deluge Daemon"
    [[ -z $PID ]] && su -l -s /bin/sh -c "/usr/bin/deluged $OPTIONS >/dev/null" deluge
    if [ $? -gt 0 ]; then
      stat_fail
    else
      add_daemon deluged
      stat_done
    fi
    ;;
  stop)
    stat_busy "Stopping Deluge Daemon"
    [[ ! -z $PID ]] && kill $PID &> /dev/null
    if [ $? -gt 0 ]; then
      stat_fail
    else
      rm $PIDFILE
      rm_daemon deluged
      stat_done
    fi
    ;;
  restart)
    $0 stop
    sleep 1
    $0 start
    ;;
  *)
    echo "usage: $0 {start|stop|restart}"
esac
exit 0

Last edited by zwa (2012-07-19 16:48:28)

Offline

#15 2012-07-19 19:17:21

Al3s
Member
Registered: 2011-10-12
Posts: 26

Re: [SOLVED] Torrent state "Error" (deluge)

DSpider wrote:

RTFM.

$ man chown

It's basically:

$ sudo chown -R alex:users /mnt/Datos/Torrent

You probably copied or created that folder using a LiveCD (most LiveCDs have the "root" user logged in by default).

First of all. Here is my /etc/fstab:

# 
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
tmpfs           /tmp    tmpfs   nodev,nosuid    0       0
/dev/sda1 / ext4 defaults 0 1
/dev/sda2 /home ext4 defaults 0 1
/dev/sda3 swap swap defaults 0 0
/dev/sda4 /mnt/DatosL ntfs-3g gid=users,fmask=113,dmask=002 0 0
/dev/sdb1 /mnt/Windows ntfs-3g gid=users,fmask=113,dmask=002 0 0
/dev/sdb5 /mnt/Datos ntfs-3g gid=users,fmask=113,dmask=002 0 0

Second: Don't be so smartass with the RTFM shit. I have read the manual before i came here for help. From the FM:

        chown root /u
              Change the owner of /u to "root".

       chown root:staff /u
              Likewise, but also change its group to "staff".

       chown -hR root /u
              Change the owner of /u and subfiles to "root".

I used the commands i tried as root, of course, so no need for "sudo"
Btw i used the command you posted, just in case i'm that stupid:

 sudo chown -R alex:users /mnt/Datos/Torrent

and it does the same thing as mine: nothing

And about the livecd nonsense: my torrent folder was created like years ago and i've been using Arch and Deluge with this directory since last year and never had a problem.

Don't get me wrong, i appreciate your help but, please, Read The Fucking Posts before you answer.

Last edited by Al3s (2012-07-19 19:18:31)

Offline

#16 2012-07-19 20:17:18

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Torrent state "Error" (deluge)

Al3s wrote:

Btw i used the command you posted, just in case i'm that stupid:

 sudo chown -R alex:users /mnt/Datos/Torrent

and it does the same thing as mine: nothing

It just occured to me that NTFS doesn't have any concept of file permissions or owners. The command works, just not on NTFS, FAT/FAT32 or other non-Linux filesystems. To me it seemed very odd that both of you have the same fstab options for the download directory, so I decided to try it myself and I got the same "Operation not permitted" error. First with the full range of ntfs-3g parameters then with an even simpler fstab entry:

/dev/sdb1           /media/Games    ntfs    defaults                0       0

Same error.

But it does work with whatever auto mounting method Dolphin uses (udisks?).


PS: RTFM can also mean Read The Fine Manual. Don't get so upset about it.

Last edited by DSpider (2012-07-19 20:18:13)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#17 2012-07-19 20:20:59

alchemator
Member
Registered: 2012-02-22
Posts: 14

Re: [SOLVED] Torrent state "Error" (deluge)

yeah i just started having this same problem

gonna look for an alternative to deluge as i dont feel like sorting this out

i'm guessing that an update to deluge or one of its dependencies no longer works with ntfs partitions

Offline

#18 2012-07-19 20:28:28

Al3s
Member
Registered: 2011-10-12
Posts: 26

Re: [SOLVED] Torrent state "Error" (deluge)

DSpider wrote:

PS: RTFM can also mean Read The Fine Manual. Don't get so upset about it.

smile Sorry but i usually try to fix my problems by reading, not asking for help. That's why i got upset. Just a moment ago i was reading precisely what you say about chown not working on ntfs. Thanks, anyway.

alchemator wrote:

yeah i just started having this same problem

gonna look for an alternative to deluge as i dont feel like sorting this out

i'm guessing that an update to deluge or one of its dependencies no longer works with ntfs partitions

The thing is i'm having the same issue with qTorrent. I dont know, i think ktorrent was working fine but i dont like it.

Offline

#19 2012-07-19 20:32:34

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Torrent state "Error" (deluge)

Here's your new fstab entry:

/dev/sdb5    /mnt/Datos      ntfs-3g     uid=alex,gid=users       0    0

(tested it myself, obviously adjusted for my username, mount point, etc)


You're welcome.

Don't forget to mark it as solved.


Edit: ...unless there's more than one user on the same PC.

Last edited by DSpider (2012-07-19 20:50:00)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#20 2012-07-19 21:42:08

zwa
Member
Registered: 2005-12-05
Posts: 105

Re: [SOLVED] Torrent state "Error" (deluge)

DSpider wrote:

Here's your new fstab entry:

/dev/sdb5    /mnt/Datos      ntfs-3g     uid=alex,gid=users       0    0

(tested it myself, obviously adjusted for my username, mount point, etc)


You're welcome.

Don't forget to mark it as solved.


Edit: ...unless there's more than one user on the same PC.

I added uid=username to my existing fstab and so far so good. I also had a working deluge with the above setup for like a year, so this could be related to a recent deluge update or ntfs-3g one, I don't know for sure.

Thanks for your help.

Offline

#21 2012-07-19 22:01:30

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Torrent state "Error" (deluge)

Well, libtorrent-rasterbar was updated very recently. See the Help -> About screen from Deluge. It says Client: 1.3.5 / libtorrent: 0.16.1.0. Googling "deluge operation not permitted" lead me to this topic where someone said that downgrading it fixed the problem. Nearly identical fstab too. Hmmm... Come to think of it, I remember that some time ago this package briefly made it into [extra] but was pulled soon after because it had various issues. Now it seems to be flagged as out-of-date:

http://www.archlinux.org/packages/?sort … -rasterbar


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#22 2012-07-20 05:53:05

Al3s
Member
Registered: 2011-10-12
Posts: 26

Re: [SOLVED] Torrent state "Error" (deluge)

It works, thank you smile

As you point out, it's must be a problem with libtorrent-rasterbar because so far i tried two other bittorrent clients: ktorrent and qtorrent. Ktorrent worked fine but qtorrent had the same issue and i just realized qtorrent uses libtorrent-rasterbar too.

Offline

#23 2012-07-20 12:12:38

sonoran
Member
From: sonoran desert
Registered: 2009-01-12
Posts: 192

Re: [SOLVED] Torrent state "Error" (deluge)

And for those who put IgnorePkg = libtorrent-rasterbar in their pacman.conf after the previous troubles, it is now ok, maybe even necessary, to upgrade libtorrent-rasterbar to get deluge working.

I started getting the error that deluge would not work in Classic Mode, and the traceback indicated a missing old version of libboost_system.so.1.49.

After allowing the update to libtorrent-rasterbar deluge is working again here.

Offline

#24 2012-07-20 14:13:37

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Torrent state "Error" (deluge)

I don't know why it's marked as out of date on the Arch package db. The official SourceForge page for the project says that libtorrent-rasterbar-0.15.0 is the latest.

Maybe they moved?


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#25 2012-07-20 15:04:16

sonoran
Member
From: sonoran desert
Registered: 2009-01-12
Posts: 192

Re: [SOLVED] Torrent state "Error" (deluge)

DSpider wrote:

I don't know why it's marked as out of date on the Arch package db. The official SourceForge page for the project says that libtorrent-rasterbar-0.15.0 is the latest.

Maybe they moved?

Here's the libtorrent page: http://www.rasterbar.com/products/libtorrent/

libtorrent-rasterbar 0.16.1-1 works with the new boost-libs and the Deluge magnet link bug has been fixed: https://bugs.archlinux.org/task/29414

Offline

Board footer

Powered by FluxBB