You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
I'm trying to deploy wiki on AWS ECS. Always receive errors with Redis connections:
yarn run v1.22.19 $ node ./build/server/index.js (node:27) NOTE: We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023. Please migrate your code to use AWS SDK for JavaScript (v3). For more information, check the migration guide at https://a.co/7PzMCcy (Use
node --trace-warnings ...to show where the warning was created) { "level": "warn", "message": "Retrying redis connection: attempt 1" } { "level": "warn", "message": "Retrying redis connection: attempt 2" } { "level": "warn", "message": "Retrying redis connection: attempt 3" } { "level": "warn", "message": "Retrying redis connection: attempt 4" } { "level": "warn", "message": "Retrying redis connection: attempt 5" } { "level": "warn", "message": "Retrying redis connection: attempt 6" } { "level": "warn", "message": "Retrying redis connection: attempt 7" } { "level": "warn", "message": "Retrying redis connection: attempt 8" } { "level": "warn", "message": "Retrying redis connection: attempt 9" } { "level": "warn", "message": "Retrying redis connection: attempt 10" } { "level": "warn", "message": "Retrying redis connection: attempt 11" } { "level": "warn", "message": "Retrying redis connection: attempt 12" } { "error": "connect ETIMEDOUT 10.0.11.237:5432", "level": "error", "message": "Failed to connect to database", "stack": "SequelizeConnectionError: connect ETIMEDOUT 10.0.11.237:5432\n at Client._connectionCallback (/opt/outline/node_modules/sequelize/lib/dialects/postgres/connection-manager.js:143:24)\n at Client._handleErrorWhileConnecting (/opt/outline/node_modules/pg/lib/client.js:327:19)\n at Client._handleErrorEvent (/opt/outline/node_modules/pg/lib/client.js:337:19)\n at Connection.emit (node:events:517:28)\n at Connection.emit (node:domain:489:12)\n at Socket.reportStreamError (/opt/outline/node_modules/pg/lib/connection.js:58:12)\n at Socket.emit (node:events:517:28)\n at Socket.emit (node:domain:489:12)\n at emitErrorNT (node:internal/streams/destroy:151:8)\n at emitErrorCloseNT (node:internal/streams/destroy:116:3)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)" } { "level": "warn", "message": "Environment configuration is invalid, please check the following:\n\n" } { "level": "warn", "message": "- DEFAULT_LANGUAGE must be one of the following values: en_US, cs_CZ, zh_CN, zh_TW, de_DE, es_ES, fr_FR, it_IT, ja_JP, ko_KR, nl_NL, pt_BR, pt_PT, pl_PL, fa_IR, tr_TR, uk_UA, vi_VN" } error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I tried to use different option of ENV: DATABASE_URL and REDIS_URL.
The last once was:
REDIS_URL - "redis://${aws_elasticache_cluster.redis_cl.cache_nodes.0.address}:${var.redis_port}"
DATABASE_URL - "postgres://${var.db_instance_admin_name}:${var.db_instance_admin_password}@${aws_db_instance.db_instance.endpoint)}:5432/outline"
Please tell me what I'm doing wrong. 🙏
Beta Was this translation helpful? Give feedback.
All reactions