CasaOS
CasaOS copied to clipboard
[Bug] Can't Download Services
Describe the bug (I aready tried do reinstall CasaOS)
When I tried to install any service, the progressbar started to run, but when reach near the 100%, the error occurs, The only one that I was able to install was Crafty, but the default password file wasn't created.
To Reproduce
- Go to 'App Store'
- Try to install any service
- See error "Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /DATA/AppData/[SERVICE NAME]/data"
Expected behavior
Service Installed
Screenshots
Desktop (please complete the following information):
- OS: linux
- CasaOS Version: 0.4.13
- Disk Total: 935236
- Disk Used: 14596
- System Info: [Ubuntu 24.04.1 LTS \l Bit:64 Mem:31927M Core:12 Linux server 6.8.0-49-generic #49-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 4 02:06:24 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux ]
- Remote Version: 0.4.13
- Browser: Chrome
- Version: 131.0.0.0
System Time
Run
timedatectland share the output
Local time: Friday 2024-11-29 14:32:07 UTC
Universal time: Friday 2024-11-29 14:32:07 UTC
RTC time: Friday 2024-11-29 14:32:07
Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
Logs
Run following command to collect corresponding logs:
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
LOG RESULT: ░░ Subject: A start job for unit casaos-gateway.service has begun execution ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A start job for unit casaos-gateway.service has begun execution. ░░ ░░ The job identifier is 182. nov 28 16:18:00 iago casaos-gateway[906]: v0.4.8 nov 28 16:18:00 iago casaos-gateway[962]: git commit: eeb28d78941cf2746e611c02b148e347c47501da nov 28 16:18:00 iago casaos-gateway[962]: build date: 2024-07-18T08:16:38Z nov 28 16:18:00 iago casaos-gateway[962]: [Fx] PROVIDE *service.State <= main.main.func4() nov 28 16:18:00 iago casaos-gateway[962]: [Fx] PROVIDE *service.Management <= github.com/IceWhaleTech/CasaOS-Gateway/service.NewManagementService() nov 28 16:18:00 iago casaos-gateway[962]: [Fx] PROVIDE *route.ManagementRoute <= github.com/IceWhaleTech/CasaOS-Gateway/route.NewManagementRoute() nov 28 16:18:00 iago casaos-gateway[962]: [Fx] PROVIDE *route.GatewayRoute <= github.com/IceWhaleTech/CasaOS-Gateway/route.NewGatewayRoute() nov 28 16:18:00 iago casaos-gateway[962]: [Fx] PROVIDE *route.StaticRoute <= github.com/IceWhaleTech/CasaOS-Gateway/route.NewStaticRoute() nov 28 16:18:00 iago casaos-gateway[962]: [Fx] PROVIDE fx.Lifecycle <= go.uber.org/fx.New.func1() nov 28 16:18:00 iago casaos-gateway[962]: [Fx] PROVIDE fx.Shutdowner <= go.uber.org/fx.(*App).shutdowner-fm() nov 28 16:18:00 iago casaos-gateway[962]: [Fx] PROVIDE fx.DotGraph <= go.uber.org/fx.(*App).dotGraph-fm() nov 28 16:18:00 iago casaos-gateway[962]: [Fx] INVOKE main.run() nov 28 16:18:00 iago casaos-gateway[962]: [Fx] RUN provide: go.uber.org/fx.New.func1() nov 28 16:18:00 iago casaos-gateway[962]: [Fx] RUN provide: main.main.func4() nov 28 16:18:00 iago casaos-gateway[962]: 2024-11-28T16:18:00.931Z error Failed to load routes {"error": "open /var/run/casaos/routes.json: no such file or directory", "filepath": "/var/run/casaos/routes.json", "func": "service.NewManagementService", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/service/management.go", "line": 32} nov 28 16:18:01 iago casaos-gateway[962]: [Fx] RUN provide: github.com/IceWhaleTech/CasaOS-Gateway/service.NewManagementService() nov 28 16:18:01 iago casaos-gateway[962]: [Fx] RUN provide: github.com/IceWhaleTech/CasaOS-Gateway/route.NewManagementRoute() nov 28 16:18:01 iago casaos-gateway[962]: [Fx] RUN provide: github.com/IceWhaleTech/CasaOS-Gateway/route.NewGatewayRoute() nov 28 16:18:01 iago casaos-gateway[962]: [Fx] RUN provide: github.com/IceWhaleTech/CasaOS-Gateway/route.NewStaticRoute() nov 28 16:18:01 iago casaos-gateway[962]: [Fx] HOOK OnStart main.run.func1() executing (caller: main.run) nov 28 16:18:01 iago casaos-gateway[962]: [Fx] HOOK OnStart main.run.func1() called by main.run ran successfully in 691.913µs nov 28 16:18:01 iago casaos-gateway[962]: [Fx] HOOK OnStart main.run.func2() executing (caller: main.run) nov 28 16:18:01 iago casaos-gateway[962]: 2024-11-28T16:18:01.048Z info Management service is listening... {"address": "127.0.0.1:38589", "filepath": "/var/run/casaos/management.url", "func": "main.run.func1.1", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 206} nov 28 16:18:01 iago casaos-gateway[962]: 2024-11-28T16:18:01.048Z info Checking if service at URL is running... {"url": "http://[::]:80/ping", "retry": 10, "func": "main.checkURLWithRetry", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 382} nov 28 16:18:01 iago casaos-gateway[962]: 2024-11-28T16:18:01.052Z info New gateway is listening... {"address": "[::]:80", "func": "main.reloadGateway", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 358} nov 28 16:18:01 iago casaos-gateway[962]: [Fx] HOOK OnStart main.run.func2() called by main.run ran successfully in 4.191206ms nov 28 16:18:01 iago casaos-gateway[962]: [Fx] HOOK OnStart main.run.func3() executing (caller: main.run) nov 28 16:18:01 iago casaos-gateway[962]: 2024-11-28T16:18:01.052Z info Notified systemd that gateway is ready {"func": "main.main.func3", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 157} nov 28 16:18:01 iago casaos-gateway[962]: 2024-11-28T16:18:01.052Z info Static web service is listening... {"address": "127.0.0.1:33187", "filepath": "/var/run/casaos/static.url", "func": "main.run.func3", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 311} nov 28 16:18:01 iago systemd[1]: Started casaos-gateway.service - CasaOS Gateway. ░░ Subject: A start job for unit casaos-gateway.service has finished successfully ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A start job for unit casaos-gateway.service has finished successfully. ░░ ░░ The job identifier is 182. nov 29 14:08:15 iago casaos-gateway[962]: [Fx] ERROR Failed to start: context canceled nov 29 14:08:15 iago casaos-gateway[962]: 2024-11-29T14:08:15.125Z info A gateway is stopped {"address": "[::]:80", "func": "main.reloadGateway.func1", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 345} nov 29 14:08:15 iago systemd[1]: Stopping casaos-gateway.service - CasaOS Gateway... ░░ Subject: A stop job for unit casaos-gateway.service has begun execution ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A stop job for unit casaos-gateway.service has begun execution. ░░ ░░ The job identifier is 22354. nov 29 14:08:15 iago systemd[1]: casaos-gateway.service: Deactivated successfully. ░░ Subject: Unit succeeded ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ The unit casaos-gateway.service has successfully entered the 'dead' state. nov 29 14:08:15 iago systemd[1]: Stopped casaos-gateway.service - CasaOS Gateway. ░░ Subject: A stop job for unit casaos-gateway.service has finished ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A stop job for unit casaos-gateway.service has finished. ░░ ░░ The job identifier is 22354 and the job result is done. nov 29 14:08:15 iago systemd[1]: casaos-gateway.service: Consumed 9.380s CPU time. ░░ Subject: Resources consumed by unit runtime ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ The unit casaos-gateway.service completed and consumed the indicated resources. nov 29 14:09:47 iago systemd[1]: Starting casaos-gateway.service - CasaOS Gateway... ░░ Subject: A start job for unit casaos-gateway.service has begun execution ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A start job for unit casaos-gateway.service has begun execution. ░░ ░░ The job identifier is 23272. nov 29 14:09:47 iago casaos-gateway[152687]: v0.4.8 nov 29 14:09:47 iago casaos-gateway[152693]: git commit: eeb28d78941cf2746e611c02b148e347c47501da nov 29 14:09:47 iago casaos-gateway[152693]: build date: 2024-07-18T08:16:38Z nov 29 14:09:47 iago casaos-gateway[152693]: [Fx] PROVIDE *service.State <= main.main.func4() nov 29 14:09:47 iago casaos-gateway[152693]: [Fx] PROVIDE *service.Management <= github.com/IceWhaleTech/CasaOS-Gateway/service.NewManagementService() nov 29 14:09:47 iago casaos-gateway[152693]: [Fx] PROVIDE *route.ManagementRoute <= github.com/IceWhaleTech/CasaOS-Gateway/route.NewManagementRoute() nov 29 14:09:47 iago casaos-gateway[152693]: [Fx] PROVIDE *route.GatewayRoute <= github.com/IceWhaleTech/CasaOS-Gateway/route.NewGatewayRoute() nov 29 14:09:47 iago casaos-gateway[152693]: [Fx] PROVIDE *route.StaticRoute <= github.com/IceWhaleTech/CasaOS-Gateway/route.NewStaticRoute() nov 29 14:09:47 iago casaos-gateway[152693]: [Fx] PROVIDE fx.Lifecycle <= go.uber.org/fx.New.func1() nov 29 14:09:47 iago casaos-gateway[152693]: [Fx] PROVIDE fx.Shutdowner <= go.uber.org/fx.(*App).shutdowner-fm() nov 29 14:09:47 iago casaos-gateway[152693]: [Fx] PROVIDE fx.DotGraph <= go.uber.org/fx.(*App).dotGraph-fm() nov 29 14:09:47 iago casaos-gateway[152693]: [Fx] INVOKE main.run() nov 29 14:09:47 iago casaos-gateway[152693]: [Fx] RUN provide: go.uber.org/fx.New.func1() nov 29 14:09:47 iago casaos-gateway[152693]: [Fx] RUN provide: main.main.func4() nov 29 14:09:47 iago casaos-gateway[152693]: 2024-11-29T14:09:47.656Z error Failed to load routes {"error": "open /var/run/casaos/routes.json: no such file or directory", "filepath": "/var/run/casaos/routes.json", "func": "service.NewManagementService", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/service/management.go", "line": 32} nov 29 14:09:47 iago casaos-gateway[152693]: [Fx] RUN provide: github.com/IceWhaleTech/CasaOS-Gateway/service.NewManagementService() nov 29 14:09:47 iago casaos-gateway[152693]: [Fx] RUN provide: github.com/IceWhaleTech/CasaOS-Gateway/route.NewManagementRoute() nov 29 14:09:47 iago casaos-gateway[152693]: [Fx] RUN provide: github.com/IceWhaleTech/CasaOS-Gateway/route.NewGatewayRoute() nov 29 14:09:47 iago casaos-gateway[152693]: [Fx] RUN provide: github.com/IceWhaleTech/CasaOS-Gateway/route.NewStaticRoute() nov 29 14:09:47 iago casaos-gateway[152693]: [Fx] HOOK OnStart main.run.func1() executing (caller: main.run) nov 29 14:09:47 iago casaos-gateway[152693]: [Fx] HOOK OnStart main.run.func1() called by main.run ran successfully in 141.698µs nov 29 14:09:47 iago casaos-gateway[152693]: [Fx] HOOK OnStart main.run.func2() executing (caller: main.run) nov 29 14:09:47 iago casaos-gateway[152693]: 2024-11-29T14:09:47.657Z info Checking if port is available... {"port": "80", "func": "main.run.func2", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 251} nov 29 14:09:47 iago casaos-gateway[152693]: 2024-11-29T14:09:47.657Z info Management service is listening... {"address": "127.0.0.1:43577", "filepath": "/var/run/casaos/management.url", "func": "main.run.func1.1", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 206} nov 29 14:09:47 iago casaos-gateway[152693]: 2024-11-29T14:09:47.710Z info Checking if service at URL is running... {"url": "http://[::]:80/ping", "retry": 10, "func": "main.checkURLWithRetry", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 382} nov 29 14:09:47 iago casaos-gateway[152693]: 2024-11-29T14:09:47.711Z info New gateway is listening... {"address": "[::]:80", "func": "main.reloadGateway", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 358} nov 29 14:09:47 iago casaos-gateway[152693]: [Fx] HOOK OnStart main.run.func2() called by main.run ran successfully in 54.201915ms nov 29 14:09:47 iago casaos-gateway[152693]: [Fx] HOOK OnStart main.run.func3() executing (caller: main.run) nov 29 14:09:47 iago casaos-gateway[152693]: 2024-11-29T14:09:47.712Z info Notified systemd that gateway is ready {"func": "main.main.func3", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 157} nov 29 14:09:47 iago casaos-gateway[152693]: 2024-11-29T14:09:47.712Z info Static web service is listening... {"address": "127.0.0.1:37651", "filepath": "/var/run/casaos/static.url", "func": "main.run.func3", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 311} nov 29 14:09:47 iago systemd[1]: Started casaos-gateway.service - CasaOS Gateway. ░░ Subject: A start job for unit casaos-gateway.service has finished successfully ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A start job for unit casaos-gateway.service has finished successfully. ░░ ░░ The job identifier is 23272.
I'm also having this issue. Installing on a Dell Wyze 3050 with the 7500-T. Insalled Ubuntu 24.01 LTS and then casaOS. I have many services that did install but quite a few that have this exact same format / pattern.
I cannot reproduce the error, did you change the configuration file, i.e, casaos.conf? It seem that the path does not exist or the permission is not granted. can you run the following command in the terminal to see the output for a better understanding of the problem?
# show the dir
ls -ld /DATA/AppData
# show the config
cat /etc/casaos/casaos.conf
# try to make the dir
sudo mkdir -p /DATA/AppData
# restart the service
sudo systemctl restart casaos
I was also having this error, and found a resolution on this older issue: https://github.com/IceWhaleTech/CasaOS/issues/1451 Uninstall Docker snap Install Docker from Docker's repository