Comments (5)
I had exactly the same issue. I don't remember exactly what I did to solve it, but it involved changing the scripts in the /bin directory. If you're interested I can try to diff them with the current version.
from docker-percona_galera.
I would really appreciate that :) I was considering the FLUSH PRIVILEGES may have that effect, as that is the only which does not have wsrep off
from docker-percona_galera.
It appears the current version has changed significatively from the version I have. Anyways, my problem was in the bin/functions/init_database() function. For some reason starting mysql twice (the first time just to setup passwords) for an existing database was triggering the error you mentioned. I removed that funcionality since I don't really need the scripts to reset passwords dynamically and it has been running great ever since. My version is the following (watch out for the SRC_PATH env variable which is mine).
`function init_database() {
chown -R mysql:mysql /var/lib/mysql
touch /var/log/mysql/error.log
tail ---disable-inotify -F /var/log/mysql/error.log &
if [[ ! -d /var/lib/mysql/mysql ]]; then
echo "==> An empty or uninitialized database is detected in /var/lib/mysql"
echo "-----> Creating database..."
mysql_install_db > /dev/null 2>&1
echo "==> starting mysql in order to set up passwords"
mysqld_safe --skip-syslog --verbose &
echo "-----> sleeping for 20 seconds, then testing if DB is up"
sleep 20
while [[ -z $(netstat -lnt | awk "$6 == "LISTEN" && $4 ~ ".$PUBLISH" && $1 ~ "$PROTO.?"") ]] ; do sleep 1; done
[[ -z
echo "==> stopping mysql after setting up passwords"
mysqladmin shutdown
echo "-----> Done!"
else
echo "-----> Using an existing database"
fi
}`
from docker-percona_galera.
Thank you, I'll test it and report back!
from docker-percona_galera.
Tested both removing init_database() and adding SET wsrep_on=OFF to FLUSH PRIVILEGES, and both worked fine! Creating a pull request for the later, as it can be a general solution :)
Thank you for the help!
from docker-percona_galera.
Related Issues (13)
- fleet - database container HOT 1
- Message: uninitialized constant YAML HOT 1
- my.cnf HOT 1
- SST issue
- Unable to start using Vagrant
- /app/bin/reload missing HOT 1
- Does this work with the latest CoreOS? HOT 1
- /bin/boot doesn't work if CLUSTER is empty... HOT 2
- support encrypted replication
- HAProxy Stats Port needs to be externalized HOT 1
- Stuck at elections HOT 4
- Checking endpoints
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-percona_galera.