SFTP Plugin

  • Hello all!


    First, I am new to this forum, so please feel free to direct me as appropriate. I will do my best to be respectful and do my own research as much as possible before asking questions.

    That said, I am having trouble with the SFTP plugin. Most of the posts I can find seem outdated or different than my issue, so, hopefully, this isn't a duplicate.


    Because I am fairly new to openmediavault and server setup in general, I am doing as much as I can through the web UI, although I have also learned my way around the basic aspects of the CLI. When I create a new share by clicking the "+" button and specifying my user and drive, it succeeds initially, showing the green popup at the bottom of the window. However, when I attempt to "Apply" the changes, a red window pops up with the following message:

    Code
    500 - Internal Server Error
    
    
    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color fstab 2>&1' with exit code '1': debian: ---------- ID: create_filesystem_mountpoint_5479b8d6-d803-4e9e-bfc3-2ef309088f25 Function: file.accumulated Result: True Comment: Accumulator create_filesystem_mountpoint_5479b8d6-d803-4e9e-bfc3-2ef309088f25 for file /etc/fstab was charged by text Started: 23:51:45.653016 Duration: 0.813 ms Changes: ---------- ID: mount_filesystem_mountpoint_5479b8d6-d803-4e9e-bfc3-2ef309088f25 Function: mount.mounted Name: /srv/dev-disk-by-uuid-4ab39aec-a49f-4d23-82f9-0bfb7cc02b4b Result: True Comment: Target was already mounted Started: 23:51:45.654466 Duration: 56.941 ms Changes: ---------- umount: Forced remount because options (user_xattr) changed ---------- ID: create_sftp_mountpoint_69cc9b1a-00b9-4fb3-8998-25ed8ba32289 Function: file.accumulated Result: True Comment: Accumulator create_sftp_mountpoint_69cc9b1a-00b9-4fb3-8998-25ed8ba32289 for file /etc/fstab was charged by text Started: 23:51:45.711769 Duration: 1.78 ms Changes: ---------- ID: mount_sftp_mountpoint_69cc9b1a-00b9-4fb3-8998-25ed8ba32289 Function: mount.mounted Name: /sftp/Aiden_Stephan_2023/Aiden's_Media Result: Fals...

    After which the message cuts off.

    I'm not sure which details might be most helpful to provide but here are a few that come to mind as potentially relevant:

    • I am running a few other plugins, including ResetPerms, Backup, Antivirus, and Flashmemory.
    • The folder I am attempting to share via SFTP (to access it outside my network) is also shared via SMB on my home network and linked to my PC.
    • I have tried different permission settings for the user and ensured that the "sftp-access" option is selected.
    • I tried the "chmod 755 /" command while in the root directory as mentioned in some other posts on this forum. This did not seem to affect the occurrence of the issue.
    • Running the command "omv-salt deploy run sftp" (as suggested in other posts on this forum) returns no errors. However, "omv-salt deploy run fstab" returns an error about a missing closing quotation mark with a number of files listed (I can post the full thing if that's helpful). I tracked down the line in one of the files mentioned, but although I know Python, I am not familiar enough with the workings of OMV and Ubuntu to really understand the source of the problem.

    Am I missing something obvious here?


    Thank you for taking the time

  • Good news - got it solved!

    After looking more closely at the output of omv-salt deploy run fstab the error said there was a missing quotation mark and the failure was occurring with something called mount.mounted. I did some research into mount.mounted and it has known errors processing names with spaces or unexpected characters. My file share was called Aiden's_Media and the fancy characters seemed to be the cause of the problem. After deleting and re-creating the share with the name AidensMedia, everything seems to be working perfectly.

  • Aiden_S

    Added the Label resolved

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!