Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] "Method Not Allowed" on Login #2102

Open
Enzo1603 opened this issue Dec 19, 2024 · 0 comments
Open

[Bug] "Method Not Allowed" on Login #2102

Enzo1603 opened this issue Dec 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Enzo1603
Copy link

I am running CasaOS version 0.4.14 on my Raspberry Pi 5 and can no longer log in due to a red message that says: "Method Not Allowed". I have tried it on my Raspberry Pi 4 as well and it does not work either. I am not 100 % sure if this is already fixed with version 0.4.15 but I cannot yet install this version. I tried to install version 0.4.15 via the terminal with the command curl -fsSL https://get.casaos.io/update/v0.4.15 | sudo bash. But if I run casaos -v it still says version 0.4.14. So at least for right now, I cannot log in to CasaOS and I cannot upgrade it via the terminal to check if the bug still exists in version 0.4.15. This bug might be related to the failing services in the logs down below.

To Reproduce

  1. Install CasaOS 0.4.14 on a Raspberry Pi 4 or 5
  2. Try to log in

Expected behavior

Being able to log in as usual.

Screenshots

image

Desktop (please complete the following information):

 - OS: Raspbian OS (based on Debian 12 bookworm)
 - Browser: Firefox (133.0.3), Zen (based on Firefox 133.0.3), Brave (1.73.101)
 - Version 0.4.14

System Time

Run timedatectl and share the output

Local time: Thu 2024-12-19 16:36:15 CET
Universal time: Thu 2024-12-19 15:36:15 UTC
RTC time: Thu 2024-12-19 15:36:15
Time zone: Europe/Zurich (CET, +0100)
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

Dec 19 16:22:12 ras5 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 151.
Dec 19 16:22:13 ras5 casaos-gateway[742]: v0.4.8
Dec 19 16:22:13 ras5 casaos-gateway[776]: git commit: eeb28d78941cf2746e611c02b148e347c47501da
Dec 19 16:22:13 ras5 casaos-gateway[776]: build date: 2024-07-18T08:16:38Z
Dec 19 16:22:13 ras5 casaos-gateway[776]: [Fx] PROVIDE        *service.State <= main.main.func4()
Dec 19 16:22:13 ras5 casaos-gateway[776]: [Fx] PROVIDE        *service.Management <= github.com/IceWhaleTech/CasaOS-Gateway/service.NewManagementService()
Dec 19 16:22:13 ras5 casaos-gateway[776]: [Fx] PROVIDE        *route.ManagementRoute <= github.com/IceWhaleTech/CasaOS-Gateway/route.NewManagementRoute()
Dec 19 16:22:13 ras5 casaos-gateway[776]: [Fx] PROVIDE        *route.GatewayRoute <= github.com/IceWhaleTech/CasaOS-Gateway/route.NewGatewayRoute()
Dec 19 16:22:13 ras5 casaos-gateway[776]: [Fx] PROVIDE        *route.StaticRoute <= github.com/IceWhaleTech/CasaOS-Gateway/route.NewStaticRoute()
Dec 19 16:22:13 ras5 casaos-gateway[776]: [Fx] PROVIDE        fx.Lifecycle <= go.uber.org/fx.New.func1()
Dec 19 16:22:13 ras5 casaos-gateway[776]: [Fx] PROVIDE        fx.Shutdowner <= go.uber.org/fx.(*App).shutdowner-fm()
Dec 19 16:22:13 ras5 casaos-gateway[776]: [Fx] PROVIDE        fx.DotGraph <= go.uber.org/fx.(*App).dotGraph-fm()
Dec 19 16:22:13 ras5 casaos-gateway[776]: [Fx] INVOKE                main.run()
Dec 19 16:22:13 ras5 casaos-gateway[776]: [Fx] RUN        provide: go.uber.org/fx.New.func1()
Dec 19 16:22:13 ras5 casaos-gateway[776]: [Fx] RUN        provide: main.main.func4()
Dec 19 16:22:13 ras5 casaos-gateway[776]: 2024-12-19T16:22:13.685+0100        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}
Dec 19 16:22:13 ras5 casaos-gateway[776]: [Fx] RUN        provide: github.com/IceWhaleTech/CasaOS-Gateway/service.NewManagementService()
Dec 19 16:22:13 ras5 casaos-gateway[776]: [Fx] RUN        provide: github.com/IceWhaleTech/CasaOS-Gateway/route.NewManagementRoute()
Dec 19 16:22:13 ras5 casaos-gateway[776]: [Fx] RUN        provide: github.com/IceWhaleTech/CasaOS-Gateway/route.NewGatewayRoute()
Dec 19 16:22:13 ras5 casaos-gateway[776]: [Fx] RUN        provide: github.com/IceWhaleTech/CasaOS-Gateway/route.NewStaticRoute()
Dec 19 16:22:13 ras5 casaos-gateway[776]: [Fx] HOOK OnStart                main.run.func1() executing (caller: main.run)
Dec 19 16:22:13 ras5 casaos-gateway[776]: 2024-12-19T16:22:13.727+0100        info        Management service is listening...        {"address": "127.0.0.1:36837", "filepath": "/var/run/casaos/management.url", "func": "main.run.func1.1", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 206}
Dec 19 16:22:13 ras5 casaos-gateway[776]: [Fx] HOOK OnStart                main.run.func1() called by main.run ran successfully in 324.334µs
Dec 19 16:22:13 ras5 casaos-gateway[776]: [Fx] HOOK OnStart                main.run.func2() executing (caller: main.run)
Dec 19 16:22:13 ras5 casaos-gateway[776]: 2024-12-19T16:22:13.730+0100        info        Checking if service at URL is running...        {"url": "http://[::]:100/ping", "retry": 10, "func": "main.checkURLWithRetry", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 382}
Dec 19 16:22:13 ras5 casaos-gateway[776]: 2024-12-19T16:22:13.753+0100        info        New gateway is listening...        {"address": "[::]:100", "func": "main.reloadGateway", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 358}
Dec 19 16:22:13 ras5 casaos-gateway[776]: [Fx] HOOK OnStart                main.run.func2() called by main.run ran successfully in 26.55ms
Dec 19 16:22:13 ras5 casaos-gateway[776]: [Fx] HOOK OnStart                main.run.func3() executing (caller: main.run)
Dec 19 16:22:13 ras5 casaos-gateway[776]: 2024-12-19T16:22:13.754+0100        info        Static web service is listening...        {"address": "127.0.0.1:40491", "filepath": "/var/run/casaos/static.url", "func": "main.run.func3", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 311}
Dec 19 16:22:13 ras5 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 151.
Dec 19 16:22:13 ras5 casaos-gateway[776]: 2024-12-19T16:22:13.754+0100        info        Notified systemd that gateway is ready        {"func": "main.main.func3", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 157}
Dec 19 16:24:20 ras5 casaos-gateway[776]: [Fx] ERROR                Failed to start: context canceled
Dec 19 16:24:20 ras5 casaos-gateway[776]: 2024-12-19T16:24:20.151+0100        info        A gateway is stopped        {"address": "[::]:100", "func": "main.reloadGateway.func1", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 345}
Dec 19 16:24:20 ras5 systemd[1]: Stopping casaos-gateway.service - CasaOS Gateway...
░░ Subject: A stop job for unit casaos-gateway.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A stop job for unit casaos-gateway.service has begun execution.
░░ 
░░ The job identifier is 9935.
Dec 19 16:24:20 ras5 systemd[1]: casaos-gateway.service: Deactivated successfully.
░░ Subject: Unit succeeded
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ The unit casaos-gateway.service has successfully entered the 'dead' state.
Dec 19 16:24:20 ras5 systemd[1]: Stopped casaos-gateway.service - CasaOS Gateway.
░░ Subject: A stop job for unit casaos-gateway.service has finished
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A stop job for unit casaos-gateway.service has finished.
░░ 
░░ The job identifier is 9935 and the job result is done.
Dec 19 16:24:20 ras5 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.
sudo journalctl -xef -u casaos-user-service

Dec 19 16:22:18 ras5 systemd[1]: Starting casaos-user-service.service - CasaOS User Service...
░░ Subject: A start job for unit casaos-user-service.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit casaos-user-service.service has begun execution.
░░ 
░░ The job identifier is 133.
Dec 19 16:22:19 ras5 casaos-user-service[975]: v0.4.8
Dec 19 16:22:19 ras5 casaos-user-service[1027]: git commit: 5cf4ed5424be4c62b97d67b51f6338c47285f47b
Dec 19 16:22:19 ras5 casaos-user-service[1027]: build date: 2024-03-26T03:36:24Z
Dec 19 16:22:19 ras5 casaos-user-service[1027]: [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
Dec 19 16:22:19 ras5 casaos-user-service[1027]: [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
Dec 19 16:22:19 ras5 casaos-user-service[1027]:  - using env:        export GIN_MODE=release
Dec 19 16:22:19 ras5 casaos-user-service[1027]:  - using code:        gin.SetMode(gin.ReleaseMode)
Dec 19 16:22:19 ras5 casaos-user-service[1027]: panic: failed to create route (status code: 401)
Dec 19 16:22:19 ras5 casaos-user-service[1027]: goroutine 1 [running]:
Dec 19 16:22:19 ras5 casaos-user-service[1027]: main.main()
Dec 19 16:22:19 ras5 casaos-user-service[1027]:         /home/runner/work/CasaOS-UserService/CasaOS-UserService/main.go:139 +0xe64
Dec 19 16:22:19 ras5 systemd[1]: casaos-user-service.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ An ExecStart= process belonging to unit casaos-user-service.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 2.
Dec 19 16:22:19 ras5 systemd[1]: casaos-user-service.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ The unit casaos-user-service.service has entered the 'failed' state with result 'exit-code'.
Dec 19 16:22:19 ras5 systemd[1]: Failed to start casaos-user-service.service - CasaOS User Service.
░░ Subject: A start job for unit casaos-user-service.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit casaos-user-service.service has finished with a failure.
░░ 
░░ The job identifier is 133 and the job result is failed.
Dec 19 16:22:19 ras5 systemd[1]: casaos-user-service.service: Scheduled restart job, restart counter is at 1.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ Automatic restarting of the unit casaos-user-service.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Dec 19 16:22:19 ras5 systemd[1]: Stopped casaos-user-service.service - CasaOS User Service.
░░ Subject: A stop job for unit casaos-user-service.service has finished
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A stop job for unit casaos-user-service.service has finished.
░░ 
░░ The job identifier is 948 and the job result is done.
Dec 19 16:22:19 ras5 systemd[1]: Starting casaos-user-service.service - CasaOS User Service...
░░ Subject: A start job for unit casaos-user-service.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit casaos-user-service.service has begun execution.
░░ 
░░ The job identifier is 948.
Dec 19 16:22:19 ras5 casaos-user-service[1067]: v0.4.8
Dec 19 16:22:19 ras5 casaos-user-service[1081]: git commit: 5cf4ed5424be4c62b97d67b51f6338c47285f47b
Dec 19 16:22:19 ras5 casaos-user-service[1081]: build date: 2024-03-26T03:36:24Z
Dec 19 16:22:19 ras5 casaos-user-service[1081]: [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
Dec 19 16:22:19 ras5 casaos-user-service[1081]: [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
Dec 19 16:22:19 ras5 casaos-user-service[1081]:  - using env:        export GIN_MODE=release
Dec 19 16:22:19 ras5 casaos-user-service[1081]:  - using code:        gin.SetMode(gin.ReleaseMode)
Dec 19 16:22:19 ras5 casaos-user-service[1081]: panic: failed to create route (status code: 401)
Dec 19 16:22:19 ras5 casaos-user-service[1081]: goroutine 1 [running]:
Dec 19 16:22:19 ras5 casaos-user-service[1081]: main.main()
Dec 19 16:22:19 ras5 casaos-user-service[1081]:         /home/runner/work/CasaOS-UserService/CasaOS-UserService/main.go:139 +0xe64
Dec 19 16:22:19 ras5 systemd[1]: casaos-user-service.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ An ExecStart= process belonging to unit casaos-user-service.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 2.
Dec 19 16:22:19 ras5 systemd[1]: casaos-user-service.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ The unit casaos-user-service.service has entered the 'failed' state with result 'exit-code'.
Dec 19 16:22:19 ras5 systemd[1]: Failed to start casaos-user-service.service - CasaOS User Service.
░░ Subject: A start job for unit casaos-user-service.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit casaos-user-service.service has finished with a failure.
░░ 
░░ The job identifier is 948 and the job result is failed.
Dec 19 16:22:19 ras5 systemd[1]: casaos-user-service.service: Scheduled restart job, restart counter is at 2.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ Automatic restarting of the unit casaos-user-service.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Dec 19 16:22:19 ras5 systemd[1]: Stopped casaos-user-service.service - CasaOS User Service.
░░ Subject: A stop job for unit casaos-user-service.service has finished
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A stop job for unit casaos-user-service.service has finished.
░░ 
░░ The job identifier is 1280 and the job result is done.
Dec 19 16:22:19 ras5 systemd[1]: Starting casaos-user-service.service - CasaOS User Service...
░░ Subject: A start job for unit casaos-user-service.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit casaos-user-service.service has begun execution.
░░ 
░░ The job identifier is 1280.
Dec 19 16:22:19 ras5 casaos-user-service[1103]: v0.4.8
Dec 19 16:22:19 ras5 casaos-user-service[1112]: git commit: 5cf4ed5424be4c62b97d67b51f6338c47285f47b
Dec 19 16:22:19 ras5 casaos-user-service[1112]: build date: 2024-03-26T03:36:24Z
Dec 19 16:22:19 ras5 casaos-user-service[1112]: [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
Dec 19 16:22:19 ras5 casaos-user-service[1112]: [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
Dec 19 16:22:19 ras5 casaos-user-service[1112]:  - using env:        export GIN_MODE=release
Dec 19 16:22:19 ras5 casaos-user-service[1112]:  - using code:        gin.SetMode(gin.ReleaseMode)
Dec 19 16:22:19 ras5 casaos-user-service[1112]: panic: failed to create route (status code: 401)
Dec 19 16:22:19 ras5 casaos-user-service[1112]: goroutine 1 [running]:
Dec 19 16:22:19 ras5 casaos-user-service[1112]: main.main()
Dec 19 16:22:19 ras5 casaos-user-service[1112]:         /home/runner/work/CasaOS-UserService/CasaOS-UserService/main.go:139 +0xe64
Dec 19 16:22:19 ras5 systemd[1]: casaos-user-service.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
sudo journalctl -xef -u casaos-local-storage

░░ A start job for unit casaos-local-storage.service has finished with a failure.
░░ 
░░ The job identifier is 126462 and the job result is failed.
Dec 19 16:40:42 ras5 systemd[1]: casaos-local-storage.service: Scheduled restart job, restart counter is at 654.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ Automatic restarting of the unit casaos-local-storage.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Dec 19 16:40:42 ras5 systemd[1]: Stopped casaos-local-storage.service - CasaOS Local Storage Service.
░░ Subject: A stop job for unit casaos-local-storage.service has finished
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A stop job for unit casaos-local-storage.service has finished.
░░ 
░░ The job identifier is 126629 and the job result is done.
Dec 19 16:40:42 ras5 systemd[1]: Starting casaos-local-storage.service - CasaOS Local Storage Service...
░░ Subject: A start job for unit casaos-local-storage.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit casaos-local-storage.service has begun execution.
░░ 
░░ The job identifier is 126629.
Dec 19 16:40:42 ras5 casaos-local-storage[67204]: v0.4.4
Dec 19 16:40:42 ras5 casaos-local-storage[67219]: git commit: c78fcce41c1cbb1ec37fa14d71d39521ba3db3ca
Dec 19 16:40:42 ras5 casaos-local-storage[67219]: build date: 2024-01-29T05:47:51Z
Dec 19 16:40:42 ras5 casaos-local-storage[67219]: 2024-12-19T16:40:42.750+0100        info        Checking serial disk mount...        {"func": "service.(*diskService).CheckSerialDiskMount", "file": "/DATA/project/CasaOS-LocalStorage/service/disk.go", "line": 535}
Dec 19 16:40:42 ras5 casaos-local-storage[67219]: /usr/sbin/smartctl -a -n standby /dev/sda -j
Dec 19 16:40:43 ras5 casaos-local-storage[67219]: /usr/sbin/smartctl -a -n standby /dev/mmcblk0 -j
Dec 19 16:40:43 ras5 casaos-local-storage[67219]: {
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:   "json_format_version": [
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:     1,
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:     0
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:   ],
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:   "smartctl": {
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:     "version": [
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:       7,
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:       3
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:     ],
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:     "svn_revision": "5338",
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:     "platform_info": "aarch64-linux-6.6.62+rpt-rpi-2712",
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:     "build_info": "(local build)",
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:     "argv": [
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:       "smartctl",
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:       "-a",
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:       "-n",
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:       "standby",
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:       "/dev/mmcblk0",
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:       "-j"
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:     ],
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:     "messages": [
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:       {
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:         "string": "/dev/mmcblk0: Unable to detect device type",
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:         "severity": "error"
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:       }
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:     ],
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:     "exit_status": 1
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:   },
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:   "local_time": {
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:     "time_t": 1734622843,
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:     "asctime": "Thu Dec 19 16:40:43 2024 CET"
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:   }
Dec 19 16:40:43 ras5 casaos-local-storage[67219]: }
Dec 19 16:40:43 ras5 casaos-local-storage[67219]: 2024-12-19T16:40:43.061+0100        error        failed to exec shell - smartctl exec error        {"func": "service.(*diskService).SmartCTL", "file": "/DATA/project/CasaOS-LocalStorage/service/disk.go", "line": 149}
Dec 19 16:40:43 ras5 casaos-local-storage[67219]: 2024-12-19T16:40:43.109+0100        error        failed to enable S.M.A.R.T: smartctl 7.3 2022-02-28 r5338 [aarch64-linux-6.6.62+rpt-rpi-2712] (local build)
Dec 19 16:40:43 ras5 casaos-local-storage[67219]: Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org
Dec 19 16:40:43 ras5 casaos-local-storage[67219]: /dev/mmcblk0: Unable to detect device type
Dec 19 16:40:43 ras5 casaos-local-storage[67219]: Please specify device type with the -d option.
Dec 19 16:40:43 ras5 casaos-local-storage[67219]: Use smartctl -h to get a usage summary
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:         {"error": "exit status 1", "path": "/dev/mmcblk0", "func": "service.(*diskService).CheckSerialDiskMount", "file": "/DATA/project/CasaOS-LocalStorage/service/disk.go", "line": 559}
Dec 19 16:40:43 ras5 casaos-local-storage[67219]: /bin/bash -c source /usr/share/casaos/shell/local-storage-helper.sh ;USB_Stop_Auto
Dec 19 16:40:43 ras5 casaos-local-storage[67219]: 2024-12-19T16:40:43.859+0100        error        failed to send notify        {"message": {"sys_disk":{"size":122575831040,"avail":88186757120,"health":true,"used":28145819648}}, "error": "open /var/run/casaos/casaos.url: no such file or directory", "func": "main.sendDiskBySocket", "file": "/DATA/project/CasaOS-LocalStorage/misc.go", "line": 84}
Dec 19 16:40:43 ras5 casaos-local-storage[67219]: 2024-12-19T16:40:43.865+0100        error        failed to send notify        {"message": {"sys_usb":[{"name":"sda","size":500107862016,"model":"SCSI","avail":431563845632,"children":null}]}, "error": "open /var/run/casaos/casaos.url: no such file or directory", "func": "main.sendUSBBySocket", "file": "/DATA/project/CasaOS-LocalStorage/misc.go", "line": 94}
Dec 19 16:40:43 ras5 casaos-local-storage[67219]: panic: failed to create route (status code: 401)
Dec 19 16:40:43 ras5 casaos-local-storage[67219]: goroutine 1 [running]:
Dec 19 16:40:43 ras5 casaos-local-storage[67219]: main.main()
Dec 19 16:40:43 ras5 casaos-local-storage[67219]:         /DATA/project/CasaOS-LocalStorage/main.go:178 +0x1068
Dec 19 16:40:43 ras5 systemd[1]: casaos-local-storage.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ An ExecStart= process belonging to unit casaos-local-storage.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 2.
Dec 19 16:40:43 ras5 systemd[1]: casaos-local-storage.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ The unit casaos-local-storage.service has entered the 'failed' state with result 'exit-code'.
Dec 19 16:40:43 ras5 systemd[1]: Failed to start casaos-local-storage.service - CasaOS Local Storage Service.
░░ Subject: A start job for unit casaos-local-storage.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit casaos-local-storage.service has finished with a failure.
░░ 
░░ The job identifier is 126629 and the job result is failed.
Dec 19 16:40:44 ras5 systemd[1]: casaos-local-storage.service: Scheduled restart job, restart counter is at 655.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ Automatic restarting of the unit casaos-local-storage.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Dec 19 16:40:44 ras5 systemd[1]: Stopped casaos-local-storage.service - CasaOS Local Storage Service.
░░ Subject: A stop job for unit casaos-local-storage.service has finished
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A stop job for unit casaos-local-storage.service has finished.
░░ 
░░ The job identifier is 126796 and the job result is done.
Dec 19 16:40:44 ras5 systemd[1]: Starting casaos-local-storage.service - CasaOS Local Storage Service...
░░ Subject: A start job for unit casaos-local-storage.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit casaos-local-storage.service has begun execution.
░░ 
░░ The job identifier is 126796.
Dec 19 16:40:44 ras5 casaos-local-storage[67298]: v0.4.4
Dec 19 16:40:44 ras5 casaos-local-storage[67312]: git commit: c78fcce41c1cbb1ec37fa14d71d39521ba3db3ca
Dec 19 16:40:44 ras5 casaos-local-storage[67312]: build date: 2024-01-29T05:47:51Z
Dec 19 16:40:44 ras5 casaos-local-storage[67312]: 2024-12-19T16:40:44.285+0100        info        Checking serial disk mount...        {"func": "service.(*diskService).CheckSerialDiskMount", "file": "/DATA/project/CasaOS-LocalStorage/service/disk.go", "line": 535}
Dec 19 16:40:44 ras5 casaos-local-storage[67312]: /usr/sbin/smartctl -a -n standby /dev/sda -j
sudo journalctl -xef -u casaos-app-management

░░ 
░░ The unit casaos-app-management.service has entered the 'failed' state with result 'exit-code'.
Dec 19 16:41:28 ras5 systemd[1]: Failed to start casaos-app-management.service - CasaOS App Management Service.
░░ Subject: A start job for unit casaos-app-management.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit casaos-app-management.service has finished with a failure.
░░ 
░░ The job identifier is 131723 and the job result is failed.
Dec 19 16:41:28 ras5 systemd[1]: casaos-app-management.service: Scheduled restart job, restart counter is at 712.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ Automatic restarting of the unit casaos-app-management.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Dec 19 16:41:28 ras5 systemd[1]: Stopped casaos-app-management.service - CasaOS App Management Service.
░░ Subject: A stop job for unit casaos-app-management.service has finished
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A stop job for unit casaos-app-management.service has finished.
░░ 
░░ The job identifier is 131890 and the job result is done.
Dec 19 16:41:28 ras5 systemd[1]: Starting casaos-app-management.service - CasaOS App Management Service...
░░ Subject: A start job for unit casaos-app-management.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit casaos-app-management.service has begun execution.
░░ 
░░ The job identifier is 131890.
Dec 19 16:41:28 ras5 casaos-app-management[69839]: v0.4.5
Dec 19 16:41:29 ras5 casaos-app-management[69861]: git commit: cc80b3313113d946f7216ff4b95c3c4b83381149
Dec 19 16:41:29 ras5 casaos-app-management[69861]: build date: 2024-10-11T03:57:49Z
Dec 19 16:41:29 ras5 casaos-app-management[69861]: 2024-12-19T16:41:29.225+0100        info        failed to parse compose app - contact the contributor of this app to fix it        {"error": "validating : services.jellyseerr.cap_add must be a list", "composeFile": "/var/lib/casaos/appstore/default/Apps/Jellyseerr/docker-compose.yaml", "func": "service.BuildCatalog.func1", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore.go", "line": 395}
Dec 19 16:41:29 ras5 casaos-app-management[69861]: 2024-12-19T16:41:29.269+0100        info        failed to parse compose app - contact the contributor of this app to fix it        {"error": "validating : services.medusa.cap_add must be a list", "composeFile": "/var/lib/casaos/appstore/default/Apps/Medusa/docker-compose.yml", "func": "service.BuildCatalog.func1", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore.go", "line": 395}
Dec 19 16:41:29 ras5 casaos-app-management[69861]: 2024-12-19T16:41:29.606+0100        info        failed to parse compose app - contact the contributor of this app to fix it        {"error": "validating : services.trilium.cap_add must be a list", "composeFile": "/var/lib/casaos/appstore/default/Apps/Trilium/docker-compose.yaml", "func": "service.BuildCatalog.func1", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore.go", "line": 395}
Dec 19 16:41:29 ras5 casaos-app-management[69861]: 2024-12-19T16:41:29.612+0100        info        failed to parse compose app - contact the contributor of this app to fix it        {"error": "validating : services.twingate-connector.volumes must be a list", "composeFile": "/var/lib/casaos/appstore/default/Apps/Twingate/docker-compose.yml", "func": "service.BuildCatalog.func1", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore.go", "line": 395}
Dec 19 16:41:29 ras5 casaos-app-management[69861]: 2024-12-19T16:41:29.667+0100        error        error when trying to register one or more event types - some event type will not be discoverable        {"error": "Post \"/message%20bus%20address%20not%20found/event_type\": unsupported protocol scheme \"\"", "func": "main.main", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/main.go", "line": 110}
Dec 19 16:41:29 ras5 casaos-app-management[69861]: panic: failed to create route (status code: 401)
Dec 19 16:41:29 ras5 casaos-app-management[69861]: goroutine 1 [running]:
Dec 19 16:41:29 ras5 casaos-app-management[69861]: main.main()
Dec 19 16:41:29 ras5 casaos-app-management[69861]:         /home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/main.go:148 +0x12b4
Dec 19 16:41:30 ras5 systemd[1]: casaos-app-management.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ An ExecStart= process belonging to unit casaos-app-management.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 2.
Dec 19 16:41:30 ras5 systemd[1]: casaos-app-management.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ The unit casaos-app-management.service has entered the 'failed' state with result 'exit-code'.
Dec 19 16:41:30 ras5 systemd[1]: Failed to start casaos-app-management.service - CasaOS App Management Service.
░░ Subject: A start job for unit casaos-app-management.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit casaos-app-management.service has finished with a failure.
░░ 
░░ The job identifier is 131890 and the job result is failed.
Dec 19 16:41:30 ras5 systemd[1]: casaos-app-management.service: Scheduled restart job, restart counter is at 713.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ Automatic restarting of the unit casaos-app-management.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Dec 19 16:41:30 ras5 systemd[1]: Stopped casaos-app-management.service - CasaOS App Management Service.
░░ Subject: A stop job for unit casaos-app-management.service has finished
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A stop job for unit casaos-app-management.service has finished.
░░ 
░░ The job identifier is 132057 and the job result is done.
Dec 19 16:41:30 ras5 systemd[1]: Starting casaos-app-management.service - CasaOS App Management Service...
░░ Subject: A start job for unit casaos-app-management.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit casaos-app-management.service has begun execution.
░░ 
░░ The job identifier is 132057.
Dec 19 16:41:30 ras5 casaos-app-management[69933]: v0.4.5
Dec 19 16:41:30 ras5 casaos-app-management[69954]: git commit: cc80b3313113d946f7216ff4b95c3c4b83381149
Dec 19 16:41:30 ras5 casaos-app-management[69954]: build date: 2024-10-11T03:57:49Z
Dec 19 16:41:30 ras5 casaos-app-management[69954]: 2024-12-19T16:41:30.706+0100        info        failed to parse compose app - contact the contributor of this app to fix it        {"error": "validating : services.jellyseerr.cap_add must be a list", "composeFile": "/var/lib/casaos/appstore/default/Apps/Jellyseerr/docker-compose.yaml", "func": "service.BuildCatalog.func1", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore.go", "line": 395}
Dec 19 16:41:30 ras5 casaos-app-management[69954]: 2024-12-19T16:41:30.746+0100        info        failed to parse compose app - contact the contributor of this app to fix it        {"error": "validating : services.medusa.cap_add must be a list", "composeFile": "/var/lib/casaos/appstore/default/Apps/Medusa/docker-compose.yml", "func": "service.BuildCatalog.func1", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore.go", "line": 395}
Dec 19 16:41:31 ras5 casaos-app-management[69954]: 2024-12-19T16:41:31.046+0100        info        failed to parse compose app - contact the contributor of this app to fix it        {"error": "validating : services.trilium.environment must be a mapping", "composeFile": "/var/lib/casaos/appstore/default/Apps/Trilium/docker-compose.yaml", "func": "service.BuildCatalog.func1", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore.go", "line": 395}
sudo journalctl -xef -u casaos.service

░░ 
░░ A start job for unit casaos.service has finished with a failure.
░░ 
░░ The job identifier is 15833 and the job result is failed.
Dec 19 16:24:35 ras5 systemd[1]: casaos.service: Scheduled restart job, restart counter is at 18.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ Automatic restarting of the unit casaos.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Dec 19 16:24:35 ras5 systemd[1]: Stopped casaos.service - CasaOS Main Service.
░░ Subject: A stop job for unit casaos.service has finished
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A stop job for unit casaos.service has finished.
░░ 
░░ The job identifier is 15916 and the job result is done.
Dec 19 16:24:35 ras5 systemd[1]: Starting casaos.service - CasaOS Main Service...
░░ Subject: A start job for unit casaos.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit casaos.service has begun execution.
░░ 
░░ The job identifier is 15916.
Dec 19 16:24:35 ras5 casaos[11480]: git commit: 958a4833857b173ebcb7a98831e2f0017d6ccbfe
Dec 19 16:24:35 ras5 casaos[11480]: build date: 2024-12-10T09:45:32Z
Dec 19 16:24:35 ras5 casaos[11480]: 2024-12-19T16:24:35.914+0100        info        CPU thermal zone found: cpu-thermal, path: /sys/devices/virtual/thermal/thermal_zone0.        {"func": "service.GetCPUThermalZone", "file": "/home/runner/work/CasaOS/CasaOS/service/system.go", "line": 485}
Dec 19 16:24:35 ras5 casaos[11480]: err failed to create route (status code: 401)
Dec 19 16:24:35 ras5 casaos[11480]: panic: failed to create route (status code: 401)
Dec 19 16:24:35 ras5 casaos[11480]: goroutine 1 [running]:
Dec 19 16:24:35 ras5 casaos[11480]: main.main()
Dec 19 16:24:35 ras5 casaos[11480]:         /home/runner/work/CasaOS/CasaOS/main.go:159 +0x1190
Dec 19 16:24:35 ras5 systemd[1]: casaos.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ An ExecStart= process belonging to unit casaos.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 2.
Dec 19 16:24:35 ras5 systemd[1]: casaos.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ The unit casaos.service has entered the 'failed' state with result 'exit-code'.
Dec 19 16:24:35 ras5 systemd[1]: Failed to start casaos.service - CasaOS Main Service.
░░ Subject: A start job for unit casaos.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit casaos.service has finished with a failure.
░░ 
░░ The job identifier is 15916 and the job result is failed.
Dec 19 16:24:36 ras5 systemd[1]: casaos.service: Scheduled restart job, restart counter is at 19.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ Automatic restarting of the unit casaos.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Dec 19 16:24:36 ras5 systemd[1]: Stopped casaos.service - CasaOS Main Service.
░░ Subject: A stop job for unit casaos.service has finished
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A stop job for unit casaos.service has finished.
░░ 
░░ The job identifier is 15999 and the job result is done.
Dec 19 16:24:36 ras5 systemd[1]: casaos.service: Start request repeated too quickly.
Dec 19 16:24:36 ras5 systemd[1]: casaos.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ The unit casaos.service has entered the 'failed' state with result 'exit-code'.
Dec 19 16:24:36 ras5 systemd[1]: Failed to start casaos.service - CasaOS Main Service.
░░ Subject: A start job for unit casaos.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit casaos.service has finished with a failure.
░░ 
░░ The job identifier is 15999 and the job result is failed.
@Enzo1603 Enzo1603 added the bug Something isn't working label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant