-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log2ram timeout during boot. #139
Comments
Update changed to version 1.5.2 and manual install and it works again. |
Wait what ? |
I use rsync (rsync version 3.1.3 protocol version 31). sudo systemctl reload daemon This works fine. I used the standard log2ram.conf that worked and changed this to my custom version and both work with 1.5.2. version. I also use a custom unit file. But the default unit file does not work under 1.6 it does under 1.5.2. This is custom log2ram.conf.
custom unit file:
|
I've experienced the same issue, with a timeout at boot. But only at boot, and only if I add an additional path element to the default 'PATH_DISK' item in logram.conf, such as: Confirmed size allocations are acceptable (300M alloc, 32M used). After boot, I can restart the log2ram service and multiple paths (3+) work fine. In my investigation, I did notice a discrepancy in the apt installed log2ram version and the log2ram.conf currently published on github. This relates to a field listed as "USE_RSYNC" in log2ram.conf. This value is not actually used in the log2ram script thru apt or github, but was essential for my fix. Once I corrected the log2ram script to use this value, such as: if [ "$USE_RSYNC" = true ]; then which would replace: I could then adequately force the script to use 'cp' over 'rsync', particularly at boot. This then allowed log2ram to start successfully at boot Unfortunately, for my use case, this means I must live the cp command overhead and inefficiency, or adopt the script to only use cp at startup Notes: |
@ejonesnospam look like your issue is a different one. @wilwet have no additionnal path to the configuration file. @wilwet : I see |
As requested, this output from the manual installation, the apt version failed. Linux p1mon 5.4.72-v7+ #1356 SMP Thu Oct 22 13:56:54 BST 2020 armv7l GNU/Linux /dev/mmcblk0p2 on / type ext4 (rw,noatime) |
The apt version also fails on boot with a timeout over here.
A simple "systemctl start log2ram" fixes it. I'm running Proxmox, here's my system info: Linux pve1 5.4.106-1-pve #1 SMP PVE 5.4.106-1 (Fri, 19 Mar 2021 11:08:47 +0100) x86_64 GNU/Linux If I would need to take a guess where it's going wrong, then I'd say it's starting too early in the boot process. Additional note: A simple systemctl restart systemd-journald did not work - it would automatically go to /run/log even though storage was set to persistent. Persistent uses /var/log/, the default option (auto) does not. |
When booting the following error appears. under Raspian
uname -a Linux p1mon 5.4.72-v7+ #1356 SMP Thu Oct 22 13:56:54 BST 2020 armv7l GNU/Linux
[ 68.459184] systemd[1]: log2ram.service: Start operation timed out. Terminating.
[ 68.460383] systemd[1]: log2ram.service: Main process exited, code=killed, status=15/TERM
[ 68.460782] systemd[1]: log2ram.service: Failed with result 'timeout'.
df gives the following output:
log2ram 102400 51004 51396 50% /var/log
after running
root@p1mon:/usr/local/bin# sudo bash -x log2ram start
++ SIZE=100M
++ USE_RSYNC=true
++ PATH_DISK=/var/log
++ ZL2R=false
++ COMP_ALG=lz4
++ LOG_DISK_SIZE=100M
++ du -sh -t 100M /var/hdd.log/
++ cut -f1
++ command -v rsync
building file list ... done
./
alternatives.log
alternatives.log.1
auth.log
-- truncated--
samba/cores/nmbd/
samba/cores/smbd/
sent 51,922,694 bytes received 4,479 bytes 34,618,115.33 bytes/sec
total size is 51,890,034 speedup is 1.00
df gives:
log2ram 102400 51004 51396 50% /var/hdd.log
log2ram 102400 51016 51384 50% /var/log
This seems wrong is and is possible the problem
version installed with apt log2ram/stable,now 1.6.0 all [installed]
This version on an other Rpi does work
log2ram/stable,now 1.5.2 all [installed] and gives only this mount point log2ram 81920 16836 65084 21% /var/log
The text was updated successfully, but these errors were encountered: