Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
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

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. addmount.sh script error prevents SSHFS mount

addmount.sh script error prevents SSHFS mount

Scheduled Pinned Locked Moved Solved Support
sshfs
5 Posts 4 Posters 183 Views 4 Watching
  • 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.
    • potemkin_aiP Offline
      potemkin_aiP Offline
      potemkin_ai
      wrote on last edited by joseph
      #1

      I have a problem with mounting SSHFS, being quite sure the parameters are correct:

      I have to dig into the logs and scripts and it seems there is some kind of error in the addmount.sh script - please, see it's output (with set -x) below:

      root@server:/etc/systemd/system# /usr/bin/sudo -S /home/yellowtent/box/src/scripts/addmount.sh [Unit]\nDescription=backup-storage-validation\n\nRequires=network-online.target\nAfter=network-online.target\nBefore=docker.service\n\n\n[Mount]\nWhat=user_id@user_id.your-storagebox.de:/home\nWhere=/mnt/backup-storage-validation\nOptions=allow_other,port=23,IdentityFile=/home/yellowtent/platformdata/sshfs/id_rsa_user_id.your-storagebox.de,StrictHostKeyChecking=no,reconnect\nType=fuse.sshfs\n\n[Install]\nWantedBy=multi-user.target\n\n 10
      + set -eu -o pipefail
      + [[ 0 -ne 0 ]]
      + [[ 2 -eq 0 ]]
      + [[ [Unit]nDescription=backup-storage-validationnnRequires=network-online.targetnAfter=network-online.targetnBefore=docker.servicennn[Mount]nWhat=user_id@user_id.your-storagebox.de:/homenWhere=/mnt/backup-storage-validationnOptions=allow_other,port=23,IdentityFile=/home/yellowtent/platformdata/sshfs/id_rsa_user_id.your-storagebox.de,StrictHostKeyChecking=no,reconnectnType=fuse.sshfsnn[Install]nWantedBy=multi-user.targetnn == \-\-\c\h\e\c\k ]]
      + mount_file_contents='[Unit]nDescription=backup-storage-validationnnRequires=network-online.targetnAfter=network-online.targetnBefore=docker.servicennn[Mount]nWhat=user_id@user_id.your-storagebox.de:/homenWhere=/mnt/backup-storage-validationnOptions=allow_other,port=23,IdentityFile=/home/yellowtent/platformdata/sshfs/id_rsa_user_id.your-storagebox.de,StrictHostKeyChecking=no,reconnectnType=fuse.sshfsnn[Install]nWantedBy=multi-user.targetnn'
      + timeout=10
      ++ echo '[Unit]nDescription=backup-storage-validationnnRequires=network-online.targetnAfter=network-online.targetnBefore=docker.servicennn[Mount]nWhat=user_id@user_id.your-storagebox.de:/homenWhere=/mnt/backup-storage-validationnOptions=allow_other,port=23,IdentityFile=/home/yellowtent/platformdata/sshfs/id_rsa_user_id.your-storagebox.de,StrictHostKeyChecking=no,reconnectnType=fuse.sshfsnn[Install]nWantedBy=multi-user.targetnn'
      ++ grep '^Where='
      ++ cut -d= -f 2
      + where=
      

      It seems that grep expect 'Where' to start with a newline - which doesn't happen.

      Cloudron v8.2.3

      Could you please, provide an updated addmount.sh script and fix it for the future releases (if it was not)?

      1 Reply Last reply
      0
      • potemkin_aiP potemkin_ai referenced this topic on
      • nebulonN Away
        nebulonN Away
        nebulon
        Staff
        wrote on last edited by
        #2

        The addmount.sh script is really just an internal helper script and should be treated as internal code. It is only tested with the output of the filled templated of https://git.cloudron.io/platform/box/-/blob/master/src/systemd-mount.ejs?ref_type=heads

        What is your intention to use the script directly? The argument passing to the script as well as the templates may or may not change with any release, since it is not treated as some kind of API.

        I think if there is something to be solved here it is likely somewhere else in the issue you are hitting.

        jdaviescoatesJ 1 Reply Last reply
        0
        • nebulonN nebulon

          The addmount.sh script is really just an internal helper script and should be treated as internal code. It is only tested with the output of the filled templated of https://git.cloudron.io/platform/box/-/blob/master/src/systemd-mount.ejs?ref_type=heads

          What is your intention to use the script directly? The argument passing to the script as well as the templates may or may not change with any release, since it is not treated as some kind of API.

          I think if there is something to be solved here it is likely somewhere else in the issue you are hitting.

          jdaviescoatesJ Offline
          jdaviescoatesJ Offline
          jdaviescoates
          wrote on last edited by
          #3

          @nebulon said in addmount.sh script error prevents SSHFS mount:

          I think if there is something to be solved here it is likely somewhere else in the issue you are hitting.

          Possibly just Hetzner's fail2ban as @BrutalBirdie posted here 🤷

          I use Cloudron with Gandi & Hetzner

          1 Reply Last reply
          0
          • potemkin_aiP Offline
            potemkin_aiP Offline
            potemkin_ai
            wrote on last edited by
            #4

            @nebulon , I indeed tried to troubleshoot the Hetzner network access issue and picked up the command line to execute from platform's log - had no intentions to open the hood - just tried to get more information on the failure root cause.

            So, no manual manipulations - just copy-pasted the command from the log and joined it into single command line.

            1 Reply Last reply
            0
            • J Online
              J Online
              joseph
              Staff
              wrote on last edited by
              #5

              I will close this for now since it's not meant to be run directly . We can continue in the other thread or we can open a new thread .

              1 Reply Last reply
              1
              • J joseph marked this topic as a question on
              • J joseph has marked this topic as solved on
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Bookmarks
                • Search