Issue with setting up admin backup via FTP

mqwerta

New member
Joined
Nov 10, 2024
Messages
2
Hi I'm trying to get my admin backups working. I have had no trouble with this in all my years of using DA, but currenlty I'm stuck.

Every time i try to set up my backup ftp connection I get this error popup:
| Error during Backup Creation
| /usr/bin/curl returned error code 7
| curl: (7) Failed to connect to XX.XX.XXX.XXX port 21: Connection refused
| FTP information invalid.

I have checked multiple ways that my credentials are not the issue. From the shell of the server I tried logging in via curl command, ftp command and even with the ftp_upload.php script as provided in the docs: https://docs.directadmin.com/directadmin/backup-restore-migration/backup-to-remote.html, all work completely fine with my credentials.

After validating my credentials and connections are not the issue. I tried overriding the ftp_upload.php via a custom fto_upload.php file to use curl dircetly as described in the docs. But no luck their either, i still get the same error.

I'm pretty stuck on this. Does any one have a clue on how to solve this issue? In particular I'm curious if anyone knows where the validation takes place. In what script? Can I access that and add some debug? Or change it, or... ?

Hopeing anyone can help :)
-Marijn

Some details of my specific server:
| Version 1.670 (7d4ca024f8abfcf542af4f46b0bb402d9efe2d52) Changelog
| Operating System linux
| Linux Distribution rhel8
| Hardware Architecture amd64
| Update Channel current
| Evolution Version cc2920c2977f5c7908824a7ab47f3bf926aef650
 
Hello,

When saving a crontask a remote FTP server is probed in the script /usr/local/directadmin/scripts/ftp_list.php or /usr/local/directadmin/scripts/custom/ftp_list.php if the second exists.

The error from cURL 7 means cURL in the script failed to connect to a remote host. Check your firewall settings on a target and source server. The scripts are running in behalf of nodoby or diradmin user, and your firewall (whenever CSF is used) might block outgoing connections for regular users.
 
Back
Top