- Joined
- Dec 29, 2017
- Messages
- 23
- Reaction score
- 23
I must be missing something, but I can't find any useful documentation or logs to help troubleshoot this problem. I'm trying to get SFTP backup working and no matter what I do I keep getting errors. I'll include the latest error at the end of this post.
I've logged into the system doing the backup using SSH and connected to the backup target using SSH and the exact same key and everything works fine! I can create folders files and no issues. So its not a routing, or permissions issue on the backup target.
However the backup from the GUI always fails with the below error.
3CX Phone System tried to backup but failed due to the following reason(s):
Renci.SshNet.Common.SftpPermissionDeniedException: Permission denied
at Renci.SshNet.Sftp.SftpSession.RequestOpen(String path, Flags flags, Boolean nullOnError)
at Renci.SshNet.Sftp.SftpFileStream..ctor(ISftpSession session, String path, FileMode mode, FileAccess access, Int32 bufferSize)
at Renci.SshNet.SftpClient.Open(String path, FileMode mode, FileAccess access)
at _3cxFilesystemImplementations.SFTP.SftpFileSystem.CreateFile(String filename)
at ManagementConsoleJS.Services.BackupService.Backup(BackupDescription backupDescription)
I've logged into the system doing the backup using SSH and connected to the backup target using SSH and the exact same key and everything works fine! I can create folders files and no issues. So its not a routing, or permissions issue on the backup target.
However the backup from the GUI always fails with the below error.
3CX Phone System tried to backup but failed due to the following reason(s):
Renci.SshNet.Common.SftpPermissionDeniedException: Permission denied
at Renci.SshNet.Sftp.SftpSession.RequestOpen(String path, Flags flags, Boolean nullOnError)
at Renci.SshNet.Sftp.SftpFileStream..ctor(ISftpSession session, String path, FileMode mode, FileAccess access, Int32 bufferSize)
at Renci.SshNet.SftpClient.Open(String path, FileMode mode, FileAccess access)
at _3cxFilesystemImplementations.SFTP.SftpFileSystem.CreateFile(String filename)
at ManagementConsoleJS.Services.BackupService.Backup(BackupDescription backupDescription)