Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provisioning known, db creation fails #143

Closed
edrex opened this issue Feb 6, 2017 · 1 comment
Closed

provisioning known, db creation fails #143

edrex opened this issue Feb 6, 2017 · 1 comment

Comments

@edrex
Copy link

edrex commented Feb 6, 2017

Hi! I'm attempting to set up libre.sh on a Digital Ocean node following INSTALL.md. My initial goal is a working Known site. I've gotten as far as enabling/starting haproxy. Yay!

This should probably be a forum post, but the quad indent code samples suck for pasting logs etc..

Anyway:

When I try to provision a known site, the DB provisioning evidently fails:

sudo libre provision -a github.com/indiehosters/known -u edrex.pdxhub.org -s
  Cloning into '/data/domains/edrex.pdxhub.org'...
  remote: Counting objects: 121, done.
  remote: Total 121 (delta 0), reused 0 (delta 0), pack-reused 121
  Receiving objects: 100% (121/121), 28.94 KiB | 0 bytes/s, done.
  Resolving deltas: 100% (61/61), done.
  Checking connectivity... done.
  2017-02-06 03:57:25 UTC [  warning] you have no email server setup, we'll print a random configuration in your application. Make sure to check the parameters for your app to send proper emails.
  2017-02-06 03:57:25 UTC [  warning] To stop having this warning, please configure your libre.sh to be abble to create email accounts.
  2017-02-06 03:57:25 UTC [  warning] You can also contact support@indie.host to setup an email account for you
  ++ xargs
  ++ head -c 20
  ++ tr -dc A-Za-z0-9_
  + MYSQL_ROOT_PASSWORD=redacted
  + echo MYSQL_ROOT_PASSWORD=redacted
  + echo KNOWN_DB_PASSWORD=redacted
  + echo MAIL_PASS=randompass
  + echo MAIL_USER=example@indie.host
  + echo MAIL_HOST=mail.indie.host
  + echo MAIL_PORT=587
  + echo MAIL_SECURE=starttls
  Created symlink /etc/systemd/system/multi-user.target.wants/u@edrex.pdxhub.org.service → /etc/systemd/system/u@.service. 

core@libre / $ cd /data/domains/edrex.pdxhub.org/
core@libre /data/domains/edrex.pdxhub.org $ libre logs
Attaching to edrexpdxhuborg_web_1, edrexpdxhuborg_app_1, edrexpdxhuborg_db_1
app_1  | Cannot connect to Mysql. Starting anyway...
app_1  | [06-Feb-2017 04:07:43] NOTICE: fpm is running, pid 1
app_1  | [06-Feb-2017 04:07:43] NOTICE: ready to handle connections
db_1   | error: database is uninitialized and password option is not specified
db_1   |   You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD

I have some comfort with docker-compose and systemd but it's going to take me a little time to get used to how libre is set up. Troubleshooting suggestions? Maybe an early exit because I don't have email set up yet or something? Thanks, and please LMK if this should be posted somewhere else.

@edrex
Copy link
Author

edrex commented Feb 6, 2017

Oh, env was just missing MYSQL_ROOT_PASSWORD.

@edrex edrex closed this as completed Feb 6, 2017
edrex added a commit to edrex/known that referenced this issue Feb 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant