[Bug]: docker container crashes on upstart after version 1.18.0 #531

Closed
opened 2026-02-04 20:13:51 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @lagerstrom on GitHub (Jun 18, 2024).

Where is the problem occurring?

I encountered the problem while using the application (Frontend)

What browsers are you seeing the problem on?

Brave

Current behaviour

When I am trying to start the docker container for example this one ghcr.io/plankanban/planka:1.19.0 I get the following error output

error: A hook (`userconfig`) failed to load!
error: Failed to lift app: Error: Attempted to `require('/app/config/custom.js')`, but an error occurred:
--
SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse (<anonymous>)
at Object.<anonymous> (/app/config/custom.js:63:18)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
at Module.load (node:internal/modules/cjs/loader:1203:32)
at Module._load (node:internal/modules/cjs/loader:1019:12)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:177:18)
at /app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-include-all-sync.js:293:33
at Array.forEach (<anonymous>)
at _recursivelyIncludeAll (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-include-all-sync.js:178:11)
at includeAll (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-include-all-sync.js:317:5)
at helpBuildDictionary (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-build-dictionary.js:46:13)
at module.exports.aggregate (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/index.js:101:10)
at loadOtherConfigFiles (/app/node_modules/.pnpm/sails@1.5.11/node_modules/sails/lib/hooks/moduleloader/index.js:162:22)
at runTask (/app/node_modules/.pnpm/async@2.6.4/node_modules/async/dist/async.js:1637:13)
planka-1  | --
at /app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-include-all-sync.js:298:25
at Array.forEach (<anonymous>)
at _recursivelyIncludeAll (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-include-all-sync.js:178:11)
at includeAll (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-include-all-sync.js:317:5)
at helpBuildDictionary (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-build-dictionary.js:46:13)
at module.exports.aggregate (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/index.js:101:10)
at loadOtherConfigFiles (/app/node_modules/.pnpm/sails@1.5.11/node_modules/sails/lib/hooks/moduleloader/index.js:162:22)
at runTask (/app/node_modules/.pnpm/async@2.6.4/node_modules/async/dist/async.js:1637:13)
at /app/node_modules/.pnpm/async@2.6.4/node_modules/async/dist/async.js:1575:13
at processQueue (/app/node_modules/.pnpm/async@2.6.4/node_modules/async/dist/async.js:1585:13)
at Object.auto (/app/node_modules/.pnpm/async@2.6.4/node_modules/async/dist/async.js:1571:5)
at Hook.loadUserConfig (/app/node_modules/.pnpm/sails@1.5.11/node_modules/sails/lib/hooks/moduleloader/index.js:160:13)
at Hook.wrapper [as loadUserConfig] (/app/node_modules/.pnpm/@sailshq+lodash@3.10.6/node_modules/@sailshq/lodash/lib/index.js:3305:19)
at Hook.loadModules (/app/node_modules/.pnpm/sails@1.5.11/node_modules/sails/lib/hooks/userconfig/index.js:45:21)
at Hook.wrapper [as loadModules] (/app/node_modules/.pnpm/@sailshq+lodash@3.10.6/node_modules/@sailshq/lodash/lib/index.js:3305:19)
at modules (/app/node_modules/.pnpm/sails@1.5.11/node_modules/sails/lib/hooks/index.js:86:25)
planka-1  | error: More details (raw): SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse (<anonymous>)
at Object.<anonymous> (/app/config/custom.js:63:18)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
at Module.load (node:internal/modules/cjs/loader:1203:32)
at Module._load (node:internal/modules/cjs/loader:1019:12)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:177:18)
at /app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-include-all-sync.js:293:33
at Array.forEach (<anonymous>)
at _recursivelyIncludeAll (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-include-all-sync.js:178:11)
at includeAll (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-include-all-sync.js:317:5)
at helpBuildDictionary (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-build-dictionary.js:46:13)
at module.exports.aggregate (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/index.js:101:10)
at loadOtherConfigFiles (/app/node_modules/.pnpm/sails@1.5.11/node_modules/sails/lib/hooks/moduleloader/index.js:162:22)
at runTask (/app/node_modules/.pnpm/async@2.6.4/node_modules/async/dist/async.js:1637:13)

Desired behaviour

The application should start

Steps to reproduce

docker run -it -e "DATABASE_URL=....." ghcr.io/plankanban/planka:1.19.0

Other information

No response

Originally created by @lagerstrom on GitHub (Jun 18, 2024). ### Where is the problem occurring? I encountered the problem while using the application (Frontend) ### What browsers are you seeing the problem on? Brave ### Current behaviour When I am trying to start the docker container for example this one `ghcr.io/plankanban/planka:1.19.0` I get the following error output ``` error: A hook (`userconfig`) failed to load! error: Failed to lift app: Error: Attempted to `require('/app/config/custom.js')`, but an error occurred: -- SyntaxError: Unexpected token u in JSON at position 0 at JSON.parse (<anonymous>) at Object.<anonymous> (/app/config/custom.js:63:18) at Module._compile (node:internal/modules/cjs/loader:1364:14) at Module._extensions..js (node:internal/modules/cjs/loader:1422:10) at Module.load (node:internal/modules/cjs/loader:1203:32) at Module._load (node:internal/modules/cjs/loader:1019:12) at Module.require (node:internal/modules/cjs/loader:1231:19) at require (node:internal/modules/helpers:177:18) at /app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-include-all-sync.js:293:33 at Array.forEach (<anonymous>) at _recursivelyIncludeAll (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-include-all-sync.js:178:11) at includeAll (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-include-all-sync.js:317:5) at helpBuildDictionary (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-build-dictionary.js:46:13) at module.exports.aggregate (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/index.js:101:10) at loadOtherConfigFiles (/app/node_modules/.pnpm/sails@1.5.11/node_modules/sails/lib/hooks/moduleloader/index.js:162:22) at runTask (/app/node_modules/.pnpm/async@2.6.4/node_modules/async/dist/async.js:1637:13) planka-1 | -- at /app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-include-all-sync.js:298:25 at Array.forEach (<anonymous>) at _recursivelyIncludeAll (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-include-all-sync.js:178:11) at includeAll (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-include-all-sync.js:317:5) at helpBuildDictionary (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-build-dictionary.js:46:13) at module.exports.aggregate (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/index.js:101:10) at loadOtherConfigFiles (/app/node_modules/.pnpm/sails@1.5.11/node_modules/sails/lib/hooks/moduleloader/index.js:162:22) at runTask (/app/node_modules/.pnpm/async@2.6.4/node_modules/async/dist/async.js:1637:13) at /app/node_modules/.pnpm/async@2.6.4/node_modules/async/dist/async.js:1575:13 at processQueue (/app/node_modules/.pnpm/async@2.6.4/node_modules/async/dist/async.js:1585:13) at Object.auto (/app/node_modules/.pnpm/async@2.6.4/node_modules/async/dist/async.js:1571:5) at Hook.loadUserConfig (/app/node_modules/.pnpm/sails@1.5.11/node_modules/sails/lib/hooks/moduleloader/index.js:160:13) at Hook.wrapper [as loadUserConfig] (/app/node_modules/.pnpm/@sailshq+lodash@3.10.6/node_modules/@sailshq/lodash/lib/index.js:3305:19) at Hook.loadModules (/app/node_modules/.pnpm/sails@1.5.11/node_modules/sails/lib/hooks/userconfig/index.js:45:21) at Hook.wrapper [as loadModules] (/app/node_modules/.pnpm/@sailshq+lodash@3.10.6/node_modules/@sailshq/lodash/lib/index.js:3305:19) at modules (/app/node_modules/.pnpm/sails@1.5.11/node_modules/sails/lib/hooks/index.js:86:25) planka-1 | error: More details (raw): SyntaxError: Unexpected token u in JSON at position 0 at JSON.parse (<anonymous>) at Object.<anonymous> (/app/config/custom.js:63:18) at Module._compile (node:internal/modules/cjs/loader:1364:14) at Module._extensions..js (node:internal/modules/cjs/loader:1422:10) at Module.load (node:internal/modules/cjs/loader:1203:32) at Module._load (node:internal/modules/cjs/loader:1019:12) at Module.require (node:internal/modules/cjs/loader:1231:19) at require (node:internal/modules/helpers:177:18) at /app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-include-all-sync.js:293:33 at Array.forEach (<anonymous>) at _recursivelyIncludeAll (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-include-all-sync.js:178:11) at includeAll (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-include-all-sync.js:317:5) at helpBuildDictionary (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/lib/help-build-dictionary.js:46:13) at module.exports.aggregate (/app/node_modules/.pnpm/include-all@4.0.3/node_modules/include-all/index.js:101:10) at loadOtherConfigFiles (/app/node_modules/.pnpm/sails@1.5.11/node_modules/sails/lib/hooks/moduleloader/index.js:162:22) at runTask (/app/node_modules/.pnpm/async@2.6.4/node_modules/async/dist/async.js:1637:13) ``` ### Desired behaviour The application should start ### Steps to reproduce `docker run -it -e "DATABASE_URL=....." ghcr.io/plankanban/planka:1.19.0` ### Other information _No response_
Author
Owner

@meltyshev commented on GitHub (Jun 18, 2024):

Hi! In version 1.18.0 there was an error due to the introduction of a new environment variable. It seems that this should be fixed in 1.18.1+. Are you sure you are getting this error with version 1.19.0?

@meltyshev commented on GitHub (Jun 18, 2024): Hi! In version 1.18.0 there was an error due to the introduction of a new environment variable. It seems that this should be fixed in 1.18.1+. Are you sure you are getting this error with version 1.19.0?
Author
Owner

@lagerstrom commented on GitHub (Jun 18, 2024):

Oh sorry about that, 1.19.0 does indeed work. I must have messed up the versions when I was gathering looking at it. Thank you for your comment. Will close this issue.

@lagerstrom commented on GitHub (Jun 18, 2024): Oh sorry about that, 1.19.0 does indeed work. I must have messed up the versions when I was gathering looking at it. Thank you for your comment. Will close this issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#531