Need Help?

Support Team


24/7 Helpdesk:
helpdesk.jetapps.com


24/7 Support Email:
support@jetapps.com



Sales Team


Sales Email:
sales@jetapps.com



Billing Team


24/7 Client Area:
billing.jetapps.com


Billing Email:
billing@jetapps.com


Create New Destination - SFTP results in "Error:Unable to create destination dir"

Advanced Backup Manager for cPanel - More Information
Post Reply
sjcw
Posts: 2
Joined: March 21st, 2019, 9:36 pm

Create New Destination - SFTP results in "Error:Unable to create destination dir"

Post by sjcw » March 21st, 2019, 10:22 pm

I've setup an FTP backup destination on my server without any issues, however I am trying to setup an SFTP remote backup and it is not working. The same SFTP setup works fine with the WHM Backup program, and I tried removing that in case it was conflicting, but still no go.

It seems like when I hit either Save or Apply, nothing happens. I tried waiting a few minutes and eventually it says "Error:Unable to create destination dir". What I find interesting is that if I give a false password and try again the same error comes up. I have full write permissions to the directory and have it mapped exactly both with and without / at the end has the same result.

Lastly I tried adding an SSH version of the above and am able to connect and use Rsync. It perplexes me why the SFTP fails.

Is this a known bug or what's the usual way of resolving this?

ofir
Staff Member
Staff Member
Posts: 23
Joined: June 14th, 2018, 10:03 am

Re: Create New Destination - SFTP results in "Error:Unable to create destination dir"

Post by ofir » March 24th, 2019, 9:53 am

Hi,

For FTP and SFTP JetBackup using the LFTP library.
The LFTP lib requires the remote server will supports `mv`, `ls`, and `mkdir` commands, over the FTP protocol.

Can you please try to create a command line connection using the JetBackup LFTP and test those command?
You can create the connection running:
/usr/local/jetapps/usr/bin/lftp sftp://USER:PASSWORD@HOST_NAME:PORT

please share the screen with us as well.

Thank you,
JetApps Team.

sjcw
Posts: 2
Joined: March 21st, 2019, 9:36 pm

Re: Create New Destination - SFTP results in "Error:Unable to create destination dir"

Post by sjcw » March 25th, 2019, 6:16 pm

Ok, so I had to do the username and password manually since I couldn't figure out the escape characters for my password (has some special characters). Could that be the issue?

Anyway here is the log of me using lftp to do the commands requested (host, username and port masked):

[root@myserver ~]# /usr/local/jetapps/usr/bin/lftp sftp://my.site.here:port#
lftp my.site.here:~>
lftp my.site.here:~> login
Usage: login <user|URL> [<pass>]
lftp my.site.here:~> login myusername
Password:
lftp myusername@my.site.here:~> ls
drwx------ 4 myusername myusername 106 Mar 21 12:53 .
drwxr-xr-x 7 root root 85 Feb 14 12:32 ..
-rw------- 1 myusername myusername 147 Mar 21 14:59 .bash_history
-rw-r--r-- 1 myusername myusername 18 Oct 30 10:07 .bash_logout
-rw-r--r-- 1 myusername myusername 193 Oct 30 10:07 .bash_profile
-rw-r--r-- 1 myusername myusername 231 Oct 30 10:07 .bashrc
drwx------ 2 myusername myusername 29 Mar 21 12:53 .ssh
drwxrwxr-x 3 myusername myusername 52 Mar 21 15:05 jet
lftp myusername@my.site.here:~> cd jet
lftp myusername@my.site.here:~/jet> ls
drwxrwxr-x 3 myusername myusername 52 Mar 21 15:05 .
drwx------ 4 myusername myusername 106 Mar 21 12:53 ..
drwxrwxr-x 13 myusername myusername 171 Mar 21 13:44 jetbackup_ssh_backup_folder
lftp myusername@my.site.here:~/jet> mkdir test
mkdir ok, `test' created
lftp myusername@my.site.here:~/jet> ls
drwxrwxr-x 4 myusername myusername 64 Mar 25 09:05 .
drwx------ 4 myusername myusername 106 Mar 21 12:53 ..
drwxrwxr-x 13 myusername myusername 171 Mar 21 13:44 jetbackup_ssh_backup_folder
drwxrwxr-x 2 myusername myusername 6 Mar 25 09:05 test
lftp myusername@my.site.here:~/jet> mv test test_changed
mv test=>test_changed [Waiting for response...]
rename successful
lftp myusername@my.site.here:~/jet> ls
drwxrwxr-x 4 myusername myusername 72 Mar 25 09:05 .
drwx------ 4 myusername myusername 106 Mar 21 12:53 ..
drwxrwxr-x 13 myusername myusername 171 Mar 21 13:44 jetbackup_ssh_backup_folder
drwxrwxr-x 2 myusername myusername 6 Mar 25 09:05 test_changed
lftp myusername@myusername:~/jet>

ofir
Staff Member
Staff Member
Posts: 23
Joined: June 14th, 2018, 10:03 am

Re: Create New Destination - SFTP results in "Error:Unable to create destination dir"

Post by ofir » March 26th, 2019, 8:45 am

Hi,

When logging in manually you should implement the escaping,
When setting with JetBackup the escaping will be automatically.

Anyway, this is a bit awkward, It seems that the destination creation should have work.
What JetBackup version are you running?

Post Reply