Doveps / mono

Code for Doveps projects
http://doveps.com
MIT License
0 stars 0 forks source link

03-02-2018 Report #115

Closed JosiahRegencia closed 6 years ago

JosiahRegencia commented 6 years ago

Edited the pg_hba.conf

https://github.com/Doveps/mono/blob/0978f246c440417ff51e96f9fc9c9d9f40100f9b/pg_hba.conf#L1-L5

Wasn't able to find a pg_hba.conf file inside mono_savant_1 and mono_db_1. That's why I created it.

Followed this thread for adding .conf through volumes: https://stackoverflow.com/questions/30547274/docker-compose-anyway-to-specify-a-redis-conf-file

Tried running command:

curl -F "files[]=@savant/tests/Scanner_Files/33.33.33.50/find_debs_stdout.log" -F "files[]=@savant/tests/Scanner_Files/33.33.33.50/find_groups_stdout.log" -F "files[]=@savant/tests/Scanner_Files/33.33.33.50/find_shadow_stdout.log" -F "files[]=@savant/tests/Scanner_Files/33.33.33.50/find_users_stdout.log" http://127.0.0.1:5000/doveps/api/flavor/create/

result was:

OperationalError: could not connect to server: Connection refused Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5432?

Tried running: python savant/tests/test_basic.py

result was:

Traceback (most recent call last): File "savant/tests/test_basic.py", line 4, in from app import app ImportError: No module named app

I'm not really sure yet why that's happening.

However whenever I try to run:

curl -F "files[]=@savant/tests/Scanner_Files/33.33.33.50/find_debs_stdout.log" -F "files[]=@savant/tests/Scanner_Files/33.33.33.50/find_groups_stdout.log" -F "files[]=@savant/tests/Scanner_Files/33.33.33.50/find_shadow_stdout.log" -F "files[]=@savant/tests/Scanner_Files/33.33.33.50/find_users_stdout.log" http://172.17.0.2:5000/doveps/api/flavor/create/

Result was:

curl: (7) Failed to connect to 172.17.0.2 port 5000: No route to host

172.17.0.2 is the IP Address of the Docker

greenmoss commented 6 years ago

Sounds like your savant server has the configuration to connect to 127.0.0.1. That's localhost, so that won't work. You have to get the savant container to get the db server address. I think that's where the docker-compose db host lookup comes in.

I'll take a look over this weekend, and see if I can get them to connect to each other. Looking forward to getting past these Docker issues!

JosiahRegencia commented 6 years ago

Thing is, the dv server doesn't seem to have an IP. I think I posted it in a report back then with a screenshot. Which is really confusing

greenmoss commented 6 years ago

Yeah, I remember that. I'll see if I can dig into it this weekend.