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

Unable to start cgw-web #1682

Closed
lance-web3 opened this issue Jun 24, 2024 · 3 comments
Closed

Unable to start cgw-web #1682

lance-web3 opened this issue Jun 24, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@lance-web3
Copy link

lance-web3 commented Jun 24, 2024

Description

How to set the env when we are not able to start the container?
Stop using the public docker image and pull from this repo instead?

not even under
https://github.com/safe-global/safe-infrastructure/blob/main/container_env_files/cgw.env

Reproduction steps

root@containers:/opt/safe-infrastructure# docker compose up -d cgw-web

[+] Running 2/2
 ✔ Container safe-infrastructure-cgw-redis-1  Healthy                                                                                                                                                         0.6s
 ✔ Container safe-infrastructure-cgw-web-1    Started                                                                                                                                                         0.8s
root@containers:/opt/safe-infrastructure# docker logs -f safe-infrastructure-cgw-web-1
/dist/src/config/configuration.validator.js:19
    throw Error(`Configuration is invalid: ${errors}`);
          ^

Error: Configuration is invalid: INFURA_API_KEY Required; RELAY_PROVIDER_API_KEY_ARBITRUM_ONE Required
    at default_1 (/dist/src/config/configuration.validator.js:19:11)
    at Object.validate (/dist/src/config/configuration.module.js:27:70)
    at ConfigModule.forRoot (/node_modules/@nestjs/config/dist/config.module.js:78:45)
    at ConfigurationModule.register (/dist/src/config/configuration.module.js:25:39)
    at AppModule.register (/dist/src/app.module.js:97:60)
    at bootstrap (/dist/src/main.js:7:94)
    at Object.<anonymous> (/dist/src/main.js:12:6)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32)

Node.js v20.14.0

docker-compose.yml

  cgw-web:
    image: safeglobal/safe-client-gateway-nest:${CGW_VERSION}
    env_file:
      - container_env_files/cgw.env
    depends_on:
      cgw-redis:
        condition: service_healthy

Expected behavior

able to start and set the env under
https://github.com/safe-global/safe-infrastructure/blob/main/container_env_files/cgw.env

Additional information

No response

@lance-web3 lance-web3 added the bug Something isn't working label Jun 24, 2024
@lance-web3
Copy link
Author

add ourself on cgw.env lol

@hectorgomezv
Copy link
Member

Sorry for being late, but this is fixed by safe-global/safe-infrastructure#144

@lance-web3
Copy link
Author

Sorry for being late, but this is fixed by safe-global/safe-infrastructure#144

okay thanks,

desperately need help on
#1692

safe-global/safe-infrastructure#143

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants