[Bug]: Unable to restart/deploy any service (sftp-server: File or directory not found scp: Connection closed)
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.
- Add a server which has DietPi 9.8.0 installed as an OS
- 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.
+1
+1
+1
+1
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.
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.