502 when GET internal/services/general/v1/server

I use 2021.Q2.505 version, and when access localhost:8000, the web is always
waiting. and In browser console, I get http 502 Err when GET internal/services/general/v1/server.

how can I fix it, thank you

What is the output of docker-compose logs nginx and docker-compose logs node ?

Hi all,

I fresh installed Twake on 2 different machines and had the same error.
I found a first problem because of the production.json config file:

node_1 | Error: Config file /usr/src/app/config/production.json cannot be read. Error code is:
EISDIR. Error message is: EISDIR: illegal operation on a directory, read

=> I modified the docker-compose.yml (originally docker-compose.yml.dist.onpremise)

 - ./configuration/backend-node/configuration.json:/usr/src/app/config/configuration.json


 - ./configuration/backend-node/:/usr/src/app/config/

I modified also another line for the php:

volumes:>    volumes:
 - ./configuration/backend-node/:/usr/src/app/config/


 - ./configuration/backend/Parameters.php:/configuration/Parameters.php

But now I’ve got another error:

node_1 | /usr/src/app/node_modules/pino/lib/levels.js:165
node_1 | throw Error(default level:${defaultLevel} must be included in custom levels)
node_1 | ^
node_1 |
node_1 | Error: default level:undefined must be included in custom levels
node_1 | at assertDefaultLevelFound (/usr/src/app/node_modules/pino/lib/levels.js:165:11)
node_1 | at Object.pino [as default] (/usr/src/app/node_modules/pino/pino.js:159:3)
node_1 | at Object. (/usr/src/app/dist/core/platform/framework/logger.js:10:32)
node_1 | at Module._compile (internal/modules/cjs/loader.js:1085:14)
node_1 | at Object.Module._extensions…js (internal/modules/cjs/loader.js:1114:10)
node_1 | at Module.load (internal/modules/cjs/loader.js:950:32)
node_1 | at Function.Module._load (internal/modules/cjs/loader.js:790:14)
node_1 | at Module.require (internal/modules/cjs/loader.js:974:19)
node_1 | at require (internal/modules/cjs/helpers.js:92:18)
node_1 | at Object. (/usr/src/app/dist/core/platform/framework/api/component.js:7:18)

If I find a solution, I’ll post it here.