Skip to content
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

L2R doesn't save existing logs, programs not starting #190

Open
gpmnsp opened this issue May 20, 2022 · 3 comments
Open

L2R doesn't save existing logs, programs not starting #190

gpmnsp opened this issue May 20, 2022 · 3 comments

Comments

@gpmnsp
Copy link

gpmnsp commented May 20, 2022

I've tried both, manual and apt install.
After reboot there's only one file in /hdd.log: boot.log.
Worse: /nginx and /letsencrypt in /var/log have vanished. That prevents these programs from starting.
I re-created the respective dirs, nginx and letsencryt do work then.
But the very next day same situation. Both dirs are gone and also not in /hdd.log.
I have no clue.
What could possibly have gone wrong?

@theruffus
Copy link

theruffus commented Jun 19, 2022

Same here... NGNIX broken, logs gone and log2ram won't start because there is no space in ram for hdd.log... My /var/log is like 3mb, and I set the log2ram size as high as 2gigs to no avail...
I think I found the problem... this program is incompatible with OMV6, which already uses folder2ram on /var/log amongst other things...

/etc/folder2ram/folder2ram.conf
`# This file is auto-generated by openmediavault (https://www.openmediava>

WARNING: Do not edit this file, your changes will get lost.

#
tmpfs /var/log
tmpfs /var/tmp
tmpfs /var/lib/openmediavault/rrd
tmpfs /var/spool
tmpfs /var/lib/rrdcached/
tmpfs /var/lib/monit
tmpfs /var/cache/samba`

@gpmnsp
Copy link
Author

gpmnsp commented Jun 19, 2022

Thx for reply, but this is'nt it.
I don't know or use OMV.
Mines just plain Raspbian OS. L2R does start, but not working as expected nor needed.

@xtvdata
Copy link

xtvdata commented Jun 19, 2022

Issues like these may happen when programs try to create a file or directory in an inexistent location (and the scenario is complicated by the rsync optimised behaviour).

You may try the following:

  1. Stop log2ram (this should sync everything to the disk)
  2. Create the eventually missing directories in /var/log
  3. Restart log2ram (it should populate the ram-disc with all the contents of the disk copy of /var/log

If that is not enough, at point 2 try also to create a small file in each directory.

If everything is in place correctly it should survive a reboot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants