04-04-2021, 04:04 PM
(04-04-2021, 07:12 AM)Pbnmjk Wrote: @TheOldPresbyope
Well, I did a lot of research and I tried a lot of things, but one issue remains and I don't know how to solve it.
When I reconnect the USB RAID, mo0de don't associate the database with RAID and a new scan is made each time I connect the RAID like I never had it connected before.
For example today I turned ON my RPI4 8GB with RAID connected, it didn't recognize it and I disconnected and reconnected the RAID, but after this, mo0de didn't asume database from the last time it was connected, it start a new scan like this were a new HD.
The same happen if I boot without RAID connected and I connect the RAID after, mo0de start a new scan like this were a new HD.
If mo0de scan the RAID and I remove it and connect it again, no matter the time I take to do it, mo0de recognize USB and start a new scan from zero.
Always forget the database asociate to the RAID.
Some suggestion?
Thank you in advance.
What does "it didn't recognize it" mean?
Similarly, what does "moOde start a new scan" mean?
I just wrote a few albums' worth of tracks to a USB Thumbdrive. I plugged it into a moOde 7.1.0 player on an RPi3B+. Here's the activity reported to /var/log/syslog when the drive is detected, analyzed, and mounted by the OS:
Code:
...
Apr 4 11:37:06 710LD kernel: [ 123.885619] usb 1-1.2: new high-speed USB device number 7 using dwc_otg
Apr 4 11:37:07 710LD kernel: [ 124.064683] usb 1-1.2: New USB device found, idVendor=05dc, idProduct=c75c, bcdDevice= 1.06
Apr 4 11:37:07 710LD kernel: [ 124.064695] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Apr 4 11:37:07 710LD kernel: [ 124.064701] usb 1-1.2: Product: USB Flash Drive
Apr 4 11:37:07 710LD kernel: [ 124.064707] usb 1-1.2: Manufacturer: Lexar
Apr 4 11:37:07 710LD kernel: [ 124.064713] usb 1-1.2: SerialNumber: 64BF5CE8D1AF4FF9
Apr 4 11:37:07 710LD kernel: [ 124.065239] usb-storage 1-1.2:1.0: USB Mass Storage device detected
Apr 4 11:37:07 710LD kernel: [ 124.065602] scsi host1: usb-storage 1-1.2:1.0
Apr 4 11:37:07 710LD mtp-probe: checking bus 1, device 7: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2"
Apr 4 11:37:07 710LD mtp-probe: bus: 1, device: 7 was not an MTP device
Apr 4 11:37:07 710LD mtp-probe: checking bus 1, device 7: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2"
Apr 4 11:37:07 710LD mtp-probe: bus: 1, device: 7 was not an MTP device
Apr 4 11:37:08 710LD kernel: [ 125.214743] scsi 1:0:0:0: Direct-Access Lexar USB Flash Drive 8.07 PQ: 0 ANSI: 4
Apr 4 11:37:08 710LD kernel: [ 125.215484] sd 1:0:0:0: Attached scsi generic sg1 type 0
Apr 4 11:37:08 710LD kernel: [ 125.223102] sd 1:0:0:0: [sdb] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB)
Apr 4 11:37:08 710LD kernel: [ 125.244715] sd 1:0:0:0: [sdb] Write Protect is off
Apr 4 11:37:08 710LD kernel: [ 125.244736] sd 1:0:0:0: [sdb] Mode Sense: 23 00 00 00
Apr 4 11:37:08 710LD kernel: [ 125.245764] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Apr 4 11:37:08 710LD kernel: [ 125.389388] sdb: sdb1
Apr 4 11:37:08 710LD kernel: [ 125.392783] sd 1:0:0:0: [sdb] Attached SCSI removable disk
Apr 4 11:37:08 710LD kernel: [ 125.705770] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
Apr 4 11:37:08 710LD systemd[1]: Stopping Samba SMB Daemon...
Apr 4 11:37:08 710LD systemd[1]: smbd.service: Main process exited, code=killed, status=15/TERM
Apr 4 11:37:08 710LD systemd[1]: smbd.service: Succeeded.
Apr 4 11:37:08 710LD systemd[1]: Stopped Samba SMB Daemon.
Apr 4 11:37:08 710LD systemd[1]: Starting Samba SMB Daemon...
Apr 4 11:37:09 710LD winbindd[508]: [2021/04/04 11:37:09.030431, 0] ../source3/winbindd/wb_lookupsids.c:659(wb_lookupsids_recv)
Apr 4 11:37:09 710LD winbindd[508]: res_names->count = 3, expected 4
Apr 4 11:37:09 710LD smbd[1799]: [2021/04/04 11:37:09.055131, 0] ../lib/util/become_daemon.c:138(daemon_ready)
Apr 4 11:37:09 710LD smbd[1799]: daemon_ready: STATUS=daemon 'smbd' finished starting up and ready to serve connections
Apr 4 11:37:09 710LD systemd[1]: Started Samba SMB Daemon.
Apr 4 11:37:09 710LD nmbd[479]: [2021/04/04 11:37:09.079812, 0] ../source3/nmbd/nmbd.c:58(terminate)
Apr 4 11:37:09 710LD systemd[1]: Stopping Samba NMB Daemon...
Apr 4 11:37:09 710LD nmbd[479]: Got SIGTERM: going down...
Apr 4 11:37:09 710LD systemd[1]: nmbd.service: Succeeded.
Apr 4 11:37:09 710LD systemd[1]: Stopped Samba NMB Daemon.
Apr 4 11:37:09 710LD systemd[1]: Starting Samba NMB Daemon...
Apr 4 11:37:09 710LD nmbd[1806]: [2021/04/04 11:37:09.236300, 0] ../lib/util/become_daemon.c:138(daemon_ready)
Apr 4 11:37:09 710LD nmbd[1806]: daemon_ready: STATUS=daemon 'nmbd' finished starting up and ready to serve connections
Apr 4 11:37:09 710LD systemd[1]: Started Samba NMB Daemon.
...
Next I told moOde to "m>Update library". When this task was done, the albums show up in the Library Folder view under USB and similarly in the Tag and Album views. They play as expected.
I unplugged the thumbdrive and power-cycled the moOde player. With moOde running again, the albums still show up in the various Library views which means the MPD database is intact. Now, of course, they don't play because the drive isn't present. Trying to play a track results in a popup declaring an MPD error.
Finally, I plugged in the thumbdrive again. Now the tracks/albums all play. At no time did my fingers leave my hands (old magician's joke). The database is unchanged and the links it contains point properly into the remounted drive.
If your USB RAID drive is behaving differently then we need a lot more diagnostic data and even then we might not understand or "fix" what's going on. (There's interactions with the kernel, with drivers, with UDEV, etc.)
Regards,
Kent