Le 07/11/2021 à 22:45, Ulrich Sibiller a écrit :
On Sun, Nov 7, 2021 at 10:09 PM Papoteur <yves.brungard_mag...@gadz.org> wrote:
I'm trying to repair the packaging of x2go in Mageia.

It was functional in Mageia 7, but this is no more the case in Mageia 8
or cauldron (development version).

I use also nxagent-3.5.99.25-1.mga8 and nxproxy-3.5.99.25-1.mga8
packaged for Mageia 8. Thus I have linked xgoagent  to
/usr/lib64/nx/bin/nxagent
Why aren't you using the current 3.5.99.26?

Using pyhoca, I can establish the session with the VM, either with the
main user or with a test user, using password. But when I try to launch
the desktop or a single application like Terminal, this fails. In the
journal of the server, i get:

   sshd[96864]: Accepted password for test from 192.168.1.14 port 35740 ssh2
   systemd-logind[683]: [🡕] New session c25 of user test.
   systemd[1]: Started Session c25 of user test.
   sshd[96864]: pam_unix(sshd:session): session opened for user test by
(uid=0)
   /usr/local/bin/x2gostartagent[97691]: successfully started X2Go Agent
session with ID test-93-1636213441_stDLXQt_dp24
   sshd[96871]: error: connect_to 127.0.0.1 port 51346: failed.
   sshd[96871]: error: connect_to 127.0.0.1 port 51346: failed.
First, as a test, disable printing, sound and file sharing. This will
reduce the number of things that can go wrong.

Then, on the server side you will find the log of the
nxagent/x2goagent in /tmp/.x2go-<username>/C-*/session.log. What do
you see there?

I have now build the package x2goserver with release 3.5.99.26.

I caught the logs of the session:

running as X2Go Agent

NXAGENT - Version 3.5.99.26

Copyright (c) [...]

Info: Agent running with pid '6217'.
Session: Starting session at 'Mon Nov  8 19:00:56 2021'.

Not very useful.

I join an extract from the journal after establishing the session and when trying to start the desktop session.


                                                                                
          
nov. 08 21:20:18 VMm8 x2golistsessions[64213]: executing external command 
,,x2gopath'' with args: libexec
nov. 08 21:20:18 VMm8 x2golistsessions[64213]: executing external command 
,,x2gopath'' with args: libexec
nov. 08 21:20:18 VMm8 x2golistsessions[64213]: x2golistsessions has been called 
with no option
nov. 08 21:20:18 VMm8 x2golistsessions[64213]: executing external command 
,,/usr/lib64/x2go/libx2go-server-db-sqlite3-wrapper'' with args: 
listsessions,VMm8                                                            
nov. 08 21:20:18 VMm8 x2golistshadowsessions[64227]: executing external command 
,,x2gopath'' with args: libexec                                                 
                                                        
nov. 08 21:20:18 VMm8 x2golistshadowsessions[64227]: x2golistshadowsessions has 
been called with no option
nov. 08 21:20:18 VMm8 x2golistshadowsessions[64227]: executing external command 
,,/usr/lib64/x2go/libx2go-server-db-sqlite3-wrapper'' with args: 
listshadowsessions,VMm8                                                
nov. 08 21:20:19 VMm8 x2golistmounts[64236]: executing external command 
,,x2gopath'' with args: libexec
nov. 08 21:20:19 VMm8 x2golistmounts[64236]: executing external command 
,,/usr/lib64/x2go/libx2go-server-db-sqlite3-wrapper'' with args: 
getmounts,test-59-1636397571_stDLXQt_dp24                                      
nov. 08 21:20:19 VMm8 x2golistmounts[64236]: db_getmounts called, session ID: 
test-59-1636397571_stDLXQt_dp24; return value:                                  
                                                          
nov. 08 21:20:19 VMm8 x2golistmounts[64245]: executing external command 
,,x2gopath'' with args: libexec
nov. 08 21:20:19 VMm8 x2golistmounts[64245]: executing external command 
,,/usr/lib64/x2go/libx2go-server-db-sqlite3-wrapper'' with args: 
getmounts,test-60-1636402364_stDLXQt_dp24                                      
nov. 08 21:20:19 VMm8 x2golistmounts[64245]: db_getmounts called, session ID: 
test-60-1636402364_stDLXQt_dp24; return value:                                  
                                                          
nov. 08 21:20:20 VMm8 x2golistsessions[64260]: executing external command 
,,x2gopath'' with args: libexec
nov. 08 21:20:20 VMm8 x2golistsessions[64260]: executing external command 
,,x2gopath'' with args: libexec
nov. 08 21:20:20 VMm8 x2golistsessions[64260]: x2golistsessions has been called 
with no option
nov. 08 21:20:20 VMm8 x2golistsessions[64260]: executing external command 
,,/usr/lib64/x2go/libx2go-server-db-sqlite3-wrapper'' with args: 
listsessions,VMm8                                                            
nov. 08 21:20:20 VMm8 /usr/bin/x2gostartagent[64291]: x2gostartagent called 
with options: 1024x768 wan 16m-jpeg-9 unix-kde-depth_24 us auto 1 D LXQt both
nov. 08 21:20:20 VMm8 /usr/lib64/x2go/x2gogetrandomport[64300]: 
x2gogetrandomport called with options:
nov. 08 21:20:20 VMm8 /usr/lib64/x2go/x2gogetrandomport[64303]: Full SSH port 
randomization requested.
nov. 08 21:20:20 VMm8 x2golistshadowsessions[64301]: executing external command 
,,x2gopath'' with args: libexec                                                 
                                                        
nov. 08 21:20:20 VMm8 x2golistshadowsessions[64301]: x2golistshadowsessions has 
been called with no option
nov. 08 21:20:20 VMm8 x2golistshadowsessions[64301]: executing external command 
,,/usr/lib64/x2go/libx2go-server-db-sqlite3-wrapper'' with args: 
listshadowsessions,VMm8                                                
nov. 08 21:20:20 VMm8 /usr/bin/x2gostartagent[64319]: client announced itself 
as "192.168.1.130"
nov. 08 21:20:21 VMm8 /usr/bin/x2gosessionlimit[64321]: x2gosessionlimit has 
been called
nov. 08 21:20:21 VMm8 /usr/bin/x2gosessionlimit[64321]: executing external 
command ,,x2golistsessions'' with args: --all-servers                           
                                                             
nov. 08 21:20:21 VMm8 x2golistsessions[64322]: executing external command 
,,x2gopath'' with args: libexec
nov. 08 21:20:21 VMm8 x2golistsessions[64322]: executing external command 
,,x2gopath'' with args: libexec
nov. 08 21:20:21 VMm8 x2golistsessions[64322]: x2golistsessions has been called 
with options: --all-servers
nov. 08 21:20:21 VMm8 x2golistsessions[64322]: executing external command 
,,/usr/lib64/x2go/libx2go-server-db-sqlite3-wrapper'' with args: 
listsessions_all                                                             
nov. 08 21:20:21 VMm8 x2gogetdisplays[64349]: executing external command 
,,x2gopath'' with args: libexec
nov. 08 21:20:21 VMm8 x2gogetdisplays[64349]: executing external command 
,,/usr/lib64/x2go/libx2go-server-db-sqlite3-wrapper'' with args: 
getdisplays,VMm8                                                              
nov. 08 21:20:21 VMm8 x2gogetdisplays[64349]: db_getdisplays called, server: 
VMm8; return value: |50| |51| |52| |53| |54| |55| |56| |57| |58| |59| |60|      
                                                           
nov. 08 21:20:21 VMm8 x2gogetports[64360]: executing external command 
,,x2gopath'' with args: libexec
nov. 08 21:20:21 VMm8 x2gogetports[64360]: executing external command 
,,/usr/lib64/x2go/libx2go-server-db-sqlite3-wrapper'' with args: getports,VMm8  
                                                                  
nov. 08 21:20:21 VMm8 x2gogetports[64360]: db_getports called, server: VMm8; 
return value: |35577| |35578| |35579| |39581| |39582| |39583| |43103| |43104| 
|43105| |44402| |44403| |44404| |45215| |45216| |45217| |47668| |47669| |47670| 
|48541| |48542| |48543| |52055| |52056| |52057| |55892| |55893| |55894| |60173| 
|60174| |60175| |62213| |62214| |62215|                                         
                                     
nov. 08 21:20:21 VMm8 /usr/bin/x2gostartagent[64375]: initializing new session 
with ID test-61-1636402821_stDLXQt_dp24                                         
                                                         
nov. 08 21:20:21 VMm8 x2goinsertsession[64376]: executing external command 
,,x2gopath'' with args: libexec
nov. 08 21:20:21 VMm8 x2goinsertsession[64376]: executing external command 
,,/usr/lib64/x2go/libx2go-server-db-sqlite3-wrapper'' with args: 
insertsession,61,VMm8,test-61-1636402821_stDLXQt_dp24                       
nov. 08 21:20:21 VMm8 x2goinsertsession[64376]: db_insertsession called, 
session ID: test-61-1636402821_stDLXQt_dp24, server: VMm8, session ID: 
test-61-1636402821_stDLXQt_dp24                                         
nov. 08 21:20:21 VMm8 x2gogetports[64393]: executing external command 
,,x2gopath'' with args: libexec
nov. 08 21:20:21 VMm8 x2gogetports[64393]: executing external command 
,,/usr/lib64/x2go/libx2go-server-db-sqlite3-wrapper'' with args: getports,VMm8  
                                                                  
nov. 08 21:20:22 VMm8 x2gogetports[64393]: db_getports called, server: VMm8; 
return value: |35577| |35578| |35579| |39581| |39582| |39583| |43103| |43104| 
|43105| |44402| |44403| |44404| |45215| |45216| |45217| |47668| |47669| |47670| 
|48541| |48542| |48543| |52055| |52056| |52057| |55892| |55893| |55894| |60173| 
|60174| |60175| |62213| |62214| |62215|                                         
                                     
nov. 08 21:20:22 VMm8 x2goinsertport[64405]: executing external command 
,,x2gopath'' with args: libexec
nov. 08 21:20:22 VMm8 x2goinsertport[64405]: executing external command 
,,/usr/lib64/x2go/libx2go-server-db-sqlite3-wrapper'' with args: 
insertport,VMm8,test-61-1636402821_stDLXQt_dp24,62253                          
nov. 08 21:20:22 VMm8 x2goinsertport[64405]: db_insertport called, session ID: 
test-61-1636402821_stDLXQt_dp24, server: VMm8, SSH port: 62253                  
                                                         
nov. 08 21:20:22 VMm8 x2gogetports[64421]: executing external command 
,,x2gopath'' with args: libexec
nov. 08 21:20:22 VMm8 x2gogetports[64421]: executing external command 
,,/usr/lib64/x2go/libx2go-server-db-sqlite3-wrapper'' with args: getports,VMm8  
                                                                  
nov. 08 21:20:22 VMm8 x2gogetports[64421]: db_getports called, server: VMm8; 
return value: |35577| |35578| |35579| |39581| |39582| |39583| |43103| |43104| 
|43105| |44402| |44403| |44404| |45215| |45216| |45217| |47668| |47669| |47670| 
|48541| |48542| |48543| |52055| |52056| |52057| |55892| |55893| |55894| |60173| 
|60174| |60175| |62213| |62214| |62215| |62253|                                 
                                     
nov. 08 21:20:22 VMm8 x2goinsertport[64433]: executing external command 
,,x2gopath'' with args: libexec
nov. 08 21:20:22 VMm8 x2goinsertport[64433]: executing external command 
,,/usr/lib64/x2go/libx2go-server-db-sqlite3-wrapper'' with args: 
insertport,VMm8,test-61-1636402821_stDLXQt_dp24,62254                          
nov. 08 21:20:22 VMm8 x2goinsertport[64433]: db_insertport called, session ID: 
test-61-1636402821_stDLXQt_dp24, server: VMm8, SSH port: 62254                  
                                                         
nov. 08 21:20:22 VMm8 x2gogetports[64449]: executing external command 
,,x2gopath'' with args: libexec
nov. 08 21:20:22 VMm8 x2gogetports[64449]: executing external command 
,,/usr/lib64/x2go/libx2go-server-db-sqlite3-wrapper'' with args: getports,VMm8  
                                                                  
nov. 08 21:20:22 VMm8 x2gogetports[64449]: db_getports called, server: VMm8; 
return value: |35577| |35578| |35579| |39581| |39582| |39583| |43103| |43104| 
|43105| |44402| |44403| |44404| |45215| |45216| |45217| |47668| |47669| |47670| 
|48541| |48542| |48543| |52055| |52056| |52057| |55892| |55893| |55894| |60173| 
|60174| |60175| |62213| |62214| |62215| |62253| |62254|                         
                                     
nov. 08 21:20:22 VMm8 x2goinsertport[64461]: executing external command 
,,x2gopath'' with args: libexec
nov. 08 21:20:23 VMm8 x2goinsertport[64461]: executing external command 
,,/usr/lib64/x2go/libx2go-server-db-sqlite3-wrapper'' with args: 
insertport,VMm8,test-61-1636402821_stDLXQt_dp24,62255                          
nov. 08 21:20:23 VMm8 x2goinsertport[64461]: db_insertport called, session ID: 
test-61-1636402821_stDLXQt_dp24, server: VMm8, SSH port: 62255                  
                                                         
nov. 08 21:20:23 VMm8 /usr/bin/x2gofeature[64491]: x2gofeature called with 
options: X2GO_RUN_EXTENSIONS
nov. 08 21:20:23 VMm8 
/usr/share/x2go/x2gofeature.d/x2goserver-desktopsharing.features[64500]: 
x2goserver-desktopsharing.features called with options: X2GO_RUN_EXTENSIONS
nov. 08 21:20:23 VMm8 
/usr/share/x2go/x2gofeature.d/x2goserver-extensions.features[64509]: 
x2goserver-extensions.features called with options: X2GO_RUN_EXTENSIONS
nov. 08 21:20:23 VMm8 /usr/bin/x2goserver-run-extensions[64518]: 
x2goserver-run-extensions called with options: test-61-1636402821_stDLXQt_dp24 
pre-start
nov. 08 21:20:23 VMm8 /usr/bin/x2gostartagent[64524]: started nxagent: 
NX_TEMP=/tmp "x2goagent" X2GO_NXAGENT_OPTIONS (' -nolisten tcp') NOLISTOPT 
('-nolisten tcp') X2GODPIOPTION_ ('-dpi 159') XDMCPPOPT ('') -SESSION_TYPE 
('-D') NOEXITPARAM ('') -auth "XAUTHORITY" ('"/home/test/.Xauthority"') 
agent_geometry ('-geometry 1024x768') -name "SESSION_WINDOW_TITLE" 
('"X2GO-test-61-1636402821_stDLXQt_dp24"') "NX_AGENT" ('":61"') 2>"SESSION_LOG" 
('"/tmp/.x2go-test/C-test-61-1636402821_stDLXQt_dp24/session.log"') &           
                    
nov. 08 21:20:23 VMm8 /usr/bin/x2gostartagent[64527]: creating new session: 
test-61-1636402821_stDLXQt_dp24 7e7535b98379384b74ae295685a04fad 64525 
192.168.1.130 62253 62254 62255 -1 -1
nov. 08 21:20:23 VMm8 x2gocreatesession[64528]: executing external command 
,,x2gopath'' with args: libexec
nov. 08 21:20:23 VMm8 x2gocreatesession[64528]: executing external command 
,,/usr/lib64/x2go/libx2go-server-db-sqlite3-wrapper'' with args: 
createsession,test-61-1636402821_stDLXQt_dp24,7e7535b98379384b74ae295685a04fad,64525,192.168.1.130,62253,62254,62255,-1,-1
                                                              
nov. 08 21:20:23 VMm8 x2gocreatesession[64528]: db_createsession called, 
session ID: test-61-1636402821_stDLXQt_dp24, cookie: 
7e7535b98379384b74ae295685a04fad, client: 192.168.1.130, pid: 64525, graphics 
port: 62253, sound port: 62254, file sharing port: 62255. telekinesis ctrl 
port: -1, telekinesis data port: -1          
nov. 08 21:20:23 VMm8 /usr/bin/x2gostartagent[64537]: successfully started X2Go 
Agent session with ID test-61-1636402821_stDLXQt_dp24
nov. 08 21:20:23 VMm8 /usr/bin/x2gofeature[64552]: x2gofeature called with 
options: X2GO_RUN_EXTENSIONS
nov. 08 21:20:23 VMm8 
/usr/share/x2go/x2gofeature.d/x2goserver-desktopsharing.features[64561]: 
x2goserver-desktopsharing.features called with options: X2GO_RUN_EXTENSIONS
nov. 08 21:20:23 VMm8 
/usr/share/x2go/x2gofeature.d/x2goserver-extensions.features[64570]: 
x2goserver-extensions.features called with options: X2GO_RUN_EXTENSIONS
nov. 08 21:20:23 VMm8 /usr/bin/x2goserver-run-extensions[64580]: 
x2goserver-run-extensions called with options: test-61-1636402821_stDLXQt_dp24 
post-start
nov. 08 21:20:24 VMm8 sshd[60041]: error: connect_to 127.0.0.1 port 62253: 
failed.
nov. 08 21:20:24 VMm8 sshd[60041]: error: connect_to 127.0.0.1 port 62253: 
failed.
nov. 08 21:20:24 VMm8 x2golistsessions[64587]: executing external command 
,,x2gopath'' with args: libexec
nov. 08 21:20:24 VMm8 x2golistsessions[64587]: executing external command 
,,x2gopath'' with args: libexec
nov. 08 21:20:24 VMm8 x2golistsessions[64587]: x2golistsessions has been called 
with no option
nov. 08 21:20:24 VMm8 x2golistsessions[64587]: executing external command 
,,/usr/lib64/x2go/libx2go-server-db-sqlite3-wrapper'' with args: 
listsessions,VMm8                                                            
nov. 08 21:20:24 VMm8 x2golistshadowsessions[64601]: executing external command 
,,x2gopath'' with args: libexec                                                 
                                                        
nov. 08 21:20:24 VMm8 x2golistshadowsessions[64601]: x2golistshadowsessions has 
been called with no option
nov. 08 21:20:24 VMm8 x2golistshadowsessions[64601]: executing external command 
,,/usr/lib64/x2go/libx2go-server-db-sqlite3-wrapper'' with args: 
listshadowsessions,VMm8                                                
nov. 08 21:20:24 VMm8 sshd[60041]: error: connect_to 127.0.0.1 port 62253: 
failed.
nov. 08 21:20:25 VMm8 x2golistmounts[64610]: executing external command 
,,x2gopath'' with args: libexec
nov. 08 21:20:25 VMm8 x2golistmounts[64610]: executing external command 
,,/usr/lib64/x2go/libx2go-server-db-sqlite3-wrapper'' with args: 
getmounts,test-60-1636402364_stDLXQt_dp24                                      
nov. 08 21:20:25 VMm8 x2golistmounts[64610]: db_getmounts called, session ID: 
test-60-1636402364_stDLXQt_dp24; return value:                                  
                                                          
nov. 08 21:20:25 VMm8 sshd[60041]: error: connect_to 127.0.0.1 port 62253: 
failed.
nov. 08 21:20:25 VMm8 sshd[60041]: error: connect_to 127.0.0.1 port 62253: 
failed.
nov. 08 21:20:26 VMm8 sshd[60041]: error: connect_to 127.0.0.1 port 62253: 
failed.
nov. 08 21:20:26 VMm8 sshd[60041]: error: connect_to 127.0.0.1 port 62253: 
failed.
nov. 08 21:20:26 VMm8 sshd[60041]: error: connect_to 127.0.0.1 port 62253: 
failed.
nov. 08 21:20:27 VMm8 sshd[60041]: error: connect_to 127.0.0.1 port 62253: 
failed.
nov. 08 21:20:27 VMm8 sshd[60041]: error: connect_to 127.0.0.1 port 62253: 
failed.
nov. 08 21:20:28 VMm8 sshd[60041]: error: connect_to 127.0.0.1 port 62253: 
failed.
nov. 08 21:20:28 VMm8 sshd[60041]: error: connect_to 127.0.0.1 port 62253: 
failed.
nov. 08 21:20:28 VMm8 sshd[60041]: error: connect_to 127.0.0.1 port 62253: 
failed.
nov. 08 21:20:29 VMm8 sshd[60041]: error: connect_to 127.0.0.1 port 62253: 
failed.
nov. 08 21:20:29 VMm8 sshd[60041]: error: connect_to 127.0.0.1 port 62253: 
failed.
nov. 08 21:20:30 VMm8 sshd[60041]: error: connect_to 127.0.0.1 port 62253: 
failed.
_______________________________________________
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Reply via email to