makuhari-city / new-rousseau-machine_gen1

https://vote.metacity.jp/app/
4 stars 0 forks source link

`make test` fails #14

Closed yasushisakai closed 3 years ago

yasushisakai commented 3 years ago

make test fails with error.

What I did:

  1. clone repository with --recursive
  2. put ssl folder right under repo's directory
  3. run make start
  4. run make test
expand out ``` curl -v http://localhost/db/hello/;echo "\n"; * Trying 127.0.0.1... * TCP_NODELAY set * Connection failed * connect to 127.0.0.1 port 80 failed: Connection refused * Trying ::1... * TCP_NODELAY set * Connection failed * connect to ::1 port 80 failed: Connection refused * Failed to connect to localhost port 80: Connection refused * Closing connection 0 curl: (7) Failed to connect to localhost port 80: Connection refused cd vote;curl -v -H "Content-Type:application/json" -d @dinner.json http://localhost/rpc/;echo "\n"; * Trying 127.0.0.1... * TCP_NODELAY set * Connection failed * connect to 127.0.0.1 port 80 failed: Connection refused * Trying ::1... * TCP_NODELAY set * Connection failed * connect to ::1 port 80 failed: Connection refused * Failed to connect to localhost port 80: Connection refused * Closing connection 0 curl: (7) Failed to connect to localhost port 80: Connection refused curl -v http://localhost/hello-ipfs/; * Trying 127.0.0.1... * TCP_NODELAY set * Connection failed * connect to 127.0.0.1 port 80 failed: Connection refused * Trying ::1... * TCP_NODELAY set * Connection failed * connect to ::1 port 80 failed: Connection refused * Failed to connect to localhost port 80: Connection refused * Closing connection 0 curl: (7) Failed to connect to localhost port 80: Connection refused make: *** [test] Error 7 ```

seems like it's all accessing to port 80?

for reference, this is how it looks locally in docker GUI.

Screen Shot 2021-06-22 at 9 48 59 PM
ryutaaoki commented 3 years ago

It seems proxy error. For more information, you can check 'docker logs rousseau-machine_proxy_1'. Default setting is like this in the docker-compose.yml. Are the SSL files placed in the correct location?

    volumes:
        - ./proxy/public:/var/www/html
        - ./proxy/conf.d/default.conf:/etc/nginx/conf.d/default.conf
        - ../ssl/cert:/etc/nginx/ssl
yasushisakai commented 3 years ago

sorry my bad, I've put the SSL folder under this repo. closing.