IceWhaleTech / CasaOS

CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.
https://casaos.io
Apache License 2.0
25.34k stars 1.37k forks source link

[Bug] install on fresh MX Linux #1871

Open foxsam21 opened 3 months ago

foxsam21 commented 3 months ago

Describe the bug

When running the install script on MX Linux (fresh install) the script stops because it cannot connect to docker daemon.

To Reproduce

Steps to reproduce the behavior:

  1. Start with fresh install of MX Linux
  2. run install script
  3. Expected behavior

Complete install without errors

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 12 (bookworm) Release: 12 Codename: bookworm

 - Browser N/A
 - Version N/A

**System Time**

> Run `timedatectl` and share the output

$ timedatectl System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down


**Logs**

> Run following command to collect corresponding logs:

```bash
sudo journalctl -xef -u casaos-gateway
sudo journalctl -xef -u casaos-user-service
sudo journalctl -xef -u casaos-local-storage
sudo journalctl -xef -u casaos-app-management
sudo journalctl -xef -u casaos.service
   _____                 ____   _____ 
  / ____|               / __ \ / ____|
 | |     __ _ ___  __ _| |  | | (___  
 | |    / _` / __|/ _` | |  | |\___ \ 
 | |___| (_| \__ \ (_| | |__| |____) |
  \_____\__,_|___/\__,_|\____/|_____/ 

   --- Made by IceWhale with YOU ---

[  OK  ] Your hardware architecture is : x86_64
[  OK  ] Your System is : Linux
[  OK  ] Your Linux Distribution is : debian 
[  OK  ] Memory capacity check passed.
[  OK  ] Disk capacity check passed.
[ INFO ] Updating package manager...
[  OK  ] Update package manager complete.
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
$ docker version
Client: Docker Engine - Community
 Version:           26.1.4
 API version:       1.45
 Go version:        go1.21.11
 Git commit:        5650f9b
 Built:             Wed Jun  5 11:29:22 2024
 OS/Arch:           linux/amd64
 Context:           default
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
foxsam21 commented 3 months ago

Booting MX Linunx with systemd enabled (https://mxlinux.org/wiki/system/systemd/) does fix this. Maybe there should be a check for this setup and suggest this solution. If there is no other solution.