addmount.sh script error prevents SSHFS mount
-
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)?
-
P potemkin_ai referenced this topic on
-
The
addmount.shscript 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=headsWhat 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.
-
The
addmount.shscript 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=headsWhat 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.
@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

-
@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.
-
J joseph marked this topic as a question on
-
J joseph has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login