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

MONGO_URL is set, but build always stops with "missing error" #197

Open
1jerry opened this issue Mar 30, 2018 · 1 comment
Open

MONGO_URL is set, but build always stops with "missing error" #197

1jerry opened this issue Mar 30, 2018 · 1 comment

Comments

@1jerry
Copy link

1jerry commented Mar 30, 2018

Type of problem
  • Failure to build
Summary

MONGO_URL missing error - but it IS set. I have no idea why the buildpack does not see it.
Using instructions from https://maxmalm.se/blog/2015-06-12-digitalocean-dokku-meteor

Contents of .meteor/release
Buildpack version
root@dokku3:~# dokku buildpacks
 !     `buildpacks` is not a dokku command.
 !     See `dokku help` for a list of available commands.
>cat .env
export BUILDPACK_URL='https://github.com/AdmitHub/meteor-buildpack-horse.git'
((( I wish there WERE a version )))
Logs
#dokku config:set trial ROOT_URL=http://trial.apps.example.com
#dokku config:set trial MONGO_URL=mongodb://<myuser>:<mypass>@dsXXXXXX.mon
golab.com:XXXXX/test30?autoReconnect=true
~# dokku config trial
=====> trial env vars
DOKKU_APP_TYPE:  herokuish
MONGO_URL:     mongodb://<myuser>:<mypass>@dsXXXXX.mongolab.com:XXXXX/test30?autoReconnect=true
ROOT_URL:        http://trial.apps.example.com

remote: + echo '       ++ export ROOT_URL=http://trial.apps.example.com'
remote:        ++ export ROOT_URL=http://trial.apps.example.com
remote: + for line in '$(docker logs "$CID" 2>&1)'
remote: + dokku_log_verbose_quiet '++ ROOT_URL=http://trial.apps.example.com'
remote: + declare 'desc=log verbose formatter (with quiet option)'
remote: + [[ -z '' ]]
remote: + echo '       ++ ROOT_URL=http://trial.apps.example.com'
remote:        ++ ROOT_URL=http://trial.apps.example.com
remote: + for line in '$(docker logs "$CID" 2>&1)'
remote: + dokku_log_verbose_quiet '+ for file in '\''$app_path/.profile.d/*.sh'\'''
remote: + declare 'desc=log verbose formatter (with quiet option)'
remote: + [[ -z '' ]]
remote: + echo '       + for file in '\''$app_path/.profile.d/*.sh'\'''
remote:        + for file in '$app_path/.profile.d/*.sh'
remote: + for line in '$(docker logs "$CID" 2>&1)'
remote: + dokku_log_verbose_quiet '+ source /app/.profile.d/mongo_url.sh'
remote: + declare 'desc=log verbose formatter (with quiet option)'
remote: + [[ -z '' ]]
remote: + echo '       + source /app/.profile.d/mongo_url.sh'
remote:        + source /app/.profile.d/mongo_url.sh
remote: + for line in '$(docker logs "$CID" 2>&1)'
remote: + dokku_log_verbose_quiet '++ '\''['\'' -z '\'']'\'''
remote: + declare 'desc=log verbose formatter (with quiet option)'
remote: + [[ -z '' ]]
remote: + echo '       ++ '\''['\'' -z '\'']'\'''
remote:        ++ '[' -z ']'
remote: + for line in '$(docker logs "$CID" 2>&1)'
remote: + dokku_log_verbose_quiet '++ export MONGO_URL='
remote: + declare 'desc=log verbose formatter (with quiet option)'
remote: + [[ -z '' ]]
remote: + echo '       ++ export MONGO_URL='
remote:        ++ export MONGO_URL=
remote: + for line in '$(docker logs "$CID" 2>&1)'
remote: + dokku_log_verbose_quiet '++ MONGO_URL='
remote: + declare 'desc=log verbose formatter (with quiet option)'
remote: + [[ -z '' ]]
remote: + echo '       ++ MONGO_URL='
remote:        ++ MONGO_URL=
remote: + for line in '$(docker logs "$CID" 2>&1)'
remote: + dokku_log_verbose_quiet '++ '\''['\'' -z '\'']'\'''
remote: + declare 'desc=log verbose formatter (with quiet option)'
remote: + [[ -z '' ]]
remote: + echo '       ++ '\''['\'' -z '\'']'\'''
remote:        ++ '[' -z ']'
remote: + for line in '$(docker logs "$CID" 2>&1)'
remote: + dokku_log_verbose_quiet '++ echo '\''meteor-buildpack-horse: MONGO_URL missing, you must define it for meteor to work.'\'''
remote: + declare 'desc=log verbose formatter (with quiet option)'
remote: + [[ -z '' ]]
remote: + echo '       ++ echo '\''meteor-buildpack-horse: MONGO_URL missing, you must define it for meteor to work.'\'''
####### normal output:
remote: -----> Adding PATH environment
remote: -----> Running extras
remote: -----> Adding profile script to resolve MONGO_URL from mongolab addon
remote: -----> Adding profile script to resolve ROOT_URL from heroku app name
remote:        -----> Discovering process types
remote:        Default types for  -> web
remote: -----> Releasing trial (dokku/trial:latest)...
remote: -----> Deploying trial (dokku/trial:latest)...
remote: -----> Attempting to run scripts.dokku.predeploy from app.json (if defined)
remote: -----> App Procfile file found (/home/dokku/trial/DOKKU_PROCFILE)
remote: -----> DOKKU_SCALE file found (/home/dokku/trial/DOKKU_SCALE)
remote: =====> web=1
<snip>
remote: =====> trial web container output:
remote:        meteor-buildpack-horse: MONGO_URL missing, you must  define it for meteor to work.
remote:         /app/.meteor/heroku_build/app/programs/server/node_modules/fibers/future.js:245
remote:                                                 throw(ex);
remote:                                                       ^
remote:        Error: MONGO_URL must be set in environment
remote:            at Object.<anonymous> (packages/mongo/remo.......

Deployment target

Dokku on Digital Ocean

@maxall41
Copy link

Did you ever solve this?

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

2 participants