SFTP Backup

Status
Not open for further replies.

NathanD

Bronze Partner
Advanced Certified
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)
 
Out of sheer frustration I have also setup FTP on the target server.
Exact same error! What permissions is this referring too?

3CX Phone System tried to backup but failed due to the following reason(s):

FluentFTP.FtpCommandException: Permission denied.
at FluentFTP.FtpClient.OpenPassiveDataStream(FtpDataConnectionType type, String command, Int64 restart)
at FluentFTP.FtpClient.OpenDataStream(String command, Int64 restart)
at FluentFTP.FtpClient.OpenWrite(String path, FtpDataType type, Boolean checkIfFileExists)
at FluentFTP.FtpClient.OpenWrite(String path)
at _3cxFilesystemImplementations.FTP.FtpFilesystem.CreateFile(String filename)
at ManagementConsoleJS.Services.BackupService.Backup(BackupDescription backupDescription)
 
Have you tested with filezilla if credentials you use for backup are working on your ftp server? do you have access to folders, files, is it possible to create and delete folders/files?

If this is working from filezilla and not from PBX with same user/password, then search in logs on FTP server side to see detailled infos.
 
I ended up getting FTPES working, but the errors in PBX were missing leading. It was SSL connection reuse causing the problem. Once I disabled that I was able to get backup working.
Still no luck with SFTP (Same user) so its not a premissions issue. Must be something else in 3CX somewhere. But at least backups are working.
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
111,948
Messages
589,880
Members
164,841
Latest member
erre