From ville.salmela@csc.fi  Wed Dec 11 13:44:47 2019
Received: (at submit) by bugs.x2go.org; 11 Dec 2019 12:44:49 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=3.0 tests=BAYES_20,HTML_MESSAGE,
	SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2
Received: from smtp1.csc.fi (smtp1.csc.fi [IPv6:2001:708:10:6004::14])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 427355DAEA
	for <submit@bugs.x2go.org>; Wed, 11 Dec 2019 13:44:47 +0100 (CET)
Received: from tapir.csc.fi (tapir.csc.fi [86.50.27.201])
	by smtp1.csc.fi (8.14.4/8.14.4/CSC) with ESMTP id xBBCikEB008533
	(version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO)
	for <submit@bugs.x2go.org>; Wed, 11 Dec 2019 14:44:46 +0200
Received: from tapir.csc.fi (localhost [127.0.0.1])
	by tapir.csc.fi (Postfix) with ESMTPS id 15CEE9FE89
	for <submit@bugs.x2go.org>; Wed, 11 Dec 2019 14:44:46 +0200 (EET)
Received: from localhost (localhost [127.0.0.1])
	by tapir.csc.fi (Postfix) with ESMTP id 0A6949FBF3
	for <submit@bugs.x2go.org>; Wed, 11 Dec 2019 14:44:46 +0200 (EET)
Received: from tapir.csc.fi ([127.0.0.1])
	by localhost (tapir.csc.fi [127.0.0.1]) (amavisd-new, port 10026)
	with ESMTP id G_FUrDf4mbDg for <submit@bugs.x2go.org>;
	Wed, 11 Dec 2019 14:44:45 +0200 (EET)
Received: from zebra.csc.fi (zebra.csc.fi [86.50.27.101])
	by tapir.csc.fi (Postfix) with ESMTP id F03459FBE1
	for <submit@bugs.x2go.org>; Wed, 11 Dec 2019 14:44:45 +0200 (EET)
Date: Wed, 11 Dec 2019 14:44:45 +0200 (EET)
From: Ville Salmela <ville.salmela@csc.fi>
To: submit@bugs.x2go.org
Message-ID: <763250959.5969855.1576068285942.JavaMail.zimbra@csc.fi>
Subject: pulseaudio messages filling server logs
MIME-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="=_8c385062-a04d-44ed-b539-882ece695d13"
X-Originating-IP: [193.166.1.131]
X-Mailer: Zimbra 8.8.15_GA_3888 (ZimbraWebClient - FF68 (Linux)/8.8.15_GA_3890)
Thread-Index: /+tjJt/3Bo2G31oopU6nMobZnZtf2g==
Thread-Topic: pulseaudio messages filling server logs
X-CanIt-Geo: ip=86.50.27.201; country=FI; latitude=60.1708; longitude=24.9375; http://maps.google.com/maps?q=60.1708,24.9375&z=6
X-CanItPRO-Stream: 00_Opt_Out (inherits from default)
X-Scanned-By: CanIt (www . roaringpenguin . com) on 86.50.27.145

--=_8c385062-a04d-44ed-b539-882ece695d13
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Package: x2goclient 
Version: 4.1.1.1 

x2goserver logs are filled with these: 
Dec 11 12:05:08 server pulseaudio[25146]: [pulseaudio] main.c: User-configured server at localhost:48283, refusing to start/autospawn. 
Dec 11 12:05:08 server pulseaudio[25148]: [pulseaudio] main.c: User-configured server at localhost:48283, refusing to start/autospawn. 
Dec 11 12:05:10 server pulseaudio[25156]: [pulseaudio] main.c: User-configured server at localhost:48283, refusing to start/autospawn. 
Dec 11 12:05:10 server pulseaudio[25158]: [pulseaudio] main.c: User-configured server at localhost:48283, refusing to start/autospawn. 
Dec 11 12:05:12 server pulseaudio[25162]: [pulseaudio] main.c: User-configured server at localhost:48283, refusing to start/autospawn. 
Dec 11 12:05:12 server pulseaudio[25164]: [pulseaudio] main.c: User-configured server at localhost:48283, refusing to start/autospawn. 
Dec 11 12:05:14 server pulseaudio[25172]: [pulseaudio] main.c: User-configured server at localhost:48283, refusing to start/autospawn. 
Dec 11 12:05:14 server pulseaudio[25174]: [pulseaudio] main.c: User-configured server at localhost:48283, refusing to start/autospawn. 
Dec 11 12:05:16 server pulseaudio[25178]: [pulseaudio] main.c: User-configured server at localhost:48283, refusing to start/autospawn. 
Dec 11 12:05:16 server pulseaudio[25180]: [pulseaudio] main.c: User-configured server at localhost:48283, refusing to start/autospawn. 
Dec 11 12:05:19 server pulseaudio[25183]: [pulseaudio] main.c: User-configured server at localhost:48283, refusing to start/autospawn. 
Dec 11 12:05:19 server pulseaudio[25185]: [pulseaudio] main.c: User-configured server at localhost:48283, refusing to start/autospawn. 

ssh is using ssh pipe to connect to the pulseaudio server of the client. When a session is disconnected this pipe is cut and apps using pulseaudio clients are trying respawn the pulseaudio found in x2goserver which they should not do. The following patch tells them not to try that and the issue is fixed. 

--- 1/x2goclient-4.1.1.1/src/onmainwindow.cpp 2018-02-15 22:42:31.000000000 +0200 
+++ 2/x2goclient-4.1.1.1/src/onmainwindow.cpp 2019-12-11 14:16:27.000000000 +0200 
@@ -5674,8 +5674,13 @@ 
"/.pulse-cookie"+ 
"\" >> \"${HOME}/.x2go/C-"+ 
resumingSession.sessionId+ 
+ "/.pulse-client.conf\"" 
+ ";echo \"autospawn=no\" >> " 
+ "\"${HOME}/.x2go/C-"+ 
+ resumingSession.sessionId+ 
"/.pulse-client.conf\""; 

+ 
sshConnection->executeCommand (scmd); 

bool sysPulse=false; 


--=_8c385062-a04d-44ed-b539-882ece695d13
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<html><body><div style=3D"font-family: arial, helvetica, sans-serif; font-s=
ize: 10pt; color: #000000"><div>Package: x2goclient<br data-mce-bogus=3D"1"=
></div><div>Version: 4.1.1.1<br data-mce-bogus=3D"1"></div><div><br data-mc=
e-bogus=3D"1"></div><div>x2goserver logs are filled with these:<br>Dec 11 1=
2:05:08 server pulseaudio[25146]: [pulseaudio] main.c: User-configured serv=
er at localhost:48283, refusing to start/autospawn.<br>Dec 11 12:05:08 serv=
er pulseaudio[25148]: [pulseaudio] main.c: User-configured server at localh=
ost:48283, refusing to start/autospawn.<br>Dec 11 12:05:10 server pulseaudi=
o[25156]: [pulseaudio] main.c: User-configured server at localhost:48283, r=
efusing to start/autospawn.<br>Dec 11 12:05:10 server pulseaudio[25158]: [p=
ulseaudio] main.c: User-configured server at localhost:48283, refusing to s=
tart/autospawn.<br>Dec 11 12:05:12 server pulseaudio[25162]: [pulseaudio] m=
ain.c: User-configured server at localhost:48283, refusing to start/autospa=
wn.<br>Dec 11 12:05:12 server pulseaudio[25164]: [pulseaudio] main.c: User-=
configured server at localhost:48283, refusing to start/autospawn.<br>Dec 1=
1 12:05:14 server pulseaudio[25172]: [pulseaudio] main.c: User-configured s=
erver at localhost:48283, refusing to start/autospawn.<br>Dec 11 12:05:14 s=
erver pulseaudio[25174]: [pulseaudio] main.c: User-configured server at loc=
alhost:48283, refusing to start/autospawn.<br>Dec 11 12:05:16 server pulsea=
udio[25178]: [pulseaudio] main.c: User-configured server at localhost:48283=
, refusing to start/autospawn.<br>Dec 11 12:05:16 server pulseaudio[25180]:=
 [pulseaudio] main.c: User-configured server at localhost:48283, refusing t=
o start/autospawn.<br>Dec 11 12:05:19 server pulseaudio[25183]: [pulseaudio=
] main.c: User-configured server at localhost:48283, refusing to start/auto=
spawn.<br>Dec 11 12:05:19 server pulseaudio[25185]: [pulseaudio] main.c: Us=
er-configured server at localhost:48283, refusing to start/autospawn.<br><b=
r data-mce-bogus=3D"1"></div><div>ssh is using ssh pipe to connect to the p=
ulseaudio server of the client. When a session is disconnected this pipe is=
 cut and apps using pulseaudio clients are trying&nbsp; respawn the pulseau=
dio found in x2goserver which they should not do. The following patch tells=
 them not to try that and the issue is fixed.<br data-mce-bogus=3D"1"></div=
><div><br data-mce-bogus=3D"1"></div><div>--- 1/x2goclient-4.1.1.1/src/onma=
inwindow.cpp&nbsp;&nbsp;&nbsp; 2018-02-15 22:42:31.000000000 +0200<br>+++ 2=
/x2goclient-4.1.1.1/src/onmainwindow.cpp&nbsp;&nbsp;&nbsp; 2019-12-11 14:16=
:27.000000000 +0200<br>@@ -5674,8 +5674,13 @@<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sessionId+<=
br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "/.pulse-client.conf=
\"";<br>&nbsp;<br>+<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp; sshConnection-&gt;executeCommand (scmd);<br>&nbsp;<br>=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bo=
ol sysPulse=3Dfalse;<br><br data-mce-bogus=3D"1"></div></div></body></html>
--=_8c385062-a04d-44ed-b539-882ece695d13--

