[MCOL-811] Logs going to system journal in Ubuntu instead of log files Created: 2017-07-10 Updated: 2017-07-19 Resolved: 2017-07-19 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | 1.0.9 |
| Fix Version/s: | 1.0.10 |
| Type: | Bug | Priority: | Major |
| Reporter: | Andrew Hutchings (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 2017-14 |
| Description |
|
I've had this reported from several community members and have been able to reproduce myself. On a single-server Ubuntu 16.04 setup the ColumnStore logs are going into the system journal instead of the files in /usr/local/mariadb/columnstore. I believe the reason is during postConfigure syslog is restarted several times rapidly. Ubuntu's systemd says this is happening too often and we end up with syslog not starting at all. The log data then falls back to the system journal. |
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2017-07-11 ] |
|
I of course mean it isn't going into /var/log/mariadb/columnstore (typed /usr/local from muscle memory it seems) |
| Comment by David Hill (Inactive) [ 2017-07-11 ] |
|
found that is restarted 3 times just in the post-install running process. This is all being done in syslogSetup.sh... So this script needs to be changed to add more logic to to have it restart multiple times. will check other area in the code at startup. |
| Comment by David Hill (Inactive) [ 2017-07-11 ] |
|
/bin/syslogSetup.sh install also called by postCOnfigure. It doesnt need to be called here since its called in post-install. so will remove it from postConfigure. |
| Comment by David Hill (Inactive) [ 2017-07-12 ] |
|
fixed in 1.0.10 first, tweaked post-install, postConfigure, and syslogSetup.sh. |
| Comment by David Hill (Inactive) [ 2017-07-12 ] |
|
how I tested on ubuntu 16.04 1. in one window, do the following:
simulate an upgrade install
Before change you would see 4 to 6 logs to start rsyslog, now should just see 1 |
| Comment by Daniel Lee (Inactive) [ 2017-07-19 ] |
|
Build verified: 1.0.10-1 logs are going into both syslog and columnstore log files. |