[Solved] MPD clients connect to server too long first time

When my system start mpd clients cannot connect to server a long(10-15 seconds or more) for some reason.
Same time internet connection and network seems to be ok.
So, It's look like I run mpc for example and it get stuck. This problem is new. 2-4 weeks or less.
I've tried use user and global config without any success.
Mpd config now look like this:
music_directory "/home/neg/music"
playlist_directory "/home/neg/.mpd/playlists"
db_file "/home/neg/.mpd/mpd.db"
log_file "/home/neg/.mpd/mpd.log"
pid_file "/home/neg/.mpd/mpd.pid"
state_file "/home/neg/.mpd/mpdstate"
sticker_file "/home/neg/.mpd/sticker.sql"
user "neg"
bind_to_address "localhost"
port "6600"
input {
plugin "curl"
save_absolute_paths_in_playlists "yes"
metadata_to_use "artist,album,title,track,name,genre,date"
follow_inside_symlinks "yes"
connection_timeout "2"
filesystem_charset "UTF-8"
input {
plugin "curl"
audio_output {
type "pulse"
name "Local Music Player Daemon"
mixer_type "hardware"
server "127.0.0.1"
My netctl profile looks like this:
Description='A basic dhcp ethernet connection'
Interface=enp6s0
Connection=ethernet
SkipNoCarrier=yes
IP=static
DNS=('192.168.1.1')
Address=('192.168.1.35/24')
Gateway='192.168.1.1'
## for DHCPv6
#IP6=dhcp
## for IPv6 autoconfiguration
#IP6=stateless
System start looks almost normal. USB reinit after uefi takes a lot of time sometimes, but it's not critical.
[~] >> PAGER= systemd-analyze blame
7.483s systemd-udev-settle.service
543ms zfs-mount.service
443ms systemd-modules-load.service
121ms [email protected]
100ms [email protected]
83ms [email protected]
68ms systemd-logind.service
68ms lm_sensors.service
59ms alsa-restore.service
57ms zfs-share.service
38ms systemd-vconsole-setup.service
25ms polkit.service
24ms [email protected]
18ms ntpd.service
14ms systemd-udev-trigger.service
14ms avahi-daemon.service
13ms systemd-binfmt.service
13ms mnt-home.mount
12ms systemd-tmpfiles-setup-dev.service
12ms dev-hugepages.mount
10ms dev-mqueue.mount
10ms systemd-remount-fs.service
10ms sys-kernel-debug.mount
9ms proc-sys-fs-binfmt_misc.mount
8ms systemd-tmpfiles-setup.service
6ms systemd-update-utmp.service
5ms systemd-journal-flush.service
5ms boot-efi.mount
5ms systemd-random-seed.service
4ms kmod-static-nodes.service
4ms systemd-udevd.service
3ms var-cache-davfs2.mount
3ms var-cache-pkgfile.mount
3ms udisks.service
3ms var-cache-pacman.mount
2ms rtkit-daemon.service
1ms var-tmp.mount
1ms systemd-sysctl.service
1ms zfs-import-cache.service
1ms systemd-user-sessions.service
937us sys-kernel-config.mount
911us tmp.mount
Whole system config
[~] >> inxi -FC
System: Host: unreal Kernel: 3.18.2-2-ARCH x86_64 (64 bit) Desktop: N/A Distro: Arch Linux
Machine: System: ASUS product: All Series
Mobo: ASUSTeK model: SABERTOOTH Z97 MARK 1 version: Rev 1.xx
Bios: American Megatrends version: 0901 date: 05/08/2014
CPU: Quad core Intel Core i7-4790K CPU (-HT-MCP-) cache: 8192 KB flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx)
Clock Speeds: 1: 4000.00 MHz 2: 4000.312 MHz 3: 4000.625 MHz 4: 4000.00 MHz 5: 4005.156 MHz 6: 4000.156 MHz 7: 4000.781 MHz 8: 4001.718 MHz
Graphics: Card: NVIDIA GM204 [GeForce GTX 980] X.Org: 1.16.3 driver: nvidia Resolution: [email protected]
GLX Renderer: GeForce GTX 980/PCIe/SSE2 GLX Version: 4.4.0 NVIDIA 343.36
Audio: Card-1: NVIDIA GM204 High Definition Audio Controller Sound: ALSA ver: k3.18.2-2-ARCH
Card-3: Creative driver: USB Audio
Network: Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169
IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: 10:c3:7b:96:22:ef
Card-2: Intel Ethernet Connection (2) I218-V driver: e1000e
IF: eno1 state: down mac: 40:16:7e:e9:08:e1
Drives: HDD Total Size: 2378.5GB (20.0% used) 1: id: /dev/sda model: WDC_WD1003FZEX size: 1000.2GB
2: id: /dev/sdb model: PLEXTOR_PX size: 128.0GB 3: id: /dev/sdc model: ST3250312AS size: 250.1GB
4: id: /dev/sdd model: WDC_WD1003FZEX size: 1000.2GB
Partition: ID: / size: 89G used: 29G (35%) fs: ext4
Sensors: System Temperatures: cpu: 32.0C mobo: 34.0C gpu: 40C
Fan Speeds (in rpm): cpu: N/A fan-1: 0 fan-2: 0 fan-3: 0 fan-4: 0 fan-5: 0 fan-6: 0
Info: Processes: 424 Uptime: 2 min Memory: 2166.0/15993.2MB Client: Shell (zsh) inxi: 1.9.14
I've tried ::1 addr, sockets etc, nothing gets better.
Also I've tried to upgrade mpd to git or downgrade.
Last edited by Neg (2015-01-28 11:36:46)

Rasi wrote:have you checked, if pulseaudio was running at that time already?
Yes, pulseaudio seems to be ok at that moment.
Also I have such thing in the log ~2 minutes
Jan 19 09:17 : client: [142] opened from 127.0.0.1:38434
Jan 19 09:17 : client: [142] closed
Jan 19 09:17 : client: [143] opened from 127.0.0.1:38435
Jan 19 09:17 : client: [143] closed
Jan 19 09:17 : client: [144] opened from 127.0.0.1:38436
Jan 19 09:17 : client: [144] closed
Jan 19 09:17 : client: [145] opened from 127.0.0.1:38437
Jan 19 09:17 : client: [145] closed
Jan 19 09:17 : client: [146] opened from 127.0.0.1:38438
Jan 19 09:17 : client: [146] closed
Jan 19 09:17 : client: [147] opened from 127.0.0.1:38439
Jan 19 09:17 : client: [147] closed
When daemon seems to be ok
[~] >> systemctl --user status mpd2
● mpd2.service - Music Player Daemon
Loaded: loaded (/home/neg/.config/systemd/user/mpd2.service; disabled)
Active: active (running) since Mon 2015-01-19 09:15:59 MSK; 1min 59s ago
Main PID: 1947 (mpd)
CGroup: /user.slice/user-1000.slice/[email protected]/mpd2.service
└─1947 /usr/bin/mpd --no-daemon /home/neg/.mpd.conf
Jan 19 09:15:59 unreal systemd[953]: Started Music Player Daemon.
Also I've tried to set port manually in ncmpcpp, then log messages are NOT gone.
I've already tried alsa-only config. Same issue.
When daemon is "running" clients of it are not response ~1-2 minute.
Last edited by Neg (2015-01-19 06:26:15)

Similar Messages

  • Large XML Publisher reports fail with client-error-request-value-too-long

    We are running BI Publisher 5.6.3 with Oracle Applications 11.5.10.2 (ATG.H RUP 5), and are having frequent failures with client-error-request-value-too-long messages on large PDF reports that cause the entire report to not print.
    The exact error message is as follows:
    lp: unable to print file: client-error-request-value-too-long
    Pasta: Error: Print failed. Command=lp -c -dPDX_B6_1LJ5200NEAST /logs/temp/pasta3262_0.tmp
    Pasta: Error: Check printCommand/ntPrintCommand in pasta.cfg
    Pasta: Error: Preprocess or Print command failed!!!
    APP-FND-00500: AFPPRN received a return code of failure from routine FDUPRN. Program exited with status 1
    Cause: AFPPRN received a return code of failure from the OSD routine FDUPRN. Program exited with status 1.
    Action: Review your concurrent request log file for more detailed information.
    I have Google'd client-error-request-value-too-long, and found it is a common CUPS issue on Linux. The popular solutions (having /var/spool/cups and /var/spool/cups/tmp) are already in place. Also, the temp files are nowhere near 2 GB (44MB).
    Has anyone had this issue with BI Publisher on Linux?

    Thanks for the link. It looks like the sysadmins have throttled cups to low to allow large bitmapped print jobs:
    grep MaxRequestSize cupsd.conf
    # MaxRequestSize: controls the maximum size of HTTP requests and print files.
    MaxRequestSize 10M
    I am trying to get a more reasonable size limit.

  • Large BI Publisher reports fail with client-error-request-value-too-long

    We are running BI Publisher 5.6.3 with Oracle Applications 11.5.10.2, and are having frequent failures with client-error-request-value-too-long messages on large PDF reports that cause the entire report to not print.
    The exact error message is as follows:
    lp: unable to print file: client-error-request-value-too-long
    Pasta: Error: Print failed. Command=lp -c -dPDX_B6_1LJ5200NEAST /logs/temp/pasta3262_0.tmp
    Pasta: Error: Check printCommand/ntPrintCommand in pasta.cfg
    Pasta: Error: Preprocess or Print command failed!!!
    APP-FND-00500: AFPPRN received a return code of failure from routine FDUPRN. Program exited with status 1
    Cause: AFPPRN received a return code of failure from the OSD routine FDUPRN. Program exited with status 1.
    Action: Review your concurrent request log file for more detailed information.
    I have Google'd client-error-request-value-too-long, and found it is a common CUPS issue on Linux. The popular solutions (having /var/spool/cups and /var/spool/cups/tmp) are already in place. Also, the temp files are nowhere near 2 GB (44MB).
    Has anyone had this issue with BI Publisher on Linux?

    The linux sysadmins set the cups max_request_size at 10 MB, which was causing this error. Once the restriction was lifted, the reports ran without error.

  • Client-error-request-value-too-long

    What is this error???? I am trying to add an Epson 1280 printer and I get this error. I have the most current driver and not sure why this isn't working.

    My flatmate had this "client-error-request-value-too-long" problem with her (powerpc) powerbook. Nearly everything I tried didn't work:
    1) Reinstalling drivers
    2) Permissions repair
    3) Resetting print system using Fixamac's Printer Setup Repair Utility
    4) Updating from 10.4.10 to 10.4.11
    5) Using the command line to try and recreate the directory: /var/spool/cups/tmp (which told me it already existed)
    6) Using Transmit (with show invisible files turned on) to browse to /var/spool/cups/ and try and recreate the tmp folder
    On the last point I couldn't change anything about the /var/spool/cups/ directory because the permissions were corrupted in some way. It keep telling me tmp already existed but I couldn't see it.
    In the end what did work was enabling and logging in as root, browsing to /var/spool/ using Transmit and deleting the cups folder and then recreating. It took a few tries to delete too, but in the end I managed to remove it.
    Of course I wouldn't actually recommend this. I'm no Unix geek so god knows what I might have broken in the process, so I'm going to reinstall her system with the Archive and Install options when I get a chance, which is what I'd recommend doing in the first place to anyone having this problem.

  • Error: "client-error-request-value-too-long" when trying to add printer

    After installing the 10.4.9 Combo update, my HP 1350 All-in-One printer was not recognized. I reinstalled the driver, but now I can't add the printer. I get the error message "client-error-request-value-too-long" when trying to add the printer. Has anyone else experienced a similar problem.
    Thanks in advance

    Well, I tried all of that and I'm still getting the error message. I've also repaired disk permissions and run Disk Warrior. When I repaired disk permissions, many HP printer items showed up in the list.

  • USB Printing - client-error-request-value-too-long

    A little while back, my iSight suddenly stopped working and so I did a full format and reinstall to 'fix' the problem. The problem wasn't 'fixed' through this action. Instead, I had to disconnect power and let the computer sit there for a bit and think about what it had done (naughty iMac). Anyway... Another USB-related problem just popped up - this time with my printer.
    The printer is a Canon IP4000 and I just installed the latest drivers to try to fix this error. The first error was something about not being able to write to the device. I thought that was stupid and would probably be fixed by deleting the printer and then reinstalling it. I have so far 'uninstalled' the printer (more or less just removed it from the printers list in the printer utility) and now I can't re-add it to the list to install it. The error reads as follows:
    An error occurred while trying to add the selected printer.
    client-error-request-value-too-long
    I have tried Google but I just don't have the time to sort through all kinds of explainations on how CUPS works on Linux (apparently, this error is related to CUPS in some way). I also tried searching the forum for the error message but found nothing. So here I am again asking for some help from those who might have seen this problem before.
    This is on a fresh install and I have tried it on newly created users to no avail.
    Thanks for any help! -Thomas

    I've recently had this error which came up because the spool folder was missing. In the terminal:
    sudo mkdir /private/var/spool
    sudo mkdir /private/var/spool/cups
    puts the proper folders in their place. Repair permissions afterwards.
    Through the cups web interface, the error is "Request entity too large"
    Panther has the same folders, but a different error comes up.
    The above cups folder has different permissions than the default. Probably the same for Tiger and Panther but just to be safe, repair permissions.

  • What privileges for the DB account used by client connect to server?

    Hello, After I installed the SBO server packages, I found that it must set DB account in the client side.
    I had tried 'sa' account, it works. but I thought we should not leave the super account in each client side.
    So I want to know what privileges should be assiged to the account in SQL Server?
    Or somewhere already have documents to say how to build up the client account.
    thanks.

    Hi,
    You may check: What privileges for the DB account used by client connect to server?
    Thanks,
    Gordon

  • My ipad will no longer connect to the laptop. it comes up with usb not recognized. also when trying to connect to the power the first time i connect, nothing, but when i unplug from ipad and plug in a second time it charges

    my ipad will no longer connect to the laptop. it comes up with usb not recognized. also when trying to connect to the power the first time i connect, nothing, but when i unplug from ipad and plug in a second time it charges

    yeah tried all that. the only thing that i havent tried is to delete itunes completely and restart. its the same with the ipad. i havent done a master reset. i just think it has to be something rather simple as it acknowledges that i have plugged in the ipad as it makes the noise it just come up usb not recognized. it shows up as an unknown device that doestn have  any drivers
    its driving me round the bend at the minute

  • How long does it take to connect to Wi-Fi the first time I use my Ipad? It's been over 30 minutes. I see that it wants to connect but it keeps on turning.

    How long does it take to connect to Wi-Fi the first time I use my Ipad? It's been over 30 minutes. I see that it wants to connect but it keeps on turning.

    It should not take very long. Up to thirty seconds tops depending on your Wi-Fi network.
    Try rebooting your Wi-Fi router. Turn off the router for 30 seconds then turn it back on. After the router completes its startup routine and indicates a good connection to the internet start you iPad again and see if it will connect.
    If you still have problems you might try connecting to a different Wi-Fi network. Maybe one at your local coffee shop or library.

  • Am not able to connect to oracle sql developer first time

    Hai all,
    am not able to connect  to oracle sql developer first time in my windows server.
    in my server sql developer icon is not showing in "all_programs>oracle_home>application development".
    am first time working in windows env..
    server : windows
    database_version:11.2.0.3
    please let me konw how to connect to the sql developer.
    Thanks,
    subbu

    am not able to connect  to oracle sql developer first time in my windows server.
    in my server sql developer icon is not showing in "all_programs>oracle_home>application development".
    am first time working in windows env..
    server : windows
    database_version:11.2.0.3
    please let me konw how to connect to the sql developer.
    Did you perhaps do a custom install? The DB software includes a version of sql developer and, by default, installs it in the sqldeveloper folder of the DB_HOME. Does that folder have sql developer in it?
    I suggest that you NOT use the version of sql developer that ships with the database. That version will NOT be the current version.
    Download the current version of SQL Developer, unzip it into a new folder and create a desktop icon for it.
    http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html
    The current version includes many, many bug fixes from that earlier DB version and you will have far fewer probems with it.

  • Downloaded the latest update for iphone 4S and connected to icloud for the first time... Now, my contacts are gone!

    I just downloaded the latest update for iphone 4S and connected to icloud for the first time.  I now do not have any contacts on my phone... How do I get my contacts back??

    I have had a similar problem, except all of my text messages are gone too! My contacts have slowly started to come back, but it appears that my most recently added contacts are gone, and my messages are also gone still.

  • I connected my iphone for the first time to itunes and lost everything. How can I recover my data?

    I connected my iphone for the first time to my itunes. It didnt have any backup or anything saved on icloud. As soon as i plugged it in, on itunes it asked if I wanted to restore, or backup, my ipod to my iphone or something (I dont remember) and I clicked yes. I thought that it was syncing music, and apps that i had on my ipod but instead it made my iPhone 4s into a copy of my ipod touch from the last time i synced my ipod (august 2012) now i have lost all of my contacts, pictures, messages, calls, emails and everything else I had on my iphone... is there any way that I can recover anything and get it how it used to be before all of this happened? i did not save anything on the computer or on itunes backup...

    Sorry saker, but if you have not backed up your data anywhere, and you told the computer, in essence to clear the data and restore it with your iPod data, then you are pretty much out of luck....
    Cheers,
    GB

  • How to I get my ipod connected to wifi for the first time..it's an ipod tough 2010 version, refurbished

    how to I get my ipod connected to wifi for the first time..it's an ipod tougch 2010 version, refurbished

    Hi,
    To connect your iPod to wifi just:
         1. Open settings,
         2. Tap Wi-Fi,
         3. Make sure the Wi-Fi switch is on,
         4. Tap the network you would like to connect to,
         5. If  the network has a password then type it in and press join.
    For hidden networks(networks that don't broadcast their SSID(name))
         1. Follow 1-3 above,
         2. Tap other,
         3. Type in SSID(name) of the network,
         4. Select the security of the network,
         5. If there is a password type it in,
         6. Press Join.
    Some public networks may now show a login screen where you  may have to agree to terms and conditions, enter your email etc...

  • [SOLVED] MPD clients slow connecting

    I've noticed an slow response by first time client->server connecting on my fresh Arch installation.
    akill@arx ~ % time mpc
    System ot a Down - Aerials
    [playing] #2/2 0:36/3:55 (15%)
    volume: 61% repeat: off random: off single: on consume: off
    mpc 0.00s user 0.00s system 0% cpu 5.145 total
    Like you see simple mpc call needs 5 seconds, same for ncmpcpp. This only applies when client is starting, so after the client connects it works normal like play, pause, switch song...
    There are no log errors, my /etc/mpd.conf is the same one from my netbook and there it works fine.
    Thanks in advance.
    Last edited by Asmir (2013-10-14 09:04:53)

    Possibly not related (but maybe helpful if someone stumbles upon this in the future); but mine started to take ~30 seconds to connect as well. Turned out that having ip6tables set to drop all connections resulted in it waiting for connection on ::1 to timeout before attempting ipv4.

  • Can't connect to Server - "too many users" after 10.8 install

    After upgrading my Retina MBP, my Air, and my mid-2011 iMac (which acts as a file server) to Mountain Lion, I find I cannot consistently connect to the iMac server. Everything is done over an Airport Extreme wifi network, and there were no issues in 10.7. It usually happens 24-48 hours after a retstart, and a restart will fix it though that is inconvenient. The error given on the machine trying to connect in is "too many users" on the host (the iMac server). Any thoughts?

    Me too... similar setup. MBPr, MBP and an old MB with a Mini/drobo as a file server. A reboot fixes it, but that's a pain if I'm not home.
    I have noticed that I can usually share the screen even if I can't mount a drive, which helps, but still just another hurtle.

Maybe you are looking for