liuzhe02 / bigbluebutton

Automatically exported from code.google.com/p/bigbluebutton
0 stars 0 forks source link

bbb-conf --clean command deletes /var/log/syslog and it changes the owner to root #1720

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello

I'm testing the software BBB 0.81 in Ubuntu Server 12.04 64b and I've noticed 
that when I run the command

clean bbb-conf

This command clears the system log file. In addition, it changes the 
permissions to root and leaves a blank line.

This makes you lose the log because the rsyslog system requires the user syslog 
and group adm to include records. The change comes about FreeSWITCH is 
restarting

Starting FreeSWITCH
Backgrounding 16398.
Waiting for FreeSWITCH to start: ................

logfile switch to root: root

Yes its not the 10.04 tested system but I think that is an important bug 
Because you lose your log and if you don't change the owner:group to syslog:adm 
manually and restarts rsyslog there will be no records in the log in the future 
(SYSTEM LOG)

I thing it is very important.

Regards

Original issue reported on code.google.com by fjbejar...@gmail.com on 31 Jan 2014 at 10:42

GoogleCodeExporter commented 9 years ago
If I run bbb-conf --restart all its ok.

I thing is only with bbb-conf --clean.

Original comment by fjbejar...@gmail.com on 31 Jan 2014 at 11:01

GoogleCodeExporter commented 9 years ago
You can avoid this bug editing /etc/rsyslog.d/50-default.conf and adding the 
line

*.*;auth,authpriv.none          -/var/log/messages

And then
/etc/init.d/rsyslog restart

This changes the syslog for messages log. But this should be only a temporary 
action.

Regards

Original comment by fjbejar...@gmail.com on 31 Jan 2014 at 11:38

GoogleCodeExporter commented 9 years ago
Thanks for sharing this!  We're working on the packaging for 12.04 64-bit and 
will look at incorporating this into bbb-conf --restart.

Original comment by ffdixon@gmail.com on 31 Jan 2014 at 12:42

GoogleCodeExporter commented 9 years ago
Added to 0.9.0-dev the following line 

  chown syslog:adm /var/log/syslog

to bbb-conf so that syslog can write to the file again.

Original comment by ffdixon@gmail.com on 20 May 2014 at 1:11

GoogleCodeExporter commented 9 years ago

Original comment by ffdixon@gmail.com on 20 May 2014 at 1:12