Project

General

Profile

I've deleted production.log, please help

Added by Alex Zuev over 6 years ago

Hello everyone,

I've ocasionally deleted production.log and now it doesn't work. What should I do? Ho can I create it again?

I've tried

sudo -u redmine -H touch log/production.log

but it doesn't work.


Replies (1)

RE: I've deleted production.log, please help - Added by Mauro Condarelli over 6 years ago

What's wrong with the "plain old method"?

sudo su - redmine
cd <redmine installation dir>/log
touch production.log
chmod 0644 production.log
ls -la # should print: "-rw-r--r--.  1 redmine redmine 370071 Oct 15 17:03 production.log" 
exit
sudo systemctl restart nginx # or whatever needed to restart RedMine
    (1-1/1)