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] CasaOS v0.4.6 reports mdad raid as several disk and total disk space is wrong #1707

Open adocampo opened 7 months ago

adocampo commented 7 months ago

Describe the bug

I don't need CasaOS to manage my mdadm device, I can set it up manually, as I've been doing for decades. Just build a NAS and decided to install CasaOS over the plain CLI on Arch Linux.

So far so good, but I noticed storage and disk inside CasaOS is completely borked. Let me explain.

I have, as for now, 3x18TB disks and I manually created the RAID via mdadm (I expected that CasaOS would be able to set up the array now ZimaOS was able to set it up, but it doesn't seem so, anyway, as I said, it doesn't really matter).

The issue is CasaOS is showing a completely wrong information of my storage. My array is

/dev/md0          33T   642G   33T   2% /data

But CasaOS is showing as I had 98.44 TB, which is the sum of the mountpoins shown on lsblk

# lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
sda      8:0    0  16,4T  0 disk  
└─md0    9:0    0  32,7T  0 raid5 /data
sdb      8:16   0  16,4T  0 disk  
└─md0    9:0    0  32,7T  0 raid5 /data
sdc      8:32   0  16,4T  0 disk  
└─md0    9:0    0  32,7T  0 raid5 /data
sdd      8:48   0 232,9G  0 disk  
└─sdd1   8:49   0 232,9G  0 part  /
sde      8:64   0   480M  0 disk  
└─sde1   8:65   0   479M  0 part  /boot
zram0  254:0    0     4G  0 disk  [SWAP]

To Reproduce

Expected behavior

CasaOS should be able to discern that the same mountpoint can only be count as just one storage, regarding the number of disks used in the array, thus, it would show the correct amount of storage.

Screenshots Real number of mountpoints and space. image

Storage detected in CasaOS image image

Desktop (please complete the following information):

 - OS: Arch Linux
 - Browser : N/A
 - Version 0.4.6

System Time

Run timedatectl and share the output

               Local time: jue 2024-02-22 23:28:30 CET
           Universal time: jue 2024-02-22 22:28:30 UTC
                 RTC time: jue 2024-02-22 22:28:30
                Time zone: Europe/Madrid (CET, +0100)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

Logs

sudo journalctl -xef -u casaos-gateway

eb 22 23:33:44 belial systemd[1]: Starting CasaOS Gateway...
░░ Subject: A start job for unit casaos-gateway.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit casaos-gateway.service has begun execution.
░░ 
░░ The job identifier is 118.
feb 22 23:33:44 belial casaos-gateway[362]: v0.4.4
feb 22 23:33:45 belial casaos-gateway[413]: git commit: 427bc0dd6e8b3748025e8da3ecc859fc3c4549f1
feb 22 23:33:45 belial casaos-gateway[413]: build date: 2023-11-23T03:59:37Z
feb 22 23:33:45 belial casaos-gateway[413]: [Fx] PROVIDE        *service.State <= main.main.func4()
feb 22 23:33:45 belial casaos-gateway[413]: [Fx] PROVIDE        *service.Management <= github.com/IceWhaleTech/CasaOS-Gateway/service.NewManagementService()
feb 22 23:33:45 belial casaos-gateway[413]: [Fx] PROVIDE        *route.ManagementRoute <= github.com/IceWhaleTech/CasaOS-Gateway/route.NewManagementRoute()
feb 22 23:33:45 belial casaos-gateway[413]: [Fx] PROVIDE        *route.GatewayRoute <= github.com/IceWhaleTech/CasaOS-Gateway/route.NewGatewayRoute()
feb 22 23:33:45 belial casaos-gateway[413]: [Fx] PROVIDE        *route.StaticRoute <= github.com/IceWhaleTech/CasaOS-Gateway/route.NewStaticRoute()
feb 22 23:33:45 belial casaos-gateway[413]: [Fx] PROVIDE        fx.Lifecycle <= go.uber.org/fx.New.func1()
feb 22 23:33:45 belial casaos-gateway[413]: [Fx] PROVIDE        fx.Shutdowner <= go.uber.org/fx.(*App).shutdowner-fm()
feb 22 23:33:45 belial casaos-gateway[413]: [Fx] PROVIDE        fx.DotGraph <= go.uber.org/fx.(*App).dotGraph-fm()
feb 22 23:33:45 belial casaos-gateway[413]: [Fx] INVOKE                main.run()
feb 22 23:33:45 belial casaos-gateway[413]: 2024-02-22T23:33:45.190+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}
feb 22 23:33:45 belial casaos-gateway[413]: [Fx] HOOK OnStart                main.run.func1() executing (caller: main.run)
feb 22 23:33:45 belial casaos-gateway[413]: [Fx] HOOK OnStart                main.run.func1() called by main.run ran successfully in 230.323µs
feb 22 23:33:45 belial casaos-gateway[413]: [Fx] HOOK OnStart                main.run.func2() executing (caller: main.run)
feb 22 23:33:45 belial casaos-gateway[413]: 2024-02-22T23:33:45.192+0100        info        Management service is listening...        {"address": "127.0.0.1:42081", "filepath": "/var/run/casaos/management.url", "func": "main.run.func1.1", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 208}
feb 22 23:33:45 belial casaos-gateway[413]: 2024-02-22T23:33:45.192+0100        info        Checking if service at URL is running...        {"url": "http://[::]:3456/ping", "retry": 10, "func": "main.checkURLWithRetry", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 384}
feb 22 23:33:45 belial casaos-gateway[413]: 2024-02-22T23:33:45.193+0100        info        New gateway is listening...        {"address": "[::]:3456", "func": "main.reloadGateway", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 360}
feb 22 23:33:45 belial casaos-gateway[413]: [Fx] HOOK OnStart                main.run.func2() called by main.run ran successfully in 1.483264ms
feb 22 23:33:45 belial casaos-gateway[413]: [Fx] HOOK OnStart                main.run.func3() executing (caller: main.run)
feb 22 23:33:45 belial casaos-gateway[413]: 2024-02-22T23:33:45.193+0100        info        Notified systemd that gateway is ready        {"func": "main.main.func3", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 159}
feb 22 23:33:45 belial casaos-gateway[413]: 2024-02-22T23:33:45.194+0100        info        Static web service is listening...        {"address": "127.0.0.1:42737", "filepath": "/var/run/casaos/static.url", "func": "main.run.func3", "file": "/home/runner/work/CasaOS-Gateway/CasaOS-Gateway/main.go", "line": 313}
feb 22 23:33:45 belial systemd[1]: Started CasaOS Gateway.
░░ Subject: A start job for unit casaos-gateway.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit casaos-gateway.service has finished successfully.
░░ 
░░ The job identifier is 118.
feb 22 23:33:46 belial casaos-gateway[413]: [GIN] 2024/02/22 - 23:33:46 | 200 |     217.099µs |       127.0.0.1 | GET      "/ping"
feb 22 23:33:46 belial casaos-gateway[413]: [GIN] 2024/02/22 - 23:33:46 | 201 |    1.395298ms |       127.0.0.1 | POST     "/v1/gateway/routes"
feb 22 23:33:46 belial casaos-gateway[413]: [GIN] 2024/02/22 - 23:33:46 | 201 |     230.314µs |       127.0.0.1 | POST     "/v1/gateway/routes"
feb 22 23:33:46 belial casaos-gateway[413]: [GIN] 2024/02/22 - 23:33:46 | 200 |     108.002µs |       127.0.0.1 | GET      "/ping"
feb 22 23:33:46 belial casaos-gateway[413]: [GIN] 2024/02/22 - 23:33:46 | 201 |     224.936µs |       127.0.0.1 | POST     "/v1/gateway/routes"
feb 22 23:33:46 belial casaos-gateway[413]: [GIN] 2024/02/22 - 23:33:46 | 201 |     306.362µs |       127.0.0.1 | POST     "/v1/gateway/routes"
feb 22 23:33:46 belial casaos-gateway[413]: [GIN] 2024/02/22 - 23:33:46 | 201 |     263.877µs |       127.0.0.1 | POST     "/v1/gateway/routes"
feb 22 23:33:46 belial casaos-gateway[413]: [GIN] 2024/02/22 - 23:33:46 | 201 |     204.142µs |       127.0.0.1 | POST     "/v1/gateway/routes"
feb 22 23:33:46 belial casaos-gateway[413]: [GIN] 2024/02/22 - 23:33:46 | 201 |     171.986µs |       127.0.0.1 | POST     "/v1/gateway/routes"
feb 22 23:33:46 belial casaos-gateway[413]: [GIN] 2024/02/22 - 23:33:46 | 201 |     171.438µs |       127.0.0.1 | POST     "/v1/gateway/routes"
feb 22 23:33:46 belial casaos-gateway[413]: [GIN] 2024/02/22 - 23:33:46 | 201 |     238.544µs |       127.0.0.1 | POST     "/v1/gateway/routes"

sudo journalctl -xef -u casaos-user-service

feb 22 23:33:46 belial systemd[1]: Starting CasaOS User Service...
░░ Subject: A start job for unit casaos-user-service.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit casaos-user-service.service has begun execution.
░░ 
░░ The job identifier is 133.
feb 22 23:33:46 belial casaos-user-service[441]: v0.4.4
feb 22 23:33:47 belial casaos-user-service[476]: git commit: 4d2b65e34c6d01800273009d60756205c08cb0c3
feb 22 23:33:47 belial casaos-user-service[476]: build date: 2024-01-18T07:48:12Z
feb 22 23:33:47 belial casaos-user-service[476]: [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
feb 22 23:33:47 belial casaos-user-service[476]: [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
feb 22 23:33:47 belial casaos-user-service[476]:  - using env:        export GIN_MODE=release
feb 22 23:33:47 belial casaos-user-service[476]:  - using code:        gin.SetMode(gin.ReleaseMode)
feb 22 23:33:47 belial casaos-user-service[476]: 2024-02-22T23:33:47.189+0100        info        Notified systemd that user service is ready        {"func": "main.main", "file": "/home/runner/work/CasaOS-UserService/CasaOS-UserService/main.go", "line": 150}
feb 22 23:33:47 belial systemd[1]: Started CasaOS User Service.
░░ Subject: A start job for unit casaos-user-service.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit casaos-user-service.service has finished successfully.
░░ 
░░ The job identifier is 133.
feb 22 23:33:47 belial casaos-user-service[476]: 2024-02-22T23:33:47.189+0100        info        User service is listening...        {"address": "127.0.0.1:33205", "filepath": "/var/run/casaos/user-service.url", "func": "main.main", "file": "/home/runner/work/CasaOS-UserService/CasaOS-UserService/main.go", "line": 155}
feb 22 23:33:47 belial casaos-user-service[476]: 2024-02-22T23:33:47.190+0100        error        connect websocket err0        {"error": "websocket.Dial ws://127.0.0.1:39205/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}
feb 22 23:33:48 belial casaos-user-service[476]: 2024-02-22T23:33:48.192+0100        error        connect websocket err1        {"error": "websocket.Dial ws://127.0.0.1:39205/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}
feb 22 23:33:49 belial casaos-user-service[476]: 2024-02-22T23:33:49.193+0100        error        connect websocket err2        {"error": "websocket.Dial ws://127.0.0.1:39205/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}
feb 22 23:33:50 belial casaos-user-service[476]: 2024-02-22T23:33:50.196+0100        error        connect websocket err3        {"error": "websocket.Dial ws://127.0.0.1:39205/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}
feb 22 23:33:51 belial casaos-user-service[476]: 2024-02-22T23:33:51.198+0100        info        subscribed to        {"url": "ws://127.0.0.1:39205/v2/message_bus/event/local-storage", "func": "route.EventListen", "file": "/home/runner/work/CasaOS-UserService/CasaOS-UserService/route/event_listen.go", "line": 38}
feb 22 23:34:02 belial casaos-user-service[476]: [GIN] 2024/02/22 - 23:34:02 | 401 |     624.926µs |    192.168.1.10 | POST     "/v1/users/refresh"
feb 22 23:34:03 belial casaos-user-service[476]: [GIN] 2024/02/22 - 23:34:03 | 200 |     886.823µs |    192.168.1.10 | GET      "/v1/users/status"
feb 22 23:34:03 belial casaos-user-service[476]: [GIN] 2024/02/22 - 23:34:03 | 200 |     626.368µs |    192.168.1.10 | GET      "/v1/users/status"
feb 22 23:34:03 belial casaos-user-service[476]: [GIN] 2024/02/22 - 23:34:03 | 404 |     560.734µs |    192.168.1.10 | GET      "/v1/users/image?path=/var/lib/casaos/1/avatar.png"

sudo journalctl -xef -u casaos-local-storage

feb 22 23:33:47 belial systemd[1]: Starting CasaOS Local Storage Service...
░░ Subject: A start job for unit casaos-local-storage.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit casaos-local-storage.service has begun execution.
░░ 
░░ The job identifier is 132.
feb 22 23:33:48 belial casaos-local-storage[593]: v0.4.4
feb 22 23:33:49 belial casaos-local-storage[601]: git commit: c78fcce41c1cbb1ec37fa14d71d39521ba3db3ca
feb 22 23:33:49 belial casaos-local-storage[601]: build date: 2023-07-13T02:30:13Z
feb 22 23:33:49 belial casaos-local-storage[601]: 2024-02-22T23:33:49.641+0100        info        Checking serial disk mount...        {"func": "service.(*diskService).CheckSerialDiskMount", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 535}
feb 22 23:33:49 belial casaos-local-storage[601]: /usr/bin/smartctl -a -n standby /dev/sda -j
feb 22 23:33:49 belial casaos-local-storage[601]: /usr/bin/smartctl -a -n standby /dev/sdb -j
feb 22 23:33:49 belial casaos-local-storage[601]: /usr/bin/smartctl -a -n standby /dev/sdc -j
feb 22 23:33:50 belial casaos-local-storage[601]: /usr/bin/smartctl -a -n standby /dev/sdd -j
feb 22 23:33:50 belial casaos-local-storage[601]: /usr/bin/smartctl -a -n standby /dev/sde -j
feb 22 23:33:50 belial casaos-local-storage[601]: {
feb 22 23:33:50 belial casaos-local-storage[601]:   "json_format_version": [
feb 22 23:33:50 belial casaos-local-storage[601]:     1,
feb 22 23:33:50 belial casaos-local-storage[601]:     0
feb 22 23:33:50 belial casaos-local-storage[601]:   ],
feb 22 23:33:50 belial casaos-local-storage[601]:   "smartctl": {
feb 22 23:33:50 belial casaos-local-storage[601]:     "version": [
feb 22 23:33:50 belial casaos-local-storage[601]:       7,
feb 22 23:33:50 belial casaos-local-storage[601]:       4
feb 22 23:33:50 belial casaos-local-storage[601]:     ],
feb 22 23:33:50 belial casaos-local-storage[601]:     "pre_release": false,
feb 22 23:33:50 belial casaos-local-storage[601]:     "svn_revision": "5530",
feb 22 23:33:50 belial casaos-local-storage[601]:     "platform_info": "x86_64-linux-6.7.5-arch1-1",
feb 22 23:33:50 belial casaos-local-storage[601]:     "build_info": "(local build)",
feb 22 23:33:50 belial casaos-local-storage[601]:     "argv": [
feb 22 23:33:50 belial casaos-local-storage[601]:       "smartctl",
feb 22 23:33:50 belial casaos-local-storage[601]:       "-a",
feb 22 23:33:50 belial casaos-local-storage[601]:       "-n",
feb 22 23:33:50 belial casaos-local-storage[601]:       "standby",
feb 22 23:33:50 belial casaos-local-storage[601]:       "/dev/sde",
feb 22 23:33:50 belial casaos-local-storage[601]:       "-j"
feb 22 23:33:50 belial casaos-local-storage[601]:     ],
feb 22 23:33:50 belial casaos-local-storage[601]:     "messages": [
feb 22 23:33:50 belial casaos-local-storage[601]:       {
feb 22 23:33:50 belial casaos-local-storage[601]:         "string": "/dev/sde: Unknown USB bridge [0x0424:0x4030 (0x210)]",
feb 22 23:33:50 belial casaos-local-storage[601]:         "severity": "error"
feb 22 23:33:50 belial casaos-local-storage[601]:       }
feb 22 23:33:50 belial casaos-local-storage[601]:     ],
feb 22 23:33:50 belial casaos-local-storage[601]:     "exit_status": 1
feb 22 23:33:50 belial casaos-local-storage[601]:   },
feb 22 23:33:50 belial casaos-local-storage[601]:   "local_time": {
feb 22 23:33:50 belial casaos-local-storage[601]:     "time_t": 1708641230,
feb 22 23:33:50 belial casaos-local-storage[601]:     "asctime": "Thu Feb 22 23:33:50 2024 CET"
feb 22 23:33:50 belial casaos-local-storage[601]:   }
feb 22 23:33:50 belial casaos-local-storage[601]: }
feb 22 23:33:50 belial casaos-local-storage[601]: 2024-02-22T23:33:50.174+0100        error        failed to exec shell - smartctl exec error        {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 149}
feb 22 23:33:50 belial casaos-local-storage[601]: /usr/bin/smartctl -a -n standby /dev/zram0 -j
feb 22 23:33:50 belial casaos-local-storage[601]: {
feb 22 23:33:50 belial casaos-local-storage[601]:   "json_format_version": [
feb 22 23:33:50 belial casaos-local-storage[601]:     1,
feb 22 23:33:50 belial casaos-local-storage[601]:     0
feb 22 23:33:50 belial casaos-local-storage[601]:   ],
feb 22 23:33:50 belial casaos-local-storage[601]:   "smartctl": {
feb 22 23:33:50 belial casaos-local-storage[601]:     "version": [
feb 22 23:33:50 belial casaos-local-storage[601]:       7,
feb 22 23:33:50 belial casaos-local-storage[601]:       4
feb 22 23:33:50 belial casaos-local-storage[601]:     ],
feb 22 23:33:50 belial casaos-local-storage[601]:     "pre_release": false,
feb 22 23:33:50 belial casaos-local-storage[601]:     "svn_revision": "5530",
feb 22 23:33:50 belial casaos-local-storage[601]:     "platform_info": "x86_64-linux-6.7.5-arch1-1",
feb 22 23:33:50 belial casaos-local-storage[601]:     "build_info": "(local build)",
feb 22 23:33:50 belial casaos-local-storage[601]:     "argv": [
feb 22 23:33:50 belial casaos-local-storage[601]:       "smartctl",
feb 22 23:33:50 belial casaos-local-storage[601]:       "-a",
feb 22 23:33:50 belial casaos-local-storage[601]:       "-n",
feb 22 23:33:50 belial casaos-local-storage[601]:       "standby",
feb 22 23:33:50 belial casaos-local-storage[601]:       "/dev/zram0",
feb 22 23:33:50 belial casaos-local-storage[601]:       "-j"
feb 22 23:33:50 belial casaos-local-storage[601]:     ],
feb 22 23:33:50 belial casaos-local-storage[601]:     "messages": [
feb 22 23:33:50 belial casaos-local-storage[601]:       {
feb 22 23:33:50 belial casaos-local-storage[601]:         "string": "/dev/zram0: Unable to detect device type",
feb 22 23:33:50 belial casaos-local-storage[601]:         "severity": "error"
feb 22 23:33:50 belial casaos-local-storage[601]:       }
feb 22 23:33:50 belial casaos-local-storage[601]:     ],
feb 22 23:33:50 belial casaos-local-storage[601]:     "exit_status": 1
feb 22 23:33:50 belial casaos-local-storage[601]:   },
feb 22 23:33:50 belial casaos-local-storage[601]:   "local_time": {
feb 22 23:33:50 belial casaos-local-storage[601]:     "time_t": 1708641230,
feb 22 23:33:50 belial casaos-local-storage[601]:     "asctime": "Thu Feb 22 23:33:50 2024 CET"
feb 22 23:33:50 belial casaos-local-storage[601]:   }
feb 22 23:33:50 belial casaos-local-storage[601]: }
feb 22 23:33:50 belial casaos-local-storage[601]: 2024-02-22T23:33:50.204+0100        error        failed to exec shell - smartctl exec error        {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 149}
feb 22 23:33:50 belial casaos-local-storage[601]: 2024-02-22T23:33:50.387+0100        error        failed to enable S.M.A.R.T: smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.7.5-arch1-1] (local build)
feb 22 23:33:50 belial casaos-local-storage[601]: Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org
feb 22 23:33:50 belial casaos-local-storage[601]: /dev/sde: Unknown USB bridge [0x0424:0x4030 (0x210)]
feb 22 23:33:50 belial casaos-local-storage[601]: Please specify device type with the -d option.
feb 22 23:33:50 belial casaos-local-storage[601]: Use smartctl -h to get a usage summary
feb 22 23:33:50 belial casaos-local-storage[601]:         {"error": "exit status 1", "path": "/dev/sde", "func": "service.(*diskService).CheckSerialDiskMount", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 559}
feb 22 23:33:50 belial casaos-local-storage[601]: 2024-02-22T23:33:50.405+0100        error        failed to enable S.M.A.R.T: smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.7.5-arch1-1] (local build)
feb 22 23:33:50 belial casaos-local-storage[601]: Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org
feb 22 23:33:50 belial casaos-local-storage[601]: /dev/zram0: Unable to detect device type
feb 22 23:33:50 belial casaos-local-storage[601]: Please specify device type with the -d option.
feb 22 23:33:50 belial casaos-local-storage[601]: Use smartctl -h to get a usage summary
feb 22 23:33:50 belial casaos-local-storage[601]:         {"error": "exit status 1", "path": "/dev/zram0", "func": "service.(*diskService).CheckSerialDiskMount", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 559}
feb 22 23:33:55 belial casaos-local-storage[601]: 2024-02-22T23:33:55.499+0100        info        Notified systemd that local storage service is ready        {"func": "main.main", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/main.go", "line": 226}
feb 22 23:33:55 belial casaos-local-storage[601]: 2024-02-22T23:33:55.499+0100        info        LocalStorage service is listening...        {"address": "127.0.0.1:39947", "func": "main.main", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/main.go", "line": 231}
feb 22 23:33:55 belial systemd[1]: Started CasaOS Local Storage Service.
░░ Subject: A start job for unit casaos-local-storage.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit casaos-local-storage.service has finished successfully.
░░ 
░░ The job identifier is 132.

sudo journalctl -xef -u casaos-app-management

feb 22 23:34:01 belial systemd[1]: Started CasaOS App Management Service.
░░ Subject: A start job for unit casaos-app-management.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit casaos-app-management.service has finished successfully.
░░ 
░░ The job identifier is 113.
feb 22 23:34:02 belial casaos-app-management[1165]: {"time":"2024-02-22T23:34:02.962395008+01:00","id":"","remote_ip":"192.168.1.10","host":"192.168.1.101:3456","method":"GET","uri":"/v2/app_management/web/appgrid","user_agent":"Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","status":401,"error":"code=401, message=invalid or expired jwt, internal=code=401, message=Unauthorized","latency":1046404,"latency_human":"1.046404ms","bytes_in":0,"bytes_out":27}
feb 22 23:34:04 belial casaos-app-management[1165]: 2024-02-22T23:34:04.184+0100        info        failed to parse compose app - contact the contributor of this app to fix it        {"error": "validating : name Does not match pattern '^[a-z0-9][a-z0-9_-]*$'", "composeFile": "/var/lib/casaos/appstore/casaos-appstore.paodayag.dev/0c0a660bc6c1ddf8d6c9e8940e86c942/CasaOS-Coolstore-main/Apps/draw.io/docker-compose.yml", "func": "service.BuildCatalog.func1", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore.go", "line": 369}
feb 22 23:34:04 belial casaos-app-management[1165]: 2024-02-22T23:34:04.363+0100        info        recommend list file not found        {"recommendListFile": "/var/lib/casaos/appstore/casaos-appstore.paodayag.dev/0c0a660bc6c1ddf8d6c9e8940e86c942/CasaOS-Coolstore-main/recommend-list.json", "func": "service.LoadRecommend", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore.go", "line": 313}
feb 22 23:34:05 belial casaos-app-management[1165]: 2024-02-22T23:34:05.656+0100        info        failed to parse compose app - contact the contributor of this app to fix it        {"error": "validating : name Does not match pattern '^[a-z0-9][a-z0-9_-]*$'", "composeFile": "/var/lib/casaos/appstore/casaos-appstore.paodayag.dev/7818f1953ae42cf69986df0a39e80fbe/CasaOS-LinuxServer-AppStore-main/Apps/Changedetection.io/docker-compose.yml", "func": "service.BuildCatalog.func1", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore.go", "line": 369}
feb 22 23:34:06 belial casaos-app-management[1165]: 2024-02-22T23:34:06.436+0100        info        recommend list file not found        {"recommendListFile": "/var/lib/casaos/appstore/casaos-appstore.paodayag.dev/7818f1953ae42cf69986df0a39e80fbe/CasaOS-LinuxServer-AppStore-main/recommend-list.json", "func": "service.LoadRecommend", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore.go", "line": 313}
feb 22 23:34:07 belial casaos-app-management[1165]: 2024-02-22T23:34:07.816+0100        info        recommend list file not found        {"recommendListFile": "/var/lib/casaos/appstore/github.com/852797db148b7e7005860b58498f67d0/CasaOS-HomeAutomation-AppStore-latest/recommend-list.json", "func": "service.LoadRecommend", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore.go", "line": 313}
feb 22 23:34:08 belial casaos-app-management[1165]: 2024-02-22T23:34:08.778+0100        info        failed to parse compose app - contact the contributor of this app to fix it        {"error": "service app declares mutually exclusive `network_mode` and `networks`: invalid compose project", "errorVerbose": "invalid compose project\nservice app declares mutually exclusive `network_mode` and `networks`\ngithub.com/compose-spec/compose-go/loader.checkConsistency\n\t/home/runner/go/pkg/mod/github.com/compose-spec/compose-go@v1.20.2/loader/validate.go:55\ngithub.com/compose-spec/compose-go/loader.load\n\t/home/runner/go/pkg/mod/github.com/compose-spec/compose-go@v1.20.2/loader/loader.go:390\ngithub.com/compose-spec/compose-go/loader.LoadWithContext\n\t/home/runner/go/pkg/mod/github.com/compose-spec/compose-go@v1.20.2/loader/loader.go:250\ngithub.com/compose-spec/compose-go/loader.Load\n\t/home/runner/go/pkg/mod/github.com/compose-spec/compose-go@v1.20.2/loader/loader.go:214\ngithub.com/IceWhaleTech/CasaOS-AppManagement/service.NewComposeAppFromYAML\n\t/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/compose_app.go:959\ngithub.com/IceWhaleTech/CasaOS-AppManagement/service.BuildCatalog.func1\n\t/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore.go:367\npath/filepath.walkDir\n\t/opt/hostedtoolcache/go/1.21.5/x64/src/path/filepath/path.go:442\npath/filepath.walkDir\n\t/opt/hostedtoolcache/go/1.21.5/x64/src/path/filepath/path.go:464\npath/filepath.WalkDir\n\t/opt/hostedtoolcache/go/1.21.5/x64/src/path/filepath/path.go:532\ngithub.com/IceWhaleTech/CasaOS-AppManagement/service.BuildCatalog\n\t/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore.go:344\ngithub.com/IceWhaleTech/CasaOS-AppManagement/service.(*appStore).UpdateCatalog\n\t/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore.go:137\ngithub.com/IceWhaleTech/CasaOS-AppManagement/service.(*AppStoreManagement).UpdateCatalog\n\t/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore_management.go:364\nmain.main.func1\n\t/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/main.go:77\nruntime.goexit\n\t/opt/hostedtoolcache/go/1.21.5/x64/src/runtime/asm_amd64.s:1650", "composeFile": "/var/lib/casaos/appstore/github.com/2a1238d53212bfce4e8f861dcb8ef3fe/big-bear-casaos-master/Apps/adguard-home/docker-compose.yml", "func": "service.BuildCatalog.func1", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore.go", "line": 369}
feb 22 23:34:08 belial casaos-app-management[1165]: 2024-02-22T23:34:08.893+0100        info        failed to parse compose app - contact the contributor of this app to fix it        {"error": "service \"big-bear-ghostfolio-redis\" refers to undefined volume ${APP_DATA_DIR}/data/redis: invalid compose project", "errorVerbose": "invalid compose project\nservice \"big-bear-ghostfolio-redis\" refers to undefined volume ${APP_DATA_DIR}/data/redis\ngithub.com/compose-spec/compose-go/loader.checkConsistency\n\t/home/runner/go/pkg/mod/github.com/compose-spec/compose-go@v1.20.2/loader/validate.go:87\ngithub.com/compose-spec/compose-go/loader.load\n\t/home/runner/go/pkg/mod/github.com/compose-spec/compose-go@v1.20.2/loader/loader.go:390\ngithub.com/compose-spec/compose-go/loader.LoadWithContext\n\t/home/runner/go/pkg/mod/github.com/compose-spec/compose-go@v1.20.2/loader/loader.go:250\ngithub.com/compose-spec/compose-go/loader.Load\n\t/home/runner/go/pkg/mod/github.com/compose-spec/compose-go@v1.20.2/loader/loader.go:214\ngithub.com/IceWhaleTech/CasaOS-AppManagement/service.NewComposeAppFromYAML\n\t/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/compose_app.go:959\ngithub.com/IceWhaleTech/CasaOS-AppManagement/service.BuildCatalog.func1\n\t/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore.go:367\npath/filepath.walkDir\n\t/opt/hostedtoolcache/go/1.21.5/x64/src/path/filepath/path.go:442\npath/filepath.walkDir\n\t/opt/hostedtoolcache/go/1.21.5/x64/src/path/filepath/path.go:464\npath/filepath.WalkDir\n\t/opt/hostedtoolcache/go/1.21.5/x64/src/path/filepath/path.go:532\ngithub.com/IceWhaleTech/CasaOS-AppManagement/service.BuildCatalog\n\t/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore.go:344\ngithub.com/IceWhaleTech/CasaOS-AppManagement/service.(*appStore).UpdateCatalog\n\t/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore.go:137\ngithub.com/IceWhaleTech/CasaOS-AppManagement/service.(*AppStoreManagement).UpdateCatalog\n\t/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore_management.go:364\nmain.main.func1\n\t/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/main.go:77\nruntime.goexit\n\t/opt/hostedtoolcache/go/1.21.5/x64/src/runtime/asm_amd64.s:1650", "composeFile": "/var/lib/casaos/appstore/github.com/2a1238d53212bfce4e8f861dcb8ef3fe/big-bear-casaos-master/Apps/ghostfolio/docker-compose.yml", "func": "service.BuildCatalog.func1", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore.go", "line": 369}
feb 22 23:34:09 belial casaos-app-management[1165]: 2024-02-22T23:34:09.212+0100        info        recommend list file not found        {"recommendListFile": "/var/lib/casaos/appstore/github.com/2a1238d53212bfce4e8f861dcb8ef3fe/big-bear-casaos-master/recommend-list.json", "func": "service.LoadRecommend", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore.go", "line": 313}
feb 22 23:34:11 belial casaos-app-management[1165]: 2024-02-22T23:34:11.179+0100        info        recommend list file not found        {"recommendListFile": "/var/lib/casaos/appstore/github.com/2888f851a6bf10af61e3233500a548d6/CasaOS-TMCstore-main/recommend-list.json", "func": "service.LoadRecommend", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore.go", "line": 313}

sudo journalctl -xef -u casaos.service

feb 22 23:33:46 belial systemd[1]: Starting CasaOS Main Service...
░░ Subject: A start job for unit casaos.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit casaos.service has begun execution.
░░ 
░░ The job identifier is 135.
feb 22 23:33:46 belial casaos[442]: git commit: ef57d3348d5ad13a775c2dd9db28556d7ba0db07
feb 22 23:33:46 belial casaos[442]: build date: 2024-01-23T09:10:10Z
feb 22 23:33:46 belial casaos[442]: 2024-02-22T23:33:46.819+0100        info        CPU thermal zone found: x86_pkg_temp, path: /sys/devices/virtual/thermal/thermal_zone1.        {"func": "service.GetCPUThermalZone", "file": "/home/runner/work/CasaOS/CasaOS/service/system.go", "line": 462}
feb 22 23:33:46 belial casaos[442]: Executing post-start script /etc/casaos/start.d/register-ui-events.sh using /bin/sh
feb 22 23:33:46 belial casaos[570]:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
feb 22 23:33:46 belial casaos[570]:                                  Dload  Upload   Total   Spent    Left  Speed
feb 22 23:33:46 belial casaos[570]: [158B blob data]
feb 22 23:33:46 belial casaos[570]: {}
feb 22 23:33:46 belial casaos[564]: UI events registered
feb 22 23:33:46 belial casaos[442]: Finished executing post-start scripts.
feb 22 23:33:46 belial casaos[442]: 2024-02-22T23:33:46.912+0100        info        Notified systemd that casaos main service is ready        {"func": "main.main", "file": "/home/runner/work/CasaOS/CasaOS/main.go", "line": 208}
feb 22 23:33:46 belial casaos[442]: 2024-02-22T23:33:46.912+0100        info        CasaOS main service is listening...        {"address": "127.0.0.1:43645", "func": "main.main", "file": "/home/runner/work/CasaOS/CasaOS/main.go", "line": 224}
feb 22 23:33:46 belial systemd[1]: Started CasaOS Main Service.
░░ Subject: A start job for unit casaos.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit casaos.service has finished successfully.
░░ 
░░ The job identifier is 135.
feb 22 23:33:51 belial casaos[442]: /bin/bash -c source /usr/share/casaos/shell/helper.sh ;CatNetCardState eno1
feb 22 23:33:51 belial casaos[442]: /bin/bash -c source /usr/share/casaos/shell/helper.sh ;CatNetCardState eno2
feb 22 23:33:56 belial casaos[442]: /bin/bash -c source /usr/share/casaos/shell/helper.sh ;CatNetCardState eno1
feb 22 23:33:56 belial casaos[442]: /bin/bash -c source /usr/share/casaos/shell/helper.sh ;CatNetCardState eno2
feb 22 23:33:56 belial casaos[442]: 2024-02-22T23:33:56.823+0100        info        when CheckAndMountAll storages        {"storages": {"mountPoints":[]}, "func": "service.(*storageStruct).CheckAndMountAll", "file": "/home/runner/work/CasaOS/CasaOS/service/storage.go", "line": 71}
feb 22 23:33:56 belial casaos[442]: 2024-02-22T23:33:56.825+0100        info        when CheckAndMountAll section        {"section": {"remotes":[]}, "func": "service.(*storageStruct).CheckAndMountAll", "file": "/home/runner/work/CasaOS/CasaOS/service/storage.go", "line": 76}
feb 22 23:34:00 belial casaos[442]: 消息来了,message:{"type":"ping"}
feb 22 23:34:01 belial casaos[442]: /bin/bash -c source /usr/share/casaos/shell/helper.sh ;CatNetCardState eno1
feb 22 23:34:01 belial casaos[442]: /bin/bash -c source /usr/share/casaos/shell/helper.sh ;CatNetCardState eno2
feb 22 23:34:06 belial casaos[442]: /bin/bash -c source /usr/share/casaos/shell/helper.sh ;CatNetCardState eno1
feb 22 23:34:06 belial casaos[442]: /bin/bash -c source /usr/share/casaos/shell/helper.sh ;CatNetCardState eno2
feb 22 23:34:11 belial casaos[442]: /bin/bash -c source /usr/share/casaos/shell/helper.sh ;CatNetCardState eno1
feb 22 23:34:11 belial casaos[442]: /bin/bash -c source /usr/share/casaos/shell/helper.sh ;CatNetCardState eno2
feb 22 23:34:16 belial casaos[442]: /bin/bash -c source /usr/share/casaos/shell/helper.sh ;CatNetCardState eno1
feb 22 23:34:16 belial casaos[442]: /bin/bash -c source /usr/share/casaos/shell/helper.sh ;CatNetCardState eno2
feb 22 23:34:21 belial casaos[442]: /bin/bash -c source /usr/share/casaos/shell/helper.sh ;CatNetCardState eno1
feb 22 23:34:21 belial casaos[442]: /bin/bash -c source /usr/share/casaos/shell/helper.sh ;CatNetCardState eno2
feb 22 23:34:26 belial casaos[442]: /bin/bash -c source /usr/share/casaos/shell/helper.sh ;CatNetCardState eno1
feb 22 23:34:26 belial casaos[442]: /bin/bash -c source /usr/share/casaos/shell/helper.sh ;CatNetCardState eno2
feb 22 23:34:30 belial casaos[442]: 消息来了,message:{"type":"ping"}
feb 22 23:34:31 belial casaos[442]: /bin/bash -c source /usr/share/casaos/shell/helper.sh ;CatNetCardState eno1
feb 22 23:34:31 belial casaos[442]: /bin/bash -c source /usr/share/casaos/shell/helper.sh ;CatNetCardState eno2
feb 22 23:34:36 belial casaos[442]: /bin/bash -c source /usr/share/casaos/shell/helper.sh ;CatNetCardState eno1

Additional context N/A

adocampo commented 7 months ago

I think regarding this issue, the "Files" application shows the mounpoint triplicated as well image But clicking on one of them, selects all the mountpoints at once image

LinkLeong commented 6 months ago

According to your analysis, zimaos supports raid, but casaos is not compatible with raid data. This is a bug and we will consider fixing the problem.

adocampo commented 6 months ago

According to your analysis, zimaos supports raid, but casaos is not compatible with raid data. This is a bug and we will consider fixing the problem.

Great, thank you very much!

Apocalyptichobo commented 5 months ago

According to your analysis, zimaos supports raid, but casaos is not compatible with raid data. This is a bug and we will consider fixing the problem.

Any update on this? New to Linux and created a RAID with two HDDs before realizing I can't seem to use them in CasaOS

LuckyPuccio89 commented 4 months ago

Hi new to this os and is great. Are any updates on this Bug ? is annoying. i'm thinking of unistalling casaos due to this bug. Any Workaround ??

Suomi422 commented 2 months ago

Wow yet another dead thread ... gonna fix it myself

wafflewizard1 commented 2 weeks ago

please fix it vro 💝