Page 1 of 1

Error: 503 Use AUTH first - curlftpfs

Posted: 2022-08-06 19:32
by ou2mame
I'm trying to get my linux laptop to mount the FTP to a local folder using curlftpfs, and I keep running into issues. Does anyone know where to begin? I can mount the ftp account as a network drive in Windows 10, access the account through filezilla client on windows, but on linux it keeps failing with the 503 error.

This is all on a local network. When I have the protocol set to "Require explicit FTP over TLS", the error is 503 Use AUTH first. If I set it to "Explicit FTP over TLS and insecure plain FTP", the error is "550 Couldn't open the file or directory".

I'm able to connect with filezilla on the same linux machine. I'm not sure what the issue is here.

Re: Error: 503 Use AUTH first - curlftpfs

Posted: 2022-08-08 06:42
by oibaf
According to curlftpfs documentation, you must pass the ssl option to the mount command, in order to connect securely. This might be helpful: https://wiki.archlinux.org/title/CurlFt ... ted_server

The fact you get a file not found error when connecting insecurely, might mean that you've not correctly set up the mount point. Another possibility is that curlftpfs is doing something not standard. Can you also post the log of the server for that?

Re: Error: 503 Use AUTH first - curlftpfs

Posted: 2022-08-08 07:28
by oibaf
I confirm curlftpfs is doing something non-standard: issuing the "LIST -a" command, which the FileZilla FTP Server interprets as "List the content of the directory -a or provide info about the file -a", whilst curlftpfs uses "-a" as an option to the command, which is however non-standard.

You might want to take this up to the curlftpfs maintainer.

Re: Error: 503 Use AUTH first - curlftpfs

Posted: 2022-08-08 19:19
by ou2mame
Thank you so much! I was looking at an option list apparently of a previous version of curlftpfs and it didn't have the list command option. That helped me mount the server. Filezilla couldn't understand the - a.

Now I'm having another issue where the folders are appearing empty, yet the ftp functions fine from other ftp clients. I might have to move on to sshfs, but I was hoping to use ftp. I'm gonna have to do some more digging and bug testing, but I'm halfway there!