CasaOS icon indicating copy to clipboard operation
CasaOS copied to clipboard

[Bug] Drive not found after 0.4.6 update

Open nmendiboure opened this issue 1 year ago • 2 comments

Hi,

I have two drives, both were mounted in /media/devmon and I was able to see both in the "Locations" section in the file explorer.

Now after having updated to 0.4.6, only one of the two is visible in the "Location" section. However, both are still accessible and mounted in /media/devmon.

When I try to do "New local storage" by clicking on the "+" close to "Location" to add my second disk back, this one is not proposed among the list of drives.

I run casa OS on rpi4, the disk in question has file system btrfs.

Thanks in advance

nmendiboure avatar Jan 24 '24 19:01 nmendiboure

I think this could be related to this service failing to start.

× casaos-local-storage-first.service - Hello World
     Loaded: loaded (/lib/systemd/system/casaos-local-storage-first.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Thu 2024-01-25 10:03:12 EST; 7min ago
    Process: 13886 ExecStart=/usr/bin/casaos-local-storage -init (code=exited, status=2)
   Main PID: 13886 (code=exited, status=2)
        CPU: 1.203s
Jan 25 10:03:11  systemd[1]: Starting casaos-local-storage-first.service - Hello World...
Jan 25 10:03:12  casaos-local-storage[13886]: flag provided but not defined: -init
Jan 25 10:03:12  casaos-local-storage[13886]: Usage of /usr/bin/casaos-local-storage:
Jan 25 10:03:12  casaos-local-storage[13886]:   -c string
Jan 25 10:03:12  casaos-local-storage[13886]:             config address
Jan 25 10:03:12  casaos-local-storage[13886]:   -db string
Jan 25 10:03:12  casaos-local-storage[13886]:             db path
Jan 25 10:03:12  casaos-local-storage[13886]:   -v        version
Jan 25 10:03:12  systemd[1]: casaos-local-storage-first.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jan 25 10:03:12  systemd[1]: casaos-local-storage-first.service: Failed with result 'exit-code'.
Jan 25 10:03:12  systemd[1]: Failed to start casaos-local-storage-first.service - Hello World.
Jan 25 10:03:12  systemd[1]: casaos-local-storage-first.service: Consumed 1.203s CPU time.

danielrivard avatar Jan 25 '24 15:01 danielrivard

I've been struggling with this for days. After some experience, I found that if I just disable the casaos-local-storage-first.service and reboot the system everything works fine.

sudo systemctl disable casaos-local-storage-first.service

tikaszvince avatar Feb 24 '24 07:02 tikaszvince

I have RPI4 with CasaOS as well. Let me tell few things from expirience.

  1. If the Drives are just usb without power external supply RPI struggles to power them and often service drops. (happens to me with a single one - 5V)
  2. Even with "RPI USB HAT" + external power supply doesn't work correct as the load of 8 mb/s unmonts the disk and cause the service to drop. I have tried single usb load and 4 usb slots @ the same time. Still service drops.
  3. Just today I am testing external workstation grade drives and if there interest I will share information.

As remount on hardware only reboot was helping. Even was unable to see HDD/SSD as USB devices in both cases above. Not sure if RPI is the issue or code. Just sharing my last couple of weeks in struggle.

Fauster avatar Mar 05 '24 14:03 Fauster