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: connect ETIMEDOUT running sequelize db:migrate #6

Open
gnowland opened this issue Jun 16, 2022 · 0 comments
Open

ERROR: connect ETIMEDOUT running sequelize db:migrate #6

gnowland opened this issue Jun 16, 2022 · 0 comments

Comments

@gnowland
Copy link

gnowland commented Jun 16, 2022

I was receiving an ERROR: connect ETIMEDOUT 10.196.250.172:5432 on the outline-migrate container during the sequelize db:migrate (yarn db:migrate) step. Incidentally 10.196.250.172 is the ClusterIP address of the Outline service. Adding the --url="postgres://[postgres url]" argument to the yarn db:migrate command in templates/outline.yaml fixed it. e.g:

args:
  - "yarn"
  - "db:migrate"
  - "--env=production-ssl-disabled"
  - "--url=postgres://{{ .Values.postgresql.postgresqlUsername }}:{{ .Values.postgresql.postgresqlPassword }}@{{ .Release.Name }}-postgresql:5432/{{ .Values.postgresql.postgresqlDatabase }}"

Not sure why the script reading in the DATABASE_URL environment variable of the same value wasn't working, but this fixed it.

Thanks again for publishing this chart, it's saved me TONS of time getting everything spun up on my own <3

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

1 participant