drgerg / mmc4w

Minimal MPD Client for Windows - No-Cloud, Local Music Library
GNU General Public License v3.0
8 stars 2 forks source link

Second level connection error #18

Closed LuSP19 closed 7 months ago

LuSP19 commented 7 months ago

mmc4w creates an info window:

UhOh Second level connection error: Already connected Quitting now.

This may be because mpd is closing the connection.

...
Mar 24 16:25 : client: [11] timeout
Mar 24 16:25 : client: [11] closed
...

Should the program constantly ping the server?

drgerg commented 7 months ago

The connection has a limited life. MMC4W only talks to the server when it needs something. Do you recall what you were doing when you got that? I thought I'd fixed all the "Already connected' errors.

LuSP19 commented 7 months ago

The connection has a limited life. MMC4W only talks to the server when it needs something. Do you recall what you were doing when you got that? I thought I'd fixed all the "Already connected' errors.

If you do nothing with the client for one minute, then MPD writes to the log that the connection is closed and after that MMC4W gives an error if you try to do something.

drgerg commented 7 months ago

I don't have that problem here with any of my 3 servers. I would have to know exactly what you were trying to do with mmc4w when that error happened. Maybe also see the contents of the mmc4w.ini file from the _internal folder. You can use the 'Configure' option to get there easy. (I don't know why pyinstaller puts a copy in the root of the installation folder.)

drgerg commented 7 months ago

Oh yeah, and by the way, that error typically isn't a "now you are dead" error. You normally can just keep trying and it will connect and do the thing you've asked it to do.

Assuming, of course, that MPD can do what you've asked. Issues with an MPD installation can create problems for a client, as you probably know.

LuSP19 commented 7 months ago

I don't have that problem here with any of my 3 servers.

I run MPD on the same machine, on Windows. Perhaps the problem is related to this.

Oh yeah, and by the way, that error typically isn't a "now you are dead" error. You normally can just keep trying and it will connect and do the thing you've asked it to do.

Yeah, the server continues to work. But MMC4W crashes and I have to start it again to get anything done.

mmc4w.ini file contents:

[basic]
installation = C:\Users\User\AppData\Local\Programs\MMC4W\_internal
serverlist = 127.0.0.1
serverport = 6600
firstrun = 0
sysplatform = win32

[program]
version = v2.0.8
logging = on
loglevel = info
buildmode = 0
autobrowserplayer = 0

[serverstats]
playlists = first_playlist,Everything,
lastvol = 100
lastsetpl = Everything
lastsrvr = 127.0.0.1
lastport = 6600
lastsongtitle = 05-Free Wheelin' - Bachman-Turner Overdrive
httpport = 8000

[display]
displaysize = 2560,1440
scalefactors = 1.0,1.0,

[mainwindow]
comment = maingeo is "win width","win height","x locator","y locator"
maingeo = 380,80,412,452
titlebarstatus = 1

[albumart]
aartgeo = 120,120,412,350
albarttoggle = 1

[searchwin]
swingeo = 388,328,425,832

[buildplwin]
bplwingeo = 380,120,420,620
swingeo = 388,328,425,832

[default_values]
maingeo = 380,80,412,452
aartgeo = 120,120,412,350
swingeo = 388,328,425,832
bplwingeo = 380,120,420,620
drgerg commented 7 months ago

The mmc4w.ini file looks normal, so no issues there.

I run MPD on Linux machines here, so that is one difference between our setups. I've never tried to run MPD on Windows. The thing that makes me curious is when the error is "Already connected", mmc4w is supposed to set cxstat=1 (which means connected) and pass out of the connext() function.

I do not yet have a clue as to why that's not happening.

drgerg commented 7 months ago

Just for grins, add a trailing comma to: [basic] installation = C:\Users\User\AppData\Local\Programs\MMC4W_internal serverlist = 127.0.0.1,

I seem to recall it was important at some point. I doubt that solves it, but it doesn't cost anything to try.

drgerg commented 7 months ago

If you're still interested in trying to make this work, I'd recommend setting logging to 'debug' . From Help:

To set the logging level, use the 'Configure' option and edit the mmc4w.ini file. Type either 'info' or 'debug' where indicated (without quotes).

The resulting log file (mmc4w.log) can be found in the _internal folder in the installation folder. The log file is deleted and started fresh each time you start MMC4W. If you toggle Off logging, the last log file will remain until you delete it or create a new one by toggling logging On again.

The DEBUG file (mmc4w_DEBUG.log) does not start fresh with each run, and is not deleted. If you make the mistake of leaving MMC4W with debug logging turned on, that log file will continue to grow until you run out of disk space. Don't be that guy. Turn debug logging off when you don't need it.

LuSP19 commented 7 months ago

Just for grins, add a trailing comma to: [basic] installation = C:\Users\User\AppData\Local\Programs\MMC4W_internal serverlist = 127.0.0.1,

Unfortunately, it didn't help. It’s unlikely that many people use the MPD server on Windows. I wanted to put it on the Raspberry Pi in case of successful experiments. I just tried it on Windows.

LuSP19 commented 7 months ago

If you're still interested in trying to make this work, I'd recommend setting logging to 'debug' .

Yes, I'll try to enable debug logging in the settings.

drgerg commented 7 months ago

One of my three servers is on a Pi 3. Works great.

LuSP19 commented 7 months ago

Here is the debug log:

Sun, 24 Mar 2024 18:18:53 -  
Sun, 24 Mar 2024 18:18:53 -      -----======<<<<  STARTING UP  >>>>======-----
Sun, 24 Mar 2024 18:18:53 - D0) sys.platform is win32
Sun, 24 Mar 2024 18:18:53 -  
Sun, 24 Mar 2024 18:18:54 - ---=== Start songtitlefollower() threaded timer. ===---
Sun, 24 Mar 2024 18:18:54 -  
Sun, 24 Mar 2024 18:18:54 - D1| Initial errvar: Not connected
Sun, 24 Mar 2024 18:18:54 - D1| Try to reconnect to 127.0.0.1 on port 6600
Sun, 24 Mar 2024 18:18:54 - D1| 2nd try. cxstat is : 1
Sun, 24 Mar 2024 18:18:54 -  = = = = = = getcurrsong = = = = = = = = 
Sun, 24 Mar 2024 18:18:54 - D2| Sent: 0
Sun, 24 Mar 2024 18:18:54 - D2| Got status. state: play, rand: r, rpt: p.
Sun, 24 Mar 2024 18:18:54 - D2| Retrieving "cs" in getcurrsong().
Sun, 24 Mar 2024 18:18:54 - D2| Got cs (client.currentsong()) with a length of 15.
Sun, 24 Mar 2024 18:18:54 - 1) endtime generated: 1711286335.8277652. Length: 1, Song dur: 216.611, Elapsed: 214.852.
Sun, 24 Mar 2024 18:18:54 - D2| Headed to getaartpic(**cs).
Sun, 24 Mar 2024 18:18:54 - D6| Wrote 14261 bytes to cover.png.  len(eadict) is: 4
Sun, 24 Mar 2024 18:18:54 - 2) Bottom of getaartpic(). Headed to artWindow(). aartvar is 1, len(eadict) is 4, len(fadict) is 0.
Sun, 24 Mar 2024 18:18:54 - Set volume to 100.
Sun, 24 Mar 2024 18:18:54 - 3) Volume is 100, Random is 0, Repeat is 0.
Sun, 24 Mar 2024 18:18:54 - 3) 03-Hey You - Bachman-Turner Overdrive.
Sun, 24 Mar 2024 18:18:54 - 4) This is the last song you played during your last session.
Sun, 24 Mar 2024 18:18:54 - D7| lastvol: 100, gendtime: 1711286335.8277652, gpstate: play, gsent 0.
Sun, 24 Mar 2024 18:18:54 - Down at the bottom. Firstrun: 0
Sun, 24 Mar 2024 18:18:54 - 5) Threaded timer got new endtime.
Sun, 24 Mar 2024 18:18:54 - 6) New endtime: 1711286335.8277652, Length: 1. sent: 0.
Sun, 24 Mar 2024 18:18:55 - 0) Threaded timer ran down. Getting new current song data.
Sun, 24 Mar 2024 18:18:55 - D0| time.time() reached endtime. Calling getcurrsong().
Sun, 24 Mar 2024 18:18:55 -  - - - - -  songtitlefollower - - - - - - 
Sun, 24 Mar 2024 18:18:55 -  = = = = = = getcurrsong = = = = = = = = 
Sun, 24 Mar 2024 18:18:55 - D2| Sent: 1
Sun, 24 Mar 2024 18:18:55 - D2| Got status. state: play, rand: r, rpt: p.
Sun, 24 Mar 2024 18:18:55 - D2| Retrieving "cs" in getcurrsong().
Sun, 24 Mar 2024 18:18:55 - D2| Got cs (client.currentsong()) with a length of 15.
Sun, 24 Mar 2024 18:18:55 - 1) endtime generated: 1711286574.927557. Length: 239, Song dur: 239.102, Elapsed: 0.022.
Sun, 24 Mar 2024 18:18:55 - D2| Headed to getaartpic(**cs).
Sun, 24 Mar 2024 18:18:55 - D6| Wrote 14261 bytes to cover.png.  len(eadict) is: 4
Sun, 24 Mar 2024 18:18:55 - 2) Bottom of getaartpic(). Headed to artWindow(). aartvar is 1, len(eadict) is 4, len(fadict) is 0.
Sun, 24 Mar 2024 18:18:55 - Set volume to 100.
Sun, 24 Mar 2024 18:18:55 - 3) Volume is 100, Random is 0, Repeat is 0.
Sun, 24 Mar 2024 18:18:55 - 3) 04-Flat Broke Love - Bachman-Turner Overdrive.
Sun, 24 Mar 2024 18:18:55 - 4) This is a new title. Writing title to mmc4w.ini.
Sun, 24 Mar 2024 18:18:55 - D7| lastvol: 100, gendtime: 1711286574.927557, gpstate: play, gsent 0.
Sun, 24 Mar 2024 18:18:56 - 5) Threaded timer got new endtime.
Sun, 24 Mar 2024 18:18:56 - 6) New endtime: 1711286574.927557, Length: 238. sent: 0.
Sun, 24 Mar 2024 18:22:54 - 0) Threaded timer ran down. Getting new current song data.
Sun, 24 Mar 2024 18:22:54 - D0| time.time() reached endtime. Calling getcurrsong().
Sun, 24 Mar 2024 18:22:54 -  - - - - -  songtitlefollower - - - - - - 
Sun, 24 Mar 2024 18:22:54 - D1| Initial errvar: [WinError 10053] An established connection was aborted by the software in your host machine
Sun, 24 Mar 2024 18:22:54 - D1| Try to reconnect to 127.0.0.1 on port 6600
Sun, 24 Mar 2024 18:22:54 - D1| Second level errvar: Already connected
Sun, 24 Mar 2024 18:23:34 - Buttonvar state at button press: play.
Sun, 24 Mar 2024 18:23:34 - D1| Initial errvar: [WinError 10053] An established connection was aborted by the software in your host machine
Sun, 24 Mar 2024 18:23:34 - D1| Try to reconnect to 127.0.0.1 on port 6600
Sun, 24 Mar 2024 18:23:34 - D1| Second level errvar: Already connected
drgerg commented 7 months ago

At this point I would try changing 127.0.0.1 to the IP of the machine and see what happens.

We're deep in the weeds now.

Another thing I would be trying now would be running the MPD server from another client. I use MPC for such testing, but there are a number of others. If other software works to run it, then that tells me something. I just have to figure out what it's saying. ;-)

LuSP19 commented 7 months ago

At this point I would try changing 127.0.0.1 to the IP of the machine and see what happens.

Same behavior. (

Another thing I would be trying now would be running the MPD server from another client.

I used MPDCtrl and it works fine. mpd log (using MPDCtrl):

Mar 24 18:51 : client: [8] opened from 127.0.0.1:58054
Mar 24 18:51 : client: [9] opened from 127.0.0.1:58055
Mar 24 18:51 : client: [9] process command "idle player"
Mar 24 18:51 : client: [9] command returned 1
Mar 24 18:51 : client: [9] process command "update"
Mar 24 18:51 : update: spawned thread for update job id 4
Mar 24 18:51 : client: [9] command returned 0
Mar 24 18:51 : client: [9] process command "idle player"
Mar 24 18:51 : client: [9] command returned 1
Mar 24 18:51 : update: starting
Mar 24 18:51 : update: finished
Mar 24 18:51 : client: [8] process command "status"
Mar 24 18:51 : client: [8] command returned 0
Mar 24 18:51 : client: [8] process command "currentsong"
Mar 24 18:51 : client: [8] command returned 0
Mar 24 18:51 : client: [8] process command "listplaylists"
Mar 24 18:51 : client: [8] command returned 0
Mar 24 18:51 : client: [8] process command "playlistinfo"
Mar 24 18:51 : client: [8] command returned 0
Mar 24 18:51 : client: [8] process command "idle player mixer options playlist stored_playlist"
Mar 24 18:51 : client: [8] command returned 1
Mar 24 18:51 : client: [9] process command list
Mar 24 18:51 : client: process command "playid 75"
Mar 24 18:51 : playlist: play 0:"CD remastered/1973 - Bachman-Turner Overdrive (1989 US)/03. Blue Collar.mp3"
Mar 24 18:51 : output: opened "Speakers" (winmm) audio_format=44100:16:2
Mar 24 18:51 : output: converting in=44100:f:2 -> f=44100:f:2 -> out=44100:16:2
Mar 24 18:51 : client: command returned 0
Mar 24 18:51 : client: process command "setvol 100"
Mar 24 18:51 : client: command returned 0
Mar 24 18:51 : client: [9] process command list returned 0
Mar 24 18:51 : client: [9] process command "idle player"
Mar 24 18:51 : client: [9] command returned 1
Mar 24 18:51 : playlist: queue song 1:"CD remastered/1973 - Bachman-Turner Overdrive (1989 US)/01. Gimme Your Money Please.mp3"
Mar 24 18:51 : client: [8] process command "status"
Mar 24 18:51 : client: [8] command returned 0
Mar 24 18:51 : client: [8] process command "idle player mixer options playlist stored_playlist"
Mar 24 18:51 : client: [8] command returned 1
Mar 24 18:52 : client: [9] timeout
Mar 24 18:52 : client: [9] closed
Mar 24 18:53 : client: [10] opened from 127.0.0.1:58075
Mar 24 18:53 : client: [10] process command "idle player"
Mar 24 18:53 : client: [10] command returned 1
Mar 24 18:53 : client: [10] process command "next"
Mar 24 18:53 : playlist: play 1:"CD remastered/1973 - Bachman-Turner Overdrive (1989 US)/01. Gimme Your Money Please.mp3"
Mar 24 18:53 : decoder_thread: probing plugin ffmpeg
Mar 24 18:53 : ffmpeg/mp3: Format mp3 probed with size=32768 and score=51
Mar 24 18:53 : ffmpeg/mp3: Skipping 0 bytes of junk at 23101.
Mar 24 18:53 : ffmpeg: detected input format 'mp3'
Mar 24 18:53 : ffmpeg/mp3: Before avformat_find_stream_info() pos: 23101 bytes read:32768 seeks:0 nb_streams:2
Mar 24 18:53 : ffmpeg/mp3: max_analyze_duration 5000000 reached at 5015510 microseconds st:0
Mar 24 18:53 : ffmpeg/mp3: Estimating duration from bitrate, this may be inaccurate
Mar 24 18:53 : ffmpeg/mp3: stream 0: start_time: 0 duration: 285.077
Mar 24 18:53 : ffmpeg/mp3: stream 1: start_time: NOPTS duration: 285.077
Mar 24 18:53 : ffmpeg/mp3: format: start_time: 0 duration: 285.077 (estimate from bit rate) bitrate=320 kb/s
Mar 24 18:53 : ffmpeg/mp3: Could not find codec parameters for stream 1 (Video: mjpeg, none): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Mar 24 18:53 : ffmpeg/mp3: After avformat_find_stream_info() pos: 226877 bytes read:229376 seeks:0 frames:195
Mar 24 18:53 : ffmpeg: codec 'mp3'
Mar 24 18:53 : decoder: audio_format=44100:f:2, seekable=true
Mar 24 18:53 : client: [10] command returned 0
Mar 24 18:53 : client: [10] process command "idle player"
Mar 24 18:53 : client: [10] command returned 1
Mar 24 18:53 : playlist: queue song 2:"CD remastered/1973 - Bachman-Turner Overdrive (1989 US)/02. Hold Back The Water.mp3"
Mar 24 18:53 : client: [8] process command "status"
Mar 24 18:53 : client: [8] command returned 0
Mar 24 18:53 : client: [8] process command "idle player mixer options playlist stored_playlist"
Mar 24 18:53 : client: [8] command returned 1
Mar 24 18:53 : client: [10] process command "pause 1"
Mar 24 18:53 : client: [10] command returned 0
Mar 24 18:53 : client: [10] process command "idle player"
Mar 24 18:53 : client: [10] command returned 1
Mar 24 18:53 : client: [8] process command "status"
Mar 24 18:53 : client: [8] command returned 0
Mar 24 18:53 : client: [8] process command "idle player mixer options playlist stored_playlist"
Mar 24 18:53 : client: [8] command returned 1
Mar 24 18:53 : output: closed "Speakers" (winmm)
Mar 24 18:53 : client: [10] closed
Mar 24 18:53 : client: [8] closed

mpd log (using MMC4W):

Mar 24 18:55 : client: [11] opened from 127.0.0.1:58112
Mar 24 18:55 : client: [11] process command "status"
Mar 24 18:55 : client: [11] command returned 0
Mar 24 18:55 : client: [11] process command "ping"
Mar 24 18:55 : client: [11] command returned 0
Mar 24 18:55 : client: [11] process command "status"
Mar 24 18:55 : client: [11] command returned 0
Mar 24 18:55 : client: [11] process command "currentsong"
Mar 24 18:55 : client: [11] command returned 0
Mar 24 18:55 : client: [11] process command "readpicture "CD remastered/1973 - Bachman-Turner Overdrive (1989 US)/01. Gimme Your Money Please.mp3" "0""
Mar 24 18:55 : ffmpeg/mp3: Format mp3 probed with size=32768 and score=51
Mar 24 18:55 : ffmpeg/mp3: Skipping 0 bytes of junk at 23101.
Mar 24 18:55 : ffmpeg/mp3: Before avformat_find_stream_info() pos: 23101 bytes read:32768 seeks:0 nb_streams:2
Mar 24 18:55 : ffmpeg/mp3: max_analyze_duration 5000000 reached at 5015510 microseconds st:0
Mar 24 18:55 : ffmpeg/mp3: Estimating duration from bitrate, this may be inaccurate
Mar 24 18:55 : ffmpeg/mp3: stream 0: start_time: 0 duration: 285.077
Mar 24 18:55 : ffmpeg/mp3: stream 1: start_time: NOPTS duration: 285.077
Mar 24 18:55 : ffmpeg/mp3: format: start_time: 0 duration: 285.077 (estimate from bit rate) bitrate=320 kb/s
Mar 24 18:55 : ffmpeg/mp3: Could not find codec parameters for stream 1 (Video: mjpeg, none): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Mar 24 18:55 : ffmpeg/mp3: After avformat_find_stream_info() pos: 226877 bytes read:229376 seeks:0 frames:195
Mar 24 18:55 : client: [11] command returned 0
Mar 24 18:55 : client: [11] process command "readpicture "CD remastered/1973 - Bachman-Turner Overdrive (1989 US)/01. Gimme Your Money Please.mp3" "8192""
Mar 24 18:55 : ffmpeg/mp3: Format mp3 probed with size=32768 and score=51
Mar 24 18:55 : ffmpeg/mp3: Skipping 0 bytes of junk at 23101.
Mar 24 18:55 : ffmpeg/mp3: Before avformat_find_stream_info() pos: 23101 bytes read:32768 seeks:0 nb_streams:2
Mar 24 18:55 : ffmpeg/mp3: max_analyze_duration 5000000 reached at 5015510 microseconds st:0
Mar 24 18:55 : ffmpeg/mp3: Estimating duration from bitrate, this may be inaccurate
Mar 24 18:55 : ffmpeg/mp3: stream 0: start_time: 0 duration: 285.077
Mar 24 18:55 : ffmpeg/mp3: stream 1: start_time: NOPTS duration: 285.077
Mar 24 18:55 : ffmpeg/mp3: format: start_time: 0 duration: 285.077 (estimate from bit rate) bitrate=320 kb/s
Mar 24 18:55 : ffmpeg/mp3: Could not find codec parameters for stream 1 (Video: mjpeg, none): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Mar 24 18:55 : ffmpeg/mp3: After avformat_find_stream_info() pos: 226877 bytes read:229376 seeks:0 frames:195
Mar 24 18:55 : client: [11] command returned 0
Mar 24 18:55 : client: [11] process command "ping"
Mar 24 18:55 : client: [11] command returned 0
Mar 24 18:55 : client: [11] process command "outputs"
Mar 24 18:55 : client: [11] command returned 0
Mar 24 18:55 : client: [11] process command "ping"
Mar 24 18:55 : client: [11] command returned 0
Mar 24 18:55 : client: [11] process command "status"
Mar 24 18:55 : client: [11] command returned 0
Mar 24 18:55 : client: [11] process command "pause"
Mar 24 18:55 : output: opened "Speakers" (winmm) audio_format=44100:16:2
Mar 24 18:55 : output: converting in=44100:f:2 -> f=44100:f:2 -> out=44100:16:2
Mar 24 18:55 : client: [11] command returned 0
Mar 24 18:56 : client: [11] timeout
Mar 24 18:56 : client: [11] closed

mmc4w_DEBUG log:

Sun, 24 Mar 2024 18:55:08 -      -----======<<<<  STARTING UP  >>>>======-----
Sun, 24 Mar 2024 18:55:08 - D0) sys.platform is win32
Sun, 24 Mar 2024 18:55:08 -  
Sun, 24 Mar 2024 18:55:08 - ---=== Start songtitlefollower() threaded timer. ===---
Sun, 24 Mar 2024 18:55:08 -  
Sun, 24 Mar 2024 18:55:08 - D1| Initial errvar: Not connected
Sun, 24 Mar 2024 18:55:08 - D1| Try to reconnect to 127.0.0.1 on port 6600
Sun, 24 Mar 2024 18:55:08 - D1| 2nd try. cxstat is : 1
Sun, 24 Mar 2024 18:55:08 -  = = = = = = getcurrsong = = = = = = = = 
Sun, 24 Mar 2024 18:55:08 - D2| Sent: 0
Sun, 24 Mar 2024 18:55:08 - D2| Got status. state: pause, rand: r, rpt: p.
Sun, 24 Mar 2024 18:55:08 - D2| Retrieving "cs" in getcurrsong().
Sun, 24 Mar 2024 18:55:08 - D2| Got cs (client.currentsong()) with a length of 15.
Sun, 24 Mar 2024 18:55:08 - 1) endtime generated: 1711288776.7814548. Length: 268, Song dur: 285.078, Elapsed: 16.960.
Sun, 24 Mar 2024 18:55:08 - D2| Headed to getaartpic(**cs).
Sun, 24 Mar 2024 18:55:08 - D6| Wrote 15961 bytes to cover.png.  len(eadict) is: 4
Sun, 24 Mar 2024 18:55:08 - 2) Bottom of getaartpic(). Headed to artWindow(). aartvar is 1, len(eadict) is 4, len(fadict) is 0.
Sun, 24 Mar 2024 18:55:08 - 3) 01-Gimme Your Money Please - Bachman-Turner Overdrive.
Sun, 24 Mar 2024 18:55:08 - 4) This is the last song you played during your last session.
Sun, 24 Mar 2024 18:55:08 - D7| lastvol: 100, gendtime: 1711288776.7814548, gpstate: pause, gsent 0.
Sun, 24 Mar 2024 18:55:08 - 6) pstate: pause.
Sun, 24 Mar 2024 18:55:08 - Down at the bottom. Firstrun: 0
Sun, 24 Mar 2024 18:55:12 - Buttonvar state at button press: pause.
Sun, 24 Mar 2024 18:55:12 - 2) New endtime generated in pause(). Old: 1711288776.7814548, New 1711288780.1614237
Sun, 24 Mar 2024 18:55:12 - 5) Threaded timer got new endtime.
Sun, 24 Mar 2024 18:55:12 - 6) New endtime: 1711288780.1614237, Length: 267. sent: 0.
Sun, 24 Mar 2024 18:56:57 - Buttonvar state at button press: play.
Sun, 24 Mar 2024 18:56:57 - D1| Initial errvar: [WinError 10053] An established connection was aborted by the software in your host machine
Sun, 24 Mar 2024 18:56:57 - D1| Try to reconnect to 127.0.0.1 on port 6600
Sun, 24 Mar 2024 18:56:57 - D1| Second level errvar: Already connected
drgerg commented 7 months ago

I have never seen the WinError 10053 before, so I googled it. I read through quite a few posts. It seems quite a few people have this issue with Windows, but I did not find a fix. For example, this was at the end of a long post: image

Maybe if you get MPD set up on your Pi, things will go better for you.

drgerg commented 7 months ago

I pushed up the v2.0.9 update to mmc4w.py, but the installer will be later when I get done editing the help file. I'm going to try to focus on that now.

drgerg commented 7 months ago

I'm marking this issue closed. I wish you the best in your adventure!

LuSP19 commented 7 months ago

Maybe if you get MPD set up on your Pi, things will go better for you.

When I installed MPD on my Pi, things didn't work out at all. I couldn't get MPD to work at all. This whole heap of ALSA, PulseAudio and PipeWire is simply terrible. Several hours of googling and constantly changing the audio_output settings led to nothing. Will have to try MPD in 10 years. Then it might be easier to set it up. Unless they come up with another audio server in addition to the existing ones.

drgerg commented 7 months ago

It certainly can be frustrating. I used a HiFi hat kinda like this one: https://www.pishop.us/product/iqaudio-dac-pro/?src=raspberrypi Once I had that working with the Pi, I would use alsamixer (and F6 to see hardware) to find what hardware device it was. Then I set that in my alsa config section like this:


> # An example of an ALSA output:
> #
> audio_output {
>         type            "alsa"
>         name            "My ALSA Device"
>         device          "hw:2,0"        # optional
> ##      mixer_type      "hardware"      # optional
>         mixer_type      "software"
> ##      mixer_device    "default"       # optional
> ##      mixer_control   "PCM"           # optional
> ##      mixer_index     "0"             # optional
> }

It's the hw:2,0 part that has to match what alsamixer says.

I don't blame you for moving on. But I know once you get over the learning curve, it's a solid music solution. Best Wishes!