aMule Forum

English => aMule Help => Topic started by: michelinok on November 23, 2010, 09:58:56 PM

Title: Terrible problem after changing folders....
Post by: michelinok on November 23, 2010, 09:58:56 PM
Hi there!
I've got a nas, so i've moved all the temp and incoming folders to the nas,then mapped using mount cifs...
I've added a new user to the linux machine running amuled with the same credentials of the nas.
Then i've logged to the linux machine using the new credentials,modified the amuled.conf and run amuled, but I got these errors:

.......
 Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/017.part.met.bak' (error 1: Operation not permitted)
.......
.......
and so on... what can i do?
Title: Re: Terrible problem after changing folders....
Post by: Stu Redman on November 23, 2010, 10:01:54 PM
Login as root and chown -R your amule folder to the user running amuled.
Title: Re: Terrible problem after changing folders....
Post by: michelinok on November 23, 2010, 11:18:10 PM
Login as root and chown -R your amule folder to the user running amuled.

Same problem...this what i've done:

1) created the new user called "admin" with the same password as the nas
2) logged with root and chown -R admin /root/.aMule
3) logged out
4) logged in with admin

but it seems to still use the "admin" amuled.conf instead of the root amuled.conf's config dir.
i've tryed copying the configured amuled.conf to the admin's amule.conf,but the problem is the same


Any idea?
Title: Re: Terrible problem after changing folders....
Post by: Stu Redman on November 23, 2010, 11:36:42 PM
Why would you have two config dirs so it can use the wrong one?
Title: Re: Terrible problem after changing folders....
Post by: michelinok on November 23, 2010, 11:45:17 PM
Why would you have two config dirs so it can use the wrong one?

I was running amuled as root, then (when switched to the nas) I've created a new user called "admin",when i run amuled withing "amule",it creates the amule.conf  inside /home/admin/.aMule and it uses it.
Title: Re: Terrible problem after changing folders....
Post by: Stu Redman on November 24, 2010, 12:58:47 PM
I still don't get your problem.

So it's using the config in /home/admin/.aMule . Fine.  Set the temp folder in it to /hddext/filesharing/amule/Temp and chown /hddext/filesharing/amule/Temp to admin as I told you.
Title: Re: Terrible problem after changing folders....
Post by: michelinok on November 24, 2010, 07:01:44 PM
I still don't get your problem.

So it's using the config in /home/admin/.aMule . Fine.  Set the temp folder in it to /hddext/filesharing/amule/Temp and chown /hddext/filesharing/amule/Temp to admin as I told you.

LOL!  ;D I was chown'ing the amule config folder,not the temp folder  ::) ::)

I'll try ASAP!!!

Many thanks, i hope not to disturb you anymore (i hope...)
Title: Re: Terrible problem after changing folders....
Post by: michelinok on November 24, 2010, 07:38:56 PM
Should i do the chown for the temp only or for the incoming too?
Title: Re: Terrible problem after changing folders....
Post by: michelinok on November 24, 2010, 07:49:48 PM
 chown -R root /hddext/filesharing/amule/Temp


.....
chown: changing ownership of `/hddext/filesharing/amule/Temp/711.part.met.txtsrc': No such file or directory
chown: changing ownership of `/hddext/filesharing/amule/Temp/722.part.met.txtsrc': No such file or directory
chown: changing ownership of `/hddext/filesharing/amule/Temp/723.part.met.ahl': No such file or directory
chown: changing ownership of `/hddext/filesharing/amule/Temp/723.part.met.txtsrc': No such file or directory
chown: changing ownership of `/hddext/filesharing/amule/Temp/727.part.met.ahl': No such file or directory
.....


and after launching amuled i got this looooong entryes in the log:

..............
 2010-11-24 23:52:40: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.bak' (error 2: No such file or directory)
 2010-11-24 23:52:46: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.backup' (error 2: No such file or directory)
 2010-11-24 23:52:49: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.bak' (error 2: No such file or directory)
 2010-11-24 23:52:52: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.backup' (error 2: No such file or directory)
 2010-11-24 23:52:56: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.bak' (error 2: No such file or directory)
 2010-11-24 23:52:59: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.backup' (error 2: No such file or directory)
 2010-11-24 23:53:02: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.bak' (error 2: No such file or directory)
 2010-11-24 23:53:05: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.backup' (error 2: No such file or directory)
 2010-11-24 23:53:09: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.bak' (error 2: No such file or directory)
 2010-11-24 23:53:11: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.backup' (error 2: No such file or directory)
 2010-11-24 23:53:15: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.bak' (error 2: No such file or directory)
 2010-11-24 23:53:19: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.backup' (error 2: No such file or directory)
 2010-11-24 23:53:22: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.bak' (error 2: No such file or directory)
 2010-11-24 23:53:23: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/005.part.met.backup' (error 2: No such file or directory)
 2010-11-24 23:53:24: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/005.part.met.bak' (error 2: No such file or directory)
 2010-11-24 23:53:26: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.backup' (error 2: No such file or directory)
 2010-11-24 23:53:29: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.bak' (error 2: No such file or directory)
 2010-11-24 23:53:32: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.backup' (error 2: No such file or directory)
 2010-11-24 23:53:36: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.bak' (error 2: No such file or directory)
 2010-11-24 23:53:38: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.backup' (error 2: No such file or directory)
 2010-11-24 23:53:42: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.bak' (error 2: No such file or directory)
 2010-11-24 23:53:45: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.backup' (error 2: No such file or directory)
 2010-11-24 23:53:48: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.bak' (error 2: No such file or directory)
 2010-11-24 23:53:51: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.backup' (error 2: No such file or directory)
 2010-11-24 23:53:54: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.bak' (error 2: No such file or directory)
 2010-11-24 23:53:57: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.backup' (error 2: No such file or directory)
 2010-11-24 23:54:01: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.bak' (error 2: No such file or directory)
 2010-11-24 23:55:01: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.backup' (error 2: No such file or directory)
 2010-11-24 23:55:04: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/001.part.met.bak' (error 2: No such file or directory)....
.............


and so on....
Title: Re: Terrible problem after changing folders....
Post by: ^marcell^ on November 25, 2010, 12:13:19 PM
First of all, what is the file system on the NAS?
Title: Re: Terrible problem after changing folders....
Post by: michelinok on November 25, 2010, 06:15:16 PM
NTFS
Title: Re: Terrible problem after changing folders....
Post by: ^marcell^ on November 26, 2010, 05:04:39 PM
First of all:
michelinok wrote me a personal message that he can't post messages here anymore. Could someone with admin privileges check that please?

@michelinok (hope you can reply):
What command do you use to mount the NAS?
Please post the first two lines of "ls -la /hddext/filesharing/amule/Temp" executed in a console/terminal below.
Also please post the output of "id" executed in a console/terminal.
Title: Re: Terrible problem after changing folders....
Post by: michelinok on November 26, 2010, 09:20:27 PM
First of all:
michelinok wrote me a personal message that he can't post messages here anymore. Could someone with admin privileges check that please?

@michelinok (hope you can reply):
What command do you use to mount the NAS?
Please post the first two lines of "ls -la /hddext/filesharing/amule/Temp" executed in a console/terminal below.
Also please post the output of "id" executed in a console/terminal.

1) It seems i can post now  8)
2) mount -t cifs //192.168.2.200/public /hddext -o username=myuser,password=mypass,domain=workgroup
3)
total 56794824
drwxrwxrwx 2 99 98          0 Nov 26  2010 .
drwxrwxrwx 4 99 98          0 Nov 24 00:27 ..
-rwxrwxrwx 1 99 98 4695233057 Nov 26 21:18 001.part
-rwxrwxrwx 1 99 98      11093 Nov 26  2010 001.part.met

4)
 intersect:~#  "id"
uid=0(root) gid=0(root) groups=0(root)


Any idea? It seems to download ok,but the log is quite full....(downloading more than 100 files...)
Title: Re: Terrible problem after changing folders....
Post by: Kry on November 26, 2010, 10:49:41 PM
Add ",silent" to the mount options, without the quotes, and remount.
Title: Re: Terrible problem after changing folders....
Post by: michelinok on November 27, 2010, 09:51:10 AM
I'll try asap
Title: Re: Terrible problem after changing folders....
Post by: Vollstrecker on November 27, 2010, 10:30:43 AM
Maybe you should tell mount some tweaks like which user or group wants to use the share.

",gid=100,uid=1000,iocharset=utf8,nouser_xattr,noacl,serverino"

appended to the mount options does the trick for a samba running on an UTF-8-only machine. For sure you should set the id's to the right value for your user.
Title: Re: Terrible problem after changing folders....
Post by: michelinok on November 27, 2010, 06:34:24 PM
Maybe you should tell mount some tweaks like which user or group wants to use the share.

",gid=100,uid=1000,iocharset=utf8,nouser_xattr,noacl,serverino"

appended to the mount options does the trick for a samba running on an UTF-8-only machine. For sure you should set the id's to the right value for your user.
I'm not a linux expert so...how should i mount the samba share? (yes,the nas is running linux,so it's a samba share!,but i have no access to the linux console of the nas...).
I've tryed addind "silent",but it's a not recognized parameter....

I've tryed this:

mount -t cifs //192.168.2.200/public /hddext -o username=myuser,password=mypass,domain=workgroup,gid=100,uid=1000,iocharset=utf8,nouser_xattr,noacl,serverino

but i still get the errors:

2010-11-27 18:34:19: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/111.part.met.bak' (error 2: No such file or directory)
 2010-11-27 18:34:19: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/111.part.met.backup' (error 2: No such file or directory)
 2010-11-27 18:34:19: Error: Impossible to set permissions for the file '/hddext/filesharing/amule/Temp/111.part.met.bak' (error 2: No such file or directory)


I'm going crazy...the log is always full...
Title: Re: Terrible problem after changing folders....
Post by: ^marcell^ on November 28, 2010, 11:10:55 AM
I'm going crazy...the log is always full...
As a temporary workaround you can replace the logfile with a symbolic link to /dev/null.
Code: [Select]
cd .aMule
ln -s /dev/null logfile
Title: Re: Terrible problem after changing folders....
Post by: michelinok on November 28, 2010, 03:41:40 PM
I'm going crazy...the log is always full...
As a temporary workaround you can replace the logfile with a symbolic link to /dev/null.
Code: [Select]
cd .aMule
ln -s /dev/null logfile

Until i'll not find a "correct way" to avoid this problem, this is a good workaround. Thanks.
Title: Re: Terrible problem after changing folders....
Post by: Vollstrecker on November 28, 2010, 05:03:18 PM
Given taht the id's are right for your env, just the fact that your nas runs linux doesn't imply that it's UTF-8. If the fs doesn't support it, it's not used. And the params affect communications with the sambe, and enable or disable some internal handlers in your sambe-server. Somehow you have to get access to your servers config to get it running as expected. Maybe just an fs change is needed. Why should you run ntfs on a linux machine? The Win-Clients see their fs trough samba, so they don't care.
Title: Re: Terrible problem after changing folders....
Post by: michelinok on November 28, 2010, 08:38:55 PM
unfortunatly i cannot access the nas linux console  :P
so...i'll keep the log redirected to /dev/null,it's the only thing i can do atm.

Thank you a alot!
Title: Re: Terrible problem after changing folders....
Post by: Kry on November 29, 2010, 11:13:00 AM
So... have you tried mounting with ",silent" yet?
Title: Re: Terrible problem after changing folders....
Post by: michelinok on November 29, 2010, 08:45:49 PM
So... have you tried mounting with ",silent" yet?
yes,tryed, but it's not recognized as a valid parameter  :'(
Title: Re: Terrible problem after changing folders....
Post by: ^marcell^ on November 30, 2010, 01:03:01 PM
What does "mount" executed in a terminal tell you?

Perhaps you can try the mount command with a different syntax. I used to run into permission problems with NFS mounts in the past.
This proved to be the easiest and cleanest way to mount a network share:
Code: [Select]
mount 192.168.2.200:/public /hddext
Title: Re: Terrible problem after changing folders....
Post by: michelinok on November 30, 2010, 07:57:02 PM
What does "mount" executed in a terminal tell you?

Perhaps you can try the mount command with a different syntax. I used to run into permission problems with NFS mounts in the past.
This proved to be the easiest and cleanest way to mount a network share:
Code: [Select]
mount 192.168.2.200:/public /hddext

mount 192.168.2.200:/public /hddext
mount.nfs: mount to NFS server '192.168.2.200' failed: System Error: Connection refused
Title: Re: Terrible problem after changing folders....
Post by: ^marcell^ on December 01, 2010, 12:19:18 PM
What does "mount" executed in a terminal tell you?
Please execute "mount" without any parameter too.
Title: Re: Terrible problem after changing folders....
Post by: michelinok on December 01, 2010, 01:41:03 PM
What does "mount" executed in a terminal tell you?
Please execute "mount" without any parameter too.



intersect:~# mount
/dev/mmcblk0p2 on / type ext4 (rw,noatime)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)


intersect:~# mount 192.168.2.200:/PUBLIC /hddext
mount.nfs: mount to NFS server '192.168.2.200' failed: System Error: Connection                 refused
Title: Re: Terrible problem after changing folders....
Post by: Kry on December 01, 2010, 03:36:54 PM
His NAS should mount the NTFS share with ",silent" to make the chmod calls fail silently and report OK, but he has no access to the NAS command line, so I'm not sure if there's anything he can do if that is the problem.

It could be the CIFS needs to be mounted with the correct UID/GID for the mount user in the NAS, but unless he can find out which one that is, not sure how he would try it - let alone if it would fix it.

Title: Re: Terrible problem after changing folders....
Post by: michelinok on December 02, 2010, 01:55:24 PM
His NAS should mount the NTFS share with ",silent" to make the chmod calls fail silently and report OK, but he has no access to the NAS command line, so I'm not sure if there's anything he can do if that is the problem.

It could be the CIFS needs to be mounted with the correct UID/GID for the mount user in the NAS, but unless he can find out which one that is, not sure how he would try it - let alone if it would fix it.



Which are the required infos? If i'll find a way to get an ssh access, what should i check? (commands?)
Title: Re: Terrible problem after changing folders....
Post by: michelinok on December 07, 2010, 02:08:01 PM
Ok!
I've got an ssh access to the nas! Not a lot of commands...
What should i check for the logged user? (someone told something about user id or something similar...but i'm not a linux expert...)

Many thanks.
Title: Re: Terrible problem after changing folders....
Post by: michelinok on March 20, 2011, 10:59:45 AM
I've got an ssh root access (not "root" but another user with the "power" of doing a lot of things...)
What should i do now?

Please help  :'(