autopilotpattern / wordpress

A robust and highly-scalable implementation of WordPress in Docker using the Autopilot Pattern
GNU General Public License v2.0
158 stars 41 forks source link

Can't get autopilot wordpress to work. #32

Closed khangngu closed 7 years ago

khangngu commented 7 years ago

I deployed autopilot/wordpress. After all 7 instances were created, I noticed that WordPress app was not completely configured and thus not running on the wordpress_wordpress_1 instance. I logged on to the consul UI (http://165.225.149.83:8500/ui/#/dc1/services/mysql) and noticed that the entry "mysql-primary" was not shown. It looked like mysql instance became live but didn't mark itself as the primary in Consul. I was able to manually login to the database on mysql. I executed "docker logs wordpress_mysql_1", and saved the snippet of the log here: https://gist.github.com/khangngu/59a2af346bbb598d4a01cc0912d60d40. Can someone please help detect what went wrong with my deployment? Thanks, -khang-

misterbisson commented 7 years ago

@khangngu this is the last log output before an error:

2016/10/06 22:30:53 INFO manage snapshot completed, uploading to object store

Uploads to the object store require a MANTA_BUCKET, MANTA_USER, MANTA_KEY_ID, and MANTA_PRIVATE_KEY. Have you confirmed all of those look valid in your _env file? Does the MANTA_BUCKET already exist (backups fail if not)? Does the MANTA_USER have access? Do all the pieces tie up?

My MANTA_BUCKET value is:

MANTA_BUCKET=/joybisson/stor/triton-mysql

Right now it includes:

$ mls //joybisson/stor/triton-mysql
[...]
mysql-backup-2016-09-28T16-55-26Z
mysql-backup-2016-10-04T18-19-11Z
khangngu commented 7 years ago

I also suspected that it had to do something with the backup.

I did have the following settings in my _env file:

MANTA_BUCKET= /khangngu/stor/wpbackup MANTA_USER= khangngu MANTA_KEY_ID=c5:48:5a:7f:c0:9e:a5:b8:ef:a3:43:1b:fa:94:b9:61

as well as MANTA_PRIVATE_KEY

However, I noticed that there is no backup file under that bucket directory.

$ mls /khangngu/stor/wpbackup

returned nothing.

Thanks, -khang-

On Thu, Oct 6, 2016 at 4:24 PM, Casey Bisson notifications@github.com wrote:

@khangngu https://github.com/khangngu this is the last log output before an error:

2016/10/06 22:30:53 INFO manage snapshot completed, uploading to object store

Uploads to the object store require a MANTA_BUCKET, MANTA_USER, MANTA_KEY_ID, and MANTA_PRIVATE_KEY. Have you confirm all of those look valid in your _env file? Does the MANTA_BUCKET already exist (it needs to)? Does the MANTA_USER have access? Do all the pieces tie up?

My MANTA_BUCKET value is:

MANTA_BUCKET=/joybisson/stor/triton-mysql

Right now it includes:

$ mls //joybisson/stor/triton-mysql [...] mysql-backup-2016-09-28T16-55-26Z mysql-backup-2016-10-04T18-19-11Z

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/autopilotpattern/wordpress/issues/32#issuecomment-252115844, or mute the thread https://github.com/notifications/unsubscribe-auth/AVMberqX89dviNBez3pLGmRm451TSaQuks5qxYM7gaJpZM4KQgLp .

khangngu commented 7 years ago

I found the culprit: my MANTA_PRIVATE_KEY was encrypted. I decrypted my private key, reran setup.sh, reran docker-compose, and everything is working now.

-khang-