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

Error when running ghost setup ssl twice. #302

Closed
kirrg001 opened this issue Jul 6, 2017 · 0 comments · Fixed by #316
Closed

Error when running ghost setup ssl twice. #302

kirrg001 opened this issue Jul 6, 2017 · 0 comments · Fixed by #316
Labels

Comments

@kirrg001
Copy link
Contributor

kirrg001 commented Jul 6, 2017

Run ghost setup ssl. Wait that ssl setup was successful.
Run ghost setup ssl again. You will get an error:

Stack: TypeError: ctx.ssl.http._add is not a function
    at Promise.fromCallback.then (/usr/local/nvm/versions/node/v6.10.3/lib/node_modules/ghost-cli/extensions/nginx/index.js:154:38)
    at tryCatcher (/usr/local/nvm/versions/node/v6.10.3/lib/node_modules/ghost-cli/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/usr/local/nvm/versions/node/v6.10.3/lib/node_modules/ghost-cli/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/usr/local/nvm/versions/node/v6.10.3/lib/node_modules/ghost-cli/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/usr/local/nvm/versions/node/v6.10.3/lib/node_modules/ghost-cli/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/usr/local/nvm/versions/node/v6.10.3/lib/node_modules/ghost-cli/node_modules/bluebird/js/release/promise.js:693:18)
    at Promise._fulfill (/usr/local/nvm/versions/node/v6.10.3/lib/node_modules/ghost-cli/node_modules/bluebird/js/release/promise.js:638:18)
    at /usr/local/nvm/versions/node/v6.10.3/lib/node_modules/ghost-cli/node_modules/bluebird/js/release/nodeback.js:42:21
    at /usr/local/nvm/versions/node/v6.10.3/lib/node_modules/ghost-cli/node_modules/nginx-conf/src/conf.js:295:15
    at NginxParser.parse (/usr/local/nvm/versions/node/v6.10.3/lib/node_modules/ghost-cli/node_modules/nginx-conf/src/parser.js:35:14)
    at /usr/local/nvm/versions/node/v6.10.3/lib/node_modules/ghost-cli/node_modules/nginx-conf/src/parser.js:206:10

Workaround is:

rm -rf ~/.acme/your-domain`
rm -rf system/files/your-domain.conf
ghost setup nginx ssl
@kirrg001 kirrg001 added the bug label Jul 6, 2017
acburdine added a commit to acburdine/Ghost-CLI that referenced this issue Jul 8, 2017
closes TryGhost#302
- checks if ssl has already been setup, if it has then skips
- better cleanup/handling of well-known config block
acburdine added a commit to acburdine/Ghost-CLI that referenced this issue Jul 10, 2017
closes TryGhost#302
- checks if ssl has already been setup, if it has then skips
- better cleanup/handling of well-known config block
acburdine added a commit to acburdine/Ghost-CLI that referenced this issue Jul 10, 2017
closes TryGhost#302
- checks if ssl has already been setup, if it has then skips
- better cleanup/handling of well-known config block
acburdine added a commit that referenced this issue Jul 10, 2017
closes #302
- checks if ssl has already been setup, if it has then skips
- better cleanup/handling of well-known config block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant