mcgyver83
Posts: 361
Joined: Fri Oct 05, 2012 11:49 am

Re: using logrotate and ramlog

Mon Jan 21, 2013 7:50 pm

albundy wrote:Aren't you forgetting to do sudo update-rc.d ...... for every file in /etc/init.d when you change its contents?
I edited only "rsyslog" in init.d because I cannot find kconsole, the other process that the log message says is using logs in ram...
Yes, I forget it ... I will retry as soon as possible.

verkruemelt
Posts: 5
Joined: Fri Aug 31, 2012 6:08 am
Location: Deutschland\Thüringen\Suhl

Re: using logrotate and ramlog

Sat Jun 22, 2013 11:13 pm

http://www.tremende.com is dead.. :(
can anybody send me the deb-file, please?
Pi rev2: RaspBMC | 2TB WD Elements | D-Link DUB-H7 | Netgear N150 | Sony OPTIARC BC-5640H
Pi rev1: raspbian | DNS/DHCP (smb) Server

koegs
Posts: 1
Joined: Wed Jun 26, 2013 7:48 am

Re: using logrotate and ramlog

Wed Jun 26, 2013 7:49 am

Same here for the website, can somebody send me the .deb?

whitfimc
Posts: 2
Joined: Tue Feb 12, 2013 2:26 pm

Re: using logrotate and ramlog

Fri Aug 16, 2013 9:05 am

I've been playing around with ramlog as well, and fell into the same cycle of error messages no matter what was tried, probably because of the failed attempts before the correct configuration was applied (I ended up adding the start before/after lines for init.d/ramlog as well as the required start/stop lines in init.d/rsyslog). I found that doing a manual stop of rsyslogd (sudo service rsyslog stop) and then a reboot brought it to life - it seems that this allowed a correct shutdown, and then everything was in a consistant state to allow it to start up properly and shut down properly again next reboot. Hope this helps someone out there that was getting as frustrated as I was.

freemanbubu
Posts: 111
Joined: Sun Jun 17, 2012 11:12 am

Re: using logrotate and ramlog

Fri Aug 16, 2013 1:41 pm

I just install ramlog on 2 rasPi, fresh raspbian install... it works good...
Just have to follow ramlog website How To...

Don't forget to reboot TWICE your pi after install.
After first reboot, ramlog service was stopped, after teh second reboot, "ramlog service is running"

On raspbian, config file is /etc/default/ramlog (not same as tell in ramlog website install guide)

mcgyver83
Posts: 361
Joined: Fri Oct 05, 2012 11:49 am

Re: using logrotate and ramlog

Wed Sep 04, 2013 1:22 pm

I don't know why but now I reinstalled ramlog and its working fine.

minkowski
Posts: 52
Joined: Tue Jan 29, 2013 12:10 pm

Re: using logrotate and ramlog

Tue Jan 21, 2014 8:31 pm

Did someone find a host of the package? I would be glad to have it (and to host it on my Pi :-) ).

minkowski
Posts: 52
Joined: Tue Jan 29, 2013 12:10 pm

Re: using logrotate and ramlog

Tue Jan 21, 2014 11:26 pm

I found a blog by Hawkeye that also hosts the file (direct link). You need to accept his self-signed SSL certificate. In addition, I also put it on my Pi (direct link, you also have to accept or ignore the certificate).

Wasurerarenai
Posts: 1
Joined: Fri Jan 24, 2014 5:31 pm

Re: using logrotate and ramlog

Fri Jan 24, 2014 5:46 pm

Hawkeye's blog MySQL was throwing errors and wouldn't let me grab the file. I found the deb at OpenMediaVault's forum. I used the "ramlog_2.0.0-1easyvdr1_all.deb.7z" one after p7zip decompression. Only edit needed to get it working was adding "# X-Start-Before: rsyslog" and "# X-Stop-After: rsyslog" to /etc/init.d/ramlog, and two reboots later working great.

Forum: http://forums.openmediavault.org/viewto ... 187#p13162
Direct Link: http://forums.openmediavault.org/downlo ... php?id=367

Here is my BEGIN INIT block from /etc/init.d/ramlog

Code: Select all

### BEGIN INIT INFO
# Provides: ramlog
# Required-Start:
# Should-Start: $local_fs
# Required-Stop:
# X-Start-Before: rsyslog
# X-Stop-After: rsyslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: moves /var/log into ramdisk
# Description: ramlog daemon moves /var/log to ramdisk on startup and copies it back to harddrive on shutdown or restart
### END INIT INFO

User avatar
Un4Seen
Posts: 330
Joined: Wed Oct 31, 2012 8:43 am
Location: Cluj-Napoca, Romania
Contact: Website

Re: using logrotate and ramlog

Fri Jan 31, 2014 11:10 pm

I'm using ramlog on my Pi. Lately I wanted to use the "last" command to check who was logged in and when. But I get the following error:

Code: Select all

last: /var/log/wtmp: No such file or directory
Perhaps this file was removed by the operator to prevent logging last info.
I tried recreating the /var/log/wtmp file manually and after that the "last" command works well, but every time I reboot my Pi the file is lost again. I suspect it could have something to do with ramlog.

Has anybody experienced this? Is there a way to temporarily disable ramlog to see if that solves the problem?

Thank you!
Andras
http://iqjar.com

User avatar
Un4Seen
Posts: 330
Joined: Wed Oct 31, 2012 8:43 am
Location: Cluj-Napoca, Romania
Contact: Website

Re: using logrotate and ramlog

Sat Feb 01, 2014 1:45 am

I just noticed that my ramlog is not working lately. I don't know what happened to it over time. but now it does not start.

In /var/log/ramlog I have this:

Code: Select all

Feb 01 03:34:34 Starting ramlog-tmpfs 2.0.0:                             [fail]
Feb 01 03:35:36 ramlog is stopped
If I try to start it manually:

Code: Select all

$ sudo service ramlog start
/etc/init.d/ramlog: 472: /etc/init.d/ramlog: nfo: not found
[FAIL] ramlog: get_state error: Multiple devices running at the same time. failed!
My configs are good, I use the same configs on another Pi and on that one ramlog works well. I guess my only option is to reinstall ramlog, but the installation guide site is down (http://www.tremende.com/ramlog/)

Can somebody post the re-installation procedure steps here, please?

Thank you!
Andras
http://iqjar.com

User avatar
Un4Seen
Posts: 330
Joined: Wed Oct 31, 2012 8:43 am
Location: Cluj-Napoca, Romania
Contact: Website

Re: using logrotate and ramlog

Sat Feb 01, 2014 9:27 am

Fortunately I found the ramlog_2.0.0_all.deb package file locally, on my system, so I thought I could to re-install it. No such luck.
I tried to uninstall it, but it gives me an error and it won't let me uninstall it:

Code: Select all

$ sudo dpkg -r ramlog
(Reading database ... 67134 files and directories currently installed.)
Removing ramlog ...
/etc/init.d/ramlog: 472: /etc/init.d/ramlog: nfo: not found
[FAIL] ramlog: get_state error: Multiple devices running at the same time. failed!
dpkg: error processing ramlog (--remove):
 subprocess installed post-removal script returned error exit status 152
Processing triggers for man-db ...
Errors were encountered while processing:
 ramlog
No matter what I try to do (start it, stop it, uninstall it), it's that cursed error:

Code: Select all

/etc/init.d/ramlog: 472: /etc/init.d/ramlog: nfo: not found
[FAIL] ramlog: get_state error: Multiple devices running at the same time. failed!
Now I can't even get rid of ramlog, I'm stuck with it!

Does anybody have any idea how to solve the above error or at least force the uninstallation of ramlog?
Andras
http://iqjar.com

xraken
Posts: 23
Joined: Mon Apr 28, 2014 4:23 pm

Re: using logrotate and ramlog

Mon Apr 28, 2014 4:28 pm

I was running into similar issues with ramlog and it turned out to be an issue with one log file that had somehow grown to 44MB on disk. I deleted that log file and everything got peachy again.

c.monty
Posts: 4
Joined: Wed Sep 19, 2012 3:44 pm

Re: using logrotate and ramlog

Wed Dec 30, 2015 10:38 am

Hi!

I cannot start ramlog... the following error is returned:

Code: Select all

root@pc7-raspi:/tmp# /etc/init.d/ramlog start
Segmentation fault
/etc/init.d/ramlog: 306: [: -eq: unexpected operator
[FAIL] Starting ramlog-tmpfs 2.0Error: /var/log is in use... failed!
How can I fix this?

The relevant coding is this:

Code: Select all

if [ $sersyncF -eq 0 ]; then
        alias SYNC="$_SYNC_"
        alias SYNC_NODEL="$_SYNC_NODEL_"
I have downloaded ramlog package from here http://www.tremende.com/ramlog/download ... .0_all.deb.

THX

falk34
Posts: 1
Joined: Wed Oct 04, 2017 8:09 am

Re: using logrotate and ramlog

Wed Oct 04, 2017 8:17 am

Hi, I have problems by running ramlog on rpi :-(

Package : ramlog_2.0.0_all.deb
lsof and rsync installed
cat /etc/default/ramlog

Code: Select all

RAMDISKTYPE=0
TMPFS_RAMFS_SIZE=10m
KERNEL_RAMDISK_SIZE=MAX
LOGGING=1
LOGNAME=ramlog
VERBOSE=1
/etc/init.d/rsyslog modified to :

Code: Select all

# Required-Start:    $remote_fs $time ramlog
# Required-Stop:     umountnfs $time ramlog
But error :
sudo /etc/init.d/ramlog status

Code: Select all

● ramlog.service - LSB: moves /var/log into ramdisk
   Loaded: loaded (/etc/init.d/ramlog; generated; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2017-10-04 10:08:30 CEST; 7min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 211 ExecStart=/etc/init.d/ramlog start (code=exited, status=1/FAILURE)
   CGroup: /system.slice/ramlog.service

Oct 04 10:08:27 pizerow01 systemd[1]: Starting LSB: moves /var/log into ramdisk...
Oct 04 10:08:30 pizerow01 ramlog[211]: Starting ramlog-tmpfs 2.0.0: /bin/cp: '/var/log.hdd/.' and '/var/log/.' are the same file
Oct 04 10:08:30 pizerow01 ramlog[211]:  failed!
Oct 04 10:08:30 pizerow01 systemd[1]: ramlog.service: Control process exited, code=exited status=1
Oct 04 10:08:30 pizerow01 systemd[1]: Failed to start LSB: moves /var/log into ramdisk.
Oct 04 10:08:30 pizerow01 systemd[1]: ramlog.service: Unit entered failed state.
Oct 04 10:08:30 pizerow01 systemd[1]: ramlog.service: Failed with result 'exit-code'.
Oct 04 10:08:39 pizerow01 ramlog[211]: /bin/cp: cannot stat '/var/log.hdd/boot.log': No such file or directory
Oct 04 10:08:39 pizerow01 ramlog[211]: ramlog: Syncing /var/log/boot.log after plymouth stopped.
Can't find this error in forum. Any idea from somebody ?

Thanks,

Return to “Networking and servers”