FTP issues on DigitalOcean

Hello, this is my first post here :partying_face:.

I鈥檓 having trouble connecting to FTP on a cyberpanel installation on DigitalOcean, I鈥檓 getting these messages.

Estado:	Resolviendo la direcci贸n de ftp.copylatam.com
Estado:	Conectando a xxx.xxx.xxx.xxx:21...
Estado:	Conexi贸n establecida, esperando el mensaje de bienvenida...
Estado:	Inicializando TLS...
Estado:	Conexi贸n TLS establecida.
Comando:	USER admin_ljchuello
Respuesta:	331 User admin_ljchuello OK. Password required
Comando:	PASS ******
Respuesta:	530 Login authentication failed
Error:	Error cr铆tico: No se pudo conectar al servidor
Estado:	Desconectado del servidor
Estado:	Conectando a xxx.xxx.x.xxx:21...
Estado:	Conexi贸n establecida, esperando el mensaje de bienvenida...
Estado:	Inicializando TLS...
Estado:	Conexi贸n TLS establecida.
Comando:	USER admin_ljchuello
Respuesta:	331 User admin_ljchuello OK. Password required
Comando:	PASS ******
Respuesta:	530 Login authentication failed
Error:	Error cr铆tico: No se pudo conectar al servidor

I have tested wordpress installations with no problems. I also have no problems with emails. My only problem is with the FTP.

If someone can show me the way. Thanks.

Welcome @ljchuello Happy you are here

The error you are experiencing is Response: 530 Login authentication failed

Possible issues:

  1. DNS issues

Seems you are using CloudFlare. You need to use server IP to access bypassing Cloudflare鈥檚 protection. I have tested ftp 104.248.1.177 and TLS handshake is fine.

  1. Confirm FTP username and password. Go to https://SERVER_URL:8090/ftp/listFTPAccounts choose domain copylatam.com and from the list click on change password of admin_ljchuello use the Generate feature

Thank you for your speed in responding.

I made the verifications and the error persists;

  1. I connected directly to the server IP
  2. Change the password of the ftp user and still the same

I leave the filezilla log

Estado:	Desconectado del servidor
Estado:	Conectando a 104.248.1.177:21...
Estado:	Conexi贸n establecida, esperando el mensaje de bienvenida...
Estado:	Inicializando TLS...
Estado:	Conexi贸n TLS establecida.
Comando:	USER admin_ljchuello
Respuesta:	331 User admin_ljchuello OK. Password required
Comando:	PASS ****************
Respuesta:	530 Login authentication failed
Error:	Error cr铆tico: No se pudo conectar al servidor

Any other action I can check?

Would it be a waste of your time if I grant you temporary access to my cyberpanel so you can validate this?

I already followed those steps, I changed the password, I tried with a generated one and it didn鈥檛 work, I tried with one of my own and it didn鈥檛 work either. I find this situation very strange.

This is a CloudFlare issue where you will need to use server ip or create a ftp subdomain and unproxy it. Add a DNS record ftp.copylatam.com and set it to DNS only in cloudflare dashboard

Here some references:

How to Enable CloudFlare Proxy to Additional Ports

Create DNS Records in CloudFlare

I did the same thing, in cloudflare the proxy is turned off and it only has DNS, when pinging ftp.copylatam.com it returns 104.248.1.177 which is the IP of my server in DigitalOcean (not of cloudflare), so the password error appears to me very strange.

Please post the contents of https://SERVER_IP:8090/serverlogs/ftplogs

Oct 27 17:40:22 ubuntu-s-1vcpu-1gb-nyc3-01 pure-ftpd: (?@filezilla-project.org) [INFO] New connection from filezilla-project.org
Oct 27 17:40:23 ubuntu-s-1vcpu-1gb-nyc3-01 pure-ftpd: (?@filezilla-project.org) [INFO] TLS: Enabled TLSv1.3 with TLS_AES_256_GCM_SHA384, 256 secret bits cipher
Oct 27 17:40:23 ubuntu-s-1vcpu-1gb-nyc3-01 pure-ftpd: (?@filezilla-project.org) [ERROR] Unable to set up secure anonymous FTP
Oct 27 17:42:01 ubuntu-s-1vcpu-1gb-nyc3-01 CRON[9517]: (root) CMD (if ! find /home/*/public_html/ -maxdepth 2 -type f -newer /usr/local/lsws/cgid -name '.htaccess' -exec false {} +; then systemctl restart lsws; fi)
Oct 27 17:42:40 ubuntu-s-1vcpu-1gb-nyc3-01 dovecot: pop3-login: Disconnected: Connection closed: read(size=1026) failed: Connection reset by peer (no auth attempts in 2 secs): user=<>, rip=43.131.66.209, lip=104.248.1.177, session=<nnHtqgfspi8rg0LR>
Oct 27 17:44:09 ubuntu-s-1vcpu-1gb-nyc3-01 pure-ftpd: (?@host-181-198-182-11.netlife.ec) [INFO] New connection from host-181-198-182-11.netlife.ec
Oct 27 17:44:10 ubuntu-s-1vcpu-1gb-nyc3-01 pure-ftpd: (?@host-181-198-182-11.netlife.ec) [INFO] TLS: Enabled TLSv1.3 with TLS_AES_256_GCM_SHA384, 256 secret bits cipher
Oct 27 17:44:15 ubuntu-s-1vcpu-1gb-nyc3-01 pure-ftpd: (?@host-181-198-182-11.netlife.ec) [WARNING] Authentication failed for user [admin_ljchuello]
Oct 27 17:44:16 ubuntu-s-1vcpu-1gb-nyc3-01 pure-ftpd: (?@host-181-198-182-11.netlife.ec) [INFO] Logout.
Oct 27 17:44:28 ubuntu-s-1vcpu-1gb-nyc3-01 pure-ftpd: (?@host-181-198-182-11.netlife.ec) [INFO] New connection from host-181-198-182-11.netlife.ec
Oct 27 17:44:29 ubuntu-s-1vcpu-1gb-nyc3-01 pure-ftpd: (?@host-181-198-182-11.netlife.ec) [INFO] TLS: Enabled TLSv1.3 with TLS_AES_256_GCM_SHA384, 256 secret bits cipher
Oct 27 17:44:32 ubuntu-s-1vcpu-1gb-nyc3-01 pure-ftpd: (?@host-181-198-182-11.netlife.ec) [WARNING] Authentication failed for user [admin_ljchuello]
Oct 27 17:44:33 ubuntu-s-1vcpu-1gb-nyc3-01 pure-ftpd: (?@host-181-198-182-11.netlife.ec) [INFO] Logout.
Oct 27 17:44:52 ubuntu-s-1vcpu-1gb-nyc3-01 dovecot: imap-login: Disconnected: Connection closed (auth failed, 1 attempts in 4 secs): user=<lalolanda@copylatam.com>, method=PLAIN, rip=181.198.182.11, lip=104.248.1.177, TLS: Connection closed, session=<WPORsgfs6uq1xrYL>
Oct 27 17:44:57 ubuntu-s-1vcpu-1gb-nyc3-01 dovecot: imap-login: Disconnected: Connection closed (auth failed, 1 attempts in 6 secs): user=<lalolanda@copylatam.com>, method=PLAIN, rip=181.198.182.11, lip=104.248.1.177, TLS: Connection closed, session=<9UbEsgfs8Oq1xrYL>
Oct 27 17:45:01 ubuntu-s-1vcpu-1gb-nyc3-01 CRON[9535]: (root) CMD (if ! find /home/*/public_html/ -maxdepth 2 -type f -newer /usr/local/lsws/cgid -name '.htaccess' -exec false {} +; then systemctl restart lsws; fi)
Oct 27 17:45:03 ubuntu-s-1vcpu-1gb-nyc3-01 pure-ftpd: (?@host-181-198-182-11.netlife.ec) [INFO] New connection from host-181-198-182-11.netlife.ec
Oct 27 17:45:04 ubuntu-s-1vcpu-1gb-nyc3-01 pure-ftpd: (?@host-181-198-182-11.netlife.ec) [INFO] TLS: Enabled TLSv1.3 with TLS_AES_256_GCM_SHA384, 256 secret bits cipher
Oct 27 17:45:09 ubuntu-s-1vcpu-1gb-nyc3-01 pure-ftpd: (?@host-181-198-182-11.netlife.ec) [WARNING] Authentication failed for user [ljchuello]
Oct 27 17:45:09 ubuntu-s-1vcpu-1gb-nyc3-01 pure-ftpd: (?@host-181-198-182-11.netlife.ec) [INFO] Logout.
Oct 27 17:45:35 ubuntu-s-1vcpu-1gb-nyc3-01 pure-ftpd: (?@host-181-198-182-11.netlife.ec) [INFO] New connection from host-181-198-182-11.netlife.ec
Oct 27 17:45:36 ubuntu-s-1vcpu-1gb-nyc3-01 pure-ftpd: (?@host-181-198-182-11.netlife.ec) [INFO] TLS: Enabled TLSv1.3 with TLS_AES_256_GCM_SHA384, 256 secret bits cipher
Oct 27 17:45:42 ubuntu-s-1vcpu-1gb-nyc3-01 pure-ftpd: (?@host-181-198-182-11.netlife.ec) [WARNING] Authentication failed for user [admin_ljchuello]
Oct 27 17:45:42 ubuntu-s-1vcpu-1gb-nyc3-01 pure-ftpd: (?@host-181-198-182-11.netlife.ec) [INFO] Logout.
Oct 27 17:46:28 ubuntu-s-1vcpu-1gb-nyc3-01 systemd[1]: Starting Message of the Day...
Oct 27 17:46:28 ubuntu-s-1vcpu-1gb-nyc3-01 systemd[1]: motd-news.service: Deactivated successfully.
Oct 27 17:46:28 ubuntu-s-1vcpu-1gb-nyc3-01 systemd[1]: Finished Message of the Day.
Oct 27 17:48:01 ubuntu-s-1vcpu-1gb-nyc3-01 CRON[9545]: (root) CMD (if ! find /home/*/public_html/ -maxdepth 2 -type f -newer /usr/local/lsws/cgid -name '.htaccess' -exec false {} +; then systemctl restart lsws; fi)
Oct 27 17:51:01 ubuntu-s-1vcpu-1gb-nyc3-01 CRON[9550]: (root) CMD (if ! find /home/*/public_html/ -maxdepth 2 -type f -newer /usr/local/lsws/cgid -name '.htaccess' -exec false {} +; then systemctl restart lsws; fi)
Oct 27 17:52:37 ubuntu-s-1vcpu-1gb-nyc3-01 pdns_server[4667]: Not validating response for security status update, this is a non-release version
Oct 27 17:54:01 ubuntu-s-1vcpu-1gb-nyc3-01 CRON[9554]: (root) CMD (if ! find /home/*/public_html/ -maxdepth 2 -type f -newer /usr/local/lsws/cgid -name '.htaccess' -exec false {} +; then systemctl restart lsws; fi)
Oct 27 17:57:01 ubuntu-s-1vcpu-1gb-nyc3-01 CRON[9559]: (root) CMD (if ! find /home/*/public_html/ -maxdepth 2 -type f -newer /usr/local/lsws/cgid -name '.htaccess' -exec false {} +; then systemctl restart lsws; fi)
Oct 27 18:00:01 ubuntu-s-1vcpu-1gb-nyc3-01 CRON[9573]: (root) CMD (/usr/local/CyberCP/bin/python /usr/local/CyberCP/postfixSenderPolicy/client.py hourlyCleanup >/dev/null 2>&1)
Oct 27 18:00:01 ubuntu-s-1vcpu-1gb-nyc3-01 CRON[9574]: (root) CMD (/usr/local/CyberCP/bin/python /usr/local/CyberCP/plogical/findBWUsage.py >/dev/null 2>&1)
Oct 27 18:00:01 ubuntu-s-1vcpu-1gb-nyc3-01 CRON[9575]: (root) CMD (/usr/local/CyberCP/bin/python /usr/local/CyberCP/IncBackups/IncScheduler.py '30 Minutes')
Oct 27 18:00:01 ubuntu-s-1vcpu-1gb-nyc3-01 CRON[9577]: (root) CMD (/usr/local/CyberCP/bin/python /usr/local/CyberCP/IncBackups/IncScheduler.py '6 Hours')
Oct 27 18:00:01 ubuntu-s-1vcpu-1gb-nyc3-01 CRON[9579]: (root) CMD (/usr/local/CyberCP/bin/python /usr/local/CyberCP/IncBackups/IncScheduler.py '1 Hour')
Oct 27 18:00:01 ubuntu-s-1vcpu-1gb-nyc3-01 CRON[9580]: (root) CMD (if ! find /home/*/public_html/ -maxdepth 2 -type f -newer /usr/local/lsws/cgid -name '.htaccess' -exec false {} +; then systemctl restart lsws; fi)
Oct 27 18:00:02 ubuntu-s-1vcpu-1gb-nyc3-01 dovecot: imap-login: Disconnected: Connection closed (auth failed, 1 attempts in 4 secs): user=<lalolanda@copylatam.com>, method=PLAIN, rip=181.198.182.11, lip=104.248.1.177, TLS: Connection closed, session=<DavL6AfsIuu1xrYL>
Oct 27 18:00:15 ubuntu-s-1vcpu-1gb-nyc3-01 dovecot: imap-login: Disconnected: Connection closed (auth failed, 1 attempts in 6 secs): user=<lalolanda@copylatam.com>, method=PLAIN, rip=181.198.182.11, lip=104.248.1.177, TLS, session=<+WJ16QfsMuu1xrYL>
Oct 27 18:00:15 ubuntu-s-1vcpu-1gb-nyc3-01 dovecot: imap-login: Disconnected: Connection closed: read(size=381) failed: Connection reset by peer (auth failed, 1 attempts in 13 secs): user=<lalolanda@copylatam.com>, method=PLAIN, rip=181.198.182.11, lip=104.248.1.177, TLS: read(size=381) failed: Connection reset by peer, session=<0WMJ6QfsLOu1xrYL>
Oct 27 18:03:01 ubuntu-s-1vcpu-1gb-nyc3-01 CRON[9600]: (root) CMD (if ! find /home/*/public_html/ -maxdepth 2 -type f -newer /usr/local/lsws/cgid -name '.htaccess' -exec false {} +; then systemctl restart lsws; fi)
Oct 27 18:06:01 ubuntu-s-1vcpu-1gb-nyc3-01 CRON[9603]: (root) CMD (if ! find /home/*/public_html/ -maxdepth 2 -type f -newer /usr/local/lsws/cgid -name '.htaccess' -exec false {} +; then systemctl restart lsws; fi)
Oct 27 18:09:00 ubuntu-s-1vcpu-1gb-nyc3-01 systemd[1]: Starting Clean php session files...
Oct 27 18:09:00 ubuntu-s-1vcpu-1gb-nyc3-01 systemd[1]: phpsessionclean.service: Deactivated successfully.
Oct 27 18:09:00 ubuntu-s-1vcpu-1gb-nyc3-01 systemd[1]: Finished Clean php session files.
Oct 27 18:09:01 ubuntu-s-1vcpu-1gb-nyc3-01 CRON[9641]: (root) CMD (/usr/local/CyberCP/bin/cleansessions >/dev/null 2>&1)
Oct 27 18:09:01 ubuntu-s-1vcpu-1gb-nyc3-01 CRON[9643]: (root) CMD (if ! find /home/*/public_html/ -maxdepth 2 -type f -newer /usr/local/lsws/cgid -name '.htaccess' -exec false {} +; then systemctl restart lsws; fi)
Oct 27 18:09:01 ubuntu-s-1vcpu-1gb-nyc3-01 CRON[9644]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Oct 27 18:12:01 ubuntu-s-1vcpu-1gb-nyc3-01 CRON[9668]: (root) CMD (if ! find /home/*/public_html/ -maxdepth 2 -type f -newer /usr/local/lsws/cgid -name '.htaccess' -exec false {} +; then systemctl restart lsws; fi)

whats is your CyberP current version ?

At the time of installing do not indicate any version, from what I understand I have the latest version.

image

I did an install on Amazon Lightsail and it allows me to connect via FTP with no problem. Will it be some DigitalOcean block or configuration?

It seems strange to me that it tells me that the password is incorrect, when I had already entered the correct one and reset it several times. It鈥檚 not a typo, it鈥檚 something else.

Hello @ijchuello I appreciate you trying to diagnose your problem. I would recommend you raise the issue with digital ocean personally i have never used CyberP on digital ocean but basically i have made ftp work on digital ocean if you install it using their tutorial.

If they get back to you with a fix kindly share your fix here. Thank you for your feedback.

Is there maybe a command to restart the FTP service or stop it and then start it? I think the problem is that the service is stopped. Is there a way to see this?

To restart use systemctl restart pure-ftpd-mysql but first find the status of service
systemctl status pure-ftpd-mysql post result here

root@ubuntu-s-1vcpu-1gb-nyc3-01:~# systemctl status pure-ftpd-mysql
鈼 pure-ftpd-mysql.service
     Loaded: loaded (/etc/init.d/pure-ftpd-mysql; generated)
     Active: active (running) since Sat 2022-10-29 20:23:51 UTC; 7min ago
       Docs: man:systemd-sysv-generator(8)
      Tasks: 1 (limit: 1131)
     Memory: 2.6M
     CGroup: /system.slice/pure-ftpd-mysql.service
             鈹斺攢32592 pure-ftpd (SERVER)

I have realized that it does not allow me to connect with the CyberPanel FTP, but it does with some FTP that comes in the operating system, and this second one shows me the entire directory, that may be the reason for the message that the user is not correct and the password.

Now I have a question, what is the full path of the CyberPanel public_html folder?

/usr/local/CyberPanel鈥

/home/domain.com/public_html

In short鈥 there are problems in FTP with DigitalOcean, I couldn鈥檛 solve it but if I did skip it, what did I do?

  1. I installed CyberPanel normally.
  2. I configured the domain.com
  3. When I want to connect with FTP, I do so with the data of the instance when creating it, not with the CyberPanel FTPs.

Thanks @josephgodwinke and @tmoore for the help.

Remember that when using sftp with the vps login, after uploading to the correct website path, you should:

Cyberpanel 鈫 List website 鈫 File Manager on the website you want 鈫 Fix permissions button on top right

So that the uploaded website files now belong to the website user (for example if you upload as root into /home/domain.com/public_html)

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.