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
-
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=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.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=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.
-
-