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!
#11
It's prolly insufficient permissions on the files and directories on the drive. MPD needs read permission on all the music files and read + execute permission on all the parent directories otherwise it won't find any files.

What format was used on the drive: NTFS, Fat32, ExFat?

Also the log entries below indicate an orphaned auto-mount directory named "Transcend1TB_" under /media.

Code:
20221118 230833 worker: Transcend1TB
20221118 230833 worker: Transcend1TB_

To get rid of it do the following:

1. Unplug all USB drives
2. Delete the orphaned directory

Code:
sudo rmdir /media/Transcend1TB_

The log also shows

20221118 230832 worker: No active network interface

How are you accessing the UI?
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#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
#13
(11-19-2022, 11:40 AM)Tim Curtis Wrote: It's prolly insufficient permissions on the files and directories on the drive. MPD needs read permission on all the music files and read + execute permission on all the parent directories otherwise it won't find any files.

What format was used on the drive: NTFS, Fat32, ExFat?

Also the log entries below indicate an orphaned auto-mount directory named "Transcend1TB_" under /media.

Code:
20221118 230833 worker: Transcend1TB
20221118 230833 worker: Transcend1TB_

To get rid of it do the following:

1. Unplug all USB drives
2. Delete the orphaned directory

Code:
sudo rmdir /media/Transcend1TB_

The log also shows

20221118 230832 worker: No active network interface

How are you accessing the UI?

Thanks Fellas....attention much appreciated!! Smile

Bit of an update here!!!....
Despite 3 second update 'animation'.....I can now see USB/Transcend1TB.....and view/play files
I'd been expecting the update procedure to take a lot longer......

So perhaps I now only need to remove orphaned drive??

I'll follow Tim's instruction first of all...


Code:
sudo rmdir /media/Transcend1TB_

gives....."no such file or directory"....with USB drive unplugged.

Rebooting....with USB attached....gives

ls /media -l
total 16
drwx------ 2 root root  4096 Nov 18 16:37 Transcend1TB
drwxr-xr-x 1 root root 12288 Nov 18 12:16 Transcend1TB_

.....is it the 1st drive (without underscore) that needs to go????

PS.....viewing UI on my PC !!
Reply
#14
(11-19-2022, 12:37 PM)Tonewheelkev Wrote:
(11-19-2022, 11:40 AM)Tim Curtis Wrote: It's prolly insufficient permissions on the files and directories on the drive. MPD needs read permission on all the music files and read + execute permission on all the parent directories otherwise it won't find any files.

What format was used on the drive: NTFS, Fat32, ExFat?

Also the log entries below indicate an orphaned auto-mount directory named "Transcend1TB_" under /media.

Code:
20221118 230833 worker: Transcend1TB
20221118 230833 worker: Transcend1TB_

To get rid of it do the following:

1. Unplug all USB drives
2. Delete the orphaned directory

Code:
sudo rmdir /media/Transcend1TB_

The log also shows

20221118 230832 worker: No active network interface

How are you accessing the UI?

Thanks Fellas....attention much appreciated!! Smile

Bit of an update here!!!....
Despite 3 second update 'animation'.....I can now see USB/Transcend1TB.....and view/play files
I'd been expecting the update procedure to take a lot longer......

So perhaps I now only need to remove orphaned drive??

I'll follow Tim's instruction first of all...


Code:
sudo rmdir /media/Transcend1TB_

gives....."no such file or directory"....with USB drive unplugged.

Rebooting....with USB attached....gives

ls /media -l
total 16
drwx------ 2 root root  4096 Nov 18 16:37 Transcend1TB
drwxr-xr-x 1 root root 12288 Nov 18 12:16 Transcend1TB_

.....is it the 1st drive (without underscore) that needs to go????

PS.....viewing UI on my PC !!

Since the Transcend1TB shows no access for others than root, I believe your drive is Transcend1TB_...
(weird you see the two folders only when the drive is plugged in... you should see one even without the drive...)

BUT

I suggest you try to see what's inside each folder, and just remove the empty one (with sudo rmdir /media<whatever>).
Then unplug-replug the drive should give you only one, and possibly with a proper name...

Cheers, Al.
Reply
#15
(11-19-2022, 12:58 PM)Nutul Wrote:
(11-19-2022, 12:37 PM)Tonewheelkev Wrote:
(11-19-2022, 11:40 AM)Tim Curtis Wrote: It's prolly insufficient permissions on the files and directories on the drive. MPD needs read permission on all the music files and read + execute permission on all the parent directories otherwise it won't find any files.

What format was used on the drive: NTFS, Fat32, ExFat?

Also the log entries below indicate an orphaned auto-mount directory named "Transcend1TB_" under /media.

Code:
20221118 230833 worker: Transcend1TB
20221118 230833 worker: Transcend1TB_

To get rid of it do the following:

1. Unplug all USB drives
2. Delete the orphaned directory

Code:
sudo rmdir /media/Transcend1TB_

The log also shows

20221118 230832 worker: No active network interface

How are you accessing the UI?

Thanks Fellas....attention much appreciated!! Smile

Bit of an update here!!!....
Despite 3 second update 'animation'.....I can now see USB/Transcend1TB.....and view/play files
I'd been expecting the update procedure to take a lot longer......

So perhaps I now only need to remove orphaned drive??

I'll follow Tim's instruction first of all...


Code:
sudo rmdir /media/Transcend1TB_

gives....."no such file or directory"....with USB drive unplugged.

Rebooting....with USB attached....gives

ls /media -l
total 16
drwx------ 2 root root  4096 Nov 18 16:37 Transcend1TB
drwxr-xr-x 1 root root 12288 Nov 18 12:16 Transcend1TB_

.....is it the 1st drive (without underscore) that needs to go????

PS.....viewing UI on my PC !!

Since the Transcend1TB shows no access for others than root, I believe your drive is Transcend1TB_...
(weird you see the two folders only when the drive is plugged in... you should see one even without the drive...)

BUT

I suggest you try to see what's inside each folder, and just remove the empty one (with sudo rmdir /media<whatever>).
Then unplug-replug the drive should give you only one, and possibly with a proper name...

Cheers, Al.
" I believe your drive is Transcend1TB_...

(weird you see the two folders only when the drive is plugged in... you should see one even without the drive...)..."

....Yup....with no USB's attached.....it's the Transcend1TB that persists
Reply
#16
....Certainly looks like drive WITH underscore is the right one....playing from it right nowSmile
(Tried to show a printscreen section here....but failed miserably)

CRACKED IT......removed the Transcend1TB.....leaving the ......1TB_
Rebooted....updated library.....now shows ......1TB.....and all's good...Smile

Hooooraaaaay!!!

Many thanks once again Smile
Reply
#17
(11-19-2022, 01:18 PM)Tonewheelkev Wrote: ....Certainly looks like drive WITH underscore is the right one....playing from it right nowSmile
(Tried to show a printscreen section here....but failed miserably)

Good then.
if you unmount it from the command line, then you should still see the other one, and be able to remove it; this is what I did when it hit me.

Cheers, Al.
Reply


Forum Jump: