R
Runtipithis hour
Blu3u

Outline seems broken

In the logs I get:
outline-nginx | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
outline-nginx | yarn run v1.22.22
outline-nginx | $ node ./build/server/index.js
outline-nginx | {"error":"DATABASE_URL is not set.","level":"error","message":"Could not connect to database","stack":"Error: DATABASE_URL is not set.\n at createDatabaseInstance (/opt/outline/build/server/storage/database.js:46:178)\n at Object. (/opt/outline/build/server/storage/database.js:98:39)\n at Module._compile (node:internal/modules/cjs/loader:1529:14)\n at Module._extensions..js (node:internal/modules/cjs/loader:1613:10)\n at Module.load (node:internal/modules/cjs/loader:1275:32)\n at Module._load (node:internal/modules/cjs/loader:1096:12)\n at Module.require (node:internal/modules/cjs/loader:1298:19)\n at Hook.Module.require (/opt/outline/node_modules/dd-trace/packages/dd-trace/src/ritm.js:97:31)\n at require (node:internal/modules/helpers:182:18)\n at Object. (/opt/outline/build/server/collaboration/PersistenceExtension.js:12:17)"}
outline-nginx | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
outline-nginx | error Command failed with exit code 1.
outline-nginx | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
outline-nginx | yarn run v1.22.22
outline-nginx | $ node ./build/server/index.js
outline-nginx | {"error":"DATABASE_URL is not set.","level":"error","message":"Could not connect to database","stack":"Error: DATABASE_URL is not set.\n at createDatabaseInstance (/opt/outline/build/server/storage/database.js:46:178)\n at Object. (/opt/outline/build/server/storage/database.js:98:39)\n at Module._compile (node:internal/modules/cjs/loader:1529:14)\n at Module._extensions..js (node:internal/modules/cjs/loader:1613:10)\n at Module.load (node:internal/modules/cjs/loader:1275:32)\n at Module._load (node:internal/modules/cjs/loader:1096:12)\n at Module.require (node:internal/modules/cjs/loader:1298:19)\n at Hook.Module.require (/opt/outline/node_modules/dd-trace/packages/dd-trace/src/ritm.js:97:31)\n at require (node:internal/modules/helpers:182:18)\n at Object. (/opt/outline/build/server/collaboration/PersistenceExtension.js:12:17)"}
outline-nginx | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
outline-nginx | error Command failed with exit code 1.
Previously I tried installing Outline manually, but the official guide is broken 🫠 and I figured that Outline is also supported on Runtipi. DATABASE_URL is already defined in ~/runtipi/apps/outline/docker-compose.yml so I have no idea at this point. Can anyone reproduce this? Clean install of runtipi...
14 Replies
Blu3u
Blu3uOPthis hour
I forked runtipi-appstore and maybe adding DATABASE_URL to outline-nginx as well fixes the problem?
Stavros
Stavrosthis hour
@sergi0g please check this out
Blu3u
Blu3uOP23h ago
I made some progress by adding env vars to outline-nginx as well, but I keep getting new errors... maybe newer version of outline no longer works with those scripts? https://github.com/runtipi/runtipi-appstore/compare/master...Blu3u:runtipi-appstore:master
GitHub
Comparing runtipi:master...Blu3u:master · runtipi/runtipi-appstore
Official Runtipi AppStore. Apps and updates live here! - Comparing runtipi:master...Blu3u:master · runtipi/runtipi-appstore
Blu3u
Blu3uOP23h ago
After setting DATABASE_URL I got this:
outline-nginx | yarn run v1.22.22
outline-nginx | $ node ./build/server/index.js
outline-nginx | $ node ./build/server/index.js
outline-nginx | {"label":"lifecycle","level":"info","message":"Note: Restricting process count to 1 due to use of collaborative service"}
outline-nginx | {"label":"lifecycle","level":"info","message":"Note: Restricting process count to 1 due to use of collaborative service"}
outline-nginx | Environment configuration is invalid, please check the following:
outline-nginx |
outline-nginx | - The SECRET_KEY environment variable is invalid (Use `openssl rand -hex 32` to generate a value).,- UTILS_SECRET should not be empty,- REDIS_URL should not be empty,- URL must be a URL address, URL should not be empty,- COLLABORATION_URL must be a URL address
outline-nginx | Environment configuration is invalid, please check the following:
outline-nginx |
outline-nginx | - The SECRET_KEY environment variable is invalid (Use `openssl rand -hex 32` to generate a value).,- UTILS_SECRET should not be empty,- REDIS_URL should not be empty,- URL must be a URL address, URL should not be empty,- COLLABORATION_URL must be a URL address
outline-nginx | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
outline-nginx | error Command failed with exit code 1.
outline-nginx | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
outline-nginx | error Command failed with exit code 1.
outline-nginx exited with code 1
outline-nginx | yarn run v1.22.22
outline-nginx | $ node ./build/server/index.js
outline-nginx | $ node ./build/server/index.js
outline-nginx | {"label":"lifecycle","level":"info","message":"Note: Restricting process count to 1 due to use of collaborative service"}
outline-nginx | {"label":"lifecycle","level":"info","message":"Note: Restricting process count to 1 due to use of collaborative service"}
outline-nginx | Environment configuration is invalid, please check the following:
outline-nginx |
outline-nginx | - The SECRET_KEY environment variable is invalid (Use `openssl rand -hex 32` to generate a value).,- UTILS_SECRET should not be empty,- REDIS_URL should not be empty,- URL must be a URL address, URL should not be empty,- COLLABORATION_URL must be a URL address
outline-nginx | Environment configuration is invalid, please check the following:
outline-nginx |
outline-nginx | - The SECRET_KEY environment variable is invalid (Use `openssl rand -hex 32` to generate a value).,- UTILS_SECRET should not be empty,- REDIS_URL should not be empty,- URL must be a URL address, URL should not be empty,- COLLABORATION_URL must be a URL address
outline-nginx | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
outline-nginx | error Command failed with exit code 1.
outline-nginx | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
outline-nginx | error Command failed with exit code 1.
outline-nginx exited with code 1
nginx container shouldn't really require any of that (?) but it runs some scripts configuring the main container COLLABORATION_URL must be set to something despite being in the optional section (outline bug I guess) I also had to set port to ${APP_PORT} because it otherwise used default 3000 but runtipi wants it's own port 8404
Blu3u
Blu3uOP23h ago
after all this I've also got some emoji related error, not sure if it's causing outline to not work, but it still doesn't work
Blu3u
Blu3uOP23h ago
I also tried installing like 5 other apps just to be sure that my installation isn't broken but everything worked first time so that's not it
hex-developer
hex-developer22h ago
Hey! Looks like a recent update might have broken outline. I'll check it out Outline version 0.83.0 is broken for me as well although this might be version 0.82.0 @Stavros the yml compose has 0.83.0 and the json has 0.82.0 any idea why? @Stavros renovate has fucked up very bad
hex-developer
hex-developer22h ago
this might not be the cause of the problem but I'm running 2 different versions of outline
No description
hex-developer
hex-developer22h ago
YO WHAT the dynamic compose and the normal one are different nginx should be running nginx
hex-developer
hex-developer22h ago
looks like this renovate commit broke everything instead of starting nginx, this tries to start another outline instance and the required environment variables are obviously not set and they shouldn't be I'll try to fix this asap @Stavros @Lancelot can one of you please fix this because I'm on my phone and I can't commit stuff? (btw I have bad internet)
Stavros
Stavros22h ago
Not rn Very busy
hex-developer
hex-developer21h ago
@Blu3u the latest update to Outline fixes the problem Sorry!
Blu3u
Blu3uOP21h ago
❤️

Did you find this page helpful?