Git Product home page Git Product logo

Comments (9)

Sailing74 avatar Sailing74 commented on June 11, 2024

I would guess it's not working, as I see no trace of the log2ram ramdisk. df-h and mount would typically show it. Are you sure systemd has started log2ram? What happens, if you start log2ram manually? There should be errors in your syslog/journal.

from log2ram.

azlux avatar azlux commented on June 11, 2024

You need the lines :
for df -h :
log2ram 40M 2,7M 38M 7% /var/log size can be different if you have modified some parameters

and for mount :
log2ram on /var/log type tmpfs (rw,nosuid,nodev,noexec,relatime,size=40960k,mode=755)

from log2ram.

azlux avatar azlux commented on June 11, 2024

check service log2ram statusis the service has start.
And watch the file /var/log.hdd/log2ram.log is there are errors !

from log2ram.

hrvstr avatar hrvstr commented on June 11, 2024

the log file is empty :/

the status shows the following:

root@MyCloud:~# service log2ram status
Showing one /org/freedesktop/systemd1/unit/log2ram_2eservice
Sent message type=method_call sender=n/a destination=org.freedesktop.systemd1 object=/org/freedesktop/systemd1/unit/log2ram_2eservice interface=org.freedesktop.DBus.Properties member=GetAll cookie=1 reply_cookie=0 error=n/a
● log2ram.service - Log2Ram
   Loaded: loaded (/etc/systemd/system/log2ram.service; enabled)
   Active: failed (Result: exit-code) since Mon 2017-02-27 14:29:36 UTC; 4h 34min ago
  Process: 1121 ExecStart=/usr/local/bin/log2ram start (code=exited, status=203/EXEC)
 Main PID: 1121 (code=exited, status=203/EXEC)
Root directory /run/log/journal added.
Considering /run/log/journal/5f1d0e244c672cb2bffe767d5659627a.
Directory /run/log/journal/5f1d0e244c672cb2bffe767d5659627a added.
File /run/log/journal/5f1d0e244c672cb2bffe767d5659627a/system.journal added.
File /run/log/journal/5f1d0e244c672cb2bffe767d5659627a/system@6bc936f6b9e54404be290279730177fa-0000000000000ce9-00054985163f2c94.journal added.
File /run/log/journal/5f1d0e244c672cb2bffe767d5659627a/system@6bc936f6b9e54404be290279730177fa-0000000000000001-00054983e7b2fae4.journal added.
Journal filter: (((OBJECT_SYSTEMD_UNIT=log2ram.service AND _UID=0) OR (UNIT=log2ram.service AND _PID=1) OR (COREDUMP_UNIT=log2ram.service AND _UID=0 AND MESSAGE_ID=fc2e22bc6ee647b6b90729ab34a250b1) OR _SYSTEMD_UNIT=log2ram.service) AND _BOOT_ID=736a216b56314df09b07105f413a361b)

Feb 27 14:29:31 MyCloud systemd[1]: log2ram.service changed dead -> start
Feb 27 14:29:36 MyCloud systemd[1]: Child 1121 belongs to log2ram.service
Feb 27 14:29:36 MyCloud systemd[1]: log2ram.service: main process exited, c...EC
Feb 27 14:29:36 MyCloud systemd[1]: log2ram.service changed start -> failed
Feb 27 14:29:36 MyCloud systemd[1]: Job log2ram.service/start finished, res...ed
Feb 27 14:29:36 MyCloud systemd[1]: Failed to start Log2Ram.
Feb 27 14:29:36 MyCloud systemd[1]: Unit log2ram.service entered failed state.
Feb 27 14:29:36 MyCloud systemd[1]: log2ram.service: cgroup is empty
Root directory /run/log/journal removed.
Directory /run/log/journal/5f1d0e244c672cb2bffe767d5659627a removed.
mmap cache statistics: 1809 hit, 3 miss
Hint: Some lines were ellipsized, use -l to show in full.

when i try to start i get ...

root@MyCloud:~# service log2ram start 
Showing one /org/freedesktop/systemd1/unit/dbus_2esocket
Sent message type=method_call sender=n/a destination=org.freedesktop.systemd1 object=/org/freedesktop/systemd1/unit/dbus_2esocket interface=org.freedesktop.DBus.Properties member=GetAll cookie=1 reply_cookie=0 error=n/a
Showing one /org/freedesktop/systemd1/unit/ssh_2esocket
Sent message type=method_call sender=n/a destination=org.freedesktop.systemd1 object=/org/freedesktop/systemd1/unit/ssh_2esocket interface=org.freedesktop.DBus.Properties member=GetAll cookie=1 reply_cookie=0 error=n/a
Showing one /org/freedesktop/systemd1/unit/syslog_2esocket
Sent message type=method_call sender=n/a destination=org.freedesktop.systemd1 object=/org/freedesktop/systemd1/unit/syslog_2esocket interface=org.freedesktop.DBus.Properties member=GetAll cookie=1 reply_cookie=0 error=n/a
Showing one /org/freedesktop/systemd1/unit/systemd_2dinitctl_2esocket
Sent message type=method_call sender=n/a destination=org.freedesktop.systemd1 object=/org/freedesktop/systemd1/unit/systemd_2dinitctl_2esocket interface=org.freedesktop.DBus.Properties member=GetAll cookie=1 reply_cookie=0 error=n/a
Showing one /org/freedesktop/systemd1/unit/systemd_2djournald_2ddev_2dlog_2esocket
Sent message type=method_call sender=n/a destination=org.freedesktop.systemd1 object=/org/freedesktop/systemd1/unit/systemd_2djournald_2ddev_2dlog_2esocket interface=org.freedesktop.DBus.Properties member=GetAll cookie=1 reply_cookie=0 error=n/a
Showing one /org/freedesktop/systemd1/unit/systemd_2djournald_2esocket
Sent message type=method_call sender=n/a destination=org.freedesktop.systemd1 object=/org/freedesktop/systemd1/unit/systemd_2djournald_2esocket interface=org.freedesktop.DBus.Properties member=GetAll cookie=1 reply_cookie=0 error=n/a
Showing one /org/freedesktop/systemd1/unit/systemd_2dshutdownd_2esocket
Sent message type=method_call sender=n/a destination=org.freedesktop.systemd1 object=/org/freedesktop/systemd1/unit/systemd_2dshutdownd_2esocket interface=org.freedesktop.DBus.Properties member=GetAll cookie=1 reply_cookie=0 error=n/a
Showing one /org/freedesktop/systemd1/unit/systemd_2dudevd_2dcontrol_2esocket
Sent message type=method_call sender=n/a destination=org.freedesktop.systemd1 object=/org/freedesktop/systemd1/unit/systemd_2dudevd_2dcontrol_2esocket interface=org.freedesktop.DBus.Properties member=GetAll cookie=1 reply_cookie=0 error=n/a
Showing one /org/freedesktop/systemd1/unit/systemd_2dudevd_2dkernel_2esocket
Sent message type=method_call sender=n/a destination=org.freedesktop.systemd1 object=/org/freedesktop/systemd1/unit/systemd_2dudevd_2dkernel_2esocket interface=org.freedesktop.DBus.Properties member=GetAll cookie=1 reply_cookie=0 error=n/a
Calling manager for StartUnit on log2ram.service, replace
Sent message type=method_call sender=n/a destination=org.freedesktop.systemd1 object=/org/freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager member=StartUnit cookie=1 reply_cookie=0 error=n/a
Sent message type=method_call sender=n/a destination=org.freedesktop.systemd1 object=/org/freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager member=GetUnit cookie=2 reply_cookie=0 error=n/a
Sent message type=method_call sender=n/a destination=org.freedesktop.systemd1 object=/org/freedesktop/systemd1/unit/log2ram_2eservice interface=org.freedesktop.DBus.Properties member=Get cookie=3 reply_cookie=0 error=n/a
Adding /org/freedesktop/systemd1/job/626 to the set
Got message type=signal sender=n/a destination=n/a object=/org/freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager member=JobNew cookie=2 reply_cookie=0 error=n/a
Got D-Bus request: org.freedesktop.systemd1.Manager.JobNew() on /org/freedesktop/systemd1
Got message type=signal sender=n/a destination=n/a object=/org/freedesktop/systemd1/unit/log2ram_2eservice interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=5 reply_cookie=0 error=n/a
Got D-Bus request: org.freedesktop.DBus.Properties.PropertiesChanged() on /org/freedesktop/systemd1/unit/log2ram_2eservice
Got message type=signal sender=n/a destination=n/a object=/org/freedesktop/systemd1/unit/log2ram_2eservice interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=6 reply_cookie=0 error=n/a
Got D-Bus request: org.freedesktop.DBus.Properties.PropertiesChanged() on /org/freedesktop/systemd1/unit/log2ram_2eservice
Got message type=signal sender=n/a destination=n/a object=/org/freedesktop/systemd1/job/626 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=7 reply_cookie=0 error=n/a
Got D-Bus request: org.freedesktop.DBus.Properties.PropertiesChanged() on /org/freedesktop/systemd1/job/626
Got message type=signal sender=n/a destination=n/a object=/org/freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager member=JobRemoved cookie=8 reply_cookie=0 error=n/a
Got D-Bus request: org.freedesktop.systemd1.Manager.JobRemoved() on /org/freedesktop/systemd1
Job for log2ram.service failed. See 'systemctl status log2ram.service' and 'journalctl -xn' for details.
Got result failed/Input/output error for job log2ram.service

from log2ram.

azlux avatar azlux commented on June 11, 2024

Wow. It's fail but don't show us the real error.
what are the output of systemctl status log2ram.service

What is the output of sudo /usr/local/bin/log2ram start ?

from log2ram.

hrvstr avatar hrvstr commented on June 11, 2024
root@MyCloud:~# systemctl status log2ram.service
Showing one /org/freedesktop/systemd1/unit/log2ram_2eservice
Sent message type=method_call sender=n/a destination=org.freedesktop.systemd1 object=/org/freedesktop/systemd1/unit/log2ram_2eservice interface=org.freedesktop.DBus.Properties member=GetAll cookie=1 reply_cookie=0 error=n/a
● log2ram.service - Log2Ram
   Loaded: loaded (/etc/systemd/system/log2ram.service; enabled)
   Active: failed (Result: exit-code) since Mo 2017-02-27 19:05:20 UTC; 1h 34min ago
  Process: 4161 ExecStart=/usr/local/bin/log2ram start (code=exited, status=203/EXEC)
 Main PID: 4161 (code=exited, status=203/EXEC)
Root directory /run/log/journal added.
Considering /run/log/journal/5f1d0e244c672cb2bffe767d5659627a.
Directory /run/log/journal/5f1d0e244c672cb2bffe767d5659627a added.
File /run/log/journal/5f1d0e244c672cb2bffe767d5659627a/system.journal added.
File /run/log/journal/5f1d0e244c672cb2bffe767d5659627a/system@6bc936f6b9e54404be290279730177fa-0000000000000ce9-00054985163f2c94.journal added.
File /run/log/journal/5f1d0e244c672cb2bffe767d5659627a/system@6bc936f6b9e54404be290279730177fa-0000000000000001-00054983e7b2fae4.journal added.
Journal filter: (((OBJECT_SYSTEMD_UNIT=log2ram.service AND _UID=0) OR (UNIT=log2ram.service AND _PID=1) OR (COREDUMP_UNIT=log2ram.service AND _UID=0 AND MESSAGE_ID=fc2e22bc6ee647b6b90729ab34a250b1) OR _SYSTEMD_UNIT=log2ram.service) AND _BOOT_ID=736a216b56314df09b07105f413a361b)

Feb 27 19:05:20 MyCloud systemd[1]: Forked /usr/local/bin/log2ram as 4161
Feb 27 19:05:20 MyCloud systemd[1]: log2ram.service changed failed -> start
Feb 27 19:05:20 MyCloud systemd[1]: Child 4161 belongs to log2ram.service
Feb 27 19:05:20 MyCloud systemd[1]: log2ram.service: main process exited, c...EC
Feb 27 19:05:20 MyCloud systemd[1]: log2ram.service changed start -> failed
Feb 27 19:05:21 MyCloud systemd[1]: Job log2ram.service/start finished, res...ed
Feb 27 19:05:21 MyCloud systemd[1]: Failed to start Log2Ram.
Feb 27 19:05:21 MyCloud systemd[1]: Unit log2ram.service entered failed state.
Feb 27 19:05:21 MyCloud systemd[1]: log2ram.service: cgroup is empty
Root directory /run/log/journal removed.
Directory /run/log/journal/5f1d0e244c672cb2bffe767d5659627a removed.
mmap cache statistics: 3847 hit, 3 miss
Hint: Some lines were ellipsized, use -l to show in full.

this one doesn't work

as root (without sudo):

root@MyCloud:~# /usr/local/bin/log2ram start
-bash: /usr/local/bin/log2ram: Ist ein Verzeichnis (is a directory)

as user(with sudo):

hrvstr@MyCloud:~$ sudo /usr/local/bin/log2ram start
-bash: sudo: Kommando nicht gefunden. (command not found)

from log2ram.

azlux avatar azlux commented on June 11, 2024

Read the full output please 'Hint: Some lines were ellipsized, use -l to show in full.'
/usr/local/bin/log2ram shoudn't be a directory, it's where the log2ram script must be

from log2ram.

hrvstr avatar hrvstr commented on June 11, 2024

ah okay that was the issue. I somehow copied the whole folder from github there. when I placed only the log2ram file in /usr/local/bin/ it started successfully.

from log2ram.

azlux avatar azlux commented on June 11, 2024

there are a install script. use it.

from log2ram.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.