IRC chat logs for #ltsp on irc.libera.chat (webchat)


Channel log from 13 November 2017   (all times are UTC)

03:12vagrantc has left IRC (vagrantc!~vagrant@unaffiliated/vagrantc, Quit: leaving)
05:42pintman has left IRC (pintman!~pintman@p200300D27BC55E00147740FFFE062E1B.dip0.t-ipconnect.de, Read error: Connection reset by peer)
06:48mikkel has joined IRC (mikkel!~mikkel@mail.dlvs.dk)
06:50harry_ has joined IRC (harry_!6e2c790b@gateway/web/freenode/ip.110.44.121.11)
06:54harry_ has left IRC (harry_!6e2c790b@gateway/web/freenode/ip.110.44.121.11, Ping timeout: 260 seconds)
06:56Statler has joined IRC (Statler!~Georg@p579FE798.dip0.t-ipconnect.de)
07:00ricotz has joined IRC (ricotz!~ricotz@ubuntu/member/ricotz)
08:42kjackal has joined IRC (kjackal!~quassel@onopfy.static.otenet.gr)
08:58
<Natureshadow>
They appear after you read the netiquette or the Freenode FAQ ;)
09:27Statler has left IRC (Statler!~Georg@p579FE798.dip0.t-ipconnect.de, Remote host closed the connection)
10:47guesto has joined IRC (guesto!6e2c790c@gateway/web/freenode/ip.110.44.121.12)
10:58Faith has joined IRC (Faith!~Paty_@unaffiliated/faith)
11:28kjackal has left IRC (kjackal!~quassel@onopfy.static.otenet.gr, Ping timeout: 268 seconds)
11:46kjackal has joined IRC (kjackal!~quassel@2a02:587:3103:be00:555c:eaf2:2f3f:44f)
13:15lucascastro has joined IRC (lucascastro!~lucas@201.182.221.14)
14:22vagrantc has joined IRC (vagrantc!~vagrant@unaffiliated/vagrantc)
14:44ben_roose has joined IRC (ben_roose!~roose@roose.cs.wichita.edu)
15:31mikkel has left IRC (mikkel!~mikkel@mail.dlvs.dk, Quit: Leaving)
16:11truth_ has joined IRC (truth_!~Tara@dslb-094-217-032-237.094.217.pools.vodafone-ip.de)
16:17Guest6068 has left IRC (Guest6068!bennabiyma@gateway/shell/matrix.org/x-ixeuyowynwbgytfn, Changing host)
16:17Guest6068 has joined IRC (Guest6068!bennabiyma@unaffiliated/bennabiy)
16:17Guest6068 has joined IRC (Guest6068!bennabiyma@gateway/shell/matrix.org/x-ixeuyowynwbgytfn)
16:17Guest6068 is now known as bennabiy
16:24kjackal has left IRC (kjackal!~quassel@2a02:587:3103:be00:555c:eaf2:2f3f:44f, Ping timeout: 240 seconds)
16:25
<truth_>
Hi, I am using a LTSP-PNP server (Debian) and two fat-clients for my family for two years now - many thanks for this great system.
16:25
Since the server is usually not used over night the server goes to suspend mode over night.
16:25
For automatic backup the server wakes up in the morning (e.g. echo `date '+%s' -d 'tomorrow 5:55'` > /sys/class/rtc/rtc0/wakealarm).
16:25
My problem is that this wakealarm is also present on the clients - ... /etc/ltsp/ltsp-update-image.excludes does not help here.
16:25
How can I limit my wakealarm only to the server?
16:29kjackal has joined IRC (kjackal!~quassel@2a02:587:3103:be00:555c:eaf2:2f3f:44f)
16:45
<alkisg>
(06:25:46 μμ) truth_: For automatic backup the server wakes up in the morning (e.g. echo `date '+%s' -d 'tomorrow 5:55'` > /sys/class/rtc/rtc0/wakealarm). ==> don't run that command on the clients
16:45
How do you run it? Take care so that it doesn't run on the clients
16:49
<truth_>
It's automatically done via cron - in order to not run it on the client I added the following line to ltsp-update-image.excludes: var/spool/cron/crontabs/root
16:53
<||cw>
truth_: are you using nbd images or nfs (which is typically the debian default)?
16:55
<truth_>
BOOT_METHODS="NBD"
16:59
<vagrantc>
debian switched to NBD in the latest stable release
17:00
NFS didn't play nice with overlay fs
17:00lucascastro has left IRC (lucascastro!~lucas@201.182.221.14, Remote host closed the connection)
17:01* vagrantc thought the cron service was disabled by default on LTSP clients ... maybe not
17:07
<truth_>
The cron-script (one the server) which is doing the automatic backup does finally set the wakeup-time for the next day - however, when I start the client I can see that the wakeup-time also present at the client.
17:08
<vagrantc>
presumably it's storing that information in some other file?
17:08
what mechanism are you using to set the wakeup-time?
17:09
<truth_>
I set the time with: echo `date '+%s' -d 'tomorrow 5:55'` > /sys/class/rtc/rtc0/wakealarm
17:09
The result is visible with: cat /proc/driver/rtc
17:10
<alkisg>
truth_: and is that line (a) on the server /var/spool... and (b) on the client /var/spool?
17:10
Cron is enabled on all ltsp clients, except for very low ram thin clients
17:11
<vagrantc>
alkisg: ah, right. low ram specs..
17:11
<alkisg>
Dat one :)
17:12
truth_: ltsp-update-image.excludes is indeed the correct way to do this; you just need to find the correct file, in case you didn't
17:13
<vagrantc>
truth_: i'm guessing you need to edit /etc/cron.* or root's ~/.crontab or something
17:13
truth_: not the /var/spool entry
17:13
<alkisg>
/root/* shouldn't be in the image
17:13
/etc/cron would be, yeah
17:13
<vagrantc>
narrowing it down... :)
17:14
truth_: or, disable whatever mechanism you're using for your cron job, and set up your cron job in /etc/cron.d/ and then exclude that from the image
17:14
<alkisg>
And that's already there: var/spool/cron/crontabs/*
17:14
<vagrantc>
truth_: how did you configure the cron job?
17:15
<truth_>
The directory '/var/spool/cron/crontabs/' does not contain the file 'root' - which means, the cron-script is not present at the client
17:15
<alkisg>
truth_: and is it there on the server?
17:16
<vagrantc>
truth_: /var/spool isn't typically where you would configure these sorts of things...
17:16
<truth_>
yes! -rw------- 1 root crontab 1119 Okt 31 14:56 root
17:16
<vagrantc>
did you use "crontab -e" to create the cron job? did you edit a file somewhere?
17:16
<alkisg>
And it contains the line you're talking about?
17:17
Maybe you configured it in multiple places..
17:17
sudo grep -r tomorrow /etc 2>/dev/null
17:17
That should help :)
17:18* vagrantc would find it easier to help if questions actually got answered :/
17:18
<truth_>
I only used crontab -e
17:18
grep -r tomorrow /etc 2>/dev/null does not show a result ...
17:23
<alkisg>
sudo mount -o loop,ro /opt/ltsp/images/i386.img /mnt
17:23
sudo grep -r tomorrow /mnt 2>/dev/null
17:24
This will search the whole client image :)
17:24
<truth_>
crontab -e does only contain the name of the backup script: 30 5 * * * /root/start_backup
17:24
<alkisg>
well then search for that one
17:24
You didn't tell us that :)
17:25* vagrantc ponders porting LTSP to GuixSD
17:26
<vagrantc>
there would be some very interesting challenges...
17:29
<truth_>
The first lines of the script are:
17:29
echo 0 > /sys/class/rtc/rtc0/wakealarm
17:29
echo `date '+%s' -d 'tomorrow 5:25'` > /sys/class/rtc/rtc0/wakealarm
17:29
The rest is for the backup.
17:29
Since the script is located in root it is by default excluded from the image, right?
17:34
As already mentioned ... adding 'sys/class/rtc/rtc0/wakealarm' to the exclude file didn't help.
17:34
I started to disable ACPI on my client but that doesn't seem to be the right way ...
17:35kjackal has left IRC (kjackal!~quassel@2a02:587:3103:be00:555c:eaf2:2f3f:44f, Ping timeout: 264 seconds)
17:35
<alkisg>
(06:49:51 μμ) truth_: It's automatically done via cron - in order to not run it on the client I added the following line to ltsp-update-image.excludes: var/spool/cron/crontabs/root
17:35
<vagrantc>
sys is dynamically mounted at boot
17:35
<alkisg>
(07:34:22 μμ) truth_: As already mentioned ... adding 'sys/class/rtc/rtc0/wakealarm' to the exclude file didn't help.
17:35
truth_: you are contradicting yourself :)
17:36
Try searching inside the image, as I said above
17:37
<truth_>
ok
17:37kjackal has joined IRC (kjackal!~quassel@2a02:587:3103:be00:555c:eaf2:2f3f:44f)
17:43kjackal has left IRC (kjackal!~quassel@2a02:587:3103:be00:555c:eaf2:2f3f:44f, Ping timeout: 240 seconds)
17:56
<truth_>
Many thanks for your suggestions - I found the problem.
17:56
In addition to the cron-script there is a startup-script which is only used during boot to set the wakeup-time (which is necessary since otherwise the cron-script will not be able to start).
17:56
Sorry - I have completely overseen this - I think I know how to solve this now.
17:56
Manny thanks again.
17:59kjackal has joined IRC (kjackal!~quassel@athedsl-237828.home.otenet.gr)
18:00
<alkisg>
np
18:06mmarconm has joined IRC (mmarconm!~mmarconm@unaffiliated/mmarconm)
18:06mmarconm has left IRC (mmarconm!~mmarconm@unaffiliated/mmarconm, Client Quit)
18:14truth_ has left IRC (truth_!~Tara@dslb-094-217-032-237.094.217.pools.vodafone-ip.de)
18:33kjackal has left IRC (kjackal!~quassel@athedsl-237828.home.otenet.gr, Ping timeout: 260 seconds)
18:50kjackal has joined IRC (kjackal!~quassel@2a02:587:3124:2b00:62a7:647c:ea7a:41db)
18:57vagrantc has left IRC (vagrantc!~vagrant@unaffiliated/vagrantc, Quit: leaving)
19:00kjackal has left IRC (kjackal!~quassel@2a02:587:3124:2b00:62a7:647c:ea7a:41db, Ping timeout: 264 seconds)
19:01kjackal has joined IRC (kjackal!~quassel@2a02:587:3103:be00:555c:eaf2:2f3f:44f)
19:08kjackal has left IRC (kjackal!~quassel@2a02:587:3103:be00:555c:eaf2:2f3f:44f, Ping timeout: 240 seconds)
19:09kjackal has joined IRC (kjackal!~quassel@2a02:587:3124:2b00:555c:eaf2:2f3f:44f)
19:58kjackal has left IRC (kjackal!~quassel@2a02:587:3124:2b00:555c:eaf2:2f3f:44f, Ping timeout: 240 seconds)
20:19kjackal has joined IRC (kjackal!~quassel@2a02:587:3124:2b00:555c:eaf2:2f3f:44f)
21:03Faith has left IRC (Faith!~Paty_@unaffiliated/faith, Quit: Leaving)
21:06adrianorg has left IRC (adrianorg!~adrianorg@189.58.230.156.dynamic.adsl.gvt.net.br, Ping timeout: 248 seconds)
21:06adrianorg has joined IRC (adrianorg!~adrianorg@189.58.230.156.dynamic.adsl.gvt.net.br)
21:26ricotz has left IRC (ricotz!~ricotz@ubuntu/member/ricotz, Quit: Leaving)
21:51mgariepy has left IRC (mgariepy!~mgariepy@ubuntu/member/mgariepy, Ping timeout: 255 seconds)
21:55mgariepy has joined IRC (mgariepy!~mgariepy@ubuntu/member/mgariepy)
21:59bennabiy has left IRC (bennabiy!bennabiyma@gateway/shell/matrix.org/x-ixeuyowynwbgytfn, Ping timeout: 246 seconds)
21:59alexxtasi[m] has left IRC (alexxtasi[m]!alexxtasim@gateway/shell/matrix.org/x-tlqcebpjmjyzckha, Ping timeout: 264 seconds)
22:08alexxtasi[m] has joined IRC (alexxtasi[m]!alexxtasim@gateway/shell/matrix.org/x-nwwzpybgmfelxpof)
22:27Guest57180 has joined IRC (Guest57180!bennabiyma@gateway/shell/matrix.org/x-wvzqcghptezsljnq)
23:03ben_roose has left IRC (ben_roose!~roose@roose.cs.wichita.edu, Remote host closed the connection)