You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When upgrading from v4.0.0-beta.360 to v4.0.0-beta.373 on WSL2 Ubuntu, the install.sh script fails to detect the OpenSSH server using systemctl since systemctl is available in the WSL2 environment but not functional by default (System has not been booted with systemd as init system (PID 1). Can't operate.).
The installation script does not proceed to the fallback for service, causing the script to incorrectly conclude that the OpenSSH server is not installed. Executing service ssh status successfuly returns * sshd is running.
Relevant code snippet:
echo -e "2. Check OpenSSH server configuration. "# Detect OpenSSH server
SSH_DETECTED=false
if [ -x"$(command -v systemctl)" ];thenif systemctl status sshd >/dev/null 2>&1;thenecho" - OpenSSH server is installed."
SSH_DETECTED=true
elif systemctl status ssh >/dev/null 2>&1;thenecho" - OpenSSH server is installed."
SSH_DETECTED=true
fielif [ -x"$(command -v service)" ];thenif service sshd status >/dev/null 2>&1;thenecho" - OpenSSH server is installed."
SSH_DETECTED=true
elif service ssh status >/dev/null 2>&1;thenecho" - OpenSSH server is installed."
SSH_DETECTED=true
fifi
Older versions just printed WARNING: Could not detect if OpenSSH server is installed and running - this does not mean that it is not installed, just that we could not detect it. without attempting to install OpenSSH server.
Error Message and Logs
When upgrading from
v4.0.0-beta.360
tov4.0.0-beta.373
on WSL2 Ubuntu, theinstall.sh
script fails to detect the OpenSSH server usingsystemctl
sincesystemctl
is available in the WSL2 environment but not functional by default (System has not been booted with systemd as init system (PID 1). Can't operate.
).The installation script does not proceed to the fallback for
service
, causing the script to incorrectly conclude that the OpenSSH server is not installed. Executingservice ssh status
successfuly returns* sshd is running
.Relevant code snippet:
Older versions just printed
WARNING: Could not detect if OpenSSH server is installed and running - this does not mean that it is not installed, just that we could not detect it.
without attempting to install OpenSSH server.Replacing
with
worked. However, I'm not sure if there are better ways of checking if
systemctl
can be used.Steps to Reproduce
systemctl
support (the default behavior), executecurl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash
Example Repository URL
No response
Coolify Version
v4.0.0-beta.373
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
Ubuntu 22.04.5 LTS
Additional Information
No response
The text was updated successfully, but these errors were encountered: