CasaOS
CasaOS copied to clipboard
[Bug] Blank terminal screen
trafficstars
Describe the bug
Please refer to: https://github.com/IceWhaleTech/CasaOS/issues/1390 Same issue
To Reproduce
Steps to reproduce the behavior:
- Log into CasaOS
- Select Terminal and Logs in upper left
- Enter correct username and password
- See error - black screen with no prompt
Expected behavior
A command prompt is expected
Screenshots
Desktop (please complete the following information):
- OS: Debian GNU/Linux 12 (bookworm)
- Browser Brave
- Version 1.76.73
System Time
Run
timedatectland share the output
Local time: Sun 2025-03-30 17:30:26 PDT Universal time: Mon 2025-03-31 00:30:26 UTC RTC time: Mon 2025-03-31 00:30:27 Time zone: America/Los_Angeles (PDT, -0700) 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:
Mar 30 17:20:24 homelab casaos-gateway[723]: v0.4.8
Mar 30 17:20:24 homelab casaos-gateway[764]: git commit: eeb28d78941cf2746e611c02b148e347c47501da
Mar 30 17:20:24 homelab casaos-gateway[764]: build date: 2024-07-18T08:16:38Z
Mar 30 17:20:24 homelab casaos-gateway[764]: [Fx] PROVIDE *service.State <= main.main.func4()
Mar 30 17:20:24 homelab casaos-gateway[764]: [Fx] PROVIDE *service.Management <= github.com/IceWhaleTech/CasaOS-Gateway/service.NewManagementService()
Mar 30 17:20:24 homelab casaos-gateway[764]: [Fx] PROVIDE *route.ManagementRoute <= github.com/IceWhaleTech/CasaOS-Gateway/route.NewManagementRoute()
Mar 30 17:20:24 homelab casaos-gateway[764]: [Fx] PROVIDE *route.GatewayRoute <= github.com/IceWhaleTech/CasaOS-Gateway/route.NewGatewayRoute()
Mar 30 17:20:24 homelab casaos-gateway[764]: [Fx] PROVIDE *route.StaticRoute <= github.com/IceWhaleTech/CasaOS-Gateway/route.NewStaticRoute()
Mar 30 17:20:24 homelab casaos-gateway[764]: [Fx] PROVIDE fx.Lifecycle <= go.uber.org/fx.New.func1()
Mar 30 17:20:24 homelab casaos-gateway[764]: [Fx] PROVIDE fx.Shutdowner <= go.uber.org/fx.(*App).shutdowner-fm()
Mar 30 17:20:24 homelab casaos-gateway[764]: [Fx] PROVIDE fx.DotGraph <= go.uber.org/fx.(*App).dotGraph-fm()
Mar 30 17:20:24 homelab casaos-gateway[764]: [Fx] INVOKE main.run()
Mar 30 17:20:24 homelab casaos-gateway[764]: [Fx] RUN provide: go.uber.org/fx.New.func1()
Mar 30 17:20:24 homelab casaos-gateway[764]: [Fx] RUN provide: main.main.func4()
Mar 30 17:20:24 homelab casaos-gateway[764]: 2025-03-30T17:20:24.271-0700 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}
Mar 30 17:20:24 homelab casaos-gateway[764]: [Fx] RUN provide: github.com/IceWhaleTech/CasaOS-Gateway/service.NewManagementService()
Mar 30 17:20:24 homelab casaos-gateway[764]: [Fx] RUN provide: github.com/IceWhaleTech/CasaOS-Gateway/route.NewManagementRoute()
Mar 30 17:20:24 homelab casaos-gateway[764]: [Fx] RUN provide: github.com/IceWhaleTech/CasaOS-Gateway/route.NewGatewayRoute()
Mar 30 17:20:24 homelab casaos-gateway[764]: [Fx] RUN provide: github.com/IceWhaleTech/CasaOS-Gateway/route.NewStaticRoute()
Mar 30 17:20:24 homelab casaos-gateway[764]: [Fx] HOOK OnStart main.run.func1() executing (caller: main.run)
Mar 30 17:20:24 homelab casaos-gateway[764]: [Fx] HOOK OnStart main.run.func1() called by main.run ran successfully in 2.254778ms
Mar 30 17:20:24 homelab casaos-gateway[764]: [Fx] HOOK OnStart main.run.func2() executing (caller: main.run)
Mar 30 17:20:24 homelab casaos-gateway[764]: 2025-03-30T17:20:24.279-0700 info Checking if service at URL is running... {"url": "http://[::]:81/ping", "retry": 10, "func": "main.checkURLWithRetry", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 382}
Mar 30 17:20:24 homelab casaos-gateway[764]: 2025-03-30T17:20:24.279-0700 info Management service is listening... {"address": "127.0.0.1:35579", "filepath": "/var/run/casaos/management.url", "func": "main.run.func1.1", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 206}
Mar 30 17:20:24 homelab casaos-gateway[764]: 2025-03-30T17:20:24.282-0700 info New gateway is listening... {"address": "[::]:81", "func": "main.reloadGateway", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 358}
Mar 30 17:20:24 homelab casaos-gateway[764]: [Fx] HOOK OnStart main.run.func2() called by main.run ran successfully in 3.673204ms
Mar 30 17:20:24 homelab casaos-gateway[764]: [Fx] HOOK OnStart main.run.func3() executing (caller: main.run)
Mar 30 17:20:24 homelab casaos-gateway[764]: 2025-03-30T17:20:24.282-0700 info Static web service is listening... {"address": "127.0.0.1:34723", "filepath": "/var/run/casaos/static.url", "func": "main.run.func3", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 311}
Mar 30 17:20:24 homelab casaos-gateway[764]: 2025-03-30T17:20:24.284-0700 info Notified systemd that gateway is ready {"func": "main.main.func3", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 157}
Mar 30 17:20:24 homelab systemd[1]: Started casaos-gateway.service - CasaOS Gateway.
sudo journalctl -xef -u casaos-user-service
Mar 30 17:20:24 homelab casaos-user-service[817]: 2025-03-30T17:20:24.619-0700 info User service is listening... {"address": "127.0.0.1:37769", "filepath": "/var/run/casaos/user-service.url", "func": "main.main", "file": "/home/runner/work/CasaOS-UserService/CasaOS-UserService/main.go", "line": 157}
Mar 30 17:20:24 homelab casaos-user-service[817]: 2025-03-30T17:20:24.621-0700 error connect websocket err0 {"error": "websocket.Dial ws://127.0.0.1:39671/v2/message_bus/event/local-storage: bad status", "func": "route.EventListen", "file": "/home/runner/work/CasaOS-UserService/CasaOS-UserService/route/event_listen.go", "line": 32}
Mar 30 17:20:25 homelab casaos-user-service[817]: 2025-03-30T17:20:25.622-0700 info subscribed to {"url": "ws://127.0.0.1:39671/v2/message_bus/event/local-storage", "func": "route.EventListen", "file": "/home/runner/work/CasaOS-UserService/CasaOS-UserService/route/event_listen.go", "line": 38}
Mar 30 17:20:31 homelab casaos-user-service[817]: 2025-03-30T17:20:31.818-0700 error NvidiaGPUInfoList error {"error": "exec: \"nvidia-smi\": executable file not found in $PATH", "func": "v1.GetUserStatus", "file": "/home/runner/work/CasaOS-UserService/CasaOS-UserService/route/v1/user.go", "line": 827}
Mar 30 17:20:31 homelab casaos-user-service[817]: [GIN] 2025/03/30 - 17:20:31 | 200 | 4.087074ms | 192.168.0.150 | GET "/v1/users/status"
Mar 30 17:20:34 homelab casaos-user-service[817]: 2025-03-30T17:20:33.997-0700 error NvidiaGPUInfoList error {"error": "exec: \"nvidia-smi\": executable file not found in $PATH", "func": "v1.GetUserStatus", "file": "/home/runner/work/CasaOS-UserService/CasaOS-UserService/route/v1/user.go", "line": 827}
Mar 30 17:20:34 homelab casaos-user-service[817]: [GIN] 2025/03/30 - 17:20:34 | 200 | 7.268629ms | 192.168.0.150 | GET "/v1/users/status"
Mar 30 17:20:35 homelab casaos-user-service[817]: [GIN] 2025/03/30 - 17:20:35 | 401 | 3.194296ms | 192.168.0.150 | GET "/v1/users/current/custom/wallpaper"
Mar 30 17:20:35 homelab casaos-user-service[817]: [GIN] 2025/03/30 - 17:20:35 | 401 | 4.05837ms | 192.168.0.150 | GET "/v1/users/current/custom/system"
Mar 30 17:20:35 homelab casaos-user-service[817]: [GIN] 2025/03/30 - 17:20:35 | 401 | 2.53937ms | 192.168.0.150 | POST "/v1/users/refresh"
Mar 30 17:20:35 homelab casaos-user-service[817]: 2025-03-30T17:20:35.286-0700 error NvidiaGPUInfoList error {"error": "exec: \"nvidia-smi\": executable file not found in $PATH", "func": "v1.GetUserStatus", "file": "/home/runner/work/CasaOS-UserService/CasaOS-UserService/route/v1/user.go", "line": 827}
Mar 30 17:20:35 homelab casaos-user-service[817]: [GIN] 2025/03/30 - 17:20:35 | 200 | 6.375574ms | 192.168.0.150 | GET "/v1/users/status"
Mar 30 17:20:35 homelab casaos-user-service[817]: 2025-03-30T17:20:35.351-0700 error NvidiaGPUInfoList error {"error": "exec: \"nvidia-smi\": executable file not found in $PATH", "func": "v1.GetUserStatus", "file": "/home/runner/work/CasaOS-UserService/CasaOS-UserService/route/v1/user.go", "line": 827}
Mar 30 17:20:35 homelab casaos-user-service[817]: [GIN] 2025/03/30 - 17:20:35 | 200 | 1.206129ms | 192.168.0.150 | GET "/v1/users/status"
Mar 30 17:20:35 homelab casaos-user-service[817]: [GIN] 2025/03/30 - 17:20:35 | 404 | 4.528241ms | 192.168.0.150 | GET "/v1/users/image?path=/var/lib/casaos/1/avatar.png"
Mar 30 17:20:38 homelab casaos-user-service[817]: [GIN] 2025/03/30 - 17:20:38 | 200 | 1.373556ms | 192.168.0.150 | POST "/v1/users/login"
Mar 30 17:20:39 homelab casaos-user-service[817]: 2025-03-30T17:20:39.231-0700 error NvidiaGPUInfoList error {"error": "exec: \"nvidia-smi\": executable file not found in $PATH", "func": "v1.GetUserStatus", "file": "/home/runner/work/CasaOS-UserService/CasaOS-UserService/route/v1/user.go", "line": 827}
Mar 30 17:20:39 homelab casaos-user-service[817]: [GIN] 2025/03/30 - 17:20:39 | 200 | 4.402259ms | 192.168.0.150 | GET "/v1/users/status"
Mar 30 17:20:39 homelab casaos-user-service[817]: [GIN] 2025/03/30 - 17:20:39 | 200 | 1.189519ms | 192.168.0.150 | GET "/v1/users/current/custom/wallpaper"
Mar 30 17:20:39 homelab casaos-user-service[817]: [GIN] 2025/03/30 - 17:20:39 | 200 | 7.061481ms | 192.168.0.150 | GET "/v1/users/current/custom/system"
Mar 30 17:20:39 homelab casaos-user-service[817]: {"time":"2025-03-30T17:20:39.628688729-07:00","id":"","remote_ip":"192.168.0.150","host":"192.168.0.230:81","method":"GET","uri":"/v2/users/events","user_agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36","status":200,"error":"","latency":12396185,"latency_human":"12.396185ms","bytes_in":0,"bytes_out":1375}
Mar 30 17:20:39 homelab casaos-user-service[817]: [GIN] 2025/03/30 - 17:20:39 | 200 | 1.5105ms | 192.168.0.150 | GET "/v1/users/current/custom/widgets_config"
Mar 30 17:20:42 homelab casaos-user-service[817]: [GIN] 2025/03/30 - 17:20:42 | 200 | 1.15726ms | 192.168.0.150 | GET "/v1/users/current/custom/link"
sudo journalctl -xef -u casaos-local-storage
Mar 30 17:20:24 homelab casaos-local-storage[832]: v0.4.4
Mar 30 17:20:24 homelab casaos-local-storage[839]: git commit: c78fcce41c1cbb1ec37fa14d71d39521ba3db3ca
Mar 30 17:20:24 homelab casaos-local-storage[839]: build date: 2024-01-29T05:47:51Z
Mar 30 17:20:24 homelab casaos-local-storage[839]: 2025-03-30T17:20:24.875-0700 info Checking serial disk mount... {"func": "service.(*diskService).CheckSerialDiskMount", "file": "/DATA/project/CasaOS-LocalStorage/service/disk.go", "line": 535}
Mar 30 17:20:24 homelab casaos-local-storage[839]: /usr/sbin/smartctl -a -n standby /dev/nvme0n1 -j
Mar 30 17:20:29 homelab casaos-local-storage[839]: 2025-03-30T17:20:29.965-0700 info Notified systemd that local storage service is ready {"func": "main.main", "file": "/DATA/project/CasaOS-LocalStorage/main.go", "line": 226}
Mar 30 17:20:29 homelab casaos-local-storage[839]: 2025-03-30T17:20:29.965-0700 info LocalStorage service is listening... {"address": "127.0.0.1:37627", "func": "main.main", "file": "/DATA/project/CasaOS-LocalStorage/main.go", "line": 231}
Mar 30 17:20:29 homelab systemd[1]: Started casaos-local-storage.service - CasaOS Local Storage Service.
░░ Subject: A start job for unit casaos-local-storage.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit casaos-local-storage.service has finished successfully.
░░
░░ The job identifier is 154.
Mar 30 17:20:39 homelab casaos-local-storage[839]: 2025-03-30T17:20:39.684-0700 error failed to publish event to message bus {"status": "404 Not Found", "responseError": "json: unsupported type: func() (io.ReadCloser, error)", "func": "service.(*notifyServer).SendNotify", "file": "/DATA/project/CasaOS-LocalStorage/service/notify.go", "line": 32}
sudo journalctl -xef -u casaos-app-management
Mar 30 17:20:39 homelab casaos-app-management[4463]: 2025-03-30T17:20:39.739-0700 info Notified systemd that casaos main service is ready {"func": "main.main", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/main.go", "line": 172}
Mar 30 17:20:39 homelab casaos-app-management[4463]: 2025-03-30T17:20:39.740-0700 info App management service is listening... {"address": "127.0.0.1:41655", "func": "main.main", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/main.go", "line": 177}
Mar 30 17:20:39 homelab casaos-app-management[4463]: 2025-03-30T17:20:39.835-0700 info appstore size changed, update app store {"url": "https://casaos.app/store/main.zip", "func": "service.(*appStore).UpdateCatalog", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore.go", "line": 94}
Mar 30 17:20:40 homelab casaos-app-management[4463]: {"time":"2025-03-30T17:20:40.244486785-07:00","id":"","remote_ip":"192.168.0.150","host":"192.168.0.230:81","method":"GET","uri":"/v1/container/usage","user_agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36","status":200,"error":"","latency":340401944,"latency_human":"340.401944ms","bytes_in":0,"bytes_out":25958}
Mar 30 17:20:40 homelab casaos-app-management[4463]: {"time":"2025-03-30T17:20:40.636978896-07:00","id":"","remote_ip":"192.168.0.233","host":"192.168.0.230:81","method":"GET","uri":"/v2/app_management/web/appgrid","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36","status":401,"error":"code=401, message=invalid or expired jwt, internal=code=401, message=Unauthorized","latency":755333,"latency_human":"755.333µs","bytes_in":0,"bytes_out":27}
Mar 30 17:20:41 homelab casaos-app-management[4463]: 2025-03-30T17:20:41.831-0700 error failed to load compose file {"error": "no configuration file provided: not found", "path": "", "func": "service.(*ComposeService).List", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/compose_service.go", "line": 184}
Mar 30 17:20:41 homelab casaos-app-management[4463]: 2025-03-30T17:20:41.832-0700 error failed to load compose file {"error": "no configuration file provided: not found", "path": "", "func": "service.(*ComposeService).List", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/compose_service.go", "line": 184}
Mar 30 17:20:41 homelab casaos-app-management[4463]: 2025-03-30T17:20:41.871-0700 error extension `x-casaos` not found {"func": "service.(*App).StoreInfo", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/app.go", "line": 18}
Mar 30 17:20:41 homelab casaos-app-management[4463]: 2025-03-30T17:20:41.903-0700 error extension `x-casaos` not found {"func": "service.(*App).StoreInfo", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/app.go", "line": 18}
Mar 30 17:20:42 homelab casaos-app-management[4463]: {"time":"2025-03-30T17:20:42.352072913-07:00","id":"","remote_ip":"192.168.0.150","host":"192.168.0.230:81","method":"GET","uri":"/v2/app_management/web/appgrid","user_agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36","status":200,"error":"","latency":639890074,"latency_human":"639.890074ms","bytes_in":0,"bytes_out":4186}
Mar 30 17:20:44 homelab casaos-app-management[4463]: 2025-03-30T17:20:44.595-0700 error failed to load compose file {"error": "no configuration file provided: not found", "path": "", "func": "service.(*ComposeService).List", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/compose_service.go", "line": 184}
Mar 30 17:20:44 homelab casaos-app-management[4463]: 2025-03-30T17:20:44.616-0700 error failed to load compose file {"error": "no configuration file provided: not found", "path": "", "func": "service.(*ComposeService).List", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/compose_service.go", "line": 184}
sudo journalctl -xef -u casaos.service
ar 30 17:21:00 homelab casaos[808]: 消息来了,message:{"type":"ping"}
Mar 30 17:21:03 homelab casaos[808]: {"time":"2025-03-30T17:21:03.216740075-07:00","id":"","remote_ip":"192.168.0.150","host":"192.168.0.230:81","method":"GET","uri":"/v1/sys/logs","user_agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36","status":200,"error":"","latency":219622433,"latency_human":"219.622433ms","bytes_in":0,"bytes_out":2671034}
Mar 30 17:21:04 homelab casaos[808]: {"time":"2025-03-30T17:21:04.006529359-07:00","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:42301","method":"POST","uri":"/v1/notify/system_status","user_agent":"Go-http-client/1.1","status":200,"error":"","latency":97617,"latency_human":"97.617µs","bytes_in":88,"bytes_out":43}
Mar 30 17:21:04 homelab casaos[808]: {"time":"2025-03-30T17:21:04.014933065-07:00","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:42301","method":"POST","uri":"/v1/notify/system_status","user_agent":"Go-http-client/1.1","status":200,"error":"","latency":290366,"latency_human":"290.366µs","bytes_in":14,"bytes_out":43}
Mar 30 17:21:08 homelab casaos[808]: {"time":"2025-03-30T17:21:08.068904563-07:00","id":"","remote_ip":"192.168.0.150","host":"192.168.0.230:81","method":"GET","uri":"/v1/sys/logs","user_agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36","status":200,"error":"","latency":59746067,"latency_human":"59.746067ms","bytes_in":0,"bytes_out":2671034}
Mar 30 17:21:09 homelab casaos[808]: {"time":"2025-03-30T17:21:09.001777367-07:00","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:42301","method":"POST","uri":"/v1/notify/system_status","user_agent":"Go-http-client/1.1","status":200,"error":"","latency":78297,"latency_human":"78.297µs","bytes_in":88,"bytes_out":43}
Mar 30 17:21:09 homelab casaos[808]: {"time":"2025-03-30T17:21:09.009591226-07:00","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:42301","method":"POST","uri":"/v1/notify/system_status","user_agent":"Go-http-client/1.1","status":200,"error":"","latency":210337,"latency_human":"210.337µs","bytes_in":14,"bytes_out":43}
Mar 30 17:21:12 homelab casaos[808]: {"time":"2025-03-30T17:21:12.984963835-07:00","id":"","remote_ip":"192.168.0.150","host":"192.168.0.230:81","method":"GET","uri":"/v1/sys/logs","user_agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36","status":200,"error":"","latency":39690538,"latency_human":"39.690538ms","bytes_in":0,"bytes_out":2671034}
Mar 30 17:21:14 homelab casaos[808]: {"time":"2025-03-30T17:21:14.001005651-07:00","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:42301","method":"POST","uri":"/v1/notify/system_status","user_agent":"Go-http-client/1.1","status":200,"error":"","latency":250877,"latency_human":"250.877µs","bytes_in":88,"bytes_out":43}
Mar 30 17:21:14 homelab casaos[808]: {"time":"2025-03-30T17:21:14.007830807-07:00","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:42301","method":"POST","uri":"/v1/notify/system_status","user_agent":"Go-http-client/1.1","status":200,"error":"","latency":113131,"latency_human":"113.131µs","bytes_in":14,"bytes_out":43}
Mar 30 17:21:17 homelab casaos[808]: {"time":"2025-03-30T17:21:17.996033507-07:00","id":"","remote_ip":"192.168.0.150","host":"192.168.0.230:81","method":"GET","uri":"/v1/sys/logs","user_agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36","status":200,"error":"","latency":55463683,"latency_human":"55.463683ms","bytes_in":0,"bytes_out":2671034}
**Additional context**
> Add any other context about the problem here.
>
> If you are a Zimaboard user, make it explicit with when you got your Zimaboard.