Closed shumbashi closed 2 years ago
I googled "Can't init tc log" and found this. I suggest trying to add --log-bin
to the command options.
same error when I tried to update from 10.2 to 10.4 How to do a container upgrade from 10.2 to 10.4 ?
I got Received TERM|INT signal. in no-galera mode, but i didn't sent anythinh. maybe a heathcheck not working ?
I used
no-galera --log-bin=mysqld-bin
Then stared the cluster normally and now upgrades has been done
In general if you are extending the pre-built container image with your own config you will want to use your custom image also for the no-galera command so that the server starts up with the exact same configuration. Is that the case that your regular nodes run an image with log_bin specified already in the config?
I made a deployment with log-bin param
node:
image: colinmollenhour/mariadb-galera-swarm:10.4.11-2020-01-06
environment:
- HEALTHY_WHILE_BOOTING=1
- XTRABACKUP_PASSWORD_FILE=/run/secrets/xtrabackup_password
networks:
- back
command: >
no-galera
--log-bin=mysqld-bin
volumes:
- {{ ha_dir }}/{% raw %}{{.Service.Name}}-{{.Task.Slot}}-data{% endraw %}:/var/lib/mysql
deploy:
replicas: 1
secrets:
- xtrabackup_password
Strange, so MariaDb will start with Galera without log-bin but will not start without Galera without log-bin?
I didn't add log_bin to the default config because I figured people will want to customize it (e.g. special purpose volumes) but I would assume that everyone will run it in production.
Updated README.md with mention of log-bin parameter.
I have a 5 node Galera cluster running on swarm using this repo. I wanted to reset the root password. The documentation mentions that "Galera container should be stopped" so I have scaled down the mysql_node service to 0 (making sure all Galera containers are shut down) and then attempted to run the following container from one of the swarm nodes
docker run --rm -v /dbdata:/var/lib/mysql --name no-galera-temp colinmollenhour/mariadb-galera-swarm:10.2 no-galera --skip-grant-tables
The container quickly exits with the following error
Can you please advise if I'm doing this wrong or what?