Hi,
Something that got an update in Gentoo's portage in the last month or so causes
interference/crashes on session resumption, next to/besides the usual and
various overall crashes.
Those new crashes appear with a roughly 80% chance and result in the
"new_agent_options_base64" variable being empty, thus emptying the "options"
file, leading to the session being utterly destroyed.
Just backing the file up and restoring it when that happens won't help, because
x2goagent will go into a loop, flooding the logfile with the same line exactly
20 times per second until the session is terminated.
With this patch everything works fine again after another resume attempt.
diff --git a/x2goserver/bin/x2goresume-session
b/x2goserver/bin/x2goresume-session
index dd59019e..694735eb 100755
--- a/x2goserver/bin/x2goresume-session
+++ b/x2goserver/bin/x2goresume-session
@@ -321,7 +321,9 @@ if [[ -z "${x2go_client}" ]]; then
x2go_client="${current_host_name}"
fi
+if [[ -n "${new_agent_options_base64}" ]]; then
printf '%s' "${new_agent_options_base64}" | base64 -d >"${session_dir}/options"
+fi
# run x2goserver-extensions for pre-resume
x2gofeature 'X2GO_RUN_EXTENSIONS' &>'/dev/null' && x2goserver-run-extensions
"${session_name}" 'pre-resume' || true
_______________________________________________
x2go-dev mailing list
[email protected]
https://lists.x2go.org/listinfo/x2go-dev