[SOLVED] MPD issues with 0.1.5
|
Posts: 2,783
Threads: 178
Joined: Feb 2016
Reputation:
482
Location: Perth, WA
(08-Feb-2017, 02:06 PM)Bromf Wrote: Quote:1. Can you look at the file /var/mpd/scratch/mpd.conf, look for the line that says metadata_to_use, and confirm it's written as such:
File does not exist... Tried as user, and then sudo su
nano /var/mpd/scratch/mpd.conf
File is empty for both..... very interesting.
My bad.. it's /var/www/scratch/mpd.conf (Have already amended previous post)
Just run something like
Code: tail -n 30 /var/www/scratch/mpd.conf
Snakeoil Operating System - Music, your way!
Posts: 450
Threads: 30
Joined: Oct 2016
Reputation:
89
Location: Pacific
Ok that works.. file exists and metadata is as required.
I removed my usb flashdrives with Music files, copied them off and reformatted the flashdrives then reloaded.
MPD 20 now starts and is populated showing all files...
However, when I try to play I get.....
The following error was encontered when sending the command: play
500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
Traceback (most recent call last):
File "/var/www/client175/cherrypy/_cprequest.py", line 606, in respond
cherrypy.response.body = self.handler()
File "/var/www/client175/cherrypy/_cpdispatch.py", line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File "/var/www/client175/server.py", line 209, in default
result = mpd.execute(args)
File "/var/www/client175/mpd_proxy2.py", line 229, in execute
return getattr(self, cmd)(*cmdlist)
File "/var/www/client175/mpd.py", line 189, in <lambda>
return lambda *args: self._execute_safe(attr, args, retval)
File "/var/www/client175/mpd.py", line 201, in _execute_safe
self.connect(self._host, self._port, self._password)
File "/var/www/client175/mpd.py", line 419, in connect
self._sock = self._connect_tcp(host, port)
File "/var/www/client175/mpd.py", line 407, in _connect_tcp
raise socket.error(msg)
error: [Errno 111] Connection refused
A more verbose version of the 'Connection refused" I was getting before...:-) Hope it makes sense to you...
When I try to update database I get a similar output.....
So progress...closer and closer but no music yet... ;-)
Posts: 2,783
Threads: 178
Joined: Feb 2016
Reputation:
482
Location: Perth, WA
(08-Feb-2017, 03:34 PM)Bromf Wrote: Ok that works.. file exists and metadata is as required.
- Connect a keyboard and monitor to your machine.
- Reboot the computer with liveCD.
- Select memtest.
- Let the system run and wait for at least 1 pass to complete.
- Does memtest report any errors?
If it passes the test, then do this.
- With just that single offending file in /media/music (move the other files away from /media/music)
- Do a database rescan.
- Do you see a total of 1 file (or more?). Or did MPD crash?
- Next select this song and play. Does it work?
- Rescan the database multiple times, does it crash?
Snakeoil Operating System - Music, your way!
Posts: 76
Threads: 8
Joined: Apr 2016
Reputation:
2
Location: Perth
08-Feb-2017, 08:09 PM
(This post was last modified: 08-Feb-2017, 08:43 PM by JD1.)
I doubt this helps in any way but this is the error message I got yesterday. At the time Client 175 was showing a previous version of my library. Pressing play on one of those songs gave:
The following error was encontered when sending the command: play 500 Internal Server Error The server encountered an unexpected condition which prevented it from fulfilling the request. Traceback (most recent call last): File "/var/www/client175/cherrypy/_cprequest.py", line 606, in respond cherrypy.response.body = self.handler() File "/var/www/client175/cherrypy/_cpdispatch.py", line 25, in __call__ return self.callable(*self.args, **self.kwargs) File "/var/www/client175/server.py", line 209, in default result = mpd.execute(args) File "/var/www/client175/mpd_proxy2.py", line 229, in execute return getattr(self, cmd)(*cmdlist) File "/var/www/client175/mpd.py", line 189, in <lambda> return lambda *args: self._execute_safe(attr, args, retval) File "/var/www/client175/mpd.py", line 201, in _execute_safe self.connect(self._host, self._port, self._password) File "/var/www/client175/mpd.py", line 419, in connect self._sock = self._connect_tcp(host, port) File "/var/www/client175/mpd.py", line 407, in _connect_tcp raise socket.error(msg) error: [Errno 111] Connection refused
Now while working fine and playing some Pink Floyd
cat /var/tmp/stderr
client: [0] opened from 127.0.0.1:34042
client: [1] opened from 127.0.0.1:34044
avahi: Service 'bubble1' successfully established.
player: played "A Momentary Lapse Of Reason/05 - On The Turning Away.flac"
Posts: 47
Threads: 2
Joined: Feb 2017
Reputation:
9
Location: Russia, Saint-Petersburg
08-Feb-2017, 11:08 PM
(This post was last modified: 08-Feb-2017, 11:55 PM by m@jor.)
MPD V20 crashed if music library is NFS-share directory.
I unmount NFS share and start V20. It's working.
I did mount
192.168.1.11:/export/Music to /media/music/NAS
and instant results - MPD V20 crashed:
exception: Failed to access /media/music/NAS/Music: No such file or directory
I found in my music library this file
lrwxrwxrwx 1 root users 10 февр. 8 09:21 Music -> /mnt/Music
drwxrwxrwx+ 47 root users 4096 февр. 8 09:21 Jazz
is likely he is the source of the problem
I was right.
All because of that damned file
Now V20 normally starts and scans music from Client175
Sorry for my English
[GA-H170M-D3H + G4400 + SOtM tX-USB] > Ortofon DGI-K2 Silver > LKS Audio MH-DA003 USB Upgrade > Audioquest Colorado > Audio Note P2SE > Audio Note AN-B > Tannoy D500
Posts: 47
Threads: 2
Joined: Feb 2017
Reputation:
9
Location: Russia, Saint-Petersburg
And another MPD V20 defect: run client Cantata 2.0.1 and M20 dies
exception: Failed to open /media/playlists/[Radio Streams].m3u: No such file or directory
To solve the problem, place the file [Radio Streams].m3u (may be empty) in directory /media/playlists/
Sorry for my English
[GA-H170M-D3H + G4400 + SOtM tX-USB] > Ortofon DGI-K2 Silver > LKS Audio MH-DA003 USB Upgrade > Audioquest Colorado > Audio Note P2SE > Audio Note AN-B > Tannoy D500
Posts: 450
Threads: 30
Joined: Oct 2016
Reputation:
89
Location: Pacific
(08-Feb-2017, 03:54 PM)agent_kith Wrote: (08-Feb-2017, 03:34 PM)Bromf Wrote: Ok that works.. file exists and metadata is as required.
- Connect a keyboard and monitor to your machine.
- Reboot the computer with liveCD.
- Select memtest.
- Let the system run and wait for at least 1 pass to complete.
- Does memtest report any errors?
If it passes the test, then do this.
- With just that single offending file in /media/music (move the other files away from /media/music)
- Do a database rescan.
- Do you see a total of 1 file (or more?). Or did MPD crash?
- Next select this song and play. Does it work?
- Rescan the database multiple times, does it crash?
Memtest run for several hours and allgood.
Started MPD and everything works, database updates and files play. :-)
Looking back I think I see my problem .....oops.. I have several different players in different locations and move usb drives between them. Mostly these are formatted ntfs for compatibility accross the different os'
One os has problems with ntfs and I use a dedicated drive formatted vfat.
Somehow..my big mistake!... that drive had been put in the pool with the others...Thinking the drives were all ntfs I have been adding it as such to the music mount. Of course it fails to start, mpd throws errors and can't update.
Discovered this when I went back to LMS and did a database rescan and couldn't find any files !!!
Reformatted the flashdrive,added files and now mpd works as expected.
My apologies for imposing upon your time and efforts
Posts: 5
Threads: 1
Joined: Jan 2017
Reputation:
0
Location: Ukranian
09-Feb-2017, 05:56 AM
(This post was last modified: 09-Feb-2017, 06:02 AM by pupsik2005.)
(07-Feb-2017, 01:31 AM)pupsik2005 Wrote: (06-Feb-2017, 06:07 PM)agent_kith Wrote: I can not activate
Thank you!
Posts: 2,783
Threads: 178
Joined: Feb 2016
Reputation:
482
Location: Perth, WA
(09-Feb-2017, 03:52 AM)Bromf Wrote: Memtest run for several hours and allgood. That's supposed to be one of my walkthrough tweaks for the blog. Kind of let this out of the bag, but doesn't matter as I havn't written it yet .
So.... From the responses so far, what I can gather so far is, I still have no idea In my home lab, I have tried NFS, CIFS, and direct access... All worked and played fine..
So far, it's either - missing playlists, missing folders, problem files that will cause the crash.. What I don't know is if this is a MPD issue or something else.
Until I can find out what's going on, when MPD crashes - check the last lines of /var/tmp/stderr and fix whatever it says. MPD shouldn't just crash like that.. I'd have to dig into the codes and see why it's not handling that gracefully.
Snakeoil Operating System - Music, your way!
Posts: 2,783
Threads: 178
Joined: Feb 2016
Reputation:
482
Location: Perth, WA
For folks who are using MPD and having problems. This may be resolved in 0.1.5a firmware. Please download that firmware and test if everything is working as expected.
If there are no reports of failures in 2 weeks from now I'd just assume this issue resolved and spin up 0.1.5a.
Snakeoil Operating System - Music, your way!
|
Users browsing this thread: |
3 Guest(s)
|
|
Welcome
|
You have to register before you can post on our site.
|
SnakeoilOS Mission Statement
|
Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.
SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.
If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.
|
|
|