coolify icon indicating copy to clipboard operation
coolify copied to clipboard

[Bug]: Unable to restart/deploy any service (sftp-server: File or directory not found scp: Connection closed)

Open alxhu-dev opened this issue 1 year ago • 6 comments

Error Message and Logs

Error: bash: Zeile 1: /usr/lib/sftp-server: Datei oder Verzeichnis nicht gefunden scp: Connection closed

(Translation: Error: bash: Row 1: /usr/lib/sftp-server: File or directory not found scp: Connection closed)

Steps to Reproduce

I have no idea on how to reproduce this issue.

  1. Add a server which has DietPi 9.8.0 installed as an OS
  2. Try to deploy Uptime Kuma?

Example Repository URL

No response

Coolify Version

v4.0.0-beta.379

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Debian 12 / DietPi v9.8.0

Additional Information

The service in question is Uptime Kuma, the server in question is a Raspberry Pi 3B+. The Raspberry Pi 3B+ and the OS are up to date.

I am able to restart/deploy the same service on other servers.

Last time I restarted/deployed this service on this server was with version v4.0.0-beta.348 where it worked without issues.

alxhu-dev avatar Dec 22 '24 18:12 alxhu-dev

+1

mjtechguy avatar Jan 19 '25 03:01 mjtechguy

+1

qamarq avatar Jan 20 '25 16:01 qamarq

+1

tyloo avatar Jan 23 '25 00:01 tyloo

+1

DryKillLogic avatar Jan 25 '25 12:01 DryKillLogic

I was able to fix this for me by changing the SSH server from Dropbear (default SSH with DietPi) to OpenSSH.

It's strange because I don't have any issues with other Dropbear servers added to my Coolify instance.

alxhu-dev avatar Feb 13 '25 12:02 alxhu-dev

According to this, the problem seems to stem from the server not correctly running a sftp server: https://superuser.com/questions/1827221/scp-from-server-to-local-host-failed

In my case, my sshd_config was empty, so when I copied the default one from the installation path(/usr/share/openssh/sshd_config) to the configuration path (/etc/ssh/sshd_config) on my server, it started working.

This seems like an issue with servers and/or the ssh install, and not neccessarily coolify.

NaabZer avatar Mar 29 '25 10:03 NaabZer