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

Installation fail on ubuntu 18.04 #55

Closed
ghost opened this issue Sep 2, 2018 · 5 comments
Closed

Installation fail on ubuntu 18.04 #55

ghost opened this issue Sep 2, 2018 · 5 comments

Comments

@ghost
Copy link

ghost commented Sep 2, 2018

reported first here : https://linuxfr.org/wiki/tuto-howto-transferer-les-logs-en-ram-avec-log2ram#comment-1747645

tested on ubuntu 18.04

spartacus @ rome  ~
└─ $ ▶ cd /tmp
spartacus @ rome  /tmp
└─ $ ▶ curl -L https://github.com/azlux/log2ram/archive/master.tar.gz | tar xvzf -
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   121    0   121    0     0    178      0 --:--:-- --:--:-- --:--:--   178
100  4242    0  4242    0     0   3196      0 --:--:--  0:00:01 --:--:-- 10500
log2ram-master/
log2ram-master/LICENSE
log2ram-master/README.md
log2ram-master/install.sh
log2ram-master/log2ram
log2ram-master/log2ram.conf
log2ram-master/log2ram.hourly
log2ram-master/log2ram.logrotate
log2ram-master/log2ram.service
log2ram-master/uninstall.sh
spartacus @ rome  /tmp
└─ $ ▶ sudo chmod +x ./log2ram-master/install.sh && sudo ./log2ram-master/install.sh
[sudo] password for spartacus: 
install: cannot stat 'log2ram.service': No such file or directory
install: cannot stat 'log2ram': No such file or directory
install: cannot stat 'log2ram.conf': No such file or directory
install: cannot stat 'uninstall.sh': No such file or directory
Failed to enable unit: Unit file log2ram.service does not exist.
install: cannot stat 'log2ram.hourly': No such file or directory
install: cannot stat 'log2ram.logrotate': No such file or directory
##### Reboot to activate log2ram #####
spartacus @ rome  /tmp
└─ $ ▶ rm -r log2ram-master
spartacus @ rome  /tmp
└─ $ ▶ sudo chmod +x /usr/local/bin/uninstall-log2ram.sh && sudo /usr/local/bin/uninstall-log2ram.sh
chmod: cannot access '/usr/local/bin/uninstall-log2ram.sh': No such file or directory
@azlux
Copy link
Owner

azlux commented Sep 2, 2018

Hi,
Please follow the Readme install section.

cd log2ram-master
chmod +x install.sh && sudo ./install.sh

The installer need to be into the folder.

@ghost
Copy link
Author

ghost commented Sep 2, 2018

Ok my fault, sorry :)

It's working, just a little error in the config file by default :


root@machine:/# service log2ram status
● log2ram.service - Log2Ram
   Loaded: loaded (/etc/systemd/system/log2ram.service; enabled; vendor preset: 
   Active: failed (Result: exit-code) since Sun 2018-09-02 22:33:49 CEST; 4min 2
  Process: 525 ExecStart=/usr/local/bin/log2ram start (code=exited, status=1/FAI
 Main PID: 525 (code=exited, status=1/FAILURE)

Sep 02 22:33:50 machine log2ram[525]: ERROR: RAM disk too small. Can't sync.
Sep 02 22:33:50 machine log2ram[525]: /usr/local/bin/log2ram: 35: /usr/local/bin
Warning: Journal has been rotated since unit was started. Log output is incomple

root@machine:/# service log2ram restart
root@machine:/# service log2ram status
● log2ram.service - Log2Ram
   Loaded: loaded (/etc/systemd/system/log2ram.service; enabled; vendor preset: 
   Active: active (exited) since Sun 2018-09-02 22:38:25 CEST; 2s ago
  Process: 3185 ExecStart=/usr/local/bin/log2ram start (code=exited, status=0/SU
 Main PID: 3185 (code=exited, status=0/SUCCESS)

Sep 02 22:38:20 machine systemd[1]: Starting Log2Ram...

@azlux
Copy link
Owner

azlux commented Sep 2, 2018

ERROR: RAM disk too small. Can't sync. I hope it's clear enough.

Your /var/log folder is bigger than the default size.

You can increase the value ( it's also into the Readme)

Az

@ghost
Copy link
Author

ghost commented Sep 2, 2018

Merci ;)

@ghost ghost closed this as completed Sep 2, 2018
@azlux
Copy link
Owner

azlux commented Dec 19, 2019

FYI 13d0058
Better install method

This issue was closed.
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

1 participant