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

ghost install local is broken because it's using MySQL #323

Closed
ErisDS opened this issue Jul 9, 2017 · 0 comments
Closed

ghost install local is broken because it's using MySQL #323

ErisDS opened this issue Jul 9, 2017 · 0 comments
Labels

Comments

@ErisDS
Copy link
Member

ErisDS commented Jul 9, 2017

ghost install local is automatically setting MySQL:

"database": {
"client": "mysql"
}

And then erroring:

 ✔ Setting up instance
✖ Running database migrations
An error occurred.
Message: 'The server has encountered an error.'


Debug Information:
    Node Version: v6.10.3
    Ghost-CLI Version: 1.0.0-beta.6
    Environment: development
    Command: 'ghost install local'

Additional log info available in: /Users/hannah/.ghost/logs/ghost-cli-debug-2017-07-09T16_03_15_655Z.log

Log file contents

An error occurred.
Message: 'The server has encountered an error.'

Stack: InternalServerError: The server has encountered an error.
    at new KnexMigrateError (/Users/hannah/Ghost/Ghost-CLI/node_modules/knex-migrator/lib/errors.js:7:26)
    at /Users/hannah/Ghost/Ghost-CLI/node_modules/knex-migrator/lib/database.js:58:19
    at tryCatcher (/Users/hannah/Ghost/Ghost-CLI/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/hannah/Ghost/Ghost-CLI/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/hannah/Ghost/Ghost-CLI/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/hannah/Ghost/Ghost-CLI/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/hannah/Ghost/Ghost-CLI/node_modules/bluebird/js/release/promise.js:689:18)
    at Async._drainQueue (/Users/hannah/Ghost/Ghost-CLI/node_modules/bluebird/js/release/async.js:133:16)
    at Async._drainQueues (/Users/hannah/Ghost/Ghost-CLI/node_modules/bluebird/js/release/async.js:143:10)
    at Immediate.Async.drainQueues (/Users/hannah/Ghost/Ghost-CLI/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:672:20)
    at tryOnImmediate (timers.js:645:5)
    at processImmediate [as _immediateCallback] (timers.js:617:5)

Error: ER_DBACCESS_DENIED_ERROR: Access denied for user ''@'localhost' to database 'undefined'
    at Query.Sequence._packetToError (/Users/hannah/Ghost/Ghost-CLI/node_modules/mysql/lib/protocol/sequences/Sequence.js:52:14)
    at Query.ErrorPacket (/Users/hannah/Ghost/Ghost-CLI/node_modules/mysql/lib/protocol/sequences/Query.js:77:18)
    at Protocol._parsePacket (/Users/hannah/Ghost/Ghost-CLI/node_modules/mysql/lib/protocol/Protocol.js:280:23)
    at Parser.write (/Users/hannah/Ghost/Ghost-CLI/node_modules/mysql/lib/protocol/Parser.js:75:12)
    at Protocol.write (/Users/hannah/Ghost/Ghost-CLI/node_modules/mysql/lib/protocol/Protocol.js:39:16)
    at Socket.<anonymous> (/Users/hannah/Ghost/Ghost-CLI/node_modules/mysql/lib/Connection.js:103:28)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at TCP.onread (net.js:547:20)
    --------------------
    at Protocol._enqueue (/Users/hannah/Ghost/Ghost-CLI/node_modules/mysql/lib/protocol/Protocol.js:141:48)
    at Connection.query (/Users/hannah/Ghost/Ghost-CLI/node_modules/mysql/lib/Connection.js:208:25)
    at /Users/hannah/Ghost/Ghost-CLI/node_modules/knex/lib/dialects/mysql/index.js:152:18
    at Promise._execute (/Users/hannah/Ghost/Ghost-CLI/node_modules/bluebird/js/release/debuggability.js:300:9)
    at Promise._resolveFromExecutor (/Users/hannah/Ghost/Ghost-CLI/node_modules/bluebird/js/release/promise.js:483:18)
    at new Promise (/Users/hannah/Ghost/Ghost-CLI/node_modules/bluebird/js/release/promise.js:79:10)
    at Client_MySQL._query (/Users/hannah/Ghost/Ghost-CLI/node_modules/knex/lib/dialects/mysql/index.js:146:12)
    at Client_MySQL.query (/Users/hannah/Ghost/Ghost-CLI/node_modules/knex/lib/client.js:197:17)
    at Runner.<anonymous> (/Users/hannah/Ghost/Ghost-CLI/node_modules/knex/lib/runner.js:146:36)
    at Runner.tryCatcher (/Users/hannah/Ghost/Ghost-CLI/node_modules/bluebird/js/release/util.js:16:23)
    at Runner.query (/Users/hannah/Ghost/Ghost-CLI/node_modules/bluebird/js/release/method.js:15:34)
    at /Users/hannah/Ghost/Ghost-CLI/node_modules/knex/lib/runner.js:65:21
    at tryCatcher (/Users/hannah/Ghost/Ghost-CLI/node_modules/bluebird/js/release/util.js:16:23)
    at /Users/hannah/Ghost/Ghost-CLI/node_modules/bluebird/js/release/using.js:185:26
    at tryCatcher (/Users/hannah/Ghost/Ghost-CLI/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/hannah/Ghost/Ghost-CLI/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/hannah/Ghost/Ghost-CLI/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/hannah/Ghost/Ghost-CLI/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/hannah/Ghost/Ghost-CLI/node_modules/bluebird/js/release/promise.js:693:18)
    at Promise._fulfill (/Users/hannah/Ghost/Ghost-CLI/node_modules/bluebird/js/release/promise.js:638:18)
    at PromiseArray._resolve (/Users/hannah/Ghost/Ghost-CLI/node_modules/bluebird/js/release/promise_array.js:126:19)
    at PromiseArray._promiseFulfilled (/Users/hannah/Ghost/Ghost-CLI/node_modules/bluebird/js/release/promise_array.js:144:14)
Code: ER_DBACCESS_DENIED_ERROR
@ErisDS ErisDS added the bug label Jul 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant