IceWhaleTech / CasaOS

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

[Bug] Apps not loading on home page #1681

Open ClassicalMadness opened 5 months ago

ClassicalMadness commented 5 months ago

Describe the bug

Apps not loading on Casa OS homepage after running the command "sudo docker-compose up -d --force-recreate" while trying to install Steam headless

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

 - OS: Server runs > amd 64  - Debian | Computer I'm accessing from > Win 11
 - Browser Win 11 PC using Opera GX
 - Version Casa OS v0.4.6

Logs

Run following command to collect corresponding logs:

Feb 02 21:09:30 mc-server casaos-gateway[532]: v0.4.4 Feb 02 21:09:28 mc-server systemd[1]: Starting casaos-gateway.service - CasaOS Gateway... ░░ Subject: A start job for unit casaos-gateway.service has begun execution ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ A start job for unit casaos-gateway.service has begun execution. ░░ ░░ The job identifier is 89. Feb 02 21:09:30 mc-server casaos-gateway[597]: git commit: 427bc0dd6e8b3748025e8da3ecc859fc3c4549f1 Feb 02 21:09:30 mc-server casaos-gateway[597]: build date: 2023-11-23T03:59:37Z Feb 02 21:09:31 mc-server casaos-gateway[597]: [Fx] PROVIDE service.State <= main.main.func4() Feb 02 21:09:31 mc-server casaos-gateway[597]: [Fx] PROVIDE service.Management <= github.com/IceWhaleTech/CasaOS-Gateway/service.NewManagementService() Feb 02 21:09:31 mc-server casaos-gateway[597]: [Fx] PROVIDE route.ManagementRoute <= github.com/IceWhaleTech/CasaOS-Gateway/route.NewManagementRoute() Feb 02 21:09:31 mc-server casaos-gateway[597]: [Fx] PROVIDE route.GatewayRoute <= github.com/IceWhaleTech/CasaOS-Gateway/route.NewGatewayRoute() Feb 02 21:09:31 mc-server casaos-gateway[597]: [Fx] PROVIDE route.StaticRoute <= github.com/IceWhaleTech/CasaOS-Gateway/route.NewStaticRoute() Feb 02 21:09:31 mc-server casaos-gateway[597]: [Fx] PROVIDE fx.Lifecycle <= go.uber.org/fx.New.func1() Feb 02 21:09:31 mc-server casaos-gateway[597]: [Fx] PROVIDE fx.Shutdowner <= go.uber.org/fx.(App).shutdowner-fm() Feb 02 21:09:31 mc-server casaos-gateway[597]: [Fx] PROVIDE fx.DotGraph <= go.uber.org/fx.(*App).dotGraph-fm() Feb 02 21:09:31 mc-server casaos-gateway[597]: [Fx] INVOKE main.run() Feb 02 21:09:31 mc-server casaos-gateway[597]: 2024-02-02T21:09:30.991-0600 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} Feb 02 21:09:31 mc-server casaos-gateway[597]: [Fx] HOOK OnStart main.run.func1() executing (caller: main.run) Feb 02 21:09:31 mc-server casaos-gateway[597]: [Fx] HOOK OnStart main.run.func1() called by main.run ran successfully in 510.008µs Feb 02 21:09:31 mc-server casaos-gateway[597]: [Fx] HOOK OnStart main.run.func2() executing (caller: main.run) Feb 02 21:09:31 mc-server casaos-gateway[597]: 2024-02-02T21:09:31.445-0600 info Management service is listening... {"address": "127.0.0.1:44235", "filepath": "/var/run/casaos/management.url", "func": "main.run.func1.1", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 208} Feb 02 21:09:31 mc-server casaos-gateway[597]: 2024-02-02T21:09:31.445-0600 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": 384} Feb 02 21:09:31 mc-server casaos-gateway[597]: 2024-02-02T21:09:31.448-0600 info New gateway is listening... {"address": "[::]:80", "func": "main.reloadGateway", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 360} Feb 02 21:09:31 mc-server casaos-gateway[597]: [Fx] HOOK OnStart main.run.func2() called by main.run ran successfully in 3.424378ms Feb 02 21:09:31 mc-server casaos-gateway[597]: [Fx] HOOK OnStart main.run.func3() executing (caller: main.run) Feb 02 21:09:31 mc-server casaos-gateway[597]: 2024-02-02T21:09:31.448-0600 info Notified systemd that gateway is ready {"func": "main.main.func3", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 159} Feb 02 21:09:31 mc-server casaos-gateway[597]: 2024-02-02T21:09:31.448-0600 info Static web service is listening... {"address": "127.0.0.1:43731", "filepath": "/var/run/casaos/static.url", "func": "main.run.func3", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 313} Feb 02 21:09:31 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:31 | 404 | 89.258102ms | 192.168.1.66 | GET "/v2/app_management/web/appgrid" Feb 02 21:09:31 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:31 | 404 | 2.324156ms | 192.168.1.66 | GET "/v2/app_management/web/appgrid" Feb 02 21:09:31 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:31 | 404 | 170.385µs | 192.168.1.66 | GET "/v2/app_management/web/appgrid" Feb 02 21:09:31 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:31 | 404 | 180.658µs | 192.168.1.66 | GET "/v2/app_management/web/appgrid" Feb 02 21:09:31 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:31 | 404 | 218.307µs | 192.168.1.66 | GET "/v2/app_management/web/appgrid" Feb 02 21:09:31 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:31 | 404 | 416.786µs | 192.168.1.66 | GET "/v2/app_management/web/appgrid" Feb 02 21:09:31 mc-server systemd[1]: Started casaos-gateway.service - CasaOS Gateway. ░░ Subject: A start job for unit casaos-gateway.service has finished successfully ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ A start job for unit casaos-gateway.service has finished successfully. ░░ ░░ The job identifier is 89. Feb 02 21:09:33 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:33 | 200 | 351.005µs | 127.0.0.1 | GET "/ping" Feb 02 21:09:33 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:33 | 201 | 221.64µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:33 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:33 | 201 | 110.041µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:35 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:35 | 200 | 646.103µs | 127.0.0.1 | GET "/ping" Feb 02 21:09:35 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:35 | 201 | 186.796µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:35 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:35 | 201 | 159.195µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:35 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:35 | 201 | 111.66µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:35 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:35 | 201 | 90.705µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:37 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:36 | 404 | 901.017µs | 192.168.1.66 | GET "/v2/app_management/web/appgrid" Feb 02 21:09:37 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:37 | 200 | 87.936µs | 127.0.0.1 | GET "/ping" Feb 02 21:09:37 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:37 | 201 | 133.017µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:37 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:37 | 201 | 116.61µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:37 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:37 | 201 | 152.834µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:37 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:37 | 201 | 106.017µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:37 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:37 | 201 | 95.201µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:37 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:37 | 201 | 111.408µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:37 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:37 | 201 | 109.76µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:37 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:37 | 201 | 93.062µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:37 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:37 | 201 | 111.096µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:37 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:37 | 201 | 113.005µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:37 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:37 | 201 | 104.836µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:37 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:37 | 201 | 111.198µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:37 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:37 | 201 | 112.322µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:37 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:37 | 201 | 97.492µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:37 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:37 | 201 | 98.89µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:39 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:39 | 200 | 115.694µs | 127.0.0.1 | GET "/ping" Feb 02 21:09:40 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:40 | 201 | 149.015µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:40 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:40 | 201 | 112.767µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:40 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:40 | 201 | 117.573µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:40 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:40 | 201 | 119.151µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:40 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:40 | 201 | 115.782µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:41 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:41 | 200 | 258.161µs | 127.0.0.1 | GET "/ping" Feb 02 21:09:42 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:42 | 201 | 209.919µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:42 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:42 | 201 | 164.64µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:42 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:42 | 201 | 145.576µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:42 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:42 | 201 | 185.545µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:42 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:42 | 201 | 171.653µs | 127.0.0.1 | POST "/v1/gateway/routes" Feb 02 21:09:43 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:43 | 200 | 39.250212ms | 192.168.1.66 | GET "/" Feb 02 21:09:44 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:09:44 | 200 | 41.337834ms | 192.168.1.66 | GET "/img/default_wallpaper.459c0744.jpg" Feb 02 21:10:14 mc-server casaos-gateway[597]: [GIN] 2024/02/02 - 21:10:14 | 200 | 565.333µs | 192.168.1.66 | GET "/v1/gateway/port" image_2024-02-02_212309613 image_2024-02-02_212502075

LinkLeong commented 4 months ago

Sorry for taking so long to reply. Does your problem still exist? The problem is that the app backend service did not start successfully. I hope you can restart it and check.

ClassicalMadness commented 4 months ago

I just reinstalled CasaOS. I think I messed with Docker a little too much and messed up CasaOS. I was trying to install different docker containers like Shinobi like how I would on TrueNAS. Would love it if CasaOS would allow more customizability to docker containers.