blink icon indicating copy to clipboard operation
blink copied to clipboard

Issue with Docker Deployment

Open ShadowPeo opened this issue 1 year ago • 0 comments

Disclaimers

  • [X] Before filing this report, I have read the documentation fully and followed it.
  • [X] I understand that if the "issue" is something that is already answered by the documentation and/or are caused by me not reading the documentation, the issue will be blocked and/or locked (with the implicit explanation being to "go read the docs"), and I may not be able to open another issue for this repository ever again.

Issue Description

Describe the bug Upon startup, simply get errors stating that an error has occurred in relation to an invalid URL, however best I can see is that all URL's are valid and entered

Error from startup is: 2024/05/14 01:39PM 50 | pid=6 hostname=c4f286bb3599 err={"type":"TypeError","message":"Invalid URL","stack":"TypeError [ERR_INVALID_URL]: Invalid URL\n at new NodeError (node:internal/errors:405:5)\n at new URL (node:internal/url:611:13)\n at Object. (/home/node/models/link.js:10:16)\n at Module._compile (node:internal/modules/cjs/loader:1256:14)\n at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)\n at Module.load (node:internal/modules/cjs/loader:1119:32)\n at Module._load (node:internal/modules/cjs/loader:960:12)\n at Module.require (node:internal/modules/cjs/loader:1143:19)\n at require (node:internal/modules/cjs/helpers:121:18)\n at Object. (/home/node/routes/api/links.js:3:14)","input":"","code":"ERR_INVALID_URL"} msg=uncaughtException

There is an error in the install when running db:migrate that may or may not be related as it also complains about a newer version

The NPM Error is as follows:

db:migrate knex migrate:latest

getaddrinfo EAI_AGAIN postgres_blink Error: getaddrinfo EAI_AGAIN postgres_blink at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26) npm notice npm notice New major version of npm available! 9.6.7 -> 10.7.0 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.7.0 npm notice Run npm install -g [email protected] to update! npm notice

Utilising a straight busybox image to inspect the network behind it does show that postgres_blink is available as a URL

The environment files apart from the BASE_URL and OAUTH2_ENABLED which has been disabled for testing is an exact copy of the example in the Repo as I was trying to troubleshoot the issue

Deployment Method Docker with docker-compose.yml and .env files on Ubuntu 22.04 LTS

To Reproduce Steps to reproduce the behavior: Download the docker-compose.yml and .env files. Set Base URL and the OAUTH_ENABLED=false

docker compose create docker start postgres_blink docker start redis_blink docker run --env-file ./.env ghcr.io/janejeon/blink:latest npm run db:migrate

ERROR 2 gets dumped here

docker start blink

ERROR 1 Here in logs

ShadowPeo avatar May 14 '24 04:05 ShadowPeo