[MXS-621] MaxScale fails to start silently if config file is not readable Created: 2016-03-15 Updated: 2016-08-11 Resolved: 2016-05-18 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | Core |
| Affects Version/s: | 1.3.0 |
| Fix Version/s: | 1.4.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Guillaume Lefranc | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Sprint: | 2016-10 | ||||||||
| Description |
|
Test: chmod 600 /etc/maxscale.cnf MaxScale fails to start silently. Suggest to add error message: /etc/maxscale.cnf could not be parsed. |
| Comments |
| Comment by markus makela [ 2016-03-21 ] |
|
Which version was this encountered with? It is possibly related to log flushing errors found in 1.3.0 which were fixed for 1.4.0. |
| Comment by Guillaume Lefranc [ 2016-03-21 ] |
|
1.3.0 |
| Comment by markus makela [ 2016-03-21 ] |
|
Please try to reproduce with the 1.4.0 beta version of MaxScale. With it, the logs are fully flushed to disk when MaxScale exits. |
| Comment by Timofey Turenko [ 2016-04-04 ] |
|
just tested with 1.4.1: nothing in the log! [vagrant@maxscale ~]$ maxscale --version-full MariaDB Corporation MaxScale 1.4.1 Mon Apr 4 09:55:33 2016 Apr 04 09:55:48 maxscale systemd[1]: Starting MariaDB MaxScale Database Proxy... MariaDB Corporation MaxScale 1.4.1 Mon Apr 4 09:56:29 2016 MariaDB Corporation MaxScale 1.4.1 Mon Apr 4 09:56:32 2016 |
| Comment by markus makela [ 2016-04-15 ] |
|
Error messages that were logged before the log manager was initialized were ignored. |
| Comment by Timofey Turenko [ 2016-04-20 ] |
|
still does not work: [vagrant@maxscale ~]$ sudo chmod 400 /etc/maxscale.cnf MariaDB Corporation MaxScale 1.4.2 Wed Apr 20 03:57:10 2016 MariaDB Corporation MaxScale 1.4.2 Wed Apr 20 03:57:25 2016
Log is empty. |
| Comment by markus makela [ 2016-04-25 ] |
|
The daemon mode no longer affects the output of the error messages to stdout. This will allow easier detection of problems in the configuration. The case where no log messages were logged was most likely caused by the lack of write permissions to the logging directory and it should be fixed with the code in commit 3046b4a46e70cd19db95397fc4754f2981594d0c with additional error logging printed to stdout. |
| Comment by Timofey Turenko [ 2016-05-18 ] |
|
fixed in 1.4.3, merged to develop. |