Bug 14163 - из иксовой консоли сервис не стартует
: из иксовой консоли сервис не стартует
Status: CLOSED WORKSFORME
: Sisyphus
(All bugs in Sisyphus/pulseaudio)
: unstable
: all Linux
: P2 normal
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2008-01-25 18:20 by
Modified: 2010-10-13 22:55 (History)


Attachments
конфиг pulseaudio для работы по сети (3.42 KB, text/plain)
2008-01-25 20:02, Boris Savelev
no flags Details


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2008-01-25 18:20:38
# service pulseaudio restart
Stopping pulseaudio service: [ DONE ]
Starting pulseaudio service: X11 connection rejected because of wrong
authentication.
main.c: read() failed: No such file or directory
main.c: daemon startup failed.

переключаюсь в обычную консоль по ctrl+alt+f1 делаю 
#service pulseaudio restart

все рестартует прекрасно
------- Comment #1 From 2008-01-25 18:55:35 -------
cp /etc/pulse/default.pa ~/.xsession.d/pulseaudio
chmod +x ~/.xsession.d/pulseaudio
системный сервис Вам скорее всего не нужен.
------- Comment #2 From 2008-01-25 18:58:00 -------
речь именно о системном сервисе
------- Comment #3 From 2008-01-25 19:20:30 -------
ну так unset DISPLAY, если нужно непременно из иксовой сессии
перестартовывать.
------- Comment #4 From 2008-01-25 19:21:25 -------
заодно расскажите, откуда у рута $DISPLAY появился.
------- Comment #5 From 2008-01-25 19:26:08 -------
> unset DISPLAY
так может это в скрипте делать?

> заодно расскажите, откуда у рута $DISPLAY появился.
env_keep += "DISPLAY"
------- Comment #6 From 2008-01-25 19:29:19 -------
$ grep -v '^\(#\|$\)' /etc/pulse/default.pa |head -1
.nofail

В любом случае, причина не в наличии $DISPLAY
------- Comment #7 From 2008-01-25 19:33:08 -------
покажите вывод (от рута)
pulseaudio --system --log-level 4
------- Comment #8 From 2008-01-25 19:37:07 -------
да нет. дело как раз в DISPLAY
после unset все нормально
# echo $DISPLAY
localhost:10.0
# service pulseaudio restart
Stopping pulseaudio service: [ DONE ]
Starting pulseaudio service: X11 connection rejected because of wrong
authentication.
main.c: read() failed: No such file or directory
main.c: daemon startup failed. [FAILED]
[root@windsor ~]# unset DISPLAY
[root@windsor ~]# service pulseaudio restart
Service pulseaudio is not running. [PASSED]                                    
                                                       
Starting pulseaudio service: [ DONE ]


(In reply to comment #7)
> покажите вывод (от рута)
> pulseaudio --system --log-level 4
> 

остановил сервис, убрал DISPLAY:
pulseaudio --system --log-level 4
main.c: Found user 'pulse' (UID 121) and group 'pulse' (GID 58).
main.c: Successfully dropped root privileges.
alsa-util.c: Using mixer control "PCM".
sink.c: created 0 "alsa_output.hw_0" with sample spec "s16le 2ch 44100Hz"
source.c: created 0 "alsa_output.hw_0.monitor" with sample spec "s16le 2ch 44100Hz"
module-alsa-sink.c: using 8 fragments of size 1408 bytes.
module.c: Loaded "module-alsa-sink" (index: #0; argument: "device=hw:0").
alsa-util.c: Using mixer control "Capture".
source.c: created 1 "alsa_input.hw_0" with sample spec "s16le 2ch 44100Hz"
module-alsa-source.c: using 12 fragments of size 1408 bytes.
module.c: Loaded "module-alsa-source" (index: #1; argument: "device=hw:0").
protocol-native.c: Allowing access to group 'audio'.
protocol-native.c: loading cookie from disk.
module.c: Loaded "module-native-protocol-unix" (index: #2; argument: "").
socket-server.c: socket(PF_INET6): Address family not supported by protocol
module.c: Loaded "module-esound-protocol-tcp" (index: #3; argument:
"auth-ip-acl=127.0.0.1;192.168.0.0/16").
socket-server.c: socket(PF_INET6): Address family not supported by protocol
protocol-native.c: Allowing access to group 'audio'.
protocol-native.c: using already loaded auth cookie.
module.c: Loaded "module-native-protocol-tcp" (index: #4; argument:
"auth-ip-acl=127.0.0.1;192.168.0.0/16").
module-zeroconf-publish.c: avahi_entry_group_add_service_strlst(): Invalid
service name
module.c: Loaded "module-zeroconf-publish" (index: #5; argument: "").
module.c: Loaded "module-volume-restore" (index: #6; argument: "").
module.c: Loaded "module-rescue-streams" (index: #7; argument: "").
x11wrap.c: XOpenDisplay() failed
module.c: Failed to load  module "module-x11-publish" (argument: ""):
initialization failed.
module-gconf.c: Unable to read or parse data from client.
module.c: Failed to load  module "module-gconf" (argument: ""): initialization
failed.
main.c: Module load failed.
main.c: Module load failed.
main.c: Daemon startup complete.
------- Comment #9 From 2008-01-25 19:57:17 -------
если я не ошибаюсь, это недефолтный конфиг ?
anyway, у меня с установленным DISPLAY рестартует.
------- Comment #10 From 2008-01-25 19:58:08 -------
приложите default.pa, попытаюсь понять, в чём дело.
------- Comment #11 From 2008-01-25 20:02:30 -------
Created an attachment (id=2395) [details]
конфиг pulseaudio для работы по сети
------- Comment #12 From 2008-01-25 20:03:38 -------
Так же лог при ручном запуске с установленным DISPLAY
# echo $DISPLAY
localhost:10.0
# pulseaudio --system --log-level 4
main.c: Found user 'pulse' (UID 121) and group 'pulse' (GID 58).
main.c: Successfully dropped root privileges.
pid.c: stale PID file, overwriting.
alsa-util.c: Using mixer control "PCM".
sink.c: created 0 "alsa_output.hw_0" with sample spec "s16le 2ch 44100Hz"
source.c: created 0 "alsa_output.hw_0.monitor" with sample spec "s16le 2ch
44100Hz"
module-alsa-sink.c: using 8 fragments of size 1408 bytes.
module.c: Loaded "module-alsa-sink" (index: #0; argument: "device=hw:0").
alsa-util.c: Using mixer control "Capture".
source.c: created 1 "alsa_input.hw_0" with sample spec "s16le 2ch 44100Hz"
module-alsa-source.c: using 12 fragments of size 1408 bytes.
module.c: Loaded "module-alsa-source" (index: #1; argument: "device=hw:0").
protocol-native.c: Allowing access to group 'audio'.
protocol-native.c: loading cookie from disk.
module.c: Loaded "module-native-protocol-unix" (index: #2; argument: "").
socket-server.c: socket(PF_INET6): Address family not supported by protocol
module.c: Loaded "module-esound-protocol-tcp" (index: #3; argument:
"auth-ip-acl=127.0.0.1;192.168.0.0/16").
socket-server.c: socket(PF_INET6): Address family not supported by protocol
protocol-native.c: Allowing access to group 'audio'.
protocol-native.c: using already loaded auth cookie.
module.c: Loaded "module-native-protocol-tcp" (index: #4; argument:
"auth-ip-acl=127.0.0.1;192.168.0.0/16").
module-zeroconf-publish.c: avahi_entry_group_add_service_strlst(): Invalid
service name
module.c: Loaded "module-zeroconf-publish" (index: #5; argument: "").
module.c: Loaded "module-volume-restore" (index: #6; argument: "").
module.c: Loaded "module-rescue-streams" (index: #7; argument: "").
X11 connection rejected because of wrong authentication.
X connection to localhost:10.0 broken (explicit kill or server shutdown).
------- Comment #13 From 2008-01-25 20:30:26 -------
с вашим конфигом, с заходом через ssh -X root@otherhost -- не повторяется.
------- Comment #14 From 2008-01-25 20:40:08 -------
проверил еще раз на другой машине. конфиг дефолтный
вариант 1:
$ su -
# service pulseaudio restart
все нормально

вариант 2:
$ ssh -X user@localhost
$ su -
# service pulseaudio restart
ошибка.
------- Comment #15 From 2010-10-13 22:55:59 -------
значит, так делать не следует.