You are not logged in.

#1 2014-09-25 01:31:24

babel
Member
From: Mexico City
Registered: 2012-05-21
Posts: 48
Website

Failed to connect: Connection refused [Clementine]

Hello everyone.
I have this problem when I try to play a song from Clementine. I don't know what could be causing it because I have sound from every other source in my PC without problems i.e: Deadbeef, VLC, Dragon Player, Steam, etc.
I know it's not the collection database because I already erased it and rebuilt it.
I use KDE4 and I have installed gstreamer and its plug-ins.
If i type "sudo lshw" I see this in multimedia:

*-multimedia
             description: Audio device
             product: SBx00 Azalia (Intel HDA)
             vendor: Advanced Micro Devices, Inc. [AMD/ATI]
             physical id: 14.2
             bus info: pci@0000:00:14.2
             version: 00
             width: 64 bits
             clock: 33MHz
             capabilities: pm bus_master cap_list
             configuration: driver=snd_hda_intel latency=32
             resources: irq:16 memory:fe024000-fe027fff

Any guesses? Thank you in advanced.

Offline

#2 2014-09-25 08:09:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,645

Re: Failed to connect: Connection refused [Clementine]

Connection to where? where are your files located what do you want to play, do you have the gstreamer0.10 plugins (NOT the gstreamer 1 ones)? console output of clementine, soundserver yes/no?

Offline

#3 2014-09-25 13:50:21

babel
Member
From: Mexico City
Registered: 2012-05-21
Posts: 48
Website

Re: Failed to connect: Connection refused [Clementine]

My music is stored in my home folder, so I don't know where is Clementine trying to connect to.
About gstreamer, these are the packages I have installed:

extra/gst-libav 1.4.1-1
    Gstreamer libav Plugin
extra/gst-plugins-base 1.4.1-1
    GStreamer Multimedia Framework Base Plugins
extra/gst-plugins-base-libs 1.4.1-1
    GStreamer Multimedia Framework Base Plugin libraries
extra/gst-plugins-good 1.4.1-1
    GStreamer Multimedia Framework Good Plugins
extra/gstreamer 1.4.1-1
    GStreamer Multimedia Framework
extra/gstreamer0.10 0.10.36-4
    GStreamer Multimedia Framework
extra/gstreamer0.10-bad 0.10.23-8
    GStreamer Multimedia Framework Bad Plugin libraries (gst-plugins-bad)
extra/gstreamer0.10-bad-plugins 0.10.23-8 (gstreamer0.10-plugins)
    GStreamer Multimedia Framework Bad Plugins (gst-plugins-bad)
extra/gstreamer0.10-base 0.10.36-3
    GStreamer Multimedia Framework Base plugin libraries
extra/gstreamer0.10-ffmpeg 0.10.13-2 (gstreamer0.10-plugins)
    Gstreamer FFMpeg Plugin
extra/gstreamer0.10-good 0.10.31-6
    GStreamer Multimedia Framework Good plugin libraries
extra/gstreamer0.10-good-plugins 0.10.31-6 (gstreamer0.10-plugins)
    GStreamer Multimedia Framework Good Plugins (gst-plugins-good)
extra/gstreamer0.10-ugly 0.10.19-12
    GStreamer Multimedia Framework Ugly plugin libraries
extra/gstreamer0.10-ugly-plugins 0.10.19-12 (gstreamer0.10-plugins)
    GStreamer Multimedia Framework Ugly Plugins (gst-plugins-ugly)
extra/phonon-qt4-gstreamer 4.8.0-2
    Phonon GStreamer backend for Qt4
extra/qt-gstreamer 1.2.0-1
    Qt4 bindings for GStreamer

And about Clementine's console output, this is what I get:

08:49:09.533 WARN  unknown                          libpng warning: iCCP: known incorrect sRGB profile 
08:49:09.656 WARN  unknown                          libpng warning: iCCP: known incorrect sRGB profile 
connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No existe el fichero o el directorio)
attempt to connect to server failed
08:49:25.592 WARN  unknown                          QTimeLine::start: already running 
08:49:26.067 DEBUG unknown                          "  <lfm status="ok"> 
08:49:26.067 DEBUG unknown                              <nowplaying> 
08:49:26.067 DEBUG unknown                                <track corrected="0">God Save The Queen</track> 
08:49:26.067 DEBUG unknown                                <artist corrected="0">Sex Pistols</artist> 
08:49:26.067 DEBUG unknown                                <album corrected="0">Filthy Lucre Live</album> 
08:49:26.067 DEBUG unknown                                <albumArtist corrected="0"/> 
08:49:26.067 DEBUG unknown                                <ignoredMessage code="0"/> 
08:49:26.067 DEBUG unknown                              </nowplaying> 
08:49:26.068 DEBUG unknown                            </lfm> 
08:49:26.068 DEBUG unknown                          "  

I just noted this line:

connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No existe el fichero o el directorio)

Translation: "(err:= The folder or directory doesn't exist).

Could it be the source of the problem? How can I fix it? I looked for /dev/shm/ and the directory is empty.

Thank you.

Offline

#4 2014-09-25 14:21:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,645

Re: Failed to connect: Connection refused [Clementine]

It is trying to find a jack server and fails, so it can't play anything back. Maybe the default device has been set to something else when you installed jack or similar, refer to https://wiki.archlinux.org/index.php/Gs … t_desktops for ideas on how to fix.

Offline

#5 2014-09-26 12:14:30

babel
Member
From: Mexico City
Registered: 2012-05-21
Posts: 48
Website

Re: Failed to connect: Connection refused [Clementine]

I think the problem is jack server. I installed jack2 and then jack-dbus (and even lib32-jack2 since I'm on 64-bit processor) to try either of the two but I always get the same error running sudo jackd -R -d alsa -d hw:0:

jackdmp 1.9.10
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2014 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
Cannot lock down 82274202 byte memory area (Cannot allocate memory)
audio_reservation_init
Acquire audio card Audio0
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 2 periods for playback
Cannot use real-time scheduling (RR/10)(1: Operation not permitted)
AcquireSelfRealTime error
^CJack main caught signal 2
Released audio card Audio0
audio_reservation_finish
[babel@ArchPC ~]$ sudo jackd -R -d alsa -d hw:0
jackdmp 1.9.10
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2014 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
no message buffer overruns
no message buffer overruns
no message buffer overruns
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
Failed to connect to session bus for device reservation /usr/bin/dbus-launch terminated abnormally with the following error: No protocol specified
Autolaunch error: X11 initialization failed.


Audio device hw:0 cannot be acquired...
Cannot initialize driver
JackServer::Open failed with -1
Failed to open server

What does it mean "Failed to connect to session bus for device reservation /usr/bin/dbus-launch terminated abnormally with the following error: No protocol specified"?
What bugs me is that I have sound and record capabilities with all the other software I have installed. Maybe I just need to use another media player sad

Offline

#6 2014-09-26 14:26:16

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,645

Re: Failed to connect: Connection refused [Clementine]

Are you using jack for these other programs which work? do you WANT to use jack? if not you'll simply have to set gstreamer0.10 to use alsa instead of jack. If you want to use it, then I'm not really the most knowledgeable on the subjectso maybe someone else can chip in

Fore closure's sake: None of the programs you listed as having working sound use gstreamer0.10 so it makes sense that they work

Last edited by V1del (2014-09-26 14:28:36)

Offline

#7 2014-09-26 14:41:44

babel
Member
From: Mexico City
Registered: 2012-05-21
Posts: 48
Website

Re: Failed to connect: Connection refused [Clementine]

I don't use jack, but according to the terminal output it is needed by gst and gstreamer so I can't just uninstall it.

About setting gstreamer to use alsa, I think this is my configuration, but just in case, I configured Clementine to use all the available options to produce sound. None of them worked.

I just installed Amarok and everything worked out of the box. If no one is giving me more light about it, I guess I'll just have to let it be.

Thank you V1del for your help.

Offline

#8 2014-09-27 11:36:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,645

Re: Failed to connect: Connection refused [Clementine]

I posted a wiki link on how to reset your gstreamer0.10 configuration to use another device, yeah jack as a package is going to be installed, but you can reset gstreamer.0.10 config to use alsa instead of jack. Amarok works because it uses gstreamer1 (or vlc depending on phonon) which have a different configuration.

Offline

#9 2014-09-27 16:22:58

babel
Member
From: Mexico City
Registered: 2012-05-21
Posts: 48
Website

Re: Failed to connect: Connection refused [Clementine]

I tried as the wiki suggested and still nothing. Now I'm using Amarok and I'm good. Thank you.

Offline

Board footer

Powered by FluxBB