pulseaudio-dlna DBUS error

pulseaudio-dlna DBUS error

Postby pmithrandir » Jun 25th, '16, 23:57

Hello,

I'm trying to find a way to send my sound over dlna to my rpi. it's the one who got the connection to the speakers.

I found pulseaudio-dlna which seems promising. (automaticaly adding dlna "output" to pulse audio control panel)

sadly, when I'm starting it, as normal user, I get the following message :
Code: Select all
Échec : Échec lors de l'initialisation du module
06-26 00:47:34 pulseaudio_dlna.pulseaudio                     CRITICAL PulseAudio seems not to be running or PulseAudio dbus module could not be loaded. The application cannot work properly!


It seems that to make it works, we need to be able to execute the following command :
Code: Select all
pactl load-module module-dbus-protocol

which return in my case
Échec : Échec lors de l'initialisation du module


or "20" If I unload the module before.

Would you know what I could do ?
Pierre
Last edited by pmithrandir on Jul 13th, '16, 06:12, edited 2 times in total.
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 442
Joined: May 4th, '11, 19:30

Re: pulseaudio-dlna DBUS error

Postby doktor5000 » Jun 26th, '16, 11:11

pmithrandir wrote:It seems that to make it works, we need to be able to execute the following command :
Code: Select all
pactl load-module module-dbus-protocol

which return in my case
Échec : Échec lors de l'initialisation du module


or "20" If I unload the module before.

Did you also load the module as normal user? And can you please show the output as normal user of
Code: Select all
set | grep -i dbus
ps -ef | grep -i dbus
LC_ALL=C pactl load-module module-dbus-protocol
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: pulseaudio-dlna DBUS error

Postby doktor5000 » Jun 26th, '16, 11:15

FWIW, seems this also applies: https://bugs.mageia.org/show_bug.cgi?id=14709
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: pulseaudio-dlna DBUS error

Postby pmithrandir » Jun 26th, '16, 12:47

Hello,

I applied all your command line, as normal user. (same as I did for pulseaudio before)
Code: Select all
bash-4.3$ set | grep -i dbus
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-kOjkXy7nxj,guid=5f876fae4e5b3f6cc34f446657684cea
KONSOLE_DBUS_SERVICE=:1.368
KONSOLE_DBUS_SESSION=/Sessions/1
KONSOLE_DBUS_WINDOW=/Windows/1
bash-4.3$ ps -ef | grep -i dbus
message+   737     1  0 juin20 ?       00:00:11 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
pmithra+  1230     1  0 juin20 ?       00:00:00 /usr/bin/dbus-launch --exit-with-session --sh-syntax
pmithra+  1273     1  0 juin20 ?       00:00:04 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
pmithra+  2655  2651  0 juin20 ?       00:00:00 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
root      3012     1  0 juin25 ?       00:00:00 dbus-launch --autolaunch=f2de45a5712c447eb3153fb80d39f4d8 --binary-syntax --close-stderr
root      3022     1  0 juin25 ?       00:00:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
pmithra+  7683  7676  0 13:44 pts/1    00:00:00 grep -i dbus
bash-4.3$ LC_ALL=C pactl load-module module-dbus-protocol
Failure: Module initialization failed


Do you find something relevant ?
I found this bug also, but as it was from 2014 I thought it might be irrelevant now.
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 442
Joined: May 4th, '11, 19:30

Re: pulseaudio-dlna DBUS error

Postby doktor5000 » Jun 26th, '16, 15:08

You may need to run pulseaudio from a terminal in verbose mode to get some more output why it can't load the module. See http://askubuntu.com/a/202533 for some more details how to do that,
and also try to rename/move away~/.pulse-cookie and ~/.pulse and also ~/.config/pulse and try after logging in and out again.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: pulseaudio-dlna DBUS error

Postby pmithrandir » Jun 26th, '16, 15:54

I'm still trying to kill pulseaudio... not so easy.

I added to /etc/pulse/client.conf these 2 lines, but without success.
Code: Select all
autospawn = no
daemon-binary = /bin/true


Still trying...
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 442
Joined: May 4th, '11, 19:30

Re: pulseaudio-dlna DBUS error

Postby doktor5000 » Jun 28th, '16, 22:31

What about
Code: Select all
systemctl --user stop pulseaudio
pulseaudio -k

as your regular user
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: pulseaudio-dlna DBUS error

Postby pmithrandir » Jun 29th, '16, 22:42

Hello,

I tried... without success
the command execute itself correctly, but pulseaudio is not killed.
I tried to combine both solution, but no success then also.

It's really strange...
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 442
Joined: May 4th, '11, 19:30

Re: pulseaudio-dlna DBUS error

Postby pmithrandir » Jul 2nd, '16, 15:23

Output of pulseaudio -vvvv command. Actually, it seems you don't need to kill pulseaudio
Code: Select all
bash-4.3$ pulseaudio -vvvv
I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) a échoué : Opération non permise
I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) a échoué : Opération non permise
D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.
D: [pulseaudio] core-util.c: RealtimeKit worked.
I: [pulseaudio] core-util.c: Successfully gained nice level -11.
I: [pulseaudio] main.c: Pulseaudio 5.0.0-6.mga5
D: [pulseaudio] main.c: Hôte de compilation : x86_64-mageia-linux-gnu
D: [pulseaudio] main.c: CFLAGS de compilation : -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC -Wall -W -Wextra -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -fno-common -fdiagnostics-show-option
D: [pulseaudio] main.c: Exécution sur l'hôte : Linux x86_64 4.4.13-desktop-1.mga5 #1 SMP Fri Jun 10 12:16:55 UTC 2016
D: [pulseaudio] main.c: 2 processeurs trouvés.
I: [pulseaudio] main.c: La taille de la page est de 4096 octets
D: [pulseaudio] main.c: Compilé avec la prise en charge Valgrind : non
D: [pulseaudio] main.c: Exécution en mode valgrind : no
D: [pulseaudio] main.c: Running in VM: no
D: [pulseaudio] main.c: Construction optimisée : oui
D: [pulseaudio] main.c: FASTPATH défini, seuls les messages d'erreur fastpath ont été désactivés.
I: [pulseaudio] main.c: L'ID de la machine est f2de45a5712c447eb3153fb80d39f4d8.
I: [pulseaudio] main.c: L'ID de la session est c1.
I: [pulseaudio] main.c: Utilisation du répertoire d'exécution /run/user/500/pulse.
I: [pulseaudio] main.c: Utilisation du répertoire d'état /home/pmithrandir/.config/pulse.
I: [pulseaudio] main.c: Utilisation du répertoire des modules /usr/lib64/pulse-5.0/modules.
I: [pulseaudio] main.c: Exécution en mode système : no
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: Échec de pa_pid_file_create().

Anything usefull ?
It's run as a daemon, but outside of that, I don't know what to get out of it. Neithr on how to resolv the first issue, getting access to dbus protocol for pulseaudio.

Thank you,
Pierre
Pierre
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 442
Joined: May 4th, '11, 19:30

Re: pulseaudio-dlna DBUS error

Postby doktor5000 » Jul 3rd, '16, 18:31

Is the dbus module maybe already loaded? What is the output of
Code: Select all
pacmd list-modules
after a clean boot ?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: pulseaudio-dlna DBUS error

Postby pmithrandir » Jul 6th, '16, 20:46

Hi,

I got that :
Code: Select all
24 module(s) loaded.
    index: 0
   name: <module-device-restore>
   argument: <>
   used: -1
   load once: yes
   properties:
      module.author = "Lennart Poettering"
      module.description = "Automatically restore the volume/mute state of devices"
      module.version = "5.0.0-6.mga5"
    index: 1
   name: <module-stream-restore>
   argument: <>
   used: -1
   load once: yes
   properties:
      module.author = "Lennart Poettering"
      module.description = "Automatically restore the volume/mute/device state of streams"
      module.version = "5.0.0-6.mga5"
    index: 2
   name: <module-card-restore>
   argument: <>
   used: -1
   load once: yes
   properties:
      module.author = "Lennart Poettering"
      module.description = "Automatically restore profile of cards"
      module.version = "5.0.0-6.mga5"
    index: 3
   name: <module-augment-properties>
   argument: <>
   used: -1
   load once: yes
   properties:
      module.author = "Lennart Poettering"
      module.description = "Augment the property sets of streams with additional static information"
      module.version = "5.0.0-6.mga5"
    index: 4
   name: <module-switch-on-port-available>
   argument: <>
   used: -1
   load once: no
   properties:
      
    index: 5
   name: <module-udev-detect>
   argument: <>
   used: -1
   load once: yes
   properties:
      module.author = "Lennart Poettering"
      module.description = "Detect available audio hardware and load matching drivers"
      module.version = "5.0.0-6.mga5"
    index: 6
   name: <module-alsa-card>
   argument: <device_id="0" name="pci-0000_00_1b.0" card_name="alsa_card.pci-0000_00_1b.0" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1">
   used: 0
   load once: no
   properties:
      module.author = "Lennart Poettering"
      module.description = "ALSA Card"
      module.version = "5.0.0-6.mga5"
    index: 7
   name: <module-esound-protocol-unix>
   argument: <>
   used: -1
   load once: no
   properties:
      module.author = "Lennart Poettering"
      module.description = "ESOUND protocol (UNIX sockets)"
      module.version = "5.0.0-6.mga5"
    index: 8
   name: <module-native-protocol-unix>
   argument: <>
   used: -1
   load once: no
   properties:
      module.author = "Lennart Poettering"
      module.description = "Native protocol (UNIX sockets)"
      module.version = "5.0.0-6.mga5"
    index: 9
   name: <module-gconf>
   argument: <>
   used: -1
   load once: yes
   properties:
      module.author = "Lennart Poettering"
      module.description = "GConf Adapter"
      module.version = "5.0.0-6.mga5"
    index: 10
   name: <module-default-device-restore>
   argument: <>
   used: -1
   load once: yes
   properties:
      module.author = "Lennart Poettering"
      module.description = "Automatically restore the default sink and source"
      module.version = "5.0.0-6.mga5"
    index: 11
   name: <module-rescue-streams>
   argument: <>
   used: -1
   load once: yes
   properties:
      module.author = "Lennart Poettering"
      module.description = "When a sink/source is removed, try to move its streams to the default sink/source"
      module.version = "5.0.0-6.mga5"
    index: 12
   name: <module-always-sink>
   argument: <>
   used: -1
   load once: yes
   properties:
      module.author = "Colin Guthrie"
      module.description = "Garde toujours au moins une destination même si elle est vide"
      module.version = "5.0.0-6.mga5"
    index: 13
   name: <module-intended-roles>
   argument: <>
   used: -1
   load once: yes
   properties:
      module.author = "Lennart Poettering"
      module.description = "Automatically set device of streams based on intended roles of devices"
      module.version = "5.0.0-6.mga5"
    index: 14
   name: <module-suspend-on-idle>
   argument: <>
   used: -1
   load once: yes
   properties:
      module.author = "Lennart Poettering"
      module.description = "When a sink/source is idle for too long, suspend it"
      module.version = "5.0.0-6.mga5"
    index: 15
   name: <module-systemd-login>
   argument: <>
   used: -1
   load once: yes
   properties:
      module.author = "Lennart Poettering"
      module.description = "Create a client for each login session of this user"
      module.version = "5.0.0-6.mga5"
    index: 16
   name: <module-position-event-sounds>
   argument: <>
   used: -1
   load once: yes
   properties:
      module.author = "Lennart Poettering"
      module.description = "Position event sounds between L and R depending on the position on screen of the widget triggering them."
      module.version = "5.0.0-6.mga5"
    index: 17
   name: <module-role-cork>
   argument: <>
   used: -1
   load once: yes
   properties:
      module.author = "Lennart Poettering"
      module.description = "Mute & cork streams with certain roles while others exist"
      module.version = "5.0.0-6.mga5"
    index: 18
   name: <module-filter-heuristics>
   argument: <>
   used: -1
   load once: yes
   properties:
      module.author = "Colin Guthrie"
      module.description = "Detect when various filters are desirable"
      module.version = "5.0.0-6.mga5"
    index: 19
   name: <module-filter-apply>
   argument: <>
   used: -1
   load once: yes
   properties:
      module.author = "Colin Guthrie"
      module.description = "Load filter sinks automatically when needed"
      module.version = "5.0.0-6.mga5"
    index: 20
   name: <module-x11-publish>
   argument: <display=:0>
   used: -1
   load once: no
   properties:
      module.author = "Lennart Poettering"
      module.description = "X11 credential publisher"
      module.version = "5.0.0-6.mga5"
    index: 21
   name: <module-device-manager>
   argument: <do_routing=1>
   used: -1
   load once: yes
   properties:
      module.author = "Colin Guthrie"
      module.description = "Keep track of devices (and their descriptions) both past and present and prioritise by role"
      module.version = "5.0.0-6.mga5"
    index: 22
   name: <module-x11-xsmp>
   argument: <display=:0 session_manager=local/portable_pierre:@/tmp/.ICE-unix/1418,unix/portable_pierre:/tmp/.ICE-unix/1418>
   used: -1
   load once: no
   properties:
      module.author = "Lennart Poettering"
      module.description = "X11 session management"
      module.version = "5.0.0-6.mga5"
    index: 23
   name: <module-cli-protocol-unix>
   argument: <>
   used: -1
   load once: no
   properties:
      module.author = "Lennart Poettering"
      module.description = "Command line interface protocol (UNIX sockets)"
      module.version = "5.0.0-6.mga5"


dbus doesn't seem to be present.

Pierre
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 442
Joined: May 4th, '11, 19:30

Re: pulseaudio-dlna DBUS error

Postby pmithrandir » Jul 6th, '16, 20:49

And after executing the pactl load-module dbus, I manage to load it :
Code: Select all
    index: 21
        name: <module-dbus-protocol>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Tanu Kaskinen"
                module.description = "D-Bus interface"
                module.version = "5.0.0-6.mga5"

Seems to load, but still not accessible...
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 442
Joined: May 4th, '11, 19:30

Re: pulseaudio-dlna DBUS error

Postby pmithrandir » Jul 6th, '16, 21:38

Hello,

I'm looking the code : https://github.com/masmu/pulseaudio-dln ... dio.py#L76

It seems that it's looking for /run/pulse/dbus-socket

It's not present in mageia, but maybe I can create a link. Would you know where I could find this link ?

Pierre
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 442
Joined: May 4th, '11, 19:30

Re: pulseaudio-dlna DBUS error

Postby pmithrandir » Jul 6th, '16, 21:45

Found it !!!

you have to run this 2 queries as root :
Code: Select all
mkdir /run/pulse
ln -s /run/user/500/pulse/dbus-socket /run/pulse/dbus-socket


The url used by the software is not present in mageia... a small ln and it's good.
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 442
Joined: May 4th, '11, 19:30

Re: pulseaudio-dlna DBUS error

Postby pmithrandir » Jul 6th, '16, 23:07

ok, so 2 more informations :

- this link is removed when I reboot, I have to find a way to automatize it's creation.
- the system display OSMC(my dlna device) but when it tries to send flow, even if no error are displayed, the music doesn't start.

More fun to discover that it seems...

pierre
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 442
Joined: May 4th, '11, 19:30

Re: pulseaudio-dlna DBUS error

Postby pmithrandir » Jul 13th, '16, 05:25

Hello,

It's working now..
No idea why it was failing before. I rebooted my RPI and now everything seems fine.

I have to find a way to link the /run file at startup + to start the pulseaudio-dlna server and everything will be working at each boot I expect.

Thank you for the help.
Pierre
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 442
Joined: May 4th, '11, 19:30

Re: pulseaudio-dlna DBUS error

Postby pmithrandir » Jul 13th, '16, 06:14

Hello,

Last question would be...

how can I run this 2 commands when starting...
They are not services, and I'm not familiar with this part of linux.
I think they must run as root, at least the mkdir must.

Code: Select all
mkdir /run/pulse
ln -s /run/user/$UID/pulse/dbus-socket /run/pulse/dbus-socket


Same question to run as user pulseaudio-dlna at each startup but as user this time.

Regards,
Pierre
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 442
Joined: May 4th, '11, 19:30

Re: pulseaudio-dlna DBUS error

Postby doktor5000 » Jul 13th, '16, 23:25

You could add it as a droplet via systemd tmpfiles that control which (temporary) directories are automatically created.
See e.g. https://www.freedesktop.org/software/sy ... les.d.html and take a look at the existing ones as an example and then adapt.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Sound

Who is online

Users browsing this forum: No registered users and 1 guest