Hi,
this night my server went off. Here is the reason :
# du -h --max-depth=1 . 856K ./C-test-50-1279548701_stDstartxfce4_dp24 716K ./C-test-50-1279574026_stRfirefox_dp24 680K ./C-test-50-1279566912_stDstartxfce4_dp24 696K ./C-test-50-1279573165_stDgimli_dp24 32K ./C-test-50-1279581084_stRchrome_dp24 16K ./C-test-59-1279583456_stRgoogle-chrome_dp24 30G ./C-test-59-1279583556_stRfirefox_dp24 572K ./C-test-50-1279565555_stDgoogle-chrome_dp24 624K ./C-test-50-1279573437_stDgimli_dp24 16K ./C-test-53-1279583110_stRgoogle-chrome_dp24 436K ./C-test-51-1279566837_stS1XSHADtestXSHADPP50_dp24 576K ./C-test-50-1279573384_stDgimli_dp24 428K ./C-test-51-1279581099_stRgoogle-chrome_dp24 892K ./C-test-50-1279548978_stDstartxfce4_dp24 33G ./C-test-52-1279583110_stRgoogle-chrome_dp24 16K ./C-test-52-1279583006_stRgoogle-chrome_dp24 536K ./C-test-50-1279565796_stDstartxfce4_dp24 1,4M ./C-test-50-1279550452_stDstartxfce4_dp24 740K ./C-test-50-1279548916_stDstartxfce4_dp24 504K ./C-test-50-1279574600_stRfirefox_dp24 37G ./C-test-51-1279581329_stRgoogle-chrome_dp24 444K ./C-test-50-1279573132_stDgimli_dp24 8,0K ./ssh 916K ./C-test-50-1279558701_stDfirefox_dp24 31G ./C-test-53-1279583278_stRgoogle-chrome_dp24 129G .
Could someone tells me how to auto-clean client sessions ? :)
Regards, gml
Quoting " (UNTRUSTED, sender <x2go-dev-bounces@lists.berlios.de> is
not authenticated)" <contact@gmli.fr>:
31G ./C-test-53-1279583278_stRgoogle-chrome_dp24 129G .
The session.log is guilty, filled with millions of :
nxagentHandleReparentNotify: WARNING! Failed QueryTree request.
There is a report on nomachine webiste : http://www.nomachine.com/tr/view.php?id=TR10G02287
The report says : Solved in version: nxagent-3.4.0-4
Which version does x2go use ?
Regards, gml
Hi,
On Di 20 Jul 2010 11:04:09 CEST wrote:
Hi,
this night my server went off. Here is the reason :
# du -h --max-depth=1 . 856K ./C-test-50-1279548701_stDstartxfce4_dp24 716K ./C-test-50-1279574026_stRfirefox_dp24 680K ./C-test-50-1279566912_stDstartxfce4_dp24 696K ./C-test-50-1279573165_stDgimli_dp24 32K ./C-test-50-1279581084_stRchrome_dp24 16K ./C-test-59-1279583456_stRgoogle-chrome_dp24 30G ./C-test-59-1279583556_stRfirefox_dp24 572K ./C-test-50-1279565555_stDgoogle-chrome_dp24 624K ./C-test-50-1279573437_stDgimli_dp24 16K ./C-test-53-1279583110_stRgoogle-chrome_dp24 436K ./C-test-51-1279566837_stS1XSHADtestXSHADPP50_dp24 576K ./C-test-50-1279573384_stDgimli_dp24 428K ./C-test-51-1279581099_stRgoogle-chrome_dp24 892K ./C-test-50-1279548978_stDstartxfce4_dp24 33G ./C-test-52-1279583110_stRgoogle-chrome_dp24 16K ./C-test-52-1279583006_stRgoogle-chrome_dp24 536K ./C-test-50-1279565796_stDstartxfce4_dp24 1,4M ./C-test-50-1279550452_stDstartxfce4_dp24 740K ./C-test-50-1279548916_stDstartxfce4_dp24 504K ./C-test-50-1279574600_stRfirefox_dp24 37G ./C-test-51-1279581329_stRgoogle-chrome_dp24 444K ./C-test-50-1279573132_stDgimli_dp24 8,0K ./ssh 916K ./C-test-50-1279558701_stDfirefox_dp24 31G ./C-test-53-1279583278_stRgoogle-chrome_dp24 129G .
Could someone tells me how to auto-clean client sessions ? :)
Is there a reason to keep the session folders of terminated sessions?
It is nice to have some logs of terminated sessions but for production
this is not really feasible...
Greets, Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
eMail-LeseSchreibStunde: wochentags 8h-10h mail: m.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
On Tue, 20 Jul 2010, Mike Gabriel wrote:
earlier: contact@gmli.fr asked:
this night my server went off. Here is the reason :
# du -h --max-depth=1 . 856K ./C-test-50-1279548701_stDstartxfce4_dp24 ... snip 20 instances 8,0K ./ssh
Could someone tells me how to auto-clean client sessions ? :)
On Tue, 20 Jul 2010, Mike Gabriel wrote:
Is there a reason to keep the session folders of terminated sessions? It is nice to have some logs of terminated sessions but for production this is not really feasible...
Note in passing: It is curious that there is a './ssh/" rather than a /.ssh/ "invisible 'dotfile' directory"
There are diagnostic reasons to save such log files for perhaps a week --- it would seem that these should be in a per user subdirectory, such as ~/.logs/ or such, but ...
That to one side, it should be posible to 'age' and expire these using the 'find' command at startup
We initially see:
find path/to/logfiles -name "C-test*1279583278_st[DR]*" \
-a -exec rm {} \;
... I see the '/seconds since epoch value there which is useful to reduce ...
find path/to/logfiles -name "C-test*[0-9][0-9]{11}_st[DR]*" \
-a -exec rm {} \;
which says:
starting at the path indicated, and travelling down the filesystem, look for a file with a name of the pattern: "C-test*[0-9][0-9]{11}_st[DR]*" and when found, remove it. That needs a qualified, however, to save perhaps only the last seven day's matches, so that one can do diagnostics ...
so let's add a symbolic minimum retention time, which might be overridden by passing in a valie as an option (here: arg1), and put this into a script
#!/bin/sh
#
# age out old diagnostic matter, for the x2go project
#
# license: GPLv3+
# Copyright :R P Herrold <info at owlriver dot com>
#
# default number of days back to retain log files for
AGE=7
# and permit a command line number passed in to alter
# this
[ 0${1} -gt 0] && {
export AGE=${1}
}
#
LOGPATH="~"
#
find ${LOGPATH} -name "C-test*[0-9][0-9]{11}_st[DR]*"
-atime $AGE -a -exec rm {} \;
#
This is not immediately tested as I am away from my office at the moment, but it should work. Note that in testing the candidates for removal, oue might substitute: echo for the: rm in that command to see what would happen in a 'dry run'
Hope this helps ...
-- Russ herrold
Hi Russ,
On Di 20 Jul 2010 11:58:30 CEST R P Herrold wrote:
On Tue, 20 Jul 2010, Mike Gabriel wrote:
Is there a reason to keep the session folders of terminated
sessions? It is nice to have some logs of terminated sessions but
for production this is not really feasible...Note in passing: It is curious that there is a './ssh/" rather than
a /.ssh/ "invisible 'dotfile' directory"[...]
On a Linux client all these folders are stored in .x2go. This is the
.x2go user config dir. For me this is sufficient as a dot-directory.
Within .x2go the developers should be free of choice on how to handle
file naming... (There is no reason for having a dot-dir ,,.ssh''
cascaded within a dot-dir ,,.x2go''
That to one side, it should be posible to 'age' and expire these
using the 'find' command at startup[...]
Your suggestion can only be a workaround... Proper config file
handling should be done by the code of the server/client packages.
Keeping locks for forensics is sensible, this might need a config
switch somewhere (server as well as client...).
Greets, Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
eMail-LeseSchreibStunde: wochentags 8h-10h mail: m.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Quoting Mike Gabriel <m.gabriel@das-netzwerkteam.de>:
Is there a reason to keep the session folders of terminated
sessions? It is nice to have some logs of terminated sessions but
for production this is not really feasible...
No reason at all. But I don't know how to do that automatically (these
logs are on client side).
Regards, gml