[MXS-1420] maxscale cannot be started again after shutdown Created: 2017-09-15 Updated: 2017-09-19 Resolved: 2017-09-19 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | N/A |
| Affects Version/s: | 2.1.7 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Oli Sennhauser | Assignee: | Johan Wikman |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
linux ubuntu 14.04 |
||
| Sprint: | 2017-42 |
| Description |
|
when I shutdown maxscale with the shutdown command it will not start anymore afterwards. MaxScale> shutdown maxscale export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/home/mysql/product/maxscale/lib/x86_64-linux-gnu/maxscale 2017-09-15 11:33:40 notice : Working directory: /tmp
Workaround: cleanup /tmp directory but this is not really funny... I assume it will flush some binlogserver informations during shutdown which it should not... |
| Comments |
| Comment by Oli Sennhauser [ 2017-09-15 ] |
|
cat maxscale.cnf [nodeA] [nodeB] [nodeC] [MySQL Monitor] [ProductsSelectLogger] [MarGal101] [MaxAdmin Service] [MarGal101 Listener] [MaxAdmin Listener] |
| Comment by Oli Sennhauser [ 2017-09-15 ] |
|
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/home/mysql/product/maxscale/lib/x86_64-linux-gnu/maxscale |
| Comment by Massimiliano Pinto (Inactive) [ 2017-09-15 ] |
|
We see from error log: 2017-09-15 11:33:40 notice : Loaded module binlogrouter: V2.1.0 from /usr/lib/x86_64-linux-gnu/maxscale/libbinlogrouter.so But we cannot see any Binlog Router configuration in maxscale.cnf you have provided. Please check maxscale.cnf and remove all binlogserver configuration if not needed. |
| Comment by Oli Sennhauser [ 2017-09-15 ] |
|
Did you try the test case I sent? if you cannot reproduce my test case I will investigate further |
| Comment by Oli Sennhauser [ 2017-09-15 ] |
|
And did you get this comment: "Workaround: cleanup /tmp directory but this is not really funny... I assume it will flush some binlogserver informations during shutdown which it should not..." So I have no clue where it is comming from |
| Comment by Massimiliano Pinto (Inactive) [ 2017-09-15 ] |
|
Hi oli, by looking at the maxscale log I see: 2017-09-15 11:33:40 notice : Loading /tmp/MarGal101.cnf. So maxscale is loading the template maxscale_binlogserver_template.cnf which should not be there: that file is responsible for "binlog router" messages. I suggest to remove it from your setup and to trying: please check there are no other useless config files as well. Massimiliano |
| Comment by Oli Sennhauser [ 2017-09-15 ] |
|
OK. So we should ask the question: why is maxscale looking for this file at this strange location??? I used this location to repackage maxscale DEB into a tar-ball. Because you do not provide tar balls. |
| Comment by Johan Wikman [ 2017-09-19 ] |
|
With --persistdir you tell MaxScale the directory where configuration files created for persisting dynamic configuration changes should be placed. These files will also be read upon startup. Thus, if you invoke MaxScale with --persistdir=/tmp it will read and process all .cnf files found under /tmp. |