Thank you for your donation!


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


Solved: openMpdSocket(): connection failed
#1
Question 
Hello,

moOde audio player release 6.5.2 2020-05-03
Platform (Pi-3B+ 1GB v1.3)
ARM arch (aarch64, 64-bit kernel)

I set up Samba connection to a music library on HDD connected to a network router via USB, regenerated Music Library and Album cover thumbnail cache.
I get message "MPD error openMpdSock() failed" when Updating the Library. Consequently, the music folder does not appear on the library page.
Could you please help me get access to the library?
Below is a part from the "cat /var/log/moode.log" containing the error messages:
...
20200619 224320 worker: -- MPD                                                           
20200619 224321 worker: MPD conf updated                                                     
20200619 224321 worker: MPD started                           
20200619 224321 openMpdSocket(): connection failed (1)                                    
20200619 224321 openMpdSocket(): errorno: 111, Connection refused
20200619 224321 worker: MPD accepting connections
...
20200619 224330 thmcache: Scanning: NAS, SDCARD, UPNP                                        
20200619 224331 thmcache: Done: 5 album dirs processed                                         
20200619 224331 enhanceMetadata(): File is NULL                                              
20200619 224331 engine-mpd: Metadata returned to client: Size=(17)                          
20200619 224331 openMpdSocket(): connection failed (1)                                      
20200619 224331 openMpdSocket(): errorno: 111, Connection refused                           
20200619 224332 openMpdSocket(): connection failed (2)                                       
20200619 224332 openMpdSocket(): errorno: 111, Connection refused                            
20200619 224332 openMpdSocket(): connection failed (3)                                    
20200619 224332 openMpdSocket(): errorno: 111, Connection refused                            
20200619 224333 openMpdSocket(): connection failed (4)                  
20200619 224333 openMpdSocket(): errorno: 111, Connection refused                           
20200619 224333 openMpdSocket(): connection failed (1)                                   
20200619 224333 openMpdSocket(): errorno: 111, Connection refused                          
20200619 224333 openMpdSocket(): connection failed (5)                     
20200619 224333 openMpdSocket(): errorno: 111, Connection refused              
20200619 224333 openMpdSocket(): connection failed (2)                 
20200619 224333 openMpdSocket(): errorno: 111, Connection refused                           
20200619 224334 openMpdSocket(): connection failed (6)                                 
20200619 224334 openMpdSocket(): errorno: 111, Connection refused                           
20200619 224334 openMpdSocket(): connection failed (3)                        
20200619 224334 openMpdSocket(): errorno: 111, Connection refused                       
20200619 224334 engine-mpd: Connection to MPD failed                               
20200619 224334 moode.php: MPD connect failed: cmd=(playlist)                             
20200619 224334 openMpdSocket(): connection failed (4)                                 
20200619 224334 openMpdSocket(): errorno: 111, Connection refused                            
20200619 224335 openMpdSocket(): connection failed (5)                       
20200619 224335 openMpdSocket(): errorno: 111, Connection refused                          
20200619 224335 openMpdSocket(): connection failed (6)                         
20200619 224335 openMpdSocket(): errorno: 111, Connection refused                        
20200619 224336 watchdog: MPD restarted (check syslog for errors)                           
20200619 224336 readMpdResponse(): error: fgets fail due to socket being timed out or PHP/MPD connection failure
20200619 224336 readMpdResponse(): error: $resp[0]=()
20200619 224336 worker: Job update_library done
...
Reply
#2
1. Turn off Debug logging on System Config. It clutters up the log.
2. Switch back to 32-bit kernel
3. Reboot and post the Moode log

cat /var/log/moode.log
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
Dear Tim,
You were right, switching back to 32-bit kernel has fixed the problem.
Thank you!
Reply


Forum Jump: