aMule Forum
English => aMule Help => Topic started by: eva01 on November 16, 2006, 08:38:08 PM
-
Hi,
I am using amuled on xebian OS (xbox debian). After amuled finish downloading file it fails to create file (data remains in *.part file).
Here is interesting part of log file:
Suspending upload of file: hhhhhhhhhhhhhhhhhhhhhhh
2006-11-16 20:10:32: CFile: Error when opening file (/mnt/f/amule/*****************.***: Invalid argument
2006-11-16 20:10:32: FileIO: Error on file copy. Can't create destination file: /mnt/f/amule/*********************.***
2006-11-16 20:10:32: Unexpected file error while completing ********.***. File paused
`
where:
hhhhhhhhhhhhhhhh is file hush
*************.*** is file name
I set permissions to 777 for my INCOMING folder.
Please help!!!
-
I still can't find solutiont to my problem. It would be helpfull if someone can tell me how to find what is that Invalid argument. To get more log information for this error.
I can send my emule.conf if it can help.
-
which file system?
-
File system is FATX. It's xboxs file system.
-
I found some new information. If I put incoming directory to my home folder (ext3 partition) than everything works fine. But the problem is that I want incoming to be on fatx F partition.
Since I am new to linux, can someone please loook in my fstab and tell im if there are some problems...
My fstab is:
# /etc/fstab: static file system information.
#
#
/dev/loop/0 / ext3 defaults,errors=remount-ro 0 1
/initrd/newroot/mnt/cdrom/debian/swap none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy auto defaults,user,noauto 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noauto 0 0
/dev/hda55 /mnt/f fatx defaults,umask=000,auto 0 0
-
I havent fount solution yet. It's interesting that some files will be created!!! 1 out of 10 completed files will be created in incoming directory.
-
Are you sure you have enough space for the files that are beeing received? Notice that aMule has a setting in Preferences->Files->Disk Space->Check Disk Space->Min Disk Space. It will not create a file if the file creation violates this number.
-
I am 100% sure that I have enough disk space. Also I tried to turn off check disk space, just to be sure that checking for free space dosn't make problem.
Thank for trying to help anyway.
I think that problem is somewhere here
2006-11-16 20:10:32: CFile: Error when opening file (/mnt/f/amule/*****************.***: Invalid argument
2006-11-16 20:10:32: FileIO: Error on file copy. Can't create destination file: /mnt/f/amule/*********************.***
If I could know what that argument is? Is there some log file for this???
Also my fatx partition (fatx is xbox file system) is mounted to: /mnt/f.
Maby this makes some problems????
-
Yes, that is probably the problem. The code that generates the error is:
// Get file permissions
STAT_STRUCT fileStats;
if (UTF8_Stat(from, &fileStats)) {
AddDebugLogLineM( true, logFileIO, wxT("Error on file copy. Can't stat original file: ") + from );
}
char buffer[FILE_COPY_BUFFER];
CFile input_file(from, CFile::read);
if (!input_file.IsOpened()) {
AddDebugLogLineM( true, logFileIO, wxT("Error on file copy. Can't open original file: ") + from );
return false;
}
CFile output_file;
if (!output_file.Open(to, CFile::write, fileStats.st_mode & 0777)) {
AddDebugLogLineM( true, logFileIO, wxT("Error on file copy. Can't create destination file: ") + to );
return false;
}
The fatx file system probably returns some set of user permissions in the fileStats variable that cannot be used on the open call, and from it comes the "invalid argument". This is most probably a file system problem, I think that if the file system does not support user permissions, it should ignore it, not fail. But that is all supposition, I can't test it here.
You could test a crazy idea that might just work: set umask to 0777 in fstab. I don't know about fatx implementation, but maybe it will return 0000 in fileStats and will not give an error. Of course, I don't even know if that is an usable file system like this, but you should be able to create the file and copy it at least.
-
I just found some new info... It seams that fatx has some filie name length limitation. Is there any way to change file name in amuled during download? I want to test this out.
I think I tryed to set unmask to 0777 some time ago... If it is imposibile to get this to work with changing file names I am finaly giving up...
-
You can change the file name using amulegui. IIRC, amulecmd has no provision for renaming, though it could support it.
Do you really need to save your file in this particular partition? Maybe you can download to another partition and then afterwards copy the file by hand. Btw, try to copy a file with a big name by hand to test if it is a file system limitation. It is no different from what aMule code does.
-
I tested file name length as suggested and it seams that's the problem. I will have to reformat hdd in xbox. It's was more convinient for me to have only one partition...