# First Run, Bootstrapping fails

**URL:** <https://forums.percona.com/t/first-run-bootstrapping-fails/5627>\
**Category:** Percona XtraDB Cluster 5.x\
**Created:** [May 22, 2017, 6:54am UTC](https://forums.percona.com/t/first-run-bootstrapping-fails/5627 "2017-05-22T06:54:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![plex](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@plex](https://forums.percona.com/u/plex)\
**Post date:** [May 22, 2017, 6:54am UTC](https://forums.percona.com/t/first-run-bootstrapping-fails/5627/1 "2017-05-22T06:54:36Z")

</div>

Hello togehter, I’m new to Linux, mySQL and Percona Cluster, but I’ll do my very best to setup a xtradb Cluster with 3 Ubuntu 16.04.2 LTS nodes - it’s needed for an internal project and the developers had made their requierments… so here I am and hope for a little help.

I’ve done step by step what is provided in the PDF [url][https://learn.percona.com/hubfs/Manuals/Percona\_XtraDB\_Cluster/PXC-5.7/Percona-XtraDB-Cluster-5.7.17-29.20.pdf[/url]](https://learn.percona.com/hubfs/Manuals/Percona_XtraDB_Cluster/PXC-5.7/Percona-XtraDB-Cluster-5.7.17-29.20.pdf%5B/url%5D)

I’ve installed 3 Ubuntu 16.04.2 LTS Servers. They are all in the same Network and I can ping anyone among themselves.  
Then I installed percona xtradb from repository like it is discribed here on every server: [url][Redirecting](https://www.percona.com/doc/percona-xtradb-cluster/LATEST/install/apt.html#apt%5B/url%5D)  
Uninstalled apparmor as well

After that I configured the /etc/mysql/my.cnf files on every server discribed here: [url][https://www.percona.com/doc/percona-xtradb-cluster/LATEST/configure.html#configure[/url]](https://www.percona.com/doc/percona-xtradb-cluster/LATEST/configure.html#configure%5B/url%5D)

After that I tried to bootstrap the first node but got Errors. Oen can be fixed by adding [mysqld] on top of the my.cnf

But I’m not able to fix the second one. I have no Idea what this means. Can anyone help?

~$ /etc/init.d/mysql bootstrap-pxc

- Bootstrapping Percona XtraDB Cluster database server mysqld \* The server quit without updating PID file (/var/lib/mysql/svdb02.pid).

Thanks in advance to everyone who helps me out.

---

<div class="post-metadata">

**Author:** ![mirfan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/mirfan/32/16890_2.png) [@mirfan](https://forums.percona.com/u/mirfan)\
**Post date:** [May 25, 2017, 4:47am UTC](https://forums.percona.com/t/first-run-bootstrapping-fails/5627/2 "2017-05-25T04:47:42Z")

</div>

Can you please show us exact error you are getting ? Also, reviewing my.cnf from this node atleast would be helpful too.

---

<div class="post-metadata">

**Author:** ![forwov](https://avatars.discourse-cdn.com/v4/letter/f/54ee81/32.png) [@forwov](https://forums.percona.com/u/forwov)\
**Post date:** [May 31, 2017, 2:46am UTC](https://forums.percona.com/t/first-run-bootstrapping-fails/5627/3 "2017-05-31T02:46:43Z")

</div>

Hello. Have similar situation as plex. First had some hostname issueses. Logs showed strange hostnames at /var/lib/mysq/$host.err file. Checked source of Percona-XtraDB-Cluster-5.7.17-29.20/build-ps/ubuntu/percona-xtradb-cluster-server-5.7.mysql.init:112. After editing /etc/hosts and restarting systemd-sysctl.service bootstraping failed with Access denied for user ‘root’@‘localhost’. mysql\>show status like ‘wsrep%’ responds: wsrep\_cluster\_size 0, wsrep\_cluster\_status Disconnected, wsrep\_ready ON. That’s all with default (untouched /etc/mysql/my.cnf) BUT as soon as I replace my.cnf (in attachment) mysql cannot be reachable.  
Question 1: should wsrep\_node\_name value be the same as hostname of a machine? (concerns bootsraping node)  
Question 2: can 1-st node be bootstraped if 3-rd for example runs, allready? wsrep\_connected ON, wsrep\_cluster\_status Primary (fixed pid by info from [url][melikedev.com is for sale | HugeDomains](http://melikedev.com/2011/11/30/mysql-percona-pid-file-could-not-be-found/%5B/url%5D))  
Question 2.1 is melikedev’s method safe? works for latest releases of pxc?  
Question 3: is 237.1.205.157 your service address (checked 4444 port availability) because at my 2nd node /var/lib/mysql/galera.cache shows:  
Version: 1  
GID: 5f719f62-4432-11e7-86b1-728b8e3e3db0  
synced: 0  
ySTRv12xtrabackup-v237.1.205.157:4444/xtrabackup\_sst//1444/xtrabackup\_sst//1

[my.cnf.zip](https://forums.percona.com/uploads/short-url/sENhOQgfOoDfGRkYw1yaQdqmACi.zip) (526 Bytes)

---

<div class="post-metadata">

**Author:** ![forwov](https://avatars.discourse-cdn.com/v4/letter/f/54ee81/32.png) [@forwov](https://forums.percona.com/u/forwov)\
**Post date:** [May 31, 2017, 8:52am UTC](https://forums.percona.com/t/first-run-bootstrapping-fails/5627/4 "2017-05-31T08:52:40Z")

</div>

mysqld: Can’t create directory ‘/var/lib/mysql/’ (Errcode: 13 - Permission denied)  
and this is by instructions from pdf question do I have to setup latest cluster (57) as root? If you need some specific info i’m at your disposal.

---

<div class="post-metadata">

**Author:** ![forwov](https://avatars.discourse-cdn.com/v4/letter/f/54ee81/32.png) [@forwov](https://forums.percona.com/u/forwov)\
**Post date:** [June 1, 2017, 10:58am UTC](https://forums.percona.com/t/first-run-bootstrapping-fails/5627/5 "2017-06-01T10:58:45Z")

</div>

Is it possible to leave messages on this forum? If you read this message you should know you have some uninstall issueses at latest (57) pxc on ubuntu. The one who wants ( as for me I pass, until you do somthing with forum of will be ready for communication [my mail: [for\_wov&#64;ukr.net](mailto:for_wov&#64;ukr.net)] , I allways ready to povide necessary information on pxc) purge and reinstall pxc (this means layziness from his/her side or a bit untested product from your side) one needs to download (by means of wget command) the latest release package AGAIN and reinstall. In case you didn’t get my latest message due to some forum issueses, the question still remains: is it necessary to use fqdn in /etc/mysql/my.cnf?
