Ftp mounting doesn't seem to work
cross-posted from: https://lemm.ee/post/58872408
Hey,
So I've been connecting to an ftp server which I worked on with apps like GNOME Builder, and backed up the contents of with Pika Backup, connecting to it via the GNOME Files application, Nautilus, from the Network tab.
Recently, apps stopped being able to read files I opened with the file picker hosted on the ftp server, and after a lot of debugging I realised that was because Nautilus had for some reason switched from mounting the files under /run/user/1000/gvfs/ftp_address to the more abstract path ftp://ftp_address, under the virtual directory computer:///. Now apps can't read those files as they are not mounted under an actual path.
I couldn't find a way in Nautilus, FileZilla, or Dolphin to mount the ftp server files under a specified path /mnt/ftp_username, or even to put it back to the unwieldy but still working path it was under before, using a GUI.
I was recommended by an LLM assistant to use the curlftpfs command, but even with several variations of a command such as the following
sudo curlftpfs -v -o "uid=$UID,gid=$GID" ftp://username:correct%20password@ftp_address /mnt/ftp_usernameit always gave the same error
Error setting curl:I'm not sure what else to try, could I have some advice please?
Never heard of
curlftpfsbut this feature is built into rclone;Alright, I added the config, and could use an app such as Rclone shuttle to view the files, but at no point could I set a mount point and I'm still not sure how to do that.
Thanks, I tried that and it gave a different error
but I will try to fix it
So rclone remotes I have to be added through the rclone configuration. I'm not 100% sure you can Mount a remote the way that you're trying to.
You'll have to run
rclone configand then add your FTP server as a remote. Then you'll be able to use it as a mount point. For example if in the configuration you add it asjack_ftpyou will then be able to mount it like so:But as far as I know you first have to add the remote to the rclone configuration.
Hmm, ok, I tried that, and the command hung without logging anything to the terminal or terminating, and /mnt/jack101 ceased to be a folder, and became a binary file - one I didn't have permission to access
Not sure if you setup the remote correctly or not, then.
Setup your SFTP/FTP remote with the name you want. If it's hanging, only thing I can think of is that you didn't setup the remote correctly. This is how it looks in Windows: https://x0.at/ogeG.png
kagis for error message
What version of curl are you using?
https://github.com/curl/curl/discussions/14299
Yeah, might well be there's an error with this version - 0.9.2/8.9.1
But it also doesn't seem the old version is available for download...
I haven't ever used
curlftpfs, but I imagine that if this is the problem and if Fedora doesn't have a fix, it's probably possible to build it out of tarball and use a wrapper around curlftpfs as a temporary workaround. It doesn't look likecurlftpfslets you specify the path to thecurlbinary, so probably need to modify PATH prior to invokingcurlftpfs.Like, something along the lines of:
build curl 8.8.0 from tarball, stick
curlbinary in directory (say, in /opt/curl/)Create curlftpfswrapper.sh:
Drop
curlftpfswrapper.shsomewhere in your PATH.Use
curlftpfswrapper.shinstead ofcurlftpfsas long as it's broken.