[X2Go-Dev] Upcoming Debian 11 freeze

2021-01-25 Thread Mike Gabriel

Hi Mihai, Stefan, Alex, Uli, etc.

the Debian 11 freeze is ahead (last uploads of new upstream releases  
are possible on Feb 6th/7th). I'd like to see some of the X2Go  
components released before that date (esp. the x2gothinclient,  
x2goclient, x2goserver and also nx-libs (already discussed with Uli)).


@Mihai: is that a feasible thing to do???

Greets,
Mike
--

DAS-NETZWERKTEAM
c\o Technik- und Ökologiezentrum Eckernförde
Mike Gabriel, Marienthaler Str. 17, 24340 Eckernförde
mobile: +49 (1520) 1976 148
landline: +49 (4351) 850 8940

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: mike.gabr...@das-netzwerkteam.de, http://das-netzwerkteam.de



pgpPC1qFlqhYr.pgp
Description: Digitale PGP-Signatur
___
x2go-dev mailing list
x2go-dev@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-dev


Re: [X2Go-Dev] upgrade to Fedora 33 breaks X2Go again, no free display number available, cannot start new session

2021-01-25 Thread Robert Kudyba
Well it's not firewalld.

lsof -i :6050 returns nothing.

from bash x:

bash -x /usr/lib64/x2go/x2gogetfreeport $(hostname) "$(which ss)" display 50

+ typeset current_host_name=ourdomain.edu

+ typeset ss=/usr/sbin/ss

+ typeset type=display

+ typeset start=50

+ typeset end=65535

+ typeset 'empty_regex=^[[:space:]]*$'

+ [[ -z ourdomain.edu ]]

+ [[ ourdomain.edu =~ ^[[:space:]]*$ ]]

+ [[ ourdomain.edu = \(\n\o\n\e\) ]]

+ [[ ourdomain.edu = \l\o\c\a\l\h\o\s\t ]]

+ [[ -z /usr/sbin/ss ]]

+ [[ /usr/sbin/ss =~ ^[[:space:]]*$ ]]

+ typeset -i start_i=50

+ typeset -i end_i=65535

+ [[ -z 50 ]]

+ [[ 50 != \5\0 ]]

+ [[ 50 -ne 50 ]]

+ [[ 50 -lt 0 ]]

+ [[ 50 -gt 65535 ]]

+ [[ -z 65535 ]]

+ [[ 65535 != \6\5\5\3\5 ]]

+ [[ 65535 -ne 65535 ]]

+ [[ 65535 -lt 50 ]]

+ [[ 65535 -gt 65535 ]]

+ [[ display != \l\o\w\l\e\v\e\l ]]

+ [[ display != \d\i\s\p\l\a\y ]]

++ x2gopath libexec

+ typeset x2go_lib_path=/usr/lib64/x2go

+ typeset X2GO_INTERNAL_SOURCE=1

+ : 1

+ . /usr/lib64/x2go/x2gocheckport

++ [[ -z 1 ]]

++ typeset -a used_x2go_ports

++ typeset -a used_system_ports

++ typeset -a used_display_ports

++ used_x2go_ports=()

++ used_system_ports=()

++ used_display_ports=()

+ unset X2GO_INTERNAL_SOURCE

+ typeset -i ret_port=50

+ typeset -i ret=1

+ typeset -i work_port=0

+ typeset -i stop_port=65535

+ [[ display = \d\i\s\p\l\a\y ]]

+ stop_port=59535

+ (( work_port = start ))

+ (( i <= stop_port ))

+ typeset -i i=0

+ typeset -i value_found=0

+ [[ display = \d\i\s\p\l\a\y ]]

+ check_display_port ourdomain.edu /usr/sbin/ss 50

+ typeset current_host_name=ourdomain.edu

+ typeset ss=/usr/sbin/ss

+ typeset port=50

+ typeset 'empty_regex=^[[:space:]]*$'

+ [[ -z ourdomain.edu ]]

+ [[ ourdomain.edu =~ ^[[:space:]]*$ ]]

+ [[ ourdomain.edu = \(\n\o\n\e\) ]]

+ [[ ourdomain.edu = \l\o\c\a\l\h\o\s\t ]]

+ [[ -z /usr/sbin/ss ]]

+ [[ /usr/sbin/ss =~ ^[[:space:]]*$ ]]

+ typeset -i port_i=50

+ [[ -z 50 ]]

+ [[ 50 != \5\0 ]]

+ [[ 50 -ne 50 ]]

+ [[ 50 -lt 0 ]]

+ [[ 50 -gt 59535 ]]

+ typeset -i ret=0

+ [[ 0 -eq 0 ]]

+ initialize_display_ports ourdomain.edu

+ typeset current_host_name=ourdomain.edu

+ typeset 'empty_regex=^[[:space:]]*$'

+ [[ -z ourdomain.edu ]]

+ [[ ourdomain.edu =~ ^[[:space:]]*$ ]]

+ [[ ourdomain.edu = \(\n\o\n\e\) ]]

+ [[ ourdomain.edu = \l\o\c\a\l\h\o\s\t ]]

+ typeset -a used_display_ports_work

+ used_display_ports_work=()

+ IFS='

|'

+ read -r -d '' -a used_display_ports_work

++ /usr/lib64/x2go/x2gogetdisplays ourdomain.edu

+ typeset -i item_i=0

+ typeset item=

+ for item in "${used_display_ports_work[@]}"

+ item_i=DBI

+ [[ -n DBI ]]

+ [[ DBI -eq 0 ]]

+ [[ DBI = \0 ]]

+ for item in "${used_display_ports_work[@]}"

+ item_i='connect('\''dbname=/var/lib/x2go/x2go_sessions'\'','\'''\'',...)'

/usr/lib64/x2go/x2gocheckport: line 131:
connect('dbname=/var/lib/x2go/x2go_sessions','',...): syntax error in
expression (error token is "('dbname=/var/lib/x2go/x2go_sessions','',...)")

+ printf '%d\n' 50

50

+ exit 1

Here's some debug from X2Go Mac Client:

x2go-INFO-1> "Starting X2Go Client 4.1.2.2..."

x2go-WARNING-1> English language requested, not loading translator.

x2go-WARNING-1> English language requested, not loading translator.

x2go-INFO-3> "Started X2Go Client."

x2go-DEBUG-../src/onmainwindow.cpp:575> "$HOME=/Users/rkudyba"

x2go-DEBUG-../src/onmainwindow.cpp:2266> Reading 2 sessions from config
file.

x2go-DEBUG-../src/sessionbutton.cpp:361> Creating QPixmap with session
icon: ":/img/icons/128x128/x2gosession.png".

x2go-DEBUG-../src/sessionbutton.cpp:361> Creating QPixmap with session
icon: ":/img/icons/128x128/x2gosession.png".

x2go-DEBUG-../src/onmainwindow.cpp:13290> libssh not initialized yet.
Initializing.

x2go-DEBUG-../src/x2goutils.cpp:219> path value at beginning:
"/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware
Fusion.app/Contents/Public:/opt/X11/bin"

x2go-DEBUG-../src/x2goutils.cpp:242> tmp_clean_add: ("/usr/local/bin")

x2go-DEBUG-../src/x2goutils.cpp:270> clean_add: ("/usr/local/bin")

x2go-DEBUG-../src/x2goutils.cpp:291> found entry i (0) in orig_path_list
("/usr/local/bin"): true

x2go-DEBUG-../src/x2goutils.cpp:309> return value at end:
"/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware
Fusion.app/Contents/Public:/opt/X11/bin"

x2go-DEBUG-../src/x2goutils.cpp:219> path value at beginning:
"/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware
Fusion.app/Contents/Public:/opt/X11/bin"

x2go-DEBUG-../src/x2goutils.cpp:242> tmp_clean_add: ("/opt/local//bin")

x2go-DEBUG-../src/x2goutils.cpp:270> clean_add: ("/opt/local//bin")

x2go-DEBUG-../src/x2goutils.cpp:291> found entry i (0) in orig_path_list
("/opt/local//bin"): false

x2go-DEBUG-../src/x2goutils.cpp:309> return value at end:
"/opt/local//bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware
Fusion.app/Contents/Public:/opt/X11/bin"

x2go-DEBUG-../src/pulsemanager.cpp:131> Found PA binary as

Re: [X2Go-Dev] upgrade to Fedora 33 breaks X2Go again, no free display number available, cannot start new session

2021-01-25 Thread Robert Kudyba
Ok I'll check firewalld but does this error help? Note the path has lib64:
/usr/lib64/x2go/x2gogetfreeport $(hostname) "$(which ss)" display 50
/usr/lib64/x2go/x2gocheckport: line 131:
connect('dbname=/var/lib/x2go/x2go_sessions','',...): syntax error in
expression (error token is "('dbname=/var/lib/x2go/x2go_sessions','',...)")
50


On Mon, Jan 25, 2021, 5:49 PM Ulrich Sibiller 
wrote:

> Well, here's the code producing that output:
>
> typeset -i retry='0'
> typeset -i max_retry='10'
> typeset output=''
> for ((retry = 0; retry < max_retry; ++retry)); do
> typeset -i free_port="${X2GO_PORT}"
> if free_port="$("${X2GO_LIB_PATH}/x2gogetfreeport"
> "${current_host_name}" "${ss}" 'display' "${X2GO_PORT}")"; then
> X2GO_PORT="${free_port}"
>
> if [[ -n "${SHADREQ_USER}" ]]; then
>
> SESSION_NAME="${SHADREQ_USER}-${X2GO_PORT}-$(date '+%s')"
> else
> SESSION_NAME="${USER}-${X2GO_PORT}-$(date '+%s')"
> fi
> if [[ -n "${COLORDEPTH}" ]]; then
>
> SESSION_NAME="${SESSION_NAME}_st${SESSION_TYPE}${X2GO_CMD}_dp${COLORDEPTH}"
> SESSION_NAME="${SESSION_NAME//:/PP}"
> fi
>
> # sanitize session name
> SESSION_NAME="$(perl -pe 's/[^a-zA-Z0-9\.\_\-\@]//g'
> <<< "${SESSION_NAME}")"
>
> if [[ -n "${SHADREQ_USER}" ]]; then
> "${X2GO_LIB_PATH}/x2gosyslog" "${0}" 'debug'
> "initializing new shadow session with ID ${SESSION_NAME}"
>
> output="$("${X2GO_LIB_PATH}/x2goinsertshadowsession" "${X2GO_PORT}"
> "${current_host_name}" "${SESSION_NAME}" "${SHADREQ_USER}")"
> else
> "${X2GO_LIB_PATH}/x2gosyslog" "${0}" 'debug'
> "initializing new session with ID ${SESSION_NAME}"
> output="$("${X2GO_LIB_PATH}/x2goinsertsession"
> "${X2GO_PORT}" "${current_host_name}" "${SESSION_NAME}")"
> fi
>
> if [[ "${output}" = 'inserted' ]]; then
> break
> else
> "${X2GO_LIB_PATH}/x2gosyslog" "${0}" 'warning'
> "unable to insert display port into database. Retrying (run $((retry +
> 1)))."
> fi
> else
> "${X2GO_LIB_PATH}/x2gosyslog" "${0}" 'warning' "no
> free display number available, cannot start new session. Retrying (run
> $((retry + 1)))."
> fi
> done
>
> if [[ "${output}" != 'inserted' ]]; then
> typeset msg="Unable to find free display port or insert new
> session into database; parameters: port (${X2GO_PORT}), hostname
> (${current_host_name}) and session name (${SESSION_NAME})."
> "${X2GO_LIB_PATH}/x2gosyslog" "${0}" 'err' "${msg}"
>
> # Make x2goclient fail.
> echo "${msg}" >&2
> exit '10'
> fi
>
>
> This boils down to
>
> for ((retry = 0; retry < max_retry; ++retry)); do
> typeset -i free_port="${X2GO_PORT}"
> if free_port="$("${X2GO_LIB_PATH}/x2gogetfreeport"
> "${current_host_name}" "${ss}" 'display' "${X2GO_PORT}")"; then
> ...
>else
> "${X2GO_LIB_PATH}/x2gosyslog" "${0}" 'warning' "no
> free display number available, cannot start new session. Retrying (run
> $((retry + 1)))."
> fi
> done
>
> -> as you can see x2gofreeport does not seem to report the port as
> free. You can try this manually:
>
> /usr/lib/x2go/x2gogetfreeport $(hostname) "$(which ss)" display 50
>
> If that will output a free port x2go should generally work. If not,
> you still have something running and blocking these ports. You can
> check with lsof -i :6050 and you will see who is blocking the first
> checked port.
>
> You can also run the x2gogefreeport with bash -x:
> bash -x /usr/lib/x2go/x2gogetfreeport $(hostname) "$(which ss)" display 50
>
> and see what going on.
>
> Hope that helps,
>
> Uli
>
>
>
>
> On Mon, Jan 25, 2021 at 8:50 PM Robert Kudyba  wrote:
> >
> > I posted a similar issue back in Nov, 2020 at
> https://www.mail-archive.com/x2go-dev@lists.x2go.org/msg06284.html
> >
> > rpm -qa|grep -i x2go
> > x2goclient-4.1.2.2-3.fc33.x86_64
> > x2goserver-common-4.1.0.3-9.fc33.noarch
> > perl-X2Go-Server-4.1.0.3-9.fc33.noarch
> > perl-X2Go-Log-4.1.0.3-9.fc33.noarch
> > perl-X2Go-Server-DB-4.1.0.3-9.fc33.x86_64
> > x2goagent-4.1.0.3-9.fc33.x86_64
> > x2goserver-xsession-4.1.0.3-9.fc33.noarch
> > x2goserver-4.1.0.3-9.fc33.x86_64
> >
> > nxagent -display :55
> > NXAGENT - Version 3.5.99.25
> >
> > Jan 25 14:14:29 pascal /usr/bin/x2gostartagent[39654]: no free display
> number available, cannot start new session. Retrying (run 1).
> > Jan 25 14:14:30 pascal /usr/bin/x2gostartagent[39663]: no free display
> number available, cannot start new session. Retrying (run 2).
> > Jan 25 14:14:30 pascal /usr/bin/x2gostartagent[39672]: no free display
> number available, cannot start new session. Retrying (run 3).
> > Jan 25 14:14:30 pascal 

Re: [X2Go-Dev] upgrade to Fedora 33 breaks X2Go again, no free display number available, cannot start new session

2021-01-25 Thread Ulrich Sibiller
Well, here's the code producing that output:

typeset -i retry='0'
typeset -i max_retry='10'
typeset output=''
for ((retry = 0; retry < max_retry; ++retry)); do
typeset -i free_port="${X2GO_PORT}"
if free_port="$("${X2GO_LIB_PATH}/x2gogetfreeport"
"${current_host_name}" "${ss}" 'display' "${X2GO_PORT}")"; then
X2GO_PORT="${free_port}"

if [[ -n "${SHADREQ_USER}" ]]; then

SESSION_NAME="${SHADREQ_USER}-${X2GO_PORT}-$(date '+%s')"
else
SESSION_NAME="${USER}-${X2GO_PORT}-$(date '+%s')"
fi
if [[ -n "${COLORDEPTH}" ]]; then

SESSION_NAME="${SESSION_NAME}_st${SESSION_TYPE}${X2GO_CMD}_dp${COLORDEPTH}"
SESSION_NAME="${SESSION_NAME//:/PP}"
fi

# sanitize session name
SESSION_NAME="$(perl -pe 's/[^a-zA-Z0-9\.\_\-\@]//g'
<<< "${SESSION_NAME}")"

if [[ -n "${SHADREQ_USER}" ]]; then
"${X2GO_LIB_PATH}/x2gosyslog" "${0}" 'debug'
"initializing new shadow session with ID ${SESSION_NAME}"

output="$("${X2GO_LIB_PATH}/x2goinsertshadowsession" "${X2GO_PORT}"
"${current_host_name}" "${SESSION_NAME}" "${SHADREQ_USER}")"
else
"${X2GO_LIB_PATH}/x2gosyslog" "${0}" 'debug'
"initializing new session with ID ${SESSION_NAME}"
output="$("${X2GO_LIB_PATH}/x2goinsertsession"
"${X2GO_PORT}" "${current_host_name}" "${SESSION_NAME}")"
fi

if [[ "${output}" = 'inserted' ]]; then
break
else
"${X2GO_LIB_PATH}/x2gosyslog" "${0}" 'warning'
"unable to insert display port into database. Retrying (run $((retry +
1)))."
fi
else
"${X2GO_LIB_PATH}/x2gosyslog" "${0}" 'warning' "no
free display number available, cannot start new session. Retrying (run
$((retry + 1)))."
fi
done

if [[ "${output}" != 'inserted' ]]; then
typeset msg="Unable to find free display port or insert new
session into database; parameters: port (${X2GO_PORT}), hostname
(${current_host_name}) and session name (${SESSION_NAME})."
"${X2GO_LIB_PATH}/x2gosyslog" "${0}" 'err' "${msg}"

# Make x2goclient fail.
echo "${msg}" >&2
exit '10'
fi


This boils down to

for ((retry = 0; retry < max_retry; ++retry)); do
typeset -i free_port="${X2GO_PORT}"
if free_port="$("${X2GO_LIB_PATH}/x2gogetfreeport"
"${current_host_name}" "${ss}" 'display' "${X2GO_PORT}")"; then
...
   else
"${X2GO_LIB_PATH}/x2gosyslog" "${0}" 'warning' "no
free display number available, cannot start new session. Retrying (run
$((retry + 1)))."
fi
done

-> as you can see x2gofreeport does not seem to report the port as
free. You can try this manually:

/usr/lib/x2go/x2gogetfreeport $(hostname) "$(which ss)" display 50

If that will output a free port x2go should generally work. If not,
you still have something running and blocking these ports. You can
check with lsof -i :6050 and you will see who is blocking the first
checked port.

You can also run the x2gogefreeport with bash -x:
bash -x /usr/lib/x2go/x2gogetfreeport $(hostname) "$(which ss)" display 50

and see what going on.

Hope that helps,

Uli




On Mon, Jan 25, 2021 at 8:50 PM Robert Kudyba  wrote:
>
> I posted a similar issue back in Nov, 2020 at 
> https://www.mail-archive.com/x2go-dev@lists.x2go.org/msg06284.html
>
> rpm -qa|grep -i x2go
> x2goclient-4.1.2.2-3.fc33.x86_64
> x2goserver-common-4.1.0.3-9.fc33.noarch
> perl-X2Go-Server-4.1.0.3-9.fc33.noarch
> perl-X2Go-Log-4.1.0.3-9.fc33.noarch
> perl-X2Go-Server-DB-4.1.0.3-9.fc33.x86_64
> x2goagent-4.1.0.3-9.fc33.x86_64
> x2goserver-xsession-4.1.0.3-9.fc33.noarch
> x2goserver-4.1.0.3-9.fc33.x86_64
>
> nxagent -display :55
> NXAGENT - Version 3.5.99.25
>
> Jan 25 14:14:29 pascal /usr/bin/x2gostartagent[39654]: no free display number 
> available, cannot start new session. Retrying (run 1).
> Jan 25 14:14:30 pascal /usr/bin/x2gostartagent[39663]: no free display number 
> available, cannot start new session. Retrying (run 2).
> Jan 25 14:14:30 pascal /usr/bin/x2gostartagent[39672]: no free display number 
> available, cannot start new session. Retrying (run 3).
> Jan 25 14:14:30 pascal /usr/bin/x2gostartagent[39681]: no free display number 
> available, cannot start new session. Retrying (run 4).
> Jan 25 14:14:30 pascal /usr/bin/x2gostartagent[39690]: no free display number 
> available, cannot start new session. Retrying (run 5).
> Jan 25 14:14:30 pascal /usr/bin/x2gostartagent[39699]: no free display number 
> available, cannot start new session. Retrying (run 6).
> Jan 25 14:14:30 pascal /usr/bin/x2gostartagent[39708]: no free display number 
> available, cannot start new session. Retrying (run 7).
> Jan 25 14:14:30 pascal /usr/bin/x2gostartagent[39717]: no free display number 
> available, cannot 

[X2Go-Dev] upgrade to Fedora 33 breaks X2Go again, no free display number available, cannot start new session

2021-01-25 Thread Robert Kudyba
I posted a similar issue back in Nov, 2020 at
https://www.mail-archive.com/x2go-dev@lists.x2go.org/msg06284.html

rpm -qa|grep -i x2go
x2goclient-4.1.2.2-3.fc33.x86_64
x2goserver-common-4.1.0.3-9.fc33.noarch
perl-X2Go-Server-4.1.0.3-9.fc33.noarch
perl-X2Go-Log-4.1.0.3-9.fc33.noarch
perl-X2Go-Server-DB-4.1.0.3-9.fc33.x86_64
x2goagent-4.1.0.3-9.fc33.x86_64
x2goserver-xsession-4.1.0.3-9.fc33.noarch
x2goserver-4.1.0.3-9.fc33.x86_64

nxagent -display :55
NXAGENT - Version 3.5.99.25

Jan 25 14:14:29 pascal /usr/bin/x2gostartagent[39654]: no free display
number available, cannot start new session. Retrying (run 1).
Jan 25 14:14:30 pascal /usr/bin/x2gostartagent[39663]: no free display
number available, cannot start new session. Retrying (run 2).
Jan 25 14:14:30 pascal /usr/bin/x2gostartagent[39672]: no free display
number available, cannot start new session. Retrying (run 3).
Jan 25 14:14:30 pascal /usr/bin/x2gostartagent[39681]: no free display
number available, cannot start new session. Retrying (run 4).
Jan 25 14:14:30 pascal /usr/bin/x2gostartagent[39690]: no free display
number available, cannot start new session. Retrying (run 5).
Jan 25 14:14:30 pascal /usr/bin/x2gostartagent[39699]: no free display
number available, cannot start new session. Retrying (run 6).
Jan 25 14:14:30 pascal /usr/bin/x2gostartagent[39708]: no free display
number available, cannot start new session. Retrying (run 7).
Jan 25 14:14:30 pascal /usr/bin/x2gostartagent[39717]: no free display
number available, cannot start new session. Retrying (run 8).
Jan 25 14:14:31 pascal /usr/bin/x2gostartagent[39726]: no free display
number available, cannot start new session. Retrying (run 9).
Jan 25 14:14:31 pascal /usr/bin/x2gostartagent[39736]: no free display
number available, cannot start new session. Retrying (run 10).
Jan 25 14:14:31 pascal /usr/bin/x2gostartagent[39737]: Unable to find free
display port or insert new session into database; parameters: port (50),
hostname (pascal.dsm.fordham.edu) and session name ().
Jan 25 14:14:31 pascal kernel: kauditd_printk_skb: 21 callbacks suppressed

Let me to
https://unix.stackexchange.com/questions/467507/x2go-unable-to-find-free-display-port-or-insert-new-session-into-database
so I ran x2godbadmin --createdb

Then I tried with another use and got:
Connection failed.
/usr/lib64/x2go/x2gocheckport: line 131:
connect('dbname=/var/lib/x2go/x2go_sessions','',...): syntax error in
expression (error token is "('dbname=/var/lib/x2go/x2go_sessions','',...)")
/usr/lib64/x2go/x2gocheckport: line 131:
connect('dbname=/var/lib/x2go/x2go_sessions','',...): syntax error in
expression (error token is "('dbname=/var/lib/x2go/x2go_sessions','',...)")
/usr/lib64/x2go/x2gocheckport: line 131:
connect('dbname=/var/lib/x2go/x2go_sessions','',...): syntax error in
expression (error token is "('dbname=/var/lib/x2go/x2go_sessions','',...)")
/usr/lib64/x2go/x2gocheckport: line 131:
connect('dbname=/var/lib/x2go/x2go_sessions','',...): syntax error in
expression (error token is "('dbname=/var/lib/x2go/x2go_sessions','',...)")
/usr/lib64/x2go/x2gocheckport: line 131:
connect('dbname=/var/lib/x2go/x2go_sessions','',...): syntax error in
expression (error token is "('dbname=/var/lib/x2go/x2go_sessions','',...)")
/usr/lib64/x2go/x2gocheckport: line 131:
connect('dbname=/var/lib/x2go/x2go_sessions','',...): syntax error in
expression (error token is "('dbname=/var/lib/x2go/x2go_sessions','',...)")
/usr/lib64/x2go/x2gocheckport: line 131:
connect('dbname=/var/lib/x2go/x2go_sessions','',...): syntax error in
expression (error token is "('dbname=/var/lib/x2go/x2go_sessions','',...)")
/usr/lib64/x2go/x2gocheckport: line 131:
connect('dbname=/var/lib/x2go/x2go_sessions','',...): syntax error in
expression (error token is "('dbname=/var/lib/x2go/x2go_sessions','',...)")
/usr/lib64/x2go/x2gocheckport: line 131:
connect('dbname=/var/lib/x2go/x2go_sessions','',...): syntax error in
expression (error token is "('dbname=/var/lib/x2go/x2go_sessions','',...)")
/usr/lib64/x2go/x2gocheckport: line 131:
connect('dbname=/var/lib/x2go/x2go_sessions','',...): syntax error in
expression (error token is "('dbname=/var/lib/x2go/x2go_sessions','',...)")
Unable to find free display port or insert new session into database;
parameters: port (50), hostname (oudomain.edu) and session name ().

How does one start X2Go Windows with debug enabled? I only found for Mac
you can add the --debug flag.

My colleague also had this error:


XSession-x2go: X session started for moniot at Mon Jan 25 09:01:13 EST 2021
** Message: 09:01:15.605: couldn't access control socket:
/run/user/1200/keyring/control: No such file or directory
SSH_AUTH_SOCK=/run/user/1200/keyring/ssh

** (mate-settings-daemon:1436112): WARNING **: 09:01:16.172: Could not open
RFKILL control device, please verify your installation
SSH_AUTH_SOCK=/run/user/1200/keyring/ssh
SSH_AUTH_SOCK=/run/user/1200/keyring/ssh
vmware-user: could not open /proc/fs/vmblock/dev
Error: /usr/bin/vmtoolsd must be run 

Re: [X2Go-Dev] Problem with TMOUT variable

2021-01-25 Thread Edgar Fuß
> I put these lines in /etc/profile
> 
> TMOUT=1200
> readonly TMOUT
> export TMOUT
As others already mentioned, you'll have to look up what's in 
profile.d/timeout.sh and what package that file belongs to.

Generally speaking, I'm not sure it's a brilliant idea to globally set an 
environment variable with a generic name, yet no generic semantics, in profile.
___
x2go-dev mailing list
x2go-dev@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-dev


Re: [X2Go-Dev] Problem with TMOUT variable

2021-01-25 Thread Max V
Hi,
to get automatically lougut I tried with the TMOUT variable.
I put these lines in /etc/profile

TMOUT=1200
readonly TMOUT
export TMOUT

On local machine it give just a readonly error and the desktop starts.
On the contrary the X2GO session doesn't start even with only TMOUT=1200
I need to automatically logout users after a day of idle, what do you
suggest?

Max

Il giorno ven 22 gen 2021 alle ore 19:03 Ulrich Sibiller <
ulrich.sibil...@gmail.com> ha scritto:

> Well, I do not know how you entered TMOUT into /etc/profile but i
> think you did some mistake there.
>
> You can check where /etc/profile.d/timeout.sh belongs to (dpkg -S
> /etc/profile.d/timeout.sh or rpm -qf /etc/profile.d/timeout.sh) and
> open a but there that it cannot handle read-only variables.
>
> Uli
>
> On Fri, Jan 22, 2021 at 5:24 PM Max V  wrote:
> >
> > Hello,
> > I put the TMOUT variable in /etc/profile and set it read only. Now I got
> this error:
> >
> > Connection failed. /etc/profile: row 5: TMOUT: command not found
> /etc/profile.d/timeout.sh: row 4: TMOUT: read only variable
> >
> >
> > and the connection doesn't start.
> >
> >
> > Best regards
> >
> > Max
> >
> > ___
> > x2go-dev mailing list
> > x2go-dev@lists.x2go.org
> > https://lists.x2go.org/listinfo/x2go-dev
>
___
x2go-dev mailing list
x2go-dev@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-dev