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

etc/webapigateway/config/config.json: no such file or directory #11

Closed
selcukakbas opened this issue Nov 11, 2019 · 1 comment
Closed

Comments

@selcukakbas
Copy link

selcukakbas commented Nov 11, 2019

I am getting "no such file or directory" on step 8

2019/11/11 18:56:57 Reading config file...
2019/11/11 18:56:57 Starting web-api-gateway, version 2.1.0
2019/11/11 18:56:57 Error reading config file: error reading file /etc/webapigateway/config/config.json: open /etc/webapigateway/config/config.json: no such file or directory
2019/11/11 19:15:44 http: TLS handshake error from 209.17.97.98:58819: EOF
2019/11/11 19:19:13 Incoming Request 185.173.35.21:51585 GET /
2019/11/11 19:26:57 Reloading TLS certificate and key from /etc/letsencrypt/live/xxxx.yyyy.com/fullchain.pem and /etc/letsencrypt/live/xxxx.yyyy.com/privkey.pem
2019/11/11 19:26:57 Reloaded certificate successfully!

this is what I run on step8

cd ~/web-api-gateway
sudo docker build -t web-api-gateway .

cd ~/web-api-gateway

sudo docker run \
  --publish 443:443 \
  --name web-api-gateway \
  -it \
  --restart unless-stopped \
  --volume /etc/letsencrypt/live/xxxx.yyyy.com/:/etc/letsencrypt/live/xxxx.yyyy.com/ \
  --volume /etc/letsencrypt/archive/xxxx.yyyy.com/:/etc/letsencrypt/archive/xxxx.yyyy.com/ \
  --volume /etc/webapigateway/config/:/etc/webapigateway/config/ \
  web-api-gateway \
  --certFile=/etc/letsencrypt/live/xxxx.yyyy.com/fullchain.pem \
  --keyFile=/etc/letsencrypt/live/xxxx.yyyy.com/privkey.pem

I run this commands on GCP vm, n1-standard-1 (1 vCPU, 3.75 GB memory) instance. with browser SSH

@selcukakbas
Copy link
Author

after got a request from 185.173.35.21:51585 (this not me) it started working.

2019/11/11 19:19:13 Incoming Request 185.173.35.21:51585 GET /
2019/11/11 19:26:57 Reloading TLS certificate and key from /etc/letsencrypt/live/xxxx.yyyy.com/fullchain.pem and /etc/letsencrypt/live/xxxx.yyyy.com/privkey.pem
2019/11/11 19:26:57 Reloaded certificate successfully!

and I can see config.json here now.

ls /etc/webapigateway/config/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant