Package: x2goserver Version: 4.0.1.19
First issue is that ~/.xsession-x2go-errors is always appended to so it grows forever. It should at least get rotated to .old file.
Second is with shared NFS home directories, multiple X2Go sessions get logged to the same file which is confusing. I would suggest putting the host name into the log file name.
-- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane orion@nwra.com Boulder, CO 80301 http://www.nwra.com
On Tue, Aug 18, 2015 at 11:46 AM, Orion Poplawski <orion@cora.nwra.com> wrote:
Package: x2goserver Version: 4.0.1.19
First issue is that ~/.xsession-x2go-errors is always appended to so it grows forever. It should at least get rotated to .old file.
I wholeheartedly agree. Plus there are weird instances where a command will make it grow to GB in size quickly.
In general, I believe in following what the local X.org server sessions do. However, since I am often debugging issues with why apps are not working properly with X2Go, I would rather rotate than delete.
Second is with shared NFS home directories, multiple X2Go sessions get logged to the same file which is confusing. I would suggest putting the host name into the log file name.
I wholeheartedly agree. Gluster (for HA home dirs) is affected too.
-Mike
On 18.08.2015 05:46 PM, Orion Poplawski wrote:
Package: x2goserver Version: 4.0.1.19
First issue is that ~/.xsession-x2go-errors is always appended to so it grows forever. It should at least get rotated to .old file.
I'm not sure that's an issue per se. Isn't that normal behavior for DEs/Login Managers?
It's inconvenient, but I remember other software doing exactly the same thing, so it's at least "consistent". But maybe I'm wrong. I see ~/.xsession-errors and ~/.xsession-errors.old on my system using LightDM. So you're probably right. But that's for LightDM, not sure how other LMs or systems without a LM handle this?
Second is with shared NFS home directories, multiple X2Go sessions get logged to the same file which is confusing. I would suggest putting the host name into the log file name.
Okay, but that will break for systems with misconfigured/unset hostnames or environments where every system has the same hostname. Additionally, multiple sessions also get logged to the same file, so merely going for one file per host name feels half-baked.
Mihai
On 08/23/2015 09:56 AM, Mihai Moldovan wrote:
On 18.08.2015 05:46 PM, Orion Poplawski wrote:
Package: x2goserver Version: 4.0.1.19
First issue is that ~/.xsession-x2go-errors is always appended to so it grows forever. It should at least get rotated to .old file.
I'm not sure that's an issue per se. Isn't that normal behavior for DEs/Login Managers?
It's inconvenient, but I remember other software doing exactly the same thing, so it's at least "consistent". But maybe I'm wrong. I see ~/.xsession-errors and ~/.xsession-errors.old on my system using LightDM. So you're probably right. But that's for LightDM, not sure how other LMs or systems without a LM handle this?
On Fedora, /etc/X11/xinit/Xsession does:
errfile="$HOME/.xsession-errors"
if ( umask 077 && cp /dev/null "$errfile" 2> /dev/null ); then
chmod 600 "$errfile"
[ -x /sbin/restorecon ] && /sbin/restorecon $errfile
exec > "$errfile" 2>&1
So it overwrites it without backup. I would prefer a backup. Perhaps I'll file a bug...
Second is with shared NFS home directories, multiple X2Go sessions get logged to the same file which is confusing. I would suggest putting the host name into the log file name.
Okay, but that will break for systems with misconfigured/unset hostnames or environments where every system has the same hostname. Additionally, multiple sessions also get logged to the same file, so merely going for one file per host name feels half-baked.
I'm happy to have a suggestion for another key. My one worry would be to not use a key that is completely unique so we end up with a proliferation of xsession error files like we already have with x2go session dirs.
-- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane orion@nwra.com Boulder, CO 80301 http://www.nwra.com
Processing control commands:
severity -1 important Bug #923 [x2goserver] .xsession-x2go-errors improvements Severity set to 'important' from 'normal'
-- 923: http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=923 X2Go Bug Tracking System Contact owner@bugs.x2go.org with problems