Hi all, and sorry for bad english!
I 'm looking for a solution to my problem for some time, without finding it.
I have Dietpi on a raspberry 2 in which I have installed Amuled and Transmission:
I would like to keep temporary file folders of both in a USB disk connected with a Y-shaped cable,
and I would like to merge the completed downloads of the two programs on a network disk connected via a fritzbox router accessible through user and password.
I have created in router its specific for raspberry whith rw access on the entire disc even if i could only mount the specific downloads folder.
They are both NTFS, because I need to eventually detach them and carry them around.
I created the two directories DISCO_RETE and USB in the /media folder
sudo mkdir -m 777 /media/DISCO_RETE
sudo mkdir -m 777 /media/USB
I configured them on FSTAB currently in this way
//192.168.0.1/fritz.nas/300GB /media/DISCO_RETE cifs username = USER, password = PASSWORD, rw, vers = 1.0 0 0
UUID = 8066F0D566F0CD42 /media/USB ntfs-3g defaults, dir_mode = 0777, file_mode = 0777, noatime 0 2
in /home/amuleusr/.aMule/amule.conf
IncomingDir=/media/DISCO_RETE/DOWNLOADS
TempDir=/media/USB/aMuleTemp
In /etc/transmission-daemon/settings.json
"incomplete-dir": "/media/USB/TransmissionTemp",
"download-dir": "/media/DISCO_RETE/DOWNLOADS",
With Transmission no problem, everything works perfectly.
The problem is aMule: once a file is completed, the file is copied to the network disk, BUT the download line remains black,
the download is not “marked” as complete and is not removed from the list, also because the temporary files remain in the
temporary folder, and each time the daemon or raspberry is restarted, a new file is created with the same name and (1), (2) etc.
An example of amule logs:
2019-04-11 15:10:03: Sospensione invio del file: 91686CC5A503DB5187D1078F58538C6B
[b](GOOGLE TRANSLATED 2019-04-11 15:10:03: Suspension of sending the file: 91686CC5A503DB5187D1078F58538C6B )
2019-04-11 15:14:29: 15:14:29: Error: Impossible to set permissions for the file '/media/DISCO_RETE/DOWNLOADS/XXXXXXXXXXXXXXXXXXX' (error 1: Operation not allowed)[/b]
2019-04-11 15:14:29: 15:14:29: Error: File '/media/USB/aMuleTemp/001.part' could not be renamed '/media/DISCO_RETE/DOWNLOADS/XXXXXXXXXXXXXXXXXXX' (error 0 : Success)
2019-04-11 15:20:02: 15:20:02: Error: Impossible to set permissions for the file '/media/DISCO_RETE/DOWNLOADS/XXXXXXXXXXXXXXXXXXX' (error 1: Operation not allowed)
!2019-04-11 15:20:02: Errore imprevisto durante il completamento di XXXXXXXXXXXXXXXXXXX. File messo in pausa
[b](GOOGLE TRANSLATED ! 2019-04-11 15:20:02: Unexpected error while completing XXXXXXXXXXXXXXXXXXX. File paused)[/b]
I’ve tried umask = 000 and I don’t know how many options including different secs (from what I understand, on the fritz it’s not possible to use cifs 2 and 3, and it works only with 1) .
Cifs 1 seems to support NTFS , reading and writing seems ok, Transmission works fine too, so i think it shouldn’t be a privilege issue.
The problem could be that the daemon is started with user “amuleusr”, tonight i’ll try to change user , setting “dietpi”, perhaps used by Transmission. EDIT same issue with dietpiuser too…EDIT
When i use the cifs quiet option, some strange things happen: in a first moment, doing
sudo mount -a
doesn’t cause errors , but amule restart fails, so i try the reboot, and the /media/DISCO_RETE doesn’t point to network disk,
but it became a folder in the internal memory of Raspberry: in that case the download ends without problems, except that i want the file in another folder!!!
After reboot sudo mount -a gives
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Removing quiet makes mount correctly again.
The directory USB went mounted correctly with quiet, it should be because the ntfs-3g allows.
The folder change happened other times with some cifs option without rising errors the first time i mount.
I didn’t have this problem when using a Netgear router and i used the same disk on the network both for temporary files and for finished downloads, with guest user.
Could it be a problem when “moving” the file from an NTFS disk to another NTFS?
I have not yet tried to format the temporary disk in EXT4 and I would not do it, because I should practically leave it attached to the raspberry without then being able to use it on various windows machines
Can anyone give me an explanation or suggestion? Is there a way to see some logs?
Thanks!