Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Linux
  3. Ftp mounting doesn't seem to work

Ftp mounting doesn't seem to work

Scheduled Pinned Locked Moved Linux
linux
18 Posts 6 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jackgreenearth@lemm.eeJ [email protected]

    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_username
    

    it always gave the same error

    Error setting curl: 
    

    I'm not sure what else to try, could I have some advice please?

    negativelookbehind@lemmy.worldN This user is from outside of this forum
    negativelookbehind@lemmy.worldN This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #7

    Just as a test, don't sudo, change to root and try it. Or, don't sudo or change to root at all, and see if that will work.

    jackgreenearth@lemm.eeJ 1 Reply Last reply
    0
    • A [email protected]

      Seems to be a known bug: https://github.com/curl/curl/discussions/14299

      jackgreenearth@lemm.eeJ This user is from outside of this forum
      jackgreenearth@lemm.eeJ This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #8

      Hmm, that also says it should have been fixed last year

      This bug is fixed in current master, set to be released in curl 8.10.0 on September 11, 2024.

      A 1 Reply Last reply
      0
      • negativelookbehind@lemmy.worldN [email protected]

        Just as a test, don't sudo, change to root and try it. Or, don't sudo or change to root at all, and see if that will work.

        jackgreenearth@lemm.eeJ This user is from outside of this forum
        jackgreenearth@lemm.eeJ This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #9

        Hmm, I did try that. It didn't work, still same error.

        1 Reply Last reply
        0
        • jackgreenearth@lemm.eeJ [email protected]

          Hmm, that also says it should have been fixed last year

          This bug is fixed in current master, set to be released in curl 8.10.0 on September 11, 2024.

          A This user is from outside of this forum
          A This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #10

          Fixed in curl, but not in a curlftpfs. Look at the comments to accepted answer.

          jackgreenearth@lemm.eeJ 1 Reply Last reply
          0
          • A [email protected]

            Fixed in curl, but not in a curlftpfs. Look at the comments to accepted answer.

            jackgreenearth@lemm.eeJ This user is from outside of this forum
            jackgreenearth@lemm.eeJ This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #11

            Idk how to downgrade it, it doesn't seem to be working

            aarvi@fedora:~$ sudo dnf dg curl-8.8.0
            Updating and loading repositories:
            Repositories loaded.
            Failed to resolve the transaction:
            No match for argument: curl-8.8.0
            You can try to add to command line:
              --skip-unavailable to skip unavailable packages
            aarvi@fedora:~$ 
            
            A 1 Reply Last reply
            0
            • jackgreenearth@lemm.eeJ [email protected]

              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_username
              

              it always gave the same error

              Error setting curl: 
              

              I'm not sure what else to try, could I have some advice please?

              2xsaiko@discuss.tchncs.de2 This user is from outside of this forum
              2xsaiko@discuss.tchncs.de2 This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #12

              Try “gio mount ftp://…”

              jackgreenearth@lemm.eeJ 1 Reply Last reply
              0
              • jackgreenearth@lemm.eeJ [email protected]

                Idk how to downgrade it, it doesn't seem to be working

                aarvi@fedora:~$ sudo dnf dg curl-8.8.0
                Updating and loading repositories:
                Repositories loaded.
                Failed to resolve the transaction:
                No match for argument: curl-8.8.0
                You can try to add to command line:
                  --skip-unavailable to skip unavailable packages
                aarvi@fedora:~$ 
                
                A This user is from outside of this forum
                A This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #13

                I don't think downgrading the curl library is promising here. curlftpfs seems to be unmaintained. I recommend looking for alternatives or alternative workflows.

                1 Reply Last reply
                0
                • 2xsaiko@discuss.tchncs.de2 [email protected]

                  Try “gio mount ftp://…”

                  jackgreenearth@lemm.eeJ This user is from outside of this forum
                  jackgreenearth@lemm.eeJ This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #14
                  aarvi@fedora:~$ gio mount ftp://jack101:correct%[email protected] /mnt/jack101
                  gio: file:///mnt/jack101: volume doesn’t implement mount
                  gio: ftp://[email protected]/: Location is already mounted
                  

                  I think it is already mounted, but under the annoying computer:/// virtual directory, not where I want it, and what does it mean by 'volume doesn't implement mount'?

                  2xsaiko@discuss.tchncs.de2 1 Reply Last reply
                  0
                  • jackgreenearth@lemm.eeJ [email protected]
                    aarvi@fedora:~$ gio mount ftp://jack101:correct%[email protected] /mnt/jack101
                    gio: file:///mnt/jack101: volume doesn’t implement mount
                    gio: ftp://[email protected]/: Location is already mounted
                    

                    I think it is already mounted, but under the annoying computer:/// virtual directory, not where I want it, and what does it mean by 'volume doesn't implement mount'?

                    2xsaiko@discuss.tchncs.de2 This user is from outside of this forum
                    2xsaiko@discuss.tchncs.de2 This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #15

                    Is there really nothing in /run/user/1000/gvfs? Try gio mount -l. Maybe unmount and remount.

                    It’s unlikely that it doesn’t actually mount, from the man page:

                    Mounting refers to the traditional concept of arranging multiple file systems and devices in a single tree, rooted at /.

                    The first error is because you have a separate argument at the end which is a local path. gio mount takes a list of locations to mount and not a mount point.

                    jackgreenearth@lemm.eeJ 1 Reply Last reply
                    0
                    • 2xsaiko@discuss.tchncs.de2 [email protected]

                      Is there really nothing in /run/user/1000/gvfs? Try gio mount -l. Maybe unmount and remount.

                      It’s unlikely that it doesn’t actually mount, from the man page:

                      Mounting refers to the traditional concept of arranging multiple file systems and devices in a single tree, rooted at /.

                      The first error is because you have a separate argument at the end which is a local path. gio mount takes a list of locations to mount and not a mount point.

                      jackgreenearth@lemm.eeJ This user is from outside of this forum
                      jackgreenearth@lemm.eeJ This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #16

                      Yeah, I tried without the mount point too, but I think that's just the same as what Nautilus does. There is nothing under /run/user/1000/gvfs

                      1 Reply Last reply
                      0
                      • jackgreenearth@lemm.eeJ [email protected]

                        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_username
                        

                        it always gave the same error

                        Error setting curl: 
                        

                        I'm not sure what else to try, could I have some advice please?

                        E This user is from outside of this forum
                        E This user is from outside of this forum
                        [email protected]
                        wrote on last edited by
                        #17

                        in your shoes: i would switch to different connection method to see if it's curl that's causing your problem. ssh w sshfs would be the easiest switch since it doesn't required you to modify the ftp server, other than to install the ssh server.

                        if it's connects, then you know that curl is your culprit and you can further narrow down the problem; or just stick w ssh.

                        if it doesn't connect, then you know that curl is probably okay and that your problem is elsewhere.

                        jackgreenearth@lemm.eeJ 1 Reply Last reply
                        0
                        • E [email protected]

                          in your shoes: i would switch to different connection method to see if it's curl that's causing your problem. ssh w sshfs would be the easiest switch since it doesn't required you to modify the ftp server, other than to install the ssh server.

                          if it's connects, then you know that curl is your culprit and you can further narrow down the problem; or just stick w ssh.

                          if it doesn't connect, then you know that curl is probably okay and that your problem is elsewhere.

                          jackgreenearth@lemm.eeJ This user is from outside of this forum
                          jackgreenearth@lemm.eeJ This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #18

                          Sorry, I should have mentioned in the post: curl worked by itself, just not with curlftpfs. Someone else suggested using rclone, so I'm going to try that

                          1 Reply Last reply
                          0
                          • System shared this topic on
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups