Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Can't start server "Access denied for user ..." #11

@famouzkk

Description

@famouzkk

Hey, I'm using openSUSE 15.1 Leap and I am trying to selfhost standardnotes, but syncing-server-js cant start. Here are logs:

syncing-server-js_1         | Starting Web...
syncing-server-js_1         | yarn run v1.22.5
syncing-server-js_1         | $ node dist/bin/server.js
syncing-server-js_1         | {"v":0,"level":30,"name":"newrelic_bootstrap","hostname":"d10b79b28243","pid":29,"time":"2021-06-10T19:49:34.109Z","msg":"NEW_RELIC_NO_CONFIG_FILE set, deferring to environment variables."}
syncing-server-js_1         | {"v":0,"level":30,"name":"newrelic_bootstrap","hostname":"d10b79b28243","pid":29,"time":"2021-06-10T19:49:36.332Z","msg":"NEW_RELIC_NO_CONFIG_FILE set, deferring to environment variables."}
syncing-server-js_1         | INFO: All classes found using provided glob pattern "dist/migrations/*.js" : "dist/migrations/1606470249552-init_database.js,dist/migrations/1617615657558-add_extension_settings.js"
syncing-server-js_1         | [Error] PoolCluster : Error: Access denied for user 'std_notes_user'@'172.18.0.4' (using password: YES)
syncing-server-js_1         | [Error] PoolCluster : Error: Access denied for user 'std_notes_user'@'172.18.0.4' (using password: YES)
syncing-server-js_1         | [Error] PoolCluster : Error: Access denied for user 'std_notes_user'@'172.18.0.4' (using password: YES)
syncing-server-js_1         | [Error] PoolCluster : Error: Access denied for user 'std_notes_user'@'172.18.0.4' (using password: YES)
syncing-server-js_1         | [Error] PoolCluster : Error: Access denied for user 'std_notes_user'@'172.18.0.4' (using password: YES)
syncing-server-js_1         | [Error] PoolCluster : Error: Access denied for user 'std_notes_user'@'172.18.0.4' (using password: YES)
syncing-server-js_1         | [Error] PoolCluster : Error: Access denied for user 'std_notes_user'@'172.18.0.4' (using password: YES)
syncing-server-js_1         | [Error] PoolCluster : Error: Access denied for user 'std_notes_user'@'172.18.0.4' (using password: YES)
syncing-server-js_1         | [Error] PoolCluster : Error: Access denied for user 'std_notes_user'@'172.18.0.4' (using password: YES)
syncing-server-js_1         | [Error] PoolCluster : Error: Access denied for user 'std_notes_user'@'172.18.0.4' (using password: YES)
syncing-server-js_1         | /var/www/node_modules/mysql2/lib/pool_cluster.js:36
syncing-server-js_1         |       return cb(new Error('Pool does Not exists.'));
syncing-server-js_1         |                 ^
syncing-server-js_1         |
syncing-server-js_1         | Error: Pool does Not exists.
syncing-server-js_1         |     at PoolNamespace.getConnection (/var/www/node_modules/mysql2/lib/pool_cluster.js:36:17)
syncing-server-js_1         |     at /var/www/node_modules/mysql2/lib/pool_cluster.js:43:21
syncing-server-js_1         |     at /var/www/node_modules/mysql2/lib/pool_cluster.js:210:18
syncing-server-js_1         |     at /var/www/node_modules/mysql2/lib/pool.js:60:18
syncing-server-js_1         |     at PoolConnection.<anonymous> (/var/www/node_modules/mysql2/lib/connection.js:739:13)
syncing-server-js_1         |     at Object.onceWrapper (node:events:485:26)
syncing-server-js_1         |     at PoolConnection.emit (node:events:390:22)
syncing-server-js_1         |     at PoolConnection.EventEmitter.emit (node:domain:470:12)
syncing-server-js_1         |     at PoolConnection._notifyError (/var/www/node_modules/mysql2/lib/connection.js:225:12)
syncing-server-js_1         |     at ClientHandshake.<anonymous> (/var/www/node_modules/mysql2/lib/connection.js:114:14)
syncing-server-js_1         | error Command failed with exit code 1.
syncing-server-js_1         | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
syncing-server-js_1         | db (172.18.0.3:3306) open
syncing-server-js_1         | db:3306 is up - executing command
syncing-server-js_1         | cache (172.18.0.2:6379) open
syncing-server-js_1         | cache:6379 is up - executing command
syncing-server-js_1         | Starting Web...
syncing-server-js_1         | yarn run v1.22.5

I have tried reinstalling, granting std_notes_user premmisions but nothing works. I am able to log to mysql "mysql" docker container using std_notes_user and changeme123 pass. I didn't change anything in .env.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions