Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] x2goserver package is non-functional
@ 2021-05-10 16:30 ahesford
  2021-05-10 16:48 ` ericonr
                   ` (54 more replies)
  0 siblings, 55 replies; 56+ messages in thread
From: ahesford @ 2021-05-10 16:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 4709 bytes --]

New issue by ahesford on void-packages repository

https://github.com/void-linux/void-packages/issues/30781

Description:
The x2goserver package does not work as packaged and also contains some other issues that should be rectified:
1. It seems some references to a prefix of `/usr/local` still exist, leading to connection failures. (See Reference below.)
2. The package is missing a `perl-Try-Tiny` dependency that is required for `x2godbadmin` to run.
3. `makepasswd` should not be a dependency; the ChangeLog notes that `makepasswd` was replaced with `pwgen`, but this only seems to be used with a Postgres or MySQL backend. This makes `pwgen` optional, so it shouldn't be a dependency either.
4. The `post_extract` function in the template should be `post_patch` instead. Sometimes it is desirable to step through `xbps-src` stages manually to investigate the state of the build directory, and those patches should only be applied by `xbps-src patch x2goserver`, *not* `xbps-src extract x2goserver` as would happen now.
5. A runit server for `x2gocleansessions` should be provided. This has some caveats. Running `x2gocleansessions` without arguments causes the process to fork, which will cause runit's `runsv` to lose supervision over the process. Running `x2gocleansessions --debug` will prevent the fork, but will also spam the console with useless messages every second or so. The `x2gocleansessions` script should probably be patched to separate the no-fork flag from the debug flag, and that patch should be upstreamed. In the meantime, I am not sure how best to handle this. Maybe just manually drop the forking logic so `x2gocleansessions` always runs in the foreground?

## Test Procedure
1. Install `x2goclient`, `x2goserver` on two hosts (server.remote and client.local).
2. On server.remote, execute (as root) `x2godbadmin --create`. (This requires `perl-Try-Tiny` be installed.)
3. On server.remote, run `x2gocleansessions --debug`.
4. On client.local, launch `x2goclient` and create a new session to `server.remote`, selecting a "Single application" session type and trying to run `/usr/bin/xterm` (or some other X11 application installed on server.remote).
5. Attempt to start the session and observe a pop-up dialog showing the connection failure message in the Reference below.

## Reference:
Failure message when connecting to a Void server:
```
Connection failed. /usr/lib/x2go/x2gocheckport: line 131:
'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':: syntax error:
operand expected (error token is
"'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':")
/usr/lib/x2go/x2gocheckport: line 131:
'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':: syntax error:
operand expected (error token is
"'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':")
/usr/lib/x2go/x2gocheckport: line 131:
'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':: syntax error:
operand expected (error token is
"'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':")
/usr/lib/x2go/x2gocheckport: line 131:
'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':: syntax error:
operand expected (error token is
"'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':")
/usr/lib/x2go/x2gocheckport: line 131:
'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':: syntax error:
operand expected (error token is
"'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':")
/usr/lib/x2go/x2gocheckport: line 131:
'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':: syntax error:
operand expected (error token is
"'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':")
/usr/lib/x2go/x2gocheckport: line 131:
'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':: syntax error:
operand expected (error token is
"'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':")
/usr/lib/x2go/x2gocheckport: line 131:
'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':: syntax error:
operand expected (error token is
"'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':")
/usr/lib/x2go/x2gocheckport: line 131:
'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':: syntax error:
operand expected (error token is
"'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':")
/usr/lib/x2go/x2gocheckport: line 131:
'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':: syntax error:
operand expected (error token is
"'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':") Unable to find
free display port or insert new session into database; parameters: port (50),
hostname (my.remote.host.com) and session name ().
```
cc: @eoli3n

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
@ 2021-05-10 16:48 ` ericonr
  2021-05-10 20:23 ` eoli3n
                   ` (53 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: ericonr @ 2021-05-10 16:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 334 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-836952746

Comment:
I'm against disabling the forking because someone launching from a terminal would expect a certain behavior. Adding a no fork flag, assuming it isn't too big a patch, sounds reasonable to me.

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
  2021-05-10 16:48 ` ericonr
@ 2021-05-10 20:23 ` eoli3n
  2021-05-10 20:24 ` eoli3n
                   ` (52 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-10 20:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1751 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837280001

Comment:
Strange, i fixed ``/usr/local`` prefix, and i get this
```
Connection failed. /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») Unable to find free display port or insert new session into database; parameters: port (50), hostname (voidlinux) and session name ().
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
  2021-05-10 16:48 ` ericonr
  2021-05-10 20:23 ` eoli3n
@ 2021-05-10 20:24 ` eoli3n
  2021-05-10 20:34 ` eoli3n
                   ` (51 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-10 20:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1970 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837280001

Comment:
Strange, i fixed ``/usr/local`` prefix, and i get this
```
Connection failed. /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») Unable to find free display port or insert new session into database; parameters: port (50), hostname (voidlinux) and session name ().
```

I submitted a bug report to ``submit@bugs.x2go.org`` about forking problem for ``x2gocleansessions``.
I failed to set name of the issue :face_with_head_bandage:  https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1545

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (2 preceding siblings ...)
  2021-05-10 20:24 ` eoli3n
@ 2021-05-10 20:34 ` eoli3n
  2021-05-10 20:35 ` eoli3n
                   ` (50 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-10 20:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 348 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (3 preceding siblings ...)
  2021-05-10 20:34 ` eoli3n
@ 2021-05-10 20:35 ` eoli3n
  2021-05-10 20:38 ` eoli3n
                   ` (49 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-10 20:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 360 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (4 preceding siblings ...)
  2021-05-10 20:35 ` eoli3n
@ 2021-05-10 20:38 ` eoli3n
  2021-05-10 21:16 ` eoli3n
                   ` (48 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-10 20:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2085 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837280001

Comment:
Strange, i fixed ``/usr/local`` prefix, and i get this
```
Connection failed. /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») /usr/lib/x2go/x2gocheckport: ligne 131: Can't : erreur de syntaxe : opérateur arithmétique non valable (le symbole erroné est « 't ») Unable to find free display port or insert new session into database; parameters: port (50), hostname (voidlinux) and session name ().
```

Here the commit i try : https://github.com/eoli3n/void-packages/commit/ad259c90e4ad44a249ad5fb0ce565b0c89e099ab

I submitted a bug report to ``submit@bugs.x2go.org`` about forking problem for ``x2gocleansessions``.
I failed to set name of the issue :face_with_head_bandage:  https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1545

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (5 preceding siblings ...)
  2021-05-10 20:38 ` eoli3n
@ 2021-05-10 21:16 ` eoli3n
  2021-05-10 21:16 ` eoli3n
                   ` (47 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-10 21:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 524 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
real error is between ``#####``
![x2goerror](https://user-images.githubusercontent.com/14223657/117725631-b0657b80-b1e5-11eb-94aa-ae3c3b61d035.png)



^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (6 preceding siblings ...)
  2021-05-10 21:16 ` eoli3n
@ 2021-05-10 21:16 ` eoli3n
  2021-05-10 21:24 ` eoli3n
                   ` (46 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-10 21:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 808 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (7 preceding siblings ...)
  2021-05-10 21:16 ` eoli3n
@ 2021-05-10 21:24 ` eoli3n
  2021-05-10 21:27 ` eoli3n
                   ` (45 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-10 21:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 886 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (8 preceding siblings ...)
  2021-05-10 21:24 ` eoli3n
@ 2021-05-10 21:27 ` eoli3n
  2021-05-10 21:27 ` eoli3n
                   ` (44 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-10 21:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1079 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (9 preceding siblings ...)
  2021-05-10 21:27 ` eoli3n
@ 2021-05-10 21:27 ` eoli3n
  2021-05-10 22:01 ` eoli3n
                   ` (43 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-10 21:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1081 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (10 preceding siblings ...)
  2021-05-10 21:27 ` eoli3n
@ 2021-05-10 22:01 ` eoli3n
  2021-05-10 22:10 ` eoli3n
                   ` (42 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-10 22:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1425 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (11 preceding siblings ...)
  2021-05-10 22:01 ` eoli3n
@ 2021-05-10 22:10 ` eoli3n
  2021-05-10 22:10 ` eoli3n
                   ` (41 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-10 22:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1619 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (12 preceding siblings ...)
  2021-05-10 22:10 ` eoli3n
@ 2021-05-10 22:10 ` eoli3n
  2021-05-10 22:13 ` eoli3n
                   ` (40 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-10 22:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1672 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (13 preceding siblings ...)
  2021-05-10 22:10 ` eoli3n
@ 2021-05-10 22:13 ` eoli3n
  2021-05-10 22:16 ` eoli3n
                   ` (39 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-10 22:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2668 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```
-> is ``nosuid`` a problem ? https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063#52
```
➜ mount | grep suid
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,noexec,size=1004420k,nr_inodes=251105,mode=755,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,inode64)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,mode=755,inode64)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime,inode64)
none on /run/systemd type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755,inode64)
none on /run/user type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755,inode64)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=202956k,nr_inodes=50739,mode=700,uid=1000,gid=1000,inode64)
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (14 preceding siblings ...)
  2021-05-10 22:13 ` eoli3n
@ 2021-05-10 22:16 ` eoli3n
  2021-05-10 22:18 ` eoli3n
                   ` (38 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-10 22:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3021 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```
-> is ``nosuid`` a problem ? https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063#52
```
➜ mount | grep suid
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,noexec,size=1004420k,nr_inodes=251105,mode=755,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,inode64)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,mode=755,inode64)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime,inode64)
none on /run/systemd type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755,inode64)
none on /run/user type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755,inode64)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=202956k,nr_inodes=50739,mode=700,uid=1000,gid=1000,inode64)
```

Connect as ``root`` leads to another error
```
Échec de la connexion /usr/bin/x2gostartagent: ligne 235: ##### ##### 50 : erreur de syntaxe : opérande attendu (le symbole erroné est « ##### ##### 50 ») Unable to find free display port or insert new session into database; parameters: port (50), hostname (voidlinux) and session name (). 
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (15 preceding siblings ...)
  2021-05-10 22:16 ` eoli3n
@ 2021-05-10 22:18 ` eoli3n
  2021-05-10 22:20 ` eoli3n
                   ` (37 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-10 22:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3190 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```
-> is ``nosuid`` a problem ? https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063#52
```
root@voidlinux ~# ls -altr /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
-rwxr-sr-x 1 root root 14304 10 mai   20:32 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
➜ mount | grep suid
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,noexec,size=1004420k,nr_inodes=251105,mode=755,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,inode64)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,mode=755,inode64)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime,inode64)
none on /run/systemd type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755,inode64)
none on /run/user type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755,inode64)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=202956k,nr_inodes=50739,mode=700,uid=1000,gid=1000,inode64)
```

Connect as ``root`` leads to another error
```
Échec de la connexion /usr/bin/x2gostartagent: ligne 235: ##### ##### 50 : erreur de syntaxe : opérande attendu (le symbole erroné est « ##### ##### 50 ») Unable to find free display port or insert new session into database; parameters: port (50), hostname (voidlinux) and session name (). 
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (16 preceding siblings ...)
  2021-05-10 22:18 ` eoli3n
@ 2021-05-10 22:20 ` eoli3n
  2021-05-10 22:28 ` eoli3n
                   ` (36 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-10 22:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3176 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```
-> is ``nosuid`` a problem ? https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063#52
```
➜ ls -altr /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
-rwxr-sr-x 1 root root 14304 10 mai   20:32 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
➜ mount | grep suid
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,noexec,size=1004420k,nr_inodes=251105,mode=755,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,inode64)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,mode=755,inode64)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime,inode64)
none on /run/systemd type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755,inode64)
none on /run/user type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755,inode64)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=202956k,nr_inodes=50739,mode=700,uid=1000,gid=1000,inode64)
```

Connect as ``root`` leads to another error
```
Échec de la connexion /usr/bin/x2gostartagent: ligne 235: ##### ##### 50 : erreur de syntaxe : opérande attendu (le symbole erroné est « ##### ##### 50 ») Unable to find free display port or insert new session into database; parameters: port (50), hostname (voidlinux) and session name (). 
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (17 preceding siblings ...)
  2021-05-10 22:20 ` eoli3n
@ 2021-05-10 22:28 ` eoli3n
  2021-05-10 22:28 ` eoli3n
                   ` (35 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-10 22:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2150 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
--------
Now i get
```
Échec de la connexion /usr/bin/x2gostartagent: ligne 235: ##### ##### 50 : erreur de syntaxe : opérande attendu (le symbole erroné est « ##### ##### 50 ») Unable to find free display port or insert new session into database; parameters: port (50), hostname (voidlinux) and session name (). 
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (18 preceding siblings ...)
  2021-05-10 22:28 ` eoli3n
@ 2021-05-10 22:28 ` eoli3n
  2021-05-10 22:29 ` eoli3n
                   ` (34 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-10 22:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2201 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/
--------
Now i get
```
Échec de la connexion /usr/bin/x2gostartagent: ligne 235: ##### ##### 50 : erreur de syntaxe : opérande attendu (le symbole erroné est « ##### ##### 50 ») Unable to find free display port or insert new session into database; parameters: port (50), hostname (voidlinux) and session name (). 
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (19 preceding siblings ...)
  2021-05-10 22:28 ` eoli3n
@ 2021-05-10 22:29 ` eoli3n
  2021-05-10 22:30 ` eoli3n
                   ` (33 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-10 22:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2203 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

--------
Now i get
```
Échec de la connexion /usr/bin/x2gostartagent: ligne 235: ##### ##### 50 : erreur de syntaxe : opérande attendu (le symbole erroné est « ##### ##### 50 ») Unable to find free display port or insert new session into database; parameters: port (50), hostname (voidlinux) and session name (). 
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (20 preceding siblings ...)
  2021-05-10 22:29 ` eoli3n
@ 2021-05-10 22:30 ` eoli3n
  2021-05-10 22:40 ` eoli3n
                   ` (32 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-10 22:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2185 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

--------
Now i get
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (21 preceding siblings ...)
  2021-05-10 22:30 ` eoli3n
@ 2021-05-10 22:40 ` eoli3n
  2021-05-10 22:40 ` eoli3n
                   ` (31 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-10 22:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2245 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] package perl-Switch

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

- [ ] edit x2goserver temlate

--------
Now i get
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (22 preceding siblings ...)
  2021-05-10 22:40 ` eoli3n
@ 2021-05-10 22:40 ` eoli3n
  2021-05-11  7:07 ` eoli3n
                   ` (30 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-10 22:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2246 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] package perl-Switch

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

- [ ] edit x2goserver template

--------
Now i get
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (23 preceding siblings ...)
  2021-05-10 22:40 ` eoli3n
@ 2021-05-11  7:07 ` eoli3n
  2021-05-11  7:07 ` eoli3n
                   ` (29 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11  7:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2858 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] package perl-Switch

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

- [ ] edit x2goserver template

Note : useless reverse engineering, in the ``INSTALL`` file, dumb me
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```

--------
Now i get
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (24 preceding siblings ...)
  2021-05-11  7:07 ` eoli3n
@ 2021-05-11  7:07 ` eoli3n
  2021-05-11  7:36 ` eoli3n
                   ` (28 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11  7:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2852 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] package perl-Switch

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

- [ ] edit x2goserver template

Note : useless reverse engineering, in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```

--------
Now i get
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (25 preceding siblings ...)
  2021-05-11  7:07 ` eoli3n
@ 2021-05-11  7:36 ` eoli3n
  2021-05-11  7:36 ` eoli3n
                   ` (27 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11  7:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2968 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] package perl-Switch

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

- [ ] edit x2goserver template

Note : useless reverse engineering, in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```

--------
Now i get
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```

--------
Check spec to see if missing deps: https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (26 preceding siblings ...)
  2021-05-11  7:36 ` eoli3n
@ 2021-05-11  7:36 ` eoli3n
  2021-05-11  7:39 ` eoli3n
                   ` (26 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11  7:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3011 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] package perl-Switch

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

- [ ] edit x2goserver template

Note : useless reverse engineering, in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```

--------
Now i get
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```

--------
Check spec to see if missing deps: https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec
- [x] which
- [x] pwgen
- [x] net-tools

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (27 preceding siblings ...)
  2021-05-11  7:36 ` eoli3n
@ 2021-05-11  7:39 ` eoli3n
  2021-05-11  7:44 ` eoli3n
                   ` (25 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11  7:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3052 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] package perl-Switch

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

- [ ] edit x2goserver template

Note : useless reverse engineering, in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```

--------
Now i get
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```

--------
Check spec to see if missing deps: https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec
- [x] which
- [x] pwgen
- [x] net-tools
- [x] perl-Try-Tiny
- [x] perl-Switch 

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (28 preceding siblings ...)
  2021-05-11  7:39 ` eoli3n
@ 2021-05-11  7:44 ` eoli3n
  2021-05-11  7:50 ` eoli3n
                   ` (24 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11  7:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3227 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] package perl-Switch

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

- [ ] edit x2goserver template

Note : useless reverse engineering, in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```
During the build the user doesn't exist
```
➜ ./xbps-src install x2goserver
[...]
➜ sudo chroot masterdir /bin/bash
bash-5.1# getent group x2gouser
bash-5.1# 
```

--------
Now i get
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```

--------
Check spec to see if missing deps: https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec
- [x] which
- [x] pwgen
- [x] net-tools
- [x] perl-Try-Tiny
- [x] perl-Switch 

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (29 preceding siblings ...)
  2021-05-11  7:44 ` eoli3n
@ 2021-05-11  7:50 ` eoli3n
  2021-05-11  7:50 ` eoli3n
                   ` (23 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11  7:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3241 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] package perl-Switch

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

- [ ] edit x2goserver template

Note : useless reverse engineering, in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```
During the build the ``x2gouser`` group doesn't exist
```
➜ ./xbps-src install x2goserver
[...]
➜ sudo chroot masterdir /bin/bash
bash-5.1# getent group x2gouser
bash-5.1# 
```

--------
Now i get
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```

--------
Check spec to see if missing deps: https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec
- [x] which
- [x] pwgen
- [x] net-tools
- [x] perl-Try-Tiny
- [x] perl-Switch 

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (30 preceding siblings ...)
  2021-05-11  7:50 ` eoli3n
@ 2021-05-11  7:50 ` eoli3n
  2021-05-11  8:30 ` eoli3n
                   ` (22 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11  7:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3207 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] package perl-Switch

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

Note : useless reverse engineering, in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```
During the build the ``x2gouser`` group doesn't exist
```
➜ ./xbps-src install x2goserver
[...]
➜ sudo chroot masterdir /bin/bash
bash-5.1# getent group x2gouser
bash-5.1# 
```

--------
Now i get
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```

--------
Check spec to see if missing deps: https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec
- [x] which
- [x] pwgen
- [x] net-tools
- [x] perl-Try-Tiny
- [x] perl-Switch 

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (31 preceding siblings ...)
  2021-05-11  7:50 ` eoli3n
@ 2021-05-11  8:30 ` eoli3n
  2021-05-11  8:56 ` eoli3n
                   ` (21 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11  8:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3509 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] package perl-Switch

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

Note : useless reverse engineering, in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```
During the build the ``x2gouser`` group doesn't exist
```
➜ ./xbps-src install x2goserver
[...]
➜ sudo chroot masterdir /bin/bash
bash-5.1# getent group x2gouser
bash-5.1# 
```
It seems that the test fo the group ``x2gouser`` during the build phase fails : https://github.com/eugenesan/x2goserver/blob/master/libx2go-server-db-perl/Makefile#L58
```
	getent group x2gouser &>/dev/null && chown root:x2gouser $(DESTDIR)$(LIBDIR)/libx2go-server-db-sqlite3-wrapper || true
```


--------
Now i get
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```

--------
Check spec to see if missing deps: https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec
- [x] which
- [x] pwgen
- [x] net-tools
- [x] perl-Try-Tiny
- [x] perl-Switch 

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (32 preceding siblings ...)
  2021-05-11  8:30 ` eoli3n
@ 2021-05-11  8:56 ` eoli3n
  2021-05-11  9:04 ` eoli3n
                   ` (20 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11  8:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3569 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] package perl-Switch

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

Note : useless reverse engineering, in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```
During the build the ``x2gouser`` group doesn't exist
```
➜ ./xbps-src install x2goserver
[...]
➜ sudo chroot masterdir /bin/bash
bash-5.1# getent group x2gouser
bash-5.1# 
```
It seems that the test fo the group ``x2gouser`` during the build phase fails : https://github.com/eugenesan/x2goserver/blob/master/libx2go-server-db-perl/Makefile#L58
```
	getent group x2gouser &>/dev/null && chown root:x2gouser $(DESTDIR)$(LIBDIR)/libx2go-server-db-sqlite3-wrapper || true
```
No way to automate this, user needs to chmod/chown manually.

--------
Now i get
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```

--------
Check spec to see if missing deps: https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec
- [x] which
- [x] pwgen
- [x] net-tools
- [x] perl-Try-Tiny
- [x] perl-Switch 

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (33 preceding siblings ...)
  2021-05-11  8:56 ` eoli3n
@ 2021-05-11  9:04 ` eoli3n
  2021-05-11  9:04 ` eoli3n
                   ` (19 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11  9:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3552 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] package perl-Switch

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

Note : useless reverse engineering, in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```
During the build the ``x2gouser`` group doesn't exist
```
➜ ./xbps-src install x2goserver
[...]
➜ sudo chroot masterdir /bin/bash
bash-5.1# getent group x2gouser
bash-5.1# 
```
It seems that the test fo the group ``x2gouser`` during the build phase fails : https://github.com/eugenesan/x2goserver/blob/master/libx2go-server-db-perl/Makefile#L58
```
	getent group x2gouser &>/dev/null && chown root:x2gouser $(DESTDIR)$(LIBDIR)/libx2go-server-db-sqlite3-wrapper || true
```
- [x] add ``INSTALL`` file to automate this

--------
Now i get
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```

--------
Check spec to see if missing deps: https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec
- [x] which
- [x] pwgen
- [x] net-tools
- [x] perl-Try-Tiny
- [x] perl-Switch 

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (34 preceding siblings ...)
  2021-05-11  9:04 ` eoli3n
@ 2021-05-11  9:04 ` eoli3n
  2021-05-11  9:53 ` eoli3n
                   ` (18 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11  9:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3563 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] create ``perl-Switch`` package

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

Note : useless reverse engineering, in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```
During the build the ``x2gouser`` group doesn't exist
```
➜ ./xbps-src install x2goserver
[...]
➜ sudo chroot masterdir /bin/bash
bash-5.1# getent group x2gouser
bash-5.1# 
```
It seems that the test fo the group ``x2gouser`` during the build phase fails : https://github.com/eugenesan/x2goserver/blob/master/libx2go-server-db-perl/Makefile#L58
```
	getent group x2gouser &>/dev/null && chown root:x2gouser $(DESTDIR)$(LIBDIR)/libx2go-server-db-sqlite3-wrapper || true
```
- [x] add ``INSTALL`` file to automate this

--------
Now i get
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```

--------
Check spec to see if missing deps: https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec
- [x] which
- [x] pwgen
- [x] net-tools
- [x] perl-Try-Tiny
- [x] perl-Switch 

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (35 preceding siblings ...)
  2021-05-11  9:04 ` eoli3n
@ 2021-05-11  9:53 ` eoli3n
  2021-05-11  9:54 ` eoli3n
                   ` (17 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11  9:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3563 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] create ``perl-Switch`` package

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

Note : useless reverse engineering, in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```
During the build the ``x2gouser`` group doesn't exist
```
➜ ./xbps-src install x2goserver
[...]
➜ sudo chroot masterdir /bin/bash
bash-5.1# getent group x2gouser
bash-5.1# 
```
It seems that the test fo the group ``x2gouser`` during the build phase fails : https://github.com/eugenesan/x2goserver/blob/master/libx2go-server-db-perl/Makefile#L58
```
	getent group x2gouser &>/dev/null && chown root:x2gouser $(DESTDIR)$(LIBDIR)/libx2go-server-db-sqlite3-wrapper || true
```
- [x] add ``INSTALL`` file to automate this

--------
Check spec to see if missing deps: https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec
- [x] which
- [x] pwgen
- [x] net-tools
- [x] perl-Try-Tiny
- [x] perl-Switch 

--------
Now i get
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (36 preceding siblings ...)
  2021-05-11  9:53 ` eoli3n
@ 2021-05-11  9:54 ` eoli3n
  2021-05-11 10:10 ` eoli3n
                   ` (16 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11  9:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3534 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] create ``perl-Switch`` package

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

Note : in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```
During the build the ``x2gouser`` group doesn't exist
```
➜ ./xbps-src install x2goserver
[...]
➜ sudo chroot masterdir /bin/bash
bash-5.1# getent group x2gouser
bash-5.1# 
```
It seems that the test fo the group ``x2gouser`` during the build phase fails : https://github.com/eugenesan/x2goserver/blob/master/libx2go-server-db-perl/Makefile#L58
```
	getent group x2gouser &>/dev/null && chown root:x2gouser $(DESTDIR)$(LIBDIR)/libx2go-server-db-sqlite3-wrapper || true
```
- [x] add ``INSTALL`` file to automate this

--------
Check spec to see if missing deps: https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec
- [x] which
- [x] pwgen
- [x] net-tools
- [x] perl-Try-Tiny
- [x] perl-Switch 

--------
Now i get
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (37 preceding siblings ...)
  2021-05-11  9:54 ` eoli3n
@ 2021-05-11 10:10 ` eoli3n
  2021-05-11 10:45 ` eoli3n
                   ` (15 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11 10:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 4485 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] create ``perl-Switch`` package

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

Note : in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```
During the build the ``x2gouser`` group doesn't exist
```
➜ ./xbps-src install x2goserver
[...]
➜ sudo chroot masterdir /bin/bash
bash-5.1# getent group x2gouser
bash-5.1# 
```
It seems that the test fo the group ``x2gouser`` during the build phase fails : https://github.com/eugenesan/x2goserver/blob/master/libx2go-server-db-perl/Makefile#L58
```
	getent group x2gouser &>/dev/null && chown root:x2gouser $(DESTDIR)$(LIBDIR)/libx2go-server-db-sqlite3-wrapper || true
```
- [x] add ``INSTALL`` file to automate this

--------
Check spec to see if missing deps: https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec
- [x] which
- [x] pwgen
- [x] net-tools
- [x] perl-Try-Tiny
- [x] perl-Switch 

--------
Now i get
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```
on the client, the file ``~/.x2go/C-user-50-1620727693_stDxterm_dp32/session.log``
```

running as X2Go Agent

NXAGENT - Version 3.5.99.26

Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com)
Copyright (c) 2008-2014 Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
Copyright (c) 2011-2016 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Copyright (c) 2014-2016 Ulrich Sibiller <uli42@gmx.de>
Copyright (c) 2014-2016 Mihai Moldovan <ionic@ionic.de>
Copyright (c) 2015-2016 Qindel Group (http://www.qindel.com)
See https://github.com/ArcticaProject/nx-libs for more information.

Info: Agent running with pid '24264'.
Session: Starting session at 'Tue May 11 12:08:14 2021'.
Error: Aborting session with 'Unable to open display 'nx/nx,options=/tmp/.x2go-user/C-user-50-1620727693_stDxterm_dp32/options:50''.
Session: Aborting session at 'Tue May 11 12:08:14 2021'.
Session: Session aborted at 'Tue May 11 12:08:14 2021'.
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (38 preceding siblings ...)
  2021-05-11 10:10 ` eoli3n
@ 2021-05-11 10:45 ` eoli3n
  2021-05-11 10:46 ` eoli3n
                   ` (14 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11 10:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 10067 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] create ``perl-Switch`` package

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

Note : in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```
During the build the ``x2gouser`` group doesn't exist
```
➜ ./xbps-src install x2goserver
[...]
➜ sudo chroot masterdir /bin/bash
bash-5.1# getent group x2gouser
bash-5.1# 
```
It seems that the test fo the group ``x2gouser`` during the build phase fails : https://github.com/eugenesan/x2goserver/blob/master/libx2go-server-db-perl/Makefile#L58
```
	getent group x2gouser &>/dev/null && chown root:x2gouser $(DESTDIR)$(LIBDIR)/libx2go-server-db-sqlite3-wrapper || true
```
- [x] add ``INSTALL`` file to automate this

--------
Check spec to see if missing deps: https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec
- [x] which
- [x] pwgen
- [x] net-tools
- [x] perl-Try-Tiny
- [x] perl-Switch 

--------
Now i get
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```
on the client, the file ``~/.x2go/C-user-50-1620727693_stDxterm_dp32/session.log``
```

running as X2Go Agent

NXAGENT - Version 3.5.99.26

Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com)
Copyright (c) 2008-2014 Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
Copyright (c) 2011-2016 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Copyright (c) 2014-2016 Ulrich Sibiller <uli42@gmx.de>
Copyright (c) 2014-2016 Mihai Moldovan <ionic@ionic.de>
Copyright (c) 2015-2016 Qindel Group (http://www.qindel.com)
See https://github.com/ArcticaProject/nx-libs for more information.

Info: Agent running with pid '24264'.
Session: Starting session at 'Tue May 11 12:08:14 2021'.
Error: Aborting session with 'Unable to open display 'nx/nx,options=/tmp/.x2go-user/C-user-50-1620727693_stDxterm_dp32/options:50''.
Session: Aborting session at 'Tue May 11 12:08:14 2021'.
Session: Session aborted at 'Tue May 11 12:08:14 2021'.
```
client debug log
```
x2go-DEBUG-../src/sshmasterconnection.cpp:764> SshMasterConnection, instance SshMasterConnection(0x5567175e86a0) waiting for thread to finish.
x2go-DEBUG-../src/sshmasterconnection.cpp:1908> Disconnecting ...

x2go-DEBUG-../src/sshmasterconnection.cpp:1917> Deleting channel connections.

x2go-DEBUG-../src/sshmasterconnection.cpp:1923> Disconnecting session.

x2go-DEBUG-../src/sshmasterconnection.cpp:1927> Deleting sockets.

x2go-DEBUG-../src/sshmasterconnection.cpp:1932> All channels closed and session disconnected. Quitting session loop.

x2go-DEBUG-../src/sshmasterconnection.cpp:766> SshMasterConnection, instance SshMasterConnection(0x5567175e86a0) thread finished.
x2go-DEBUG-../src/sshprocess.cpp:52> SshProcess destructor called.
x2go-DEBUG-../src/sshprocess.cpp:52> SshProcess destructor called.
x2go-DEBUG-../src/sshmasterconnection.cpp:771> SshMasterConnection, instance SshMasterConnection(0x5567175e86a0) finished destructor.
x2go-INFO-8> "Démarrage de la connexion au serveur : 192.168.100.194:22"
x2go-DEBUG-../src/onmainwindow.cpp:2853> Starting new ssh connection to server:"192.168.100.194":"22" krbLogin: false
x2go-DEBUG-../src/sshmasterconnection.cpp:168> SshMasterConnection, host "192.168.100.194"; port 22; user "user"; useproxy false; proxyserver ""; proxyport 22
x2go-DEBUG-../src/sshmasterconnection.cpp:248> Starting SSH connection without Kerberos authentication.
x2go-DEBUG-../src/sshmasterconnection.cpp:250> SshMasterConnection, instance SshMasterConnection(0x7f17180093e0) created.
x2go-DEBUG-../src/sshmasterconnection.cpp:495> SshMasterConnection, instance SshMasterConnection(0x7f17180093e0) entering thread.
x2go-DEBUG-../src/sshmasterconnection.cpp:797> Session port before config file parse: 22
x2go-DEBUG-../src/sshmasterconnection.cpp:807> Session port after config file parse: 22
x2go-DEBUG-../src/sshmasterconnection.cpp:870> Session port before config file parse (part 2): 22
x2go-DEBUG-../src/sshmasterconnection.cpp:880> Session port after config file parse (part 2): 22
x2go-DEBUG-../src/sshmasterconnection.cpp:904> cserverAuth
x2go-DEBUG-../src/sshmasterconnection.cpp:943> state: 1

x2go-DEBUG-../src/sshmasterconnection.cpp:1218> Trying password mechanism if available.

x2go-DEBUG-../src/sshmasterconnection.cpp:1222> Password mechanism available. Continuing.

x2go-DEBUG-../src/sshmasterconnection.cpp:687> User authentication OK.
x2go-DEBUG-../src/sshmasterconnection.cpp:1708> LOGIN CHECK:"LOGIN OK\r\n"
x2go-DEBUG-../src/sshmasterconnection.cpp:1711> don't have interaction
x2go-DEBUG-../src/sshmasterconnection.cpp:1744> LOOP FINISHED
x2go-DEBUG-../src/sshmasterconnection.cpp:1748> No interaction needed, continue session
x2go-DEBUG-../src/sshmasterconnection.cpp:702> Login Check - OK
x2go-DEBUG-../src/onmainwindow.cpp:2947> SSH connection established.
x2go-DEBUG-../src/onmainwindow.cpp:3374> Continue normal X2Go session
x2go-DEBUG-../src/sshprocess.cpp:199> Executing remote command via SshProcess object 0: "x2golistsessions"
x2go-DEBUG-../src/sshprocess.cpp:213> this=SshProcess(0x556717980470) Running masterCon->addChannelConnection(this, '"cb9b7680-ab57-41da-beed-3a7e4c364a30"', '"bash -l -c 'echo \"X2GODATABEGIN:cb9b7680-ab57-41da-beed-3a7e4c364a30\"; export PATH=\"/usr/local/bin:/usr/bin:/bin\";export TERM=\"dumb\"; x2golistsessions; echo \"X2GODATAEND:cb9b7680-ab57-41da-beed-3a7e4c"');
x2go-DEBUG-../src/sshmasterconnection.cpp:1810> Locking SSH channel connection MUTEX.
x2go-DEBUG-../src/sshmasterconnection.cpp:1812> Passing new channel connection object to channelConnections.
x2go-DEBUG-../src/sshmasterconnection.cpp:1814> Unlocking SSH channel connection MUTEX.
x2go-DEBUG-../src/sshmasterconnection.cpp:1977> Creating new channel.

x2go-DEBUG-../src/sshmasterconnection.cpp:1990> New channel:0x7f17140164e0

x2go-DEBUG-../src/sshmasterconnection.cpp:2065> Executing remote: "bash -l -c 'echo \"X2GODATABEGIN:cb9b7680-ab57-41da-beed-3a7e4c364a30\"; export PATH=\"/usr/local/bin:/usr/bin:/bin\";export TERM=\"dumb\"; x2golistsessions; echo \"X2GODATAEND:cb9b7680-ab57-41da-beed-3a7e4c364a30\";'"

x2go-DEBUG-../src/sshmasterconnection.cpp:2082> New exec channel created.

x2go-DEBUG-../src/sshmasterconnection.cpp:2121> EOF on channel 0x7f17140164e0; SshProcess object: 0
x2go-DEBUG-../src/sshmasterconnection.cpp:2222> EOF sent.
x2go-DEBUG-../src/sshmasterconnection.cpp:2224> Channel closed.
x2go-DEBUG-../src/sshprocess.cpp:532> SSH finished: raw output (stdout): "X2GODATABEGIN:cb9b7680-ab57-41da-beed-3a7e4c364a30\n29416|user-50-1620729841_stDxterm_dp24|50|voidlinux|R|2021-05-11T12:44:01|c0ff2328004e6c6706dd647f9d56a476|192.168.100.1|30012|30013|2021-05-11T12:44:03|user|25|30014|-1|-1\nX2GODATAEND:cb9b7680-ab57-41da-beed-3a7e4c364a30\n"
x2go-DEBUG-../src/sshprocess.cpp:543> SSH finished: true - "29416|user-50-1620729841_stDxterm_dp24|50|voidlinux|R|2021-05-11T12:44:01|c0ff2328004e6c6706dd647f9d56a476|192.168.100.1|30012|30013|2021-05-11T12:44:03|user|25|30014|-1|-1\n" (0).
x2go-DEBUG-../src/onmainwindow.cpp:3861> "29416|user-50-1620729841_stDxterm_dp24|50|voidlinux|R|2021-05-11T12:44:01|c0ff2328004e6c6706dd647f9d56a476|192.168.100.1|30012|30013|2021-05-11T12:44:03|user|25|30014|-1|-1\n"
x2go-DEBUG-../src/onmainwindow.cpp:4864> No shadow session.
x2go-DEBUG-../src/onmainwindow.cpp:4887> "Decoding session string:29416|user-50-1620729841_stDxterm_dp24|50|voidlinux|R|2021-05-11T12:44:01|c0ff2328004e6c6706dd647f9d56a476|192.168.100.1|30012|30013|2021-05-11T12:44:03|user|25|30014|-1|-1"
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (39 preceding siblings ...)
  2021-05-11 10:45 ` eoli3n
@ 2021-05-11 10:46 ` eoli3n
  2021-05-11 10:47 ` eoli3n
                   ` (13 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11 10:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 10211 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] create ``perl-Switch`` package

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

Note : in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```
During the build the ``x2gouser`` group doesn't exist
```
➜ ./xbps-src install x2goserver
[...]
➜ sudo chroot masterdir /bin/bash
bash-5.1# getent group x2gouser
bash-5.1# 
```
It seems that the test fo the group ``x2gouser`` during the build phase fails : https://github.com/eugenesan/x2goserver/blob/master/libx2go-server-db-perl/Makefile#L58
```
	getent group x2gouser &>/dev/null && chown root:x2gouser $(DESTDIR)$(LIBDIR)/libx2go-server-db-sqlite3-wrapper || true
```
- [x] add ``INSTALL`` file to automate this

--------
Check spec to see if missing deps:
- https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec : old file, not present in latest release
- https://gitweb.gentoo.org/repo/gentoo.git/tree/net-misc/x2goserver/x2goserver-4.1.0.3-r1.ebuild
- [x] which
- [x] pwgen
- [x] net-tools
- [x] perl-Try-Tiny
- [x] perl-Switch 

--------
Now i get
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```
on the client, the file ``~/.x2go/C-user-50-1620727693_stDxterm_dp32/session.log``
```

running as X2Go Agent

NXAGENT - Version 3.5.99.26

Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com)
Copyright (c) 2008-2014 Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
Copyright (c) 2011-2016 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Copyright (c) 2014-2016 Ulrich Sibiller <uli42@gmx.de>
Copyright (c) 2014-2016 Mihai Moldovan <ionic@ionic.de>
Copyright (c) 2015-2016 Qindel Group (http://www.qindel.com)
See https://github.com/ArcticaProject/nx-libs for more information.

Info: Agent running with pid '24264'.
Session: Starting session at 'Tue May 11 12:08:14 2021'.
Error: Aborting session with 'Unable to open display 'nx/nx,options=/tmp/.x2go-user/C-user-50-1620727693_stDxterm_dp32/options:50''.
Session: Aborting session at 'Tue May 11 12:08:14 2021'.
Session: Session aborted at 'Tue May 11 12:08:14 2021'.
```
client debug log
```
x2go-DEBUG-../src/sshmasterconnection.cpp:764> SshMasterConnection, instance SshMasterConnection(0x5567175e86a0) waiting for thread to finish.
x2go-DEBUG-../src/sshmasterconnection.cpp:1908> Disconnecting ...

x2go-DEBUG-../src/sshmasterconnection.cpp:1917> Deleting channel connections.

x2go-DEBUG-../src/sshmasterconnection.cpp:1923> Disconnecting session.

x2go-DEBUG-../src/sshmasterconnection.cpp:1927> Deleting sockets.

x2go-DEBUG-../src/sshmasterconnection.cpp:1932> All channels closed and session disconnected. Quitting session loop.

x2go-DEBUG-../src/sshmasterconnection.cpp:766> SshMasterConnection, instance SshMasterConnection(0x5567175e86a0) thread finished.
x2go-DEBUG-../src/sshprocess.cpp:52> SshProcess destructor called.
x2go-DEBUG-../src/sshprocess.cpp:52> SshProcess destructor called.
x2go-DEBUG-../src/sshmasterconnection.cpp:771> SshMasterConnection, instance SshMasterConnection(0x5567175e86a0) finished destructor.
x2go-INFO-8> "Démarrage de la connexion au serveur : 192.168.100.194:22"
x2go-DEBUG-../src/onmainwindow.cpp:2853> Starting new ssh connection to server:"192.168.100.194":"22" krbLogin: false
x2go-DEBUG-../src/sshmasterconnection.cpp:168> SshMasterConnection, host "192.168.100.194"; port 22; user "user"; useproxy false; proxyserver ""; proxyport 22
x2go-DEBUG-../src/sshmasterconnection.cpp:248> Starting SSH connection without Kerberos authentication.
x2go-DEBUG-../src/sshmasterconnection.cpp:250> SshMasterConnection, instance SshMasterConnection(0x7f17180093e0) created.
x2go-DEBUG-../src/sshmasterconnection.cpp:495> SshMasterConnection, instance SshMasterConnection(0x7f17180093e0) entering thread.
x2go-DEBUG-../src/sshmasterconnection.cpp:797> Session port before config file parse: 22
x2go-DEBUG-../src/sshmasterconnection.cpp:807> Session port after config file parse: 22
x2go-DEBUG-../src/sshmasterconnection.cpp:870> Session port before config file parse (part 2): 22
x2go-DEBUG-../src/sshmasterconnection.cpp:880> Session port after config file parse (part 2): 22
x2go-DEBUG-../src/sshmasterconnection.cpp:904> cserverAuth
x2go-DEBUG-../src/sshmasterconnection.cpp:943> state: 1

x2go-DEBUG-../src/sshmasterconnection.cpp:1218> Trying password mechanism if available.

x2go-DEBUG-../src/sshmasterconnection.cpp:1222> Password mechanism available. Continuing.

x2go-DEBUG-../src/sshmasterconnection.cpp:687> User authentication OK.
x2go-DEBUG-../src/sshmasterconnection.cpp:1708> LOGIN CHECK:"LOGIN OK\r\n"
x2go-DEBUG-../src/sshmasterconnection.cpp:1711> don't have interaction
x2go-DEBUG-../src/sshmasterconnection.cpp:1744> LOOP FINISHED
x2go-DEBUG-../src/sshmasterconnection.cpp:1748> No interaction needed, continue session
x2go-DEBUG-../src/sshmasterconnection.cpp:702> Login Check - OK
x2go-DEBUG-../src/onmainwindow.cpp:2947> SSH connection established.
x2go-DEBUG-../src/onmainwindow.cpp:3374> Continue normal X2Go session
x2go-DEBUG-../src/sshprocess.cpp:199> Executing remote command via SshProcess object 0: "x2golistsessions"
x2go-DEBUG-../src/sshprocess.cpp:213> this=SshProcess(0x556717980470) Running masterCon->addChannelConnection(this, '"cb9b7680-ab57-41da-beed-3a7e4c364a30"', '"bash -l -c 'echo \"X2GODATABEGIN:cb9b7680-ab57-41da-beed-3a7e4c364a30\"; export PATH=\"/usr/local/bin:/usr/bin:/bin\";export TERM=\"dumb\"; x2golistsessions; echo \"X2GODATAEND:cb9b7680-ab57-41da-beed-3a7e4c"');
x2go-DEBUG-../src/sshmasterconnection.cpp:1810> Locking SSH channel connection MUTEX.
x2go-DEBUG-../src/sshmasterconnection.cpp:1812> Passing new channel connection object to channelConnections.
x2go-DEBUG-../src/sshmasterconnection.cpp:1814> Unlocking SSH channel connection MUTEX.
x2go-DEBUG-../src/sshmasterconnection.cpp:1977> Creating new channel.

x2go-DEBUG-../src/sshmasterconnection.cpp:1990> New channel:0x7f17140164e0

x2go-DEBUG-../src/sshmasterconnection.cpp:2065> Executing remote: "bash -l -c 'echo \"X2GODATABEGIN:cb9b7680-ab57-41da-beed-3a7e4c364a30\"; export PATH=\"/usr/local/bin:/usr/bin:/bin\";export TERM=\"dumb\"; x2golistsessions; echo \"X2GODATAEND:cb9b7680-ab57-41da-beed-3a7e4c364a30\";'"

x2go-DEBUG-../src/sshmasterconnection.cpp:2082> New exec channel created.

x2go-DEBUG-../src/sshmasterconnection.cpp:2121> EOF on channel 0x7f17140164e0; SshProcess object: 0
x2go-DEBUG-../src/sshmasterconnection.cpp:2222> EOF sent.
x2go-DEBUG-../src/sshmasterconnection.cpp:2224> Channel closed.
x2go-DEBUG-../src/sshprocess.cpp:532> SSH finished: raw output (stdout): "X2GODATABEGIN:cb9b7680-ab57-41da-beed-3a7e4c364a30\n29416|user-50-1620729841_stDxterm_dp24|50|voidlinux|R|2021-05-11T12:44:01|c0ff2328004e6c6706dd647f9d56a476|192.168.100.1|30012|30013|2021-05-11T12:44:03|user|25|30014|-1|-1\nX2GODATAEND:cb9b7680-ab57-41da-beed-3a7e4c364a30\n"
x2go-DEBUG-../src/sshprocess.cpp:543> SSH finished: true - "29416|user-50-1620729841_stDxterm_dp24|50|voidlinux|R|2021-05-11T12:44:01|c0ff2328004e6c6706dd647f9d56a476|192.168.100.1|30012|30013|2021-05-11T12:44:03|user|25|30014|-1|-1\n" (0).
x2go-DEBUG-../src/onmainwindow.cpp:3861> "29416|user-50-1620729841_stDxterm_dp24|50|voidlinux|R|2021-05-11T12:44:01|c0ff2328004e6c6706dd647f9d56a476|192.168.100.1|30012|30013|2021-05-11T12:44:03|user|25|30014|-1|-1\n"
x2go-DEBUG-../src/onmainwindow.cpp:4864> No shadow session.
x2go-DEBUG-../src/onmainwindow.cpp:4887> "Decoding session string:29416|user-50-1620729841_stDxterm_dp24|50|voidlinux|R|2021-05-11T12:44:01|c0ff2328004e6c6706dd647f9d56a476|192.168.100.1|30012|30013|2021-05-11T12:44:03|user|25|30014|-1|-1"
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (40 preceding siblings ...)
  2021-05-11 10:46 ` eoli3n
@ 2021-05-11 10:47 ` eoli3n
  2021-05-11 10:49 ` eoli3n
                   ` (12 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11 10:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 5628 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] create ``perl-Switch`` package

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

Note : in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```
During the build the ``x2gouser`` group doesn't exist
```
➜ ./xbps-src install x2goserver
[...]
➜ sudo chroot masterdir /bin/bash
bash-5.1# getent group x2gouser
bash-5.1# 
```
It seems that the test fo the group ``x2gouser`` during the build phase fails : https://github.com/eugenesan/x2goserver/blob/master/libx2go-server-db-perl/Makefile#L58
```
	getent group x2gouser &>/dev/null && chown root:x2gouser $(DESTDIR)$(LIBDIR)/libx2go-server-db-sqlite3-wrapper || true
```
- [x] add ``INSTALL`` file to automate this

--------
Check spec to see if missing deps:
- https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec : old file, not present in latest release
- https://gitweb.gentoo.org/repo/gentoo.git/tree/net-misc/x2goserver/x2goserver-4.1.0.3-r1.ebuild
- [x] which
- [x] pwgen
- [x] net-tools
- [x] perl-Try-Tiny
- [x] perl-Switch 

--------
Now i get
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```
on the client, the file ``~/.x2go/C-user-50-1620727693_stDxterm_dp32/session.log``
```

running as X2Go Agent

NXAGENT - Version 3.5.99.26

Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com)
Copyright (c) 2008-2014 Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
Copyright (c) 2011-2016 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Copyright (c) 2014-2016 Ulrich Sibiller <uli42@gmx.de>
Copyright (c) 2014-2016 Mihai Moldovan <ionic@ionic.de>
Copyright (c) 2015-2016 Qindel Group (http://www.qindel.com)
See https://github.com/ArcticaProject/nx-libs for more information.

Info: Agent running with pid '24264'.
Session: Starting session at 'Tue May 11 12:08:14 2021'.
Error: Aborting session with 'Unable to open display 'nx/nx,options=/tmp/.x2go-user/C-user-50-1620727693_stDxterm_dp32/options:50''.
Session: Aborting session at 'Tue May 11 12:08:14 2021'.
Session: Session aborted at 'Tue May 11 12:08:14 2021'.
```
client debug log
```
x2go-DEBUG-../src/sshmasterconnection.cpp:2082> New exec channel created.

x2go-DEBUG-../src/sshmasterconnection.cpp:2121> EOF on channel 0x7f1714017fa0; SshProcess object: 2
x2go-DEBUG-../src/sshmasterconnection.cpp:2222> EOF sent.
x2go-DEBUG-../src/sshmasterconnection.cpp:2224> Channel closed.
x2go-DEBUG-../src/sshprocess.cpp:532> SSH finished: raw output (stdout): "X2GODATABEGIN:92557b92-6d22-410e-baba-48d477d5f9ee\nX2GODATAEND:92557b92-6d22-410e-baba-48d477d5f9ee\n"
x2go-DEBUG-../src/sshprocess.cpp:538> Have stderr only, something must be wrong.
x2go-DEBUG-../src/sshprocess.cpp:543> SSH finished: false - "Failed to start X2Go Agent session with ID user-50-1620730042_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup.\n" (2).
x2go-DEBUG-../src/onmainwindow.cpp:5425> Agent output: "Failed to start X2Go Agent session with ID user-50-1620730042_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup.\n"
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (41 preceding siblings ...)
  2021-05-11 10:47 ` eoli3n
@ 2021-05-11 10:49 ` eoli3n
  2021-05-11 10:50 ` eoli3n
                   ` (11 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11 10:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 5655 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] create ``perl-Switch`` package

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

Note : in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```
During the build the ``x2gouser`` group doesn't exist
```
➜ ./xbps-src install x2goserver
[...]
➜ sudo chroot masterdir /bin/bash
bash-5.1# getent group x2gouser
bash-5.1# 
```
It seems that the test fo the group ``x2gouser`` during the build phase fails : https://github.com/eugenesan/x2goserver/blob/master/libx2go-server-db-perl/Makefile#L58
```
	getent group x2gouser &>/dev/null && chown root:x2gouser $(DESTDIR)$(LIBDIR)/libx2go-server-db-sqlite3-wrapper || true
```
- [x] add ``INSTALL`` file to automate this

--------
Check spec to see if missing deps:
- https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec : old file, not present in latest release
- https://gitweb.gentoo.org/repo/gentoo.git/tree/net-misc/x2goserver/x2goserver-4.1.0.3-r1.ebuild
- [x] which
- [x] pwgen
- [x] xhost
- [x] xwininfo
- [x] perl-Try-Tiny
- [x] perl-Switch 

--------
Now i get
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```
on the client, the file ``~/.x2go/C-user-50-1620727693_stDxterm_dp32/session.log``
```

running as X2Go Agent

NXAGENT - Version 3.5.99.26

Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com)
Copyright (c) 2008-2014 Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
Copyright (c) 2011-2016 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Copyright (c) 2014-2016 Ulrich Sibiller <uli42@gmx.de>
Copyright (c) 2014-2016 Mihai Moldovan <ionic@ionic.de>
Copyright (c) 2015-2016 Qindel Group (http://www.qindel.com)
See https://github.com/ArcticaProject/nx-libs for more information.

Info: Agent running with pid '24264'.
Session: Starting session at 'Tue May 11 12:08:14 2021'.
Error: Aborting session with 'Unable to open display 'nx/nx,options=/tmp/.x2go-user/C-user-50-1620727693_stDxterm_dp32/options:50''.
Session: Aborting session at 'Tue May 11 12:08:14 2021'.
Session: Session aborted at 'Tue May 11 12:08:14 2021'.
```
client started with ``--debug``
```
x2go-DEBUG-../src/sshmasterconnection.cpp:2082> New exec channel created.

x2go-DEBUG-../src/sshmasterconnection.cpp:2121> EOF on channel 0x7f1714017fa0; SshProcess object: 2
x2go-DEBUG-../src/sshmasterconnection.cpp:2222> EOF sent.
x2go-DEBUG-../src/sshmasterconnection.cpp:2224> Channel closed.
x2go-DEBUG-../src/sshprocess.cpp:532> SSH finished: raw output (stdout): "X2GODATABEGIN:92557b92-6d22-410e-baba-48d477d5f9ee\nX2GODATAEND:92557b92-6d22-410e-baba-48d477d5f9ee\n"
x2go-DEBUG-../src/sshprocess.cpp:538> Have stderr only, something must be wrong.
x2go-DEBUG-../src/sshprocess.cpp:543> SSH finished: false - "Failed to start X2Go Agent session with ID user-50-1620730042_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup.\n" (2).
x2go-DEBUG-../src/onmainwindow.cpp:5425> Agent output: "Failed to start X2Go Agent session with ID user-50-1620730042_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup.\n"
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (42 preceding siblings ...)
  2021-05-11 10:49 ` eoli3n
@ 2021-05-11 10:50 ` eoli3n
  2021-05-11 10:51 ` eoli3n
                   ` (10 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11 10:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 7221 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] create ``perl-Switch`` package

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

Note : in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```
During the build the ``x2gouser`` group doesn't exist
```
➜ ./xbps-src install x2goserver
[...]
➜ sudo chroot masterdir /bin/bash
bash-5.1# getent group x2gouser
bash-5.1# 
```
It seems that the test fo the group ``x2gouser`` during the build phase fails : https://github.com/eugenesan/x2goserver/blob/master/libx2go-server-db-perl/Makefile#L58
```
	getent group x2gouser &>/dev/null && chown root:x2gouser $(DESTDIR)$(LIBDIR)/libx2go-server-db-sqlite3-wrapper || true
```
- [x] add ``INSTALL`` file to automate this

--------
Check spec to see if missing deps:
- https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec : old file, not present in latest release
- https://gitweb.gentoo.org/repo/gentoo.git/tree/net-misc/x2goserver/x2goserver-4.1.0.3-r1.ebuild
- [x] which
- [x] pwgen
- [x] xhost
- [x] xwininfo
- [x] perl-Try-Tiny
- [x] perl-Switch 

--------

Next ->
On the server:
```
➜ sudo rm -vf /var/lib/x2go/x2go_sessions; sudo x2godbadmin --createdb; sudo x2gocleansessions --debug
Mot de passe : 
Tue May 11 12:42:30 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32, pid 27658: does not exist, changing status from R to F
Tue May 11 12:42:30 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32: unmounting all shares
Tue May 11 12:42:33 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32: removed from database, not updating status.
Tue May 11 12:42:33 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32: in failed state, but agent is gone, forgetting.
Tue May 11 12:44:31 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24, pid 29416: does not exist, changing status from R to F
Tue May 11 12:44:31 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24: unmounting all shares
Tue May 11 12:44:34 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24: removed from database, not updating status.
Tue May 11 12:44:34 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24: in failed state, but agent is gone, forgetting.
Tue May 11 12:47:54 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24, pid 31944: does not exist, changing status from R to F
Tue May 11 12:47:54 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24: unmounting all shares
Tue May 11 12:47:57 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24: removed from database, not updating status.
Tue May 11 12:47:57 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24: in failed state, but agent is gone, forgetting.
```
Error on the client
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```
on the client, the file ``~/.x2go/C-user-50-1620727693_stDxterm_dp32/session.log``
```

running as X2Go Agent

NXAGENT - Version 3.5.99.26

Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com)
Copyright (c) 2008-2014 Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
Copyright (c) 2011-2016 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Copyright (c) 2014-2016 Ulrich Sibiller <uli42@gmx.de>
Copyright (c) 2014-2016 Mihai Moldovan <ionic@ionic.de>
Copyright (c) 2015-2016 Qindel Group (http://www.qindel.com)
See https://github.com/ArcticaProject/nx-libs for more information.

Info: Agent running with pid '24264'.
Session: Starting session at 'Tue May 11 12:08:14 2021'.
Error: Aborting session with 'Unable to open display 'nx/nx,options=/tmp/.x2go-user/C-user-50-1620727693_stDxterm_dp32/options:50''.
Session: Aborting session at 'Tue May 11 12:08:14 2021'.
Session: Session aborted at 'Tue May 11 12:08:14 2021'.
```
client started with ``--debug``
```
x2go-DEBUG-../src/sshmasterconnection.cpp:2082> New exec channel created.

x2go-DEBUG-../src/sshmasterconnection.cpp:2121> EOF on channel 0x7f1714017fa0; SshProcess object: 2
x2go-DEBUG-../src/sshmasterconnection.cpp:2222> EOF sent.
x2go-DEBUG-../src/sshmasterconnection.cpp:2224> Channel closed.
x2go-DEBUG-../src/sshprocess.cpp:532> SSH finished: raw output (stdout): "X2GODATABEGIN:92557b92-6d22-410e-baba-48d477d5f9ee\nX2GODATAEND:92557b92-6d22-410e-baba-48d477d5f9ee\n"
x2go-DEBUG-../src/sshprocess.cpp:538> Have stderr only, something must be wrong.
x2go-DEBUG-../src/sshprocess.cpp:543> SSH finished: false - "Failed to start X2Go Agent session with ID user-50-1620730042_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup.\n" (2).
x2go-DEBUG-../src/onmainwindow.cpp:5425> Agent output: "Failed to start X2Go Agent session with ID user-50-1620730042_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup.\n"
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (43 preceding siblings ...)
  2021-05-11 10:50 ` eoli3n
@ 2021-05-11 10:51 ` eoli3n
  2021-05-11 11:47 ` eoli3n
                   ` (9 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11 10:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 7106 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] create ``perl-Switch`` package

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

Note : in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```
During the build the ``x2gouser`` group doesn't exist
```
➜ ./xbps-src install x2goserver
[...]
➜ sudo chroot masterdir /bin/bash
bash-5.1# getent group x2gouser
bash-5.1# 
```
It seems that the test fo the group ``x2gouser`` during the build phase fails : https://github.com/eugenesan/x2goserver/blob/master/libx2go-server-db-perl/Makefile#L58
```
	getent group x2gouser &>/dev/null && chown root:x2gouser $(DESTDIR)$(LIBDIR)/libx2go-server-db-sqlite3-wrapper || true
```
- [x] add ``INSTALL`` file to automate this

--------
Check spec to see if missing deps:
- https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec : old file, not present in latest release
- https://gitweb.gentoo.org/repo/gentoo.git/tree/net-misc/x2goserver/x2goserver-4.1.0.3-r1.ebuild
- [x] which
- [x] pwgen
- [x] xhost
- [x] xwininfo
- [x] perl-Try-Tiny
- [x] perl-Switch 

--------

Next ->
On the server:
```
➜ sudo rm -vf /var/lib/x2go/x2go_sessions; sudo x2godbadmin --createdb; sudo x2gocleansessions --debug
Mot de passe : 
Tue May 11 12:42:30 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32, pid 27658: does not exist, changing status from R to F
Tue May 11 12:42:30 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32: unmounting all shares
Tue May 11 12:42:33 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32: removed from database, not updating status.
Tue May 11 12:42:33 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32: in failed state, but agent is gone, forgetting.
Tue May 11 12:44:31 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24, pid 29416: does not exist, changing status from R to F
Tue May 11 12:44:31 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24: unmounting all shares
Tue May 11 12:44:34 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24: removed from database, not updating status.
Tue May 11 12:44:34 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24: in failed state, but agent is gone, forgetting.
Tue May 11 12:47:54 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24, pid 31944: does not exist, changing status from R to F
Tue May 11 12:47:54 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24: unmounting all shares
Tue May 11 12:47:57 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24: removed from database, not updating status.
Tue May 11 12:47:57 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24: in failed state, but agent is gone, forgetting.
```
Error on the client
```
Échec de la connexion Failed to start X2Go Agent session with ID user-50-1620730274_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup. 
```
on the client, the file ``~/.x2go/C-user-50-1620727693_stDxterm_dp32/session.log``
```

running as X2Go Agent

NXAGENT - Version 3.5.99.26

Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com)
Copyright (c) 2008-2014 Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
Copyright (c) 2011-2016 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Copyright (c) 2014-2016 Ulrich Sibiller <uli42@gmx.de>
Copyright (c) 2014-2016 Mihai Moldovan <ionic@ionic.de>
Copyright (c) 2015-2016 Qindel Group (http://www.qindel.com)
See https://github.com/ArcticaProject/nx-libs for more information.

Info: Agent running with pid '24264'.
Session: Starting session at 'Tue May 11 12:08:14 2021'.
Error: Aborting session with 'Unable to open display 'nx/nx,options=/tmp/.x2go-user/C-user-50-1620727693_stDxterm_dp32/options:50''.
Session: Aborting session at 'Tue May 11 12:08:14 2021'.
Session: Session aborted at 'Tue May 11 12:08:14 2021'.
```
client started with ``--debug``
```
x2go-DEBUG-../src/sshmasterconnection.cpp:2082> New exec channel created.

x2go-DEBUG-../src/sshmasterconnection.cpp:2121> EOF on channel 0x7f1714017fa0; SshProcess object: 2
x2go-DEBUG-../src/sshmasterconnection.cpp:2222> EOF sent.
x2go-DEBUG-../src/sshmasterconnection.cpp:2224> Channel closed.
x2go-DEBUG-../src/sshprocess.cpp:532> SSH finished: raw output (stdout): "X2GODATABEGIN:92557b92-6d22-410e-baba-48d477d5f9ee\nX2GODATAEND:92557b92-6d22-410e-baba-48d477d5f9ee\n"
x2go-DEBUG-../src/sshprocess.cpp:538> Have stderr only, something must be wrong.
x2go-DEBUG-../src/sshprocess.cpp:543> SSH finished: false - "Failed to start X2Go Agent session with ID user-50-1620730042_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup.\n" (2).
x2go-DEBUG-../src/onmainwindow.cpp:5425> Agent output: "Failed to start X2Go Agent session with ID user-50-1620730042_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup.\n"
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (44 preceding siblings ...)
  2021-05-11 10:51 ` eoli3n
@ 2021-05-11 11:47 ` eoli3n
  2021-05-11 11:47 ` eoli3n
                   ` (8 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11 11:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 7898 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] create ``perl-Switch`` package

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

Note : in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```
During the build the ``x2gouser`` group doesn't exist
```
➜ ./xbps-src install x2goserver
[...]
➜ sudo chroot masterdir /bin/bash
bash-5.1# getent group x2gouser
bash-5.1# 
```
It seems that the test fo the group ``x2gouser`` during the build phase fails : https://github.com/eugenesan/x2goserver/blob/master/libx2go-server-db-perl/Makefile#L58
```
	getent group x2gouser &>/dev/null && chown root:x2gouser $(DESTDIR)$(LIBDIR)/libx2go-server-db-sqlite3-wrapper || true
```
- [x] add ``INSTALL`` file to automate this

--------
Check spec to see if missing deps:
- https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec : old file, not present in latest release
- https://gitweb.gentoo.org/repo/gentoo.git/tree/net-misc/x2goserver/x2goserver-4.1.0.3-r1.ebuild
- [x] which
- [x] pwgen
- [x] xhost
- [x] xwininfo
- [x] perl-Try-Tiny
- [x] perl-Switch 

--------

Next ->
On the server:
```
➜ sudo rm -vf /var/lib/x2go/x2go_sessions; sudo x2godbadmin --createdb; sudo x2gocleansessions --debug
Mot de passe : 
Tue May 11 12:42:30 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32, pid 27658: does not exist, changing status from R to F
Tue May 11 12:42:30 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32: unmounting all shares
Tue May 11 12:42:33 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32: removed from database, not updating status.
Tue May 11 12:42:33 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32: in failed state, but agent is gone, forgetting.
Tue May 11 12:44:31 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24, pid 29416: does not exist, changing status from R to F
Tue May 11 12:44:31 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24: unmounting all shares
Tue May 11 12:44:34 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24: removed from database, not updating status.
Tue May 11 12:44:34 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24: in failed state, but agent is gone, forgetting.
Tue May 11 12:47:54 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24, pid 31944: does not exist, changing status from R to F
Tue May 11 12:47:54 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24: unmounting all shares
Tue May 11 12:47:57 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24: removed from database, not updating status.
Tue May 11 12:47:57 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24: in failed state, but agent is gone, forgetting.
```
Error on the client
```
Échec de la connexion Failed to start X2Go Agent session with ID user-50-1620730274_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup. 
```
on the client, the file ``~/.x2go/C-user-50-1620727693_stDxterm_dp32/session.log``
```

running as X2Go Agent

NXAGENT - Version 3.5.99.26

Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com)
Copyright (c) 2008-2014 Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
Copyright (c) 2011-2016 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Copyright (c) 2014-2016 Ulrich Sibiller <uli42@gmx.de>
Copyright (c) 2014-2016 Mihai Moldovan <ionic@ionic.de>
Copyright (c) 2015-2016 Qindel Group (http://www.qindel.com)
See https://github.com/ArcticaProject/nx-libs for more information.

Info: Agent running with pid '24264'.
Session: Starting session at 'Tue May 11 12:08:14 2021'.
Error: Aborting session with 'Unable to open display 'nx/nx,options=/tmp/.x2go-user/C-user-50-1620727693_stDxterm_dp32/options:50''.
Session: Aborting session at 'Tue May 11 12:08:14 2021'.
Session: Session aborted at 'Tue May 11 12:08:14 2021'.
```
client started with ``--debug``
```
x2go-DEBUG-../src/sshmasterconnection.cpp:2082> New exec channel created.

x2go-DEBUG-../src/sshmasterconnection.cpp:2121> EOF on channel 0x7f1714017fa0; SshProcess object: 2
x2go-DEBUG-../src/sshmasterconnection.cpp:2222> EOF sent.
x2go-DEBUG-../src/sshmasterconnection.cpp:2224> Channel closed.
x2go-DEBUG-../src/sshprocess.cpp:532> SSH finished: raw output (stdout): "X2GODATABEGIN:92557b92-6d22-410e-baba-48d477d5f9ee\nX2GODATAEND:92557b92-6d22-410e-baba-48d477d5f9ee\n"
x2go-DEBUG-../src/sshprocess.cpp:538> Have stderr only, something must be wrong.
x2go-DEBUG-../src/sshprocess.cpp:543> SSH finished: false - "Failed to start X2Go Agent session with ID user-50-1620730042_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup.\n" (2).
x2go-DEBUG-../src/onmainwindow.cpp:5425> Agent output: "Failed to start X2Go Agent session with ID user-50-1620730042_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup.\n"
```

Problem is nxagent, graphically
```
[user@voidlinux ~]$ nxagent -ac :1

NXAGENT - Version 3.5.99.26

Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com)
Copyright (c) 2008-2014 Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
Copyright (c) 2011-2016 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Copyright (c) 2014-2016 Ulrich Sibiller <uli42@gmx.de>
Copyright (c) 2014-2016 Mihai Moldovan <ionic@ionic.de>
Copyright (c) 2015-2016 Qindel Group (http://www.qindel.com)
See https://github.com/ArcticaProject/nx-libs for more information.

Info: Agent running with pid '29051'.
Session: Starting session at 'Tue May 11 13:34:29 2021'.
Info: Using alpha channel in render extension.
nxagent: xcb_io.c:617: _XAllocID: Assertion `ret != inval_id' failed.
Aborted
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (45 preceding siblings ...)
  2021-05-11 11:47 ` eoli3n
@ 2021-05-11 11:47 ` eoli3n
  2021-05-11 11:57 ` eoli3n
                   ` (7 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11 11:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 7911 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] create ``perl-Switch`` package

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

Note : in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```
During the build the ``x2gouser`` group doesn't exist
```
➜ ./xbps-src install x2goserver
[...]
➜ sudo chroot masterdir /bin/bash
bash-5.1# getent group x2gouser
bash-5.1# 
```
It seems that the test fo the group ``x2gouser`` during the build phase fails : https://github.com/eugenesan/x2goserver/blob/master/libx2go-server-db-perl/Makefile#L58
```
	getent group x2gouser &>/dev/null && chown root:x2gouser $(DESTDIR)$(LIBDIR)/libx2go-server-db-sqlite3-wrapper || true
```
- [x] add ``INSTALL`` file to automate this

--------
Check spec to see if missing deps:
- https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec : old file, not present in latest release
- https://gitweb.gentoo.org/repo/gentoo.git/tree/net-misc/x2goserver/x2goserver-4.1.0.3-r1.ebuild
- [x] which
- [x] pwgen
- [x] xhost
- [x] xwininfo
- [x] perl-Try-Tiny
- [x] perl-Switch 

--------

Next ->
On the server:
```
➜ sudo rm -vf /var/lib/x2go/x2go_sessions; sudo x2godbadmin --createdb; sudo x2gocleansessions --debug
Mot de passe : 
Tue May 11 12:42:30 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32, pid 27658: does not exist, changing status from R to F
Tue May 11 12:42:30 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32: unmounting all shares
Tue May 11 12:42:33 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32: removed from database, not updating status.
Tue May 11 12:42:33 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32: in failed state, but agent is gone, forgetting.
Tue May 11 12:44:31 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24, pid 29416: does not exist, changing status from R to F
Tue May 11 12:44:31 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24: unmounting all shares
Tue May 11 12:44:34 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24: removed from database, not updating status.
Tue May 11 12:44:34 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24: in failed state, but agent is gone, forgetting.
Tue May 11 12:47:54 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24, pid 31944: does not exist, changing status from R to F
Tue May 11 12:47:54 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24: unmounting all shares
Tue May 11 12:47:57 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24: removed from database, not updating status.
Tue May 11 12:47:57 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24: in failed state, but agent is gone, forgetting.
```
Error on the client
```
Échec de la connexion Failed to start X2Go Agent session with ID user-50-1620730274_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup. 
```
on the client, the file ``~/.x2go/C-user-50-1620727693_stDxterm_dp32/session.log``
```

running as X2Go Agent

NXAGENT - Version 3.5.99.26

Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com)
Copyright (c) 2008-2014 Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
Copyright (c) 2011-2016 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Copyright (c) 2014-2016 Ulrich Sibiller <uli42@gmx.de>
Copyright (c) 2014-2016 Mihai Moldovan <ionic@ionic.de>
Copyright (c) 2015-2016 Qindel Group (http://www.qindel.com)
See https://github.com/ArcticaProject/nx-libs for more information.

Info: Agent running with pid '24264'.
Session: Starting session at 'Tue May 11 12:08:14 2021'.
Error: Aborting session with 'Unable to open display 'nx/nx,options=/tmp/.x2go-user/C-user-50-1620727693_stDxterm_dp32/options:50''.
Session: Aborting session at 'Tue May 11 12:08:14 2021'.
Session: Session aborted at 'Tue May 11 12:08:14 2021'.
```
client started with ``--debug``
```
x2go-DEBUG-../src/sshmasterconnection.cpp:2082> New exec channel created.

x2go-DEBUG-../src/sshmasterconnection.cpp:2121> EOF on channel 0x7f1714017fa0; SshProcess object: 2
x2go-DEBUG-../src/sshmasterconnection.cpp:2222> EOF sent.
x2go-DEBUG-../src/sshmasterconnection.cpp:2224> Channel closed.
x2go-DEBUG-../src/sshprocess.cpp:532> SSH finished: raw output (stdout): "X2GODATABEGIN:92557b92-6d22-410e-baba-48d477d5f9ee\nX2GODATAEND:92557b92-6d22-410e-baba-48d477d5f9ee\n"
x2go-DEBUG-../src/sshprocess.cpp:538> Have stderr only, something must be wrong.
x2go-DEBUG-../src/sshprocess.cpp:543> SSH finished: false - "Failed to start X2Go Agent session with ID user-50-1620730042_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup.\n" (2).
x2go-DEBUG-../src/onmainwindow.cpp:5425> Agent output: "Failed to start X2Go Agent session with ID user-50-1620730042_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup.\n"
```

``nxagent`` is not working, test graphically
```
[user@voidlinux ~]$ nxagent -ac :1

NXAGENT - Version 3.5.99.26

Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com)
Copyright (c) 2008-2014 Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
Copyright (c) 2011-2016 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Copyright (c) 2014-2016 Ulrich Sibiller <uli42@gmx.de>
Copyright (c) 2014-2016 Mihai Moldovan <ionic@ionic.de>
Copyright (c) 2015-2016 Qindel Group (http://www.qindel.com)
See https://github.com/ArcticaProject/nx-libs for more information.

Info: Agent running with pid '29051'.
Session: Starting session at 'Tue May 11 13:34:29 2021'.
Info: Using alpha channel in render extension.
nxagent: xcb_io.c:617: _XAllocID: Assertion `ret != inval_id' failed.
Aborted
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (46 preceding siblings ...)
  2021-05-11 11:47 ` eoli3n
@ 2021-05-11 11:57 ` eoli3n
  2021-05-11 12:30 ` eoli3n
                   ` (6 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11 11:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 7981 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] create ``perl-Switch`` package

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

Note : in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```
During the build the ``x2gouser`` group doesn't exist
```
➜ ./xbps-src install x2goserver
[...]
➜ sudo chroot masterdir /bin/bash
bash-5.1# getent group x2gouser
bash-5.1# 
```
It seems that the test fo the group ``x2gouser`` during the build phase fails : https://github.com/eugenesan/x2goserver/blob/master/libx2go-server-db-perl/Makefile#L58
```
	getent group x2gouser &>/dev/null && chown root:x2gouser $(DESTDIR)$(LIBDIR)/libx2go-server-db-sqlite3-wrapper || true
```
- [x] add ``INSTALL`` file to automate this

--------
Check spec to see if missing deps:
- https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec : old file, not present in latest release
- https://gitweb.gentoo.org/repo/gentoo.git/tree/net-misc/x2goserver/x2goserver-4.1.0.3-r1.ebuild
- [x] which
- [x] pwgen
- [x] xhost
- [x] xwininfo
- [x] perl-Try-Tiny
- [x] perl-Switch 

--------

Next ->
On the server:
```
➜ sudo rm -vf /var/lib/x2go/x2go_sessions; sudo x2godbadmin --createdb; sudo x2gocleansessions --debug
Mot de passe : 
Tue May 11 12:42:30 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32, pid 27658: does not exist, changing status from R to F
Tue May 11 12:42:30 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32: unmounting all shares
Tue May 11 12:42:33 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32: removed from database, not updating status.
Tue May 11 12:42:33 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32: in failed state, but agent is gone, forgetting.
Tue May 11 12:44:31 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24, pid 29416: does not exist, changing status from R to F
Tue May 11 12:44:31 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24: unmounting all shares
Tue May 11 12:44:34 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24: removed from database, not updating status.
Tue May 11 12:44:34 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24: in failed state, but agent is gone, forgetting.
Tue May 11 12:47:54 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24, pid 31944: does not exist, changing status from R to F
Tue May 11 12:47:54 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24: unmounting all shares
Tue May 11 12:47:57 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24: removed from database, not updating status.
Tue May 11 12:47:57 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24: in failed state, but agent is gone, forgetting.
```
Error on the client
```
Échec de la connexion Failed to start X2Go Agent session with ID user-50-1620730274_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup. 
```
on the client, the file ``~/.x2go/C-user-50-1620727693_stDxterm_dp32/session.log``
```

running as X2Go Agent

NXAGENT - Version 3.5.99.26

Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com)
Copyright (c) 2008-2014 Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
Copyright (c) 2011-2016 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Copyright (c) 2014-2016 Ulrich Sibiller <uli42@gmx.de>
Copyright (c) 2014-2016 Mihai Moldovan <ionic@ionic.de>
Copyright (c) 2015-2016 Qindel Group (http://www.qindel.com)
See https://github.com/ArcticaProject/nx-libs for more information.

Info: Agent running with pid '24264'.
Session: Starting session at 'Tue May 11 12:08:14 2021'.
Error: Aborting session with 'Unable to open display 'nx/nx,options=/tmp/.x2go-user/C-user-50-1620727693_stDxterm_dp32/options:50''.
Session: Aborting session at 'Tue May 11 12:08:14 2021'.
Session: Session aborted at 'Tue May 11 12:08:14 2021'.
```
client started with ``--debug``
```
x2go-DEBUG-../src/sshmasterconnection.cpp:2082> New exec channel created.

x2go-DEBUG-../src/sshmasterconnection.cpp:2121> EOF on channel 0x7f1714017fa0; SshProcess object: 2
x2go-DEBUG-../src/sshmasterconnection.cpp:2222> EOF sent.
x2go-DEBUG-../src/sshmasterconnection.cpp:2224> Channel closed.
x2go-DEBUG-../src/sshprocess.cpp:532> SSH finished: raw output (stdout): "X2GODATABEGIN:92557b92-6d22-410e-baba-48d477d5f9ee\nX2GODATAEND:92557b92-6d22-410e-baba-48d477d5f9ee\n"
x2go-DEBUG-../src/sshprocess.cpp:538> Have stderr only, something must be wrong.
x2go-DEBUG-../src/sshprocess.cpp:543> SSH finished: false - "Failed to start X2Go Agent session with ID user-50-1620730042_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup.\n" (2).
x2go-DEBUG-../src/onmainwindow.cpp:5425> Agent output: "Failed to start X2Go Agent session with ID user-50-1620730042_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup.\n"
```

``nxagent`` is not working, test graphically
```
[user@voidlinux ~]$ nxagent -ac :1

NXAGENT - Version 3.5.99.26

Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com)
Copyright (c) 2008-2014 Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
Copyright (c) 2011-2016 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Copyright (c) 2014-2016 Ulrich Sibiller <uli42@gmx.de>
Copyright (c) 2014-2016 Mihai Moldovan <ionic@ionic.de>
Copyright (c) 2015-2016 Qindel Group (http://www.qindel.com)
See https://github.com/ArcticaProject/nx-libs for more information.

Info: Agent running with pid '29051'.
Session: Starting session at 'Tue May 11 13:34:29 2021'.
Info: Using alpha channel in render extension.
nxagent: xcb_io.c:617: _XAllocID: Assertion `ret != inval_id' failed.
Aborted
```

Help asked on https://github.com/ArcticaProject/nx-libs/issues/975

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (47 preceding siblings ...)
  2021-05-11 11:57 ` eoli3n
@ 2021-05-11 12:30 ` eoli3n
  2021-05-11 17:29 ` eoli3n
                   ` (5 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11 12:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 8004 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] create ``perl-Switch`` package

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

Note : in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```
During the build the ``x2gouser`` group doesn't exist
```
➜ ./xbps-src install x2goserver
[...]
➜ sudo chroot masterdir /bin/bash
bash-5.1# getent group x2gouser
bash-5.1# 
```
It seems that the test fo the group ``x2gouser`` during the build phase fails : https://github.com/eugenesan/x2goserver/blob/master/libx2go-server-db-perl/Makefile#L58
```
	getent group x2gouser &>/dev/null && chown root:x2gouser $(DESTDIR)$(LIBDIR)/libx2go-server-db-sqlite3-wrapper || true
```
- [x] add ``INSTALL`` file to automate this

--------
Check spec to see if missing deps:
- https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec : old file, not present in latest release
- https://gitweb.gentoo.org/repo/gentoo.git/tree/net-misc/x2goserver/x2goserver-4.1.0.3-r1.ebuild
- [x] which
- [x] pwgen
- [x] xhost
- [x] xwininfo
- [x] perl-Try-Tiny
- [x] perl-Switch 

--------

Next ->
On the server:
```
➜ sudo rm -vf /var/lib/x2go/x2go_sessions; sudo x2godbadmin --createdb; sudo x2gocleansessions --debug
Mot de passe : 
Tue May 11 12:42:30 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32, pid 27658: does not exist, changing status from R to F
Tue May 11 12:42:30 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32: unmounting all shares
Tue May 11 12:42:33 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32: removed from database, not updating status.
Tue May 11 12:42:33 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32: in failed state, but agent is gone, forgetting.
Tue May 11 12:44:31 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24, pid 29416: does not exist, changing status from R to F
Tue May 11 12:44:31 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24: unmounting all shares
Tue May 11 12:44:34 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24: removed from database, not updating status.
Tue May 11 12:44:34 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24: in failed state, but agent is gone, forgetting.
Tue May 11 12:47:54 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24, pid 31944: does not exist, changing status from R to F
Tue May 11 12:47:54 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24: unmounting all shares
Tue May 11 12:47:57 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24: removed from database, not updating status.
Tue May 11 12:47:57 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24: in failed state, but agent is gone, forgetting.
```
Error on the client
```
Échec de la connexion Failed to start X2Go Agent session with ID user-50-1620730274_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup. 
```
on the client, the file ``~/.x2go/C-user-50-1620727693_stDxterm_dp32/session.log``
```

running as X2Go Agent

NXAGENT - Version 3.5.99.26

Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com)
Copyright (c) 2008-2014 Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
Copyright (c) 2011-2016 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Copyright (c) 2014-2016 Ulrich Sibiller <uli42@gmx.de>
Copyright (c) 2014-2016 Mihai Moldovan <ionic@ionic.de>
Copyright (c) 2015-2016 Qindel Group (http://www.qindel.com)
See https://github.com/ArcticaProject/nx-libs for more information.

Info: Agent running with pid '24264'.
Session: Starting session at 'Tue May 11 12:08:14 2021'.
Error: Aborting session with 'Unable to open display 'nx/nx,options=/tmp/.x2go-user/C-user-50-1620727693_stDxterm_dp32/options:50''.
Session: Aborting session at 'Tue May 11 12:08:14 2021'.
Session: Session aborted at 'Tue May 11 12:08:14 2021'.
```
client started with ``--debug``
```
x2go-DEBUG-../src/sshmasterconnection.cpp:2082> New exec channel created.

x2go-DEBUG-../src/sshmasterconnection.cpp:2121> EOF on channel 0x7f1714017fa0; SshProcess object: 2
x2go-DEBUG-../src/sshmasterconnection.cpp:2222> EOF sent.
x2go-DEBUG-../src/sshmasterconnection.cpp:2224> Channel closed.
x2go-DEBUG-../src/sshprocess.cpp:532> SSH finished: raw output (stdout): "X2GODATABEGIN:92557b92-6d22-410e-baba-48d477d5f9ee\nX2GODATAEND:92557b92-6d22-410e-baba-48d477d5f9ee\n"
x2go-DEBUG-../src/sshprocess.cpp:538> Have stderr only, something must be wrong.
x2go-DEBUG-../src/sshprocess.cpp:543> SSH finished: false - "Failed to start X2Go Agent session with ID user-50-1620730042_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup.\n" (2).
x2go-DEBUG-../src/onmainwindow.cpp:5425> Agent output: "Failed to start X2Go Agent session with ID user-50-1620730042_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup.\n"
```

``nxagent`` is not working, test graphically
```
[user@voidlinux ~]$ nxagent -ac :1

NXAGENT - Version 3.5.99.26

Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com)
Copyright (c) 2008-2014 Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
Copyright (c) 2011-2016 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Copyright (c) 2014-2016 Ulrich Sibiller <uli42@gmx.de>
Copyright (c) 2014-2016 Mihai Moldovan <ionic@ionic.de>
Copyright (c) 2015-2016 Qindel Group (http://www.qindel.com)
See https://github.com/ArcticaProject/nx-libs for more information.

Info: Agent running with pid '29051'.
Session: Starting session at 'Tue May 11 13:34:29 2021'.
Info: Using alpha channel in render extension.
nxagent: xcb_io.c:617: _XAllocID: Assertion `ret != inval_id' failed.
Aborted
```

Help asked on https://github.com/ArcticaProject/nx-libs/issues/975#issuecomment-838345143

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (48 preceding siblings ...)
  2021-05-11 12:30 ` eoli3n
@ 2021-05-11 17:29 ` eoli3n
  2021-05-11 18:51 ` eoli3n
                   ` (4 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11 17:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 8365 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] create ``perl-Switch`` package

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

Note : in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```
During the build the ``x2gouser`` group doesn't exist
```
➜ ./xbps-src install x2goserver
[...]
➜ sudo chroot masterdir /bin/bash
bash-5.1# getent group x2gouser
bash-5.1# 
```
It seems that the test fo the group ``x2gouser`` during the build phase fails : https://github.com/eugenesan/x2goserver/blob/master/libx2go-server-db-perl/Makefile#L58
```
	getent group x2gouser &>/dev/null && chown root:x2gouser $(DESTDIR)$(LIBDIR)/libx2go-server-db-sqlite3-wrapper || true
```
- [x] add ``INSTALL`` file to automate this

--------
Check spec to see if missing deps:
- https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec : old file, not present in latest release
- https://gitweb.gentoo.org/repo/gentoo.git/tree/net-misc/x2goserver/x2goserver-4.1.0.3-r1.ebuild
- [x] which
- [x] pwgen
- [x] xhost
- [x] xwininfo
- [x] perl-Try-Tiny
- [x] perl-Switch 

--------

Next ->
On the server:
```
➜ sudo rm -vf /var/lib/x2go/x2go_sessions; sudo x2godbadmin --createdb; sudo x2gocleansessions --debug
Mot de passe : 
Tue May 11 12:42:30 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32, pid 27658: does not exist, changing status from R to F
Tue May 11 12:42:30 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32: unmounting all shares
Tue May 11 12:42:33 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32: removed from database, not updating status.
Tue May 11 12:42:33 2021 ::: debug ::: user-50-1620729717_stDxterm_dp32: in failed state, but agent is gone, forgetting.
Tue May 11 12:44:31 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24, pid 29416: does not exist, changing status from R to F
Tue May 11 12:44:31 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24: unmounting all shares
Tue May 11 12:44:34 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24: removed from database, not updating status.
Tue May 11 12:44:34 2021 ::: debug ::: user-50-1620729841_stDxterm_dp24: in failed state, but agent is gone, forgetting.
Tue May 11 12:47:54 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24, pid 31944: does not exist, changing status from R to F
Tue May 11 12:47:54 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24: unmounting all shares
Tue May 11 12:47:57 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24: removed from database, not updating status.
Tue May 11 12:47:57 2021 ::: debug ::: user-50-1620730042_stDxterm_dp24: in failed state, but agent is gone, forgetting.
```
Error on the client
```
Échec de la connexion Failed to start X2Go Agent session with ID user-50-1620730274_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup. 
```
on the client, the file ``~/.x2go/C-user-50-1620727693_stDxterm_dp32/session.log``
```

running as X2Go Agent

NXAGENT - Version 3.5.99.26

Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com)
Copyright (c) 2008-2014 Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
Copyright (c) 2011-2016 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Copyright (c) 2014-2016 Ulrich Sibiller <uli42@gmx.de>
Copyright (c) 2014-2016 Mihai Moldovan <ionic@ionic.de>
Copyright (c) 2015-2016 Qindel Group (http://www.qindel.com)
See https://github.com/ArcticaProject/nx-libs for more information.

Info: Agent running with pid '24264'.
Session: Starting session at 'Tue May 11 12:08:14 2021'.
Error: Aborting session with 'Unable to open display 'nx/nx,options=/tmp/.x2go-user/C-user-50-1620727693_stDxterm_dp32/options:50''.
Session: Aborting session at 'Tue May 11 12:08:14 2021'.
Session: Session aborted at 'Tue May 11 12:08:14 2021'.
```
client started with ``--debug``
```
x2go-DEBUG-../src/sshmasterconnection.cpp:2082> New exec channel created.

x2go-DEBUG-../src/sshmasterconnection.cpp:2121> EOF on channel 0x7f1714017fa0; SshProcess object: 2
x2go-DEBUG-../src/sshmasterconnection.cpp:2222> EOF sent.
x2go-DEBUG-../src/sshmasterconnection.cpp:2224> Channel closed.
x2go-DEBUG-../src/sshprocess.cpp:532> SSH finished: raw output (stdout): "X2GODATABEGIN:92557b92-6d22-410e-baba-48d477d5f9ee\nX2GODATAEND:92557b92-6d22-410e-baba-48d477d5f9ee\n"
x2go-DEBUG-../src/sshprocess.cpp:538> Have stderr only, something must be wrong.
x2go-DEBUG-../src/sshprocess.cpp:543> SSH finished: false - "Failed to start X2Go Agent session with ID user-50-1620730042_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup.\n" (2).
x2go-DEBUG-../src/onmainwindow.cpp:5425> Agent output: "Failed to start X2Go Agent session with ID user-50-1620730042_stDxterm_dp24. X2Go Agent terminated unexpectedly. Aborting session startup.\n"
```

``nxagent`` is not working, test graphically
```
[user@voidlinux ~]$ nxagent -ac :1

NXAGENT - Version 3.5.99.26

Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com)
Copyright (c) 2008-2014 Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
Copyright (c) 2011-2016 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Copyright (c) 2014-2016 Ulrich Sibiller <uli42@gmx.de>
Copyright (c) 2014-2016 Mihai Moldovan <ionic@ionic.de>
Copyright (c) 2015-2016 Qindel Group (http://www.qindel.com)
See https://github.com/ArcticaProject/nx-libs for more information.

Info: Agent running with pid '29051'.
Session: Starting session at 'Tue May 11 13:34:29 2021'.
Info: Using alpha channel in render extension.
nxagent: xcb_io.c:617: _XAllocID: Assertion `ret != inval_id' failed.
Aborted
```

Help asked on https://github.com/ArcticaProject/nx-libs/issues/975#issuecomment-838345143

------

@ahesford gave a patch (thanks !)
https://github.com/eoli3n/void-packages/commit/b76d382b5476c8ba6fd27acfd985f9f62039011f#diff-2eadc08db060f205b61980e2c97c1d65c3a4cb02833abdbfdaf5addbafba59ac
But then rpath have ``/usr/local`` hard coded

```
[user@voidlinux void-packages]$ patchelf --print-rpath $(which nxagent)
/usr/local/lib/nx/X11
```

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (49 preceding siblings ...)
  2021-05-11 17:29 ` eoli3n
@ 2021-05-11 18:51 ` eoli3n
  2021-07-15 11:53 ` [ISSUE] [CLOSED] " ahesford
                   ` (3 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: eoli3n @ 2021-05-11 18:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 333 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-838994016

Comment:
@ahesford changed the patch and fixed nxagent.
x2goserver is WORKING !

![x2gook](https://user-images.githubusercontent.com/14223657/117869081-a3569400-b29a-11eb-970a-978b116c934c.png)



^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: [ISSUE] [CLOSED] x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (50 preceding siblings ...)
  2021-05-11 18:51 ` eoli3n
@ 2021-07-15 11:53 ` ahesford
  2023-02-11 15:28 ` devmalick
                   ` (2 subsequent siblings)
  54 siblings, 0 replies; 56+ messages in thread
From: ahesford @ 2021-07-15 11:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 4712 bytes --]

Closed issue by ahesford on void-packages repository

https://github.com/void-linux/void-packages/issues/30781

Description:
The x2goserver package does not work as packaged and also contains some other issues that should be rectified:
1. It seems some references to a prefix of `/usr/local` still exist, leading to connection failures. (See Reference below.)
2. The package is missing a `perl-Try-Tiny` dependency that is required for `x2godbadmin` to run.
3. `makepasswd` should not be a dependency; the ChangeLog notes that `makepasswd` was replaced with `pwgen`, but this only seems to be used with a Postgres or MySQL backend. This makes `pwgen` optional, so it shouldn't be a dependency either.
4. The `post_extract` function in the template should be `post_patch` instead. Sometimes it is desirable to step through `xbps-src` stages manually to investigate the state of the build directory, and those patches should only be applied by `xbps-src patch x2goserver`, *not* `xbps-src extract x2goserver` as would happen now.
5. A runit server for `x2gocleansessions` should be provided. This has some caveats. Running `x2gocleansessions` without arguments causes the process to fork, which will cause runit's `runsv` to lose supervision over the process. Running `x2gocleansessions --debug` will prevent the fork, but will also spam the console with useless messages every second or so. The `x2gocleansessions` script should probably be patched to separate the no-fork flag from the debug flag, and that patch should be upstreamed. In the meantime, I am not sure how best to handle this. Maybe just manually drop the forking logic so `x2gocleansessions` always runs in the foreground?

## Test Procedure
1. Install `x2goclient`, `x2goserver` on two hosts (server.remote and client.local).
2. On server.remote, execute (as root) `x2godbadmin --create`. (This requires `perl-Try-Tiny` be installed.)
3. On server.remote, run `x2gocleansessions --debug`.
4. On client.local, launch `x2goclient` and create a new session to `server.remote`, selecting a "Single application" session type and trying to run `/usr/bin/xterm` (or some other X11 application installed on server.remote).
5. Attempt to start the session and observe a pop-up dialog showing the connection failure message in the Reference below.

## Reference:
Failure message when connecting to a Void server:
```
Connection failed. /usr/lib/x2go/x2gocheckport: line 131:
'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':: syntax error:
operand expected (error token is
"'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':")
/usr/lib/x2go/x2gocheckport: line 131:
'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':: syntax error:
operand expected (error token is
"'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':")
/usr/lib/x2go/x2gocheckport: line 131:
'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':: syntax error:
operand expected (error token is
"'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':")
/usr/lib/x2go/x2gocheckport: line 131:
'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':: syntax error:
operand expected (error token is
"'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':")
/usr/lib/x2go/x2gocheckport: line 131:
'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':: syntax error:
operand expected (error token is
"'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':")
/usr/lib/x2go/x2gocheckport: line 131:
'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':: syntax error:
operand expected (error token is
"'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':")
/usr/lib/x2go/x2gocheckport: line 131:
'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':: syntax error:
operand expected (error token is
"'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':")
/usr/lib/x2go/x2gocheckport: line 131:
'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':: syntax error:
operand expected (error token is
"'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':")
/usr/lib/x2go/x2gocheckport: line 131:
'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':: syntax error:
operand expected (error token is
"'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':")
/usr/lib/x2go/x2gocheckport: line 131:
'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':: syntax error:
operand expected (error token is
"'/usr/local/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl':") Unable to find
free display port or insert new session into database; parameters: port (50),
hostname (my.remote.host.com) and session name ().
```
cc: @eoli3n

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (51 preceding siblings ...)
  2021-07-15 11:53 ` [ISSUE] [CLOSED] " ahesford
@ 2023-02-11 15:28 ` devmalick
  2023-02-11 16:41 ` ahesford
  2023-02-11 16:42 ` ahesford
  54 siblings, 0 replies; 56+ messages in thread
From: devmalick @ 2023-02-11 15:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1494 bytes --]

New comment by devmalick on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-1426800057

Comment:
`Connection failed. /usr/lib/x2go/x2gocheckport: line 131: DBD::SQLite::db: syntax error in expression (error token is "::SQLite::db") /usr/lib/x2go/x2gocheckport: line 131: DBD::SQLite::db: syntax error in expression (error token is "::SQLite::db") /usr/lib/x2go/x2gocheckport: line 131: DBD::SQLite::db: syntax error in expression (error token is "::SQLite::db") /usr/lib/x2go/x2gocheckport: line 131: DBD::SQLite::db: syntax error in expression (error token is "::SQLite::db") /usr/lib/x2go/x2gocheckport: line 131: DBD::SQLite::db: syntax error in expression (error token is "::SQLite::db") /usr/lib/x2go/x2gocheckport: line 131: DBD::SQLite::db: syntax error in expression (error token is "::SQLite::db") /usr/lib/x2go/x2gocheckport: line 131: DBD::SQLite::db: syntax error in expression (error token is "::SQLite::db") /usr/lib/x2go/x2gocheckport: line 131: DBD::SQLite::db: syntax error in expression (error token is "::SQLite::db") /usr/lib/x2go/x2gocheckport: line 131: DBD::SQLite::db: syntax error in expression (error token is "::SQLite::db") /usr/lib/x2go/x2gocheckport: line 131: DBD::SQLite::db: syntax error in expression (error token is "::SQLite::db") Unable to find free display port or insert new session into database; parameters: port (50), hostname (MX1) and session name (). `  Getting above error during connection attempt 

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (52 preceding siblings ...)
  2023-02-11 15:28 ` devmalick
@ 2023-02-11 16:41 ` ahesford
  2023-02-11 16:42 ` ahesford
  54 siblings, 0 replies; 56+ messages in thread
From: ahesford @ 2023-02-11 16:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 300 bytes --]

New comment by ahesford on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-1426818900

Comment:
A nearly two-year-old PR is not the place to comment about new issues. Please open a new issue and provide some of the context the issue template requests.

^ permalink raw reply	[flat|nested] 56+ messages in thread

* Re: x2goserver package is non-functional
  2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
                   ` (53 preceding siblings ...)
  2023-02-11 16:41 ` ahesford
@ 2023-02-11 16:42 ` ahesford
  54 siblings, 0 replies; 56+ messages in thread
From: ahesford @ 2023-02-11 16:42 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 303 bytes --]

New comment by ahesford on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-1426818900

Comment:
A nearly two-year-old issue is not the place to comment about new issues. Please open a new issue and provide some of the context the issue template requests.

^ permalink raw reply	[flat|nested] 56+ messages in thread

end of thread, other threads:[~2023-02-11 16:42 UTC | newest]

Thread overview: 56+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-10 16:30 [ISSUE] x2goserver package is non-functional ahesford
2021-05-10 16:48 ` ericonr
2021-05-10 20:23 ` eoli3n
2021-05-10 20:24 ` eoli3n
2021-05-10 20:34 ` eoli3n
2021-05-10 20:35 ` eoli3n
2021-05-10 20:38 ` eoli3n
2021-05-10 21:16 ` eoli3n
2021-05-10 21:16 ` eoli3n
2021-05-10 21:24 ` eoli3n
2021-05-10 21:27 ` eoli3n
2021-05-10 21:27 ` eoli3n
2021-05-10 22:01 ` eoli3n
2021-05-10 22:10 ` eoli3n
2021-05-10 22:10 ` eoli3n
2021-05-10 22:13 ` eoli3n
2021-05-10 22:16 ` eoli3n
2021-05-10 22:18 ` eoli3n
2021-05-10 22:20 ` eoli3n
2021-05-10 22:28 ` eoli3n
2021-05-10 22:28 ` eoli3n
2021-05-10 22:29 ` eoli3n
2021-05-10 22:30 ` eoli3n
2021-05-10 22:40 ` eoli3n
2021-05-10 22:40 ` eoli3n
2021-05-11  7:07 ` eoli3n
2021-05-11  7:07 ` eoli3n
2021-05-11  7:36 ` eoli3n
2021-05-11  7:36 ` eoli3n
2021-05-11  7:39 ` eoli3n
2021-05-11  7:44 ` eoli3n
2021-05-11  7:50 ` eoli3n
2021-05-11  7:50 ` eoli3n
2021-05-11  8:30 ` eoli3n
2021-05-11  8:56 ` eoli3n
2021-05-11  9:04 ` eoli3n
2021-05-11  9:04 ` eoli3n
2021-05-11  9:53 ` eoli3n
2021-05-11  9:54 ` eoli3n
2021-05-11 10:10 ` eoli3n
2021-05-11 10:45 ` eoli3n
2021-05-11 10:46 ` eoli3n
2021-05-11 10:47 ` eoli3n
2021-05-11 10:49 ` eoli3n
2021-05-11 10:50 ` eoli3n
2021-05-11 10:51 ` eoli3n
2021-05-11 11:47 ` eoli3n
2021-05-11 11:47 ` eoli3n
2021-05-11 11:57 ` eoli3n
2021-05-11 12:30 ` eoli3n
2021-05-11 17:29 ` eoli3n
2021-05-11 18:51 ` eoli3n
2021-07-15 11:53 ` [ISSUE] [CLOSED] " ahesford
2023-02-11 15:28 ` devmalick
2023-02-11 16:41 ` ahesford
2023-02-11 16:42 ` ahesford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).