Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


After 30 minute Library update...library is empty!
#12
(11-19-2022, 10:41 AM)Tonewheelkev Wrote: OK.....so it's PUTTY to copy the logs......

$ moodeutl -l
20221118 230826 worker: --
20221118 230826 worker: -- Start moOde 8 series
20221118 230826 worker: --
20221118 230826 worker: Successfully daemonized
20221118 230829 worker: File check (OK)
20221118 230829 worker: Session vacuumed
20221118 230829 worker: Session loaded
20221118 230829 worker: Debug logging (OFF)
20221118 230829 worker: --
20221118 230829 worker: -- Audio debug
20221118 230829 worker: --
20221118 230829 worker: ALSA cards: (0:b1 | 1:Headphones | 2:E30 | 3:empty
20221118 230829 worker: MPD config: (2:E30 | mixerSadE30 ) | card:2)
20221118 230829 worker: ALSA mixer actual (E30 )
20221118 230830 worker: ALSA E30 volume set to (0%)
20221118 230830 worker: --
20221118 230830 worker: -- System
20221118 230830 worker: --
20221118 230831 worker: Host      (moode)
20221118 230832 worker: moOde     (8.2.2 2022-10-23)
20221118 230832 worker: RaspiOS   (11.5)
20221118 230832 worker: Kernel    (5.15.61-v8+ #1579)
20221118 230832 worker: Platform  (Pi-4B 1.5 4GB)
20221118 230832 worker: ARM arch  (aarch64, 64-bit)
20221118 230832 worker: MPD ver   (0.23.5)
20221118 230832 worker: CPU gov   (ondemand)
20221118 230832 worker: USB boot  (enabled)
20221118 230832 worker: File sys  (expanded)
20221118 230832 worker: HDMI port (Off)
20221118 230832 worker: Sys LED0  (On)
20221118 230832 worker: Sys LED1  (On)
20221118 230832 worker: --
20221118 230832 worker: -- Network
20221118 230832 worker: --
20221118 230832 worker: eth0 adapter exists
20221118 230832 worker: eth0 check for address (No)
20221118 230832 worker: eth0 address not assigned
20221118 230832 worker: wlan0 adapter does not exist
20221118 230832 worker: apd0 router mode (Off)
20221118 230832 worker: No active network interface
20221118 230832 worker: --
20221118 230832 worker: -- Software update
20221118 230832 worker: --
20221118 230832 worker: Automatic check (On)
20221118 230832 worker: Unable to check: No IP address or AP mode is On
20221118 230832 worker: --
20221118 230832 worker: -- Audio config
20221118 230832 worker: --
20221118 230832 worker: MPD conf update skipped (USB device)
20221118 230832 worker: ALSA card number (2)
20221118 230832 worker: MPD audio output (E30)
20221118 230832 worker: Audio formats (S32_LE, SPECIAL, DSD_U32_BE)
20221118 230832 worker: ALSA mixer name (E30 )
20221118 230832 worker: MPD mixer type (software)
20221118 230832 worker: Hdwr volume controller exists
20221118 230832 worker: Max ALSA volume (100%)
20221118 230832 worker: ALSA output mode (Default: plughw)
20221118 230832 worker: ALSA loopback (Off)
20221118 230832 worker: Reset renderer active flags
20221118 230832 worker: CamillaDSP (off)
20221118 230832 worker: --
20221118 230832 worker: -- File sharing
20221118 230832 worker: --
20221118 230832 worker: SMB file sharing (Off)
20221118 230832 worker: NFS file sharing (Off)
20221118 230832 worker: --
20221118 230832 worker: -- MPD startup
20221118 230832 worker: --
20221118 230832 worker: MPD started
20221118 230833 worker: MPD accepting connections
20221118 230833 worker: MPD output 1 ALSA Default (On)
20221118 230833 worker: MPD output 2 ALSA Bluetooth (Off)
20221118 230833 worker: MPD output 3 HTTP Server (Off)
20221118 230833 worker: MPD crossfade (off)
20221118 230833 worker: MPD ignore CUE files (yes)
20221118 230833 worker: --
20221118 230833 worker: -- Music sources
20221118 230833 worker: --
20221118 230833 worker: USB sources
20221118 230833 worker: Transcend1TB
20221118 230833 worker: Transcend1TB_
20221118 230833 worker: NAS sources
20221118 230833 worker: None configured
20221118 230833 worker: --
20221118 230833 worker: -- Feature availability
20221118 230833 worker: --
20221118 230833 worker: Source select (available)
20221118 230833 worker: Source select (source: MPD)
20221118 230833 worker: Source select (output: E30)
20221118 230833 worker: Bluetooth (available)
20221118 230833 worker: AirPlay renderer (available)
20221118 230833 worker: Spotify renderer (available)
20221118 230833 worker: Squeezelite (available)
20221118 230833 worker: RoonBridge renderer (not installed)
20221118 230833 worker: Multiroom sender (available)
20221118 230833 worker: Multiroom receiver (available)
20221118 230833 worker: UPnP renderer (available)
20221118 230833 worker: DLNA server (available: started)
20221118 230833 worker: GPIO button handler (available)
20221118 230833 worker: Stream recorder (n/a)
20221118 230833 worker: --
20221118 230833 worker: -- Other
20221118 230833 worker: --
20221118 230833 worker: USB volume knob (Off)
20221118 230833 worker: Shellinabox SSH started
20221118 230833 worker: USB auto-mounter (udisks-glue)
20221118 230833 worker: Saved MPD vol level (0)
20221118 230833 worker: Preamp volume level (0)
20221118 230833 worker: MPD volume level (10) restored
20221118 230833 worker: ALSA E30 volume (100%)
20221118 230833 worker: Auto-play (Off)
20221118 230833 worker: CoverView toggle (-off)
20221118 230833 worker: On-screen keyboard (Off)
20221118 230833 worker: Library scope (all)
20221118 230833 worker: Maintenance interval (360 minutes)
20221118 230833 worker: Screen saver activation (Never)
20221118 230833 worker: Session permissions (OK)
20221118 230833 worker: Mount monitor (Off)
20221118 230833 worker: Watchdog started
20221118 230833 worker: Ready

....and after doin' df -h.....get
$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        29G  2.5G   25G   9% /
devtmpfs        1.9G     0  1.9G   0% /dev
tmpfs           1.9G     0  1.9G   0% /dev/shm
tmpfs           759M  1.3M  758M   1% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
/dev/mmcblk0p1  253M   31M  222M  13% /boot
tmpfs           380M     0  380M   0% /run/user/1000
pi@moode:~

20221118 230833 worker: USB sources
20221118 230833 worker: Transcend1TB
20221118 230833 worker: Transcend1TB_

See the above? the "Transcend1TB" folder was busy when you unplugged the external drive, or something else happened, so it didn't get unmounted AND removed from the FS.
Then, upon reboot and replug of the SSD, the system automatically assigned it a new name, similar, but appending an underscore to it "_".

Now, this happened to me as well in the past. What you need to do is the following (and possibly no need to do it again):

1. enter an SSH session, and enter the following commands:

umount /media/Transcend1TB_ [enter]
(note the underscore in the name above... this unmounts the current disc, you will want to unplug it now)

ls /media -l [enter]
(this should show you only "Transcend1TB", (note there is no underscore, now... but this folder should be EMPTY, verify with:

ls /media/Transcend1TB -l [enter]

then, the following:

rm -rf /media/Transcend1TB [enter]
sync [enter]

Now, plug the SSD, wait a couple of seconds, then you can type again:

ls /media -l

and see there is again a folder named Transcend1TB, but now it is your SSD drive, and listing its contents should now show your music:

drwxr-xr-x 4 pi pi 4096 <some date and time here> Transcend1TB

note the "pi pi" user and group; it should be not "root root", in the first place, but should do anyway, provided the permissions are ok... like in my example:

drwxr-xr-x

d is directory, then there are three groups of three letters: r, w and x (read, write and traverse flags);
- the first three on the left are for the OWNER of such directory, and are ALWAYS rwx, read-write., traversable
- then, moving to the right, you should see r-x; these are for any user in the group, and usually are r-x (read-only, traversable)
- then, the rightmost three should again be r-x; these are for ANYONE ELSE, and again are r-x.

NOTE: THERE SHOULD BE NO NEED TO DO THE FOLLOWING STEPS!
Should something not be like aboves, you can do the following (this is a one-shot, and should never need to do it again):

1. set ownership to user and group "pi": sudo chown pi:pi /media/Transcend1TB
2. set permissions: sudo chmod 0755 /media/Transcend1TB

and check again:

ls /media -l

Now you want to do a library update; everything should get populated now.

Cheers, Al.

P.S.
@Tim Curtis I was writing my response at the same time you were... ;-)
Reply


Messages In This Thread
RE: After 30 minute Library update...library is empty! - by Nutul - 11-19-2022, 11:51 AM

Forum Jump: