huge mpd.log file

Hello,
On my working system, I have a problem due to a full SD card. I realised that it was due to a enormous mpd.log file. I erased it and restart the system to see what happen. Below a example of what is written in the file :

Mar 28 12:21 : client: [0] opened from 127.0.0.1:46544
Mar 28 12:21 : client: [0] closed
Mar 28 12:21 : client: [1] opened from 127.0.0.1:46546
Mar 28 12:21 : client: [1] closed
Mar 28 12:21 : client: [2] opened from 127.0.0.1:46547
Mar 28 12:21 : client: [2] closed
Mar 28 12:21 : client: [3] opened from 127.0.0.1:46549
Mar 28 12:21 : client: [3] closed
Mar 28 12:21 : client: [4] opened from 127.0.0.1:46550
Mar 28 12:21 : client: [4] closed
Mar 28 12:21 : client: [5] opened from 127.0.0.1:46551
Mar 28 12:21 : client: [6] opened from 127.0.0.1:46552
Mar 28 12:21 : client: [5] closed
Mar 28 12:21 : client: [6] closed
Mar 28 12:21 : client: [7] opened from 127.0.0.1:46553
Mar 28 12:21 : client: [8] opened from 127.0.0.1:46554
Mar 28 12:21 : client: [7] closed
Mar 28 12:21 : client: [8] closed
Mar 28 12:21 : client: [9] opened from 127.0.0.1:46555
Mar 28 12:21 : client: [9] closed
Mar 28 12:21 : client: [10] opened from 127.0.0.1:46556
Mar 28 12:21 : client: [10] closed
Mar 28 12:21 : client: [11] opened from 127.0.0.1:46557
Mar 28 12:21 : client: [11] closed
Mar 28 12:21 : client: [12] opened from 127.0.0.1:46558
Mar 28 12:21 : client: [12] closed
Mar 28 12:21 : client: [13] opened from 127.0.0.1:46559
Mar 28 12:21 : client: [13] closed

and it carry on up to fill the sd card. I don’t know what could cause that. Any idea ?

Hi,

Add this line to /etc/mpd.conf:
log_level “default”

The only problem is that it will be erased if you configure playback with the Web interface.

Hi,

thanks Stephane for the solution.

For people looking for a solution consistent after reboot (and not afraid about coding), you can edit the “mpd-config.php” file and add twice the line “cfgdb_update(‘cfg_mpd’,$dbh,$element[‘param’],$element[‘value_default’]);” as shown below

sudo nano mpd-config.php

// handle (reset) if (isset($_POST['reset']) && $_POST['reset'] == 1) { $mpdconfdefault = cfgdb_read('',$dbh,'mpdconfdefault'); foreach($mpdconfdefault as $element) { cfgdb_update('cfg_mpd',$dbh,$element['param'],$element['value_default']); } // Disable too much logging cfgdb_update('cfg_mpd',$dbh,'log_level','default');

// handle POST if(isset($_POST['conf']) && !empty($_POST['conf'])) { foreach ($_POST['conf'] as $key => $value) { cfgdb_update('cfg_mpd',$dbh,$key,$value); } // Disable too much logging cfgdb_update('cfg_mpd',$dbh,'log_level','default');

Then go to Menu / Playback : change one setting and save for the change to be effective

1 Like

Where this file mpd-config.php is located?

You’re bumping a 8 year old topic, mpd-config.php does no longer exist.

1 Like

hi @Wheaten

Any solution for this problem? How can I edit /etc/mpd.conf ?

UPD.
I managed to fix via updating Peppyalsa conf file. More info mpd.log file is growing ¡ Issue #8 ¡ project-owner/PeppyMeter ¡ GitHub