"No such file or directory" from mac to FTP(NAS)

What is the problem you are having with rclone?

I have been trying to upload from my mac via rclone to the FTP server on my NAS. When I install rclone using the terminal on my mac and try to upload using it, the upload process looks normal, but ultimately the upload fails with an error like "No such file or directory".
In the destination folder, a file with a name like .pdf.kifagus2.partial is created, so you have entered a normal folder.
For reference, the FTP server settings on my NAS are set to allow only FTPS (no plain text), and I randomly changed the port to a different one, but I also entered that port when entering rclone config, so I don't think there's a big problem.

Run the command 'rclone version' and share the full output of the command.

Yes.

Which cloud storage system are you using? (eg Google Drive)

FTPS

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone copy "/Users/yhlee/Desktop/업로드 테스트" "nas_ftp:Backup/FTP 직접 업로드 테스트" -P -v --transfers 40

The rclone config contents with secrets removed.

[nas_ftp]
type = ftp
host = nas.stdl.kr
user = ***
port = 4928
pass = ***
tls = false
explicit_tls = true

I set TLS to False because if I set it to True, it wouldn't connect properly.
When I do tls=true, explicit_tls fales, there was an error "Failed to create file system for "nas_ftp:Backup/FTP 직접 업로드 테스트": NewFs: failed to make FTP connection to "nas.stdl.kr:4928": tls: first record does not look like a TLS handshake"
When I do tls=ture, explicit_tls true, an error "2023/12/24 11:22:56 Failed to create file system for "nas_ftp:Backup/FTP 직접 업로드 테스트": implicit TLS and explicit TLS are mutually incompatible, please revise your config" occured.

A log from the command with the -vv flag

could be the 1.65-bug, pls try if downgrading to 1.64.2 solves the issue.
If so stay with it until 1.66 is available.

FTP protocol is old and often causes issues - especially its TLS flavours. There might be some problem here indeed.

But from practical perspective why not to use sftp/smb/webdav if it is NAS?

Here it looks that rclone transfers files without any issue but fails to rename temp file. Try to disable using temp files all together by adding --inplace flag to your copy command.

Hello Sir.

Thank you for reply. However, how can I downgrade to 1.64.2 version? I tried with command

sudo -v ; curl https://rclone.org/install.sh | sudo bash -v 1.64.2

but terminal said "curl: (23) Failed writing body".

Hello kapitainsky.

I cannot use SMB because I'm using external netwrok from NAS. It's not secure to open SMB port to outside.
And WebDAV, I used it and it looks good for small document files but not stable with big files so I'm not using it. For SFTP, I heard it's slower than FTPS so I don't use it.

id@name-MacBookAir ~ % rclone copy "/Users/yhlee/Desktop/업로드 테스트" "nas_ftp:Backup/FTP 직접 업로드 테스트" -P -v --transfers 40 --inplace   
2023/12/24 18:22:29 INFO  : .DS_Store: Copied (new)
2023/12/24 18:22:31 ERROR : 2023-2388(1) 견적서.pdf: Failed to copy: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
2023/12/24 18:22:32 ERROR : 2023-2383(1) 견적서.pdf: Failed to copy: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
2023/12/24 18:22:33 ERROR : 2023-2388(3) 견적서.pdf: Failed to copy: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
2023/12/24 18:22:33 ERROR : 2023-2394(1) 견적서.pdf: Failed to copy: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
2023/12/24 18:22:33 ERROR : 2023-2388(2) 견적서.pdf: Failed to copy: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
2023/12/24 18:22:33 ERROR : 2023-2394(2) 견적서.pdf: Failed to copy: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
2023/12/24 18:23:34 ERROR : 2023-2394(3) 견적서.pdf: Failed to copy: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
2023/12/24 18:23:34 ERROR : Attempt 1/3 failed with 7 errors and: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
2023/12/24 18:23:38 INFO  : .DS_Store: Copied (replaced existing)
2023/12/24 18:23:38 ERROR : 2023-2383(1) 견적서.pdf: Failed to copy: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
2023/12/24 18:23:38 ERROR : 2023-2388(2) 견적서.pdf: Failed to copy: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
2023/12/24 18:23:38 ERROR : 2023-2394(3) 견적서.pdf: Failed to copy: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
2023/12/24 18:23:39 ERROR : 2023-2388(1) 견적서.pdf: Failed to copy: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
2023/12/24 18:23:39 ERROR : 2023-2394(1) 견적서.pdf: Failed to copy: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
2023/12/24 18:23:39 ERROR : 2023-2394(2) 견적서.pdf: Failed to copy: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
2023/12/24 18:23:39 ERROR : 2023-2388(3) 견적서.pdf: Failed to copy: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
2023/12/24 18:23:39 ERROR : Attempt 2/3 failed with 7 errors and: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
2023/12/24 18:23:43 INFO  : .DS_Store: Copied (replaced existing)
2023/12/24 18:23:43 ERROR : 2023-2388(3) 견적서.pdf: Failed to copy: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
2023/12/24 18:23:44 ERROR : 2023-2383(1) 견적서.pdf: Failed to copy: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
2023/12/24 18:23:44 ERROR : 2023-2388(1) 견적서.pdf: Failed to copy: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
2023/12/24 18:23:44 ERROR : 2023-2394(1) 견적서.pdf: Failed to copy: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
2023/12/24 18:23:45 ERROR : 2023-2388(2) 견적서.pdf: Failed to copy: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
2023/12/24 18:23:45 ERROR : 2023-2394(2) 견적서.pdf: Failed to copy: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
2023/12/24 18:23:46 ERROR : 2023-2394(3) 견적서.pdf: Failed to copy: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
2023/12/24 18:23:46 ERROR : Attempt 3/3 failed with 7 errors and: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.
Transferred:   	    6.590 MiB / 6.590 MiB, 100%, 194.430 KiB/s, ETA 0s
Errors:                 7 (retrying may help)
Checks:                 2 / 2, 100%
Transferred:            3 / 3, 100%
Elapsed time:      1m20.8s
2023/12/24 18:23:46 INFO  : 
Transferred:   	    6.590 MiB / 6.590 MiB, 100%, 194.430 KiB/s, ETA 0s
Errors:                 7 (retrying may help)
Checks:                 2 / 2, 100%
Transferred:            3 / 3, 100%
Elapsed time:      1m20.8s

2023/12/24 18:23:46 Failed to copy with 7 errors: last error was: update stor: 1 error occurred:
	* 426 Data connection: No such file or directory.

I don't know why but even if I insert parameter "--inplace", this error happens again.

It seems some files are transfered but there is no file in destination folder.

I'd do it manually from here.

hi,

can vpn/tailscale into the NAS.

sftp will work much better with rclone, is not slower than ftps and bonus, can perform file transfer verification using checksums

i have never had that issue. webdav should work find on any modern NAS, also rclone can emulate a webserver using rclone serve webdav

fwiw, i would use a vpn/tailscale and choose smb, then sftp, then webdav, never ftp.
no need to expose a file server to the internet.

FWIW: SMB doesn't support checksums, so the order should be SFTP, then [whatever], especially when syncing from remote locations.

well, that is not 100% correct, as rclone+SMB does support checksums, check out my two topics.

  1. let's compare the ways rclone can access a smb/samba server.
  2. How to access SMB/SAMBA with rclone
1 Like

Thank you for your response. I've only ever used OpenVPN to connect to a network on a NAS and use SMB to mount folders in Finder or Explorer (Windows), and never considered using rclone over a VPN, so thanks for the suggestion.
As you said, when I tried it with SFTP, I was able to do it securely and without any transfer errors, but I'm not sure about the speed yet because I tested it in a foreign country away from where my NAS is right now, so I'll have to do another speed test when I get back home, but it seems that even here, SFTP is a bit lower than FTPS.
But hopefully the error about FTPS will be resolved as well.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.