apigee-validate tool using 127.0.1.1

mrios
Participant IV

We're automating the Edge installation (4.17.05 all-in-one) and then testing it with apigee-validate. We're using CentOS 7 and we noticed that the command

/opt/apigee/apigee-service/bin/apigee-service apigee-validate setup -f /tmp/aio-config<br>

It's returning and error that says:

Testing out sample API call to curl -H "Host: VALIDATE.apigee.com" http://127.0.1.1:59001/v1/apigee/healthCheck....FAILED!

Though, using that same cUrl command with 127.0.0.1 returns ok.

The tool also says that 127.0.1.1 is the router IP

Found router with IP: 127.0.1.1

Is this a known bug, a problem with the installation or is it something OS related?

Solved Solved
0 5 212
1 ACCEPTED SOLUTION

mrios
Participant IV

I found that in /etc/hosts there was an entry for 127.0.1.1 I commented it and it worked.

Thanks.

View solution in original post

5 REPLIES 5

Not applicable

@Matias Can you paste the curl that you used which passed?

if I use this curl works fine:

$ curl -H "Host: VALIDATE.apigee.com" http://127.0.0.1:59001/v1/apigee/healthCheck

Try to run the validate again and if it fails, check your system.log and share it here if possible @Matias

@Maruti Chand sorry for the late response.

Which system.log file do you want me to share? I mean from which component.

the setup-root.log seems quite verbose (1.8MB) to paste it here.

I did a search for that IP (127.0.1.1) in that file and it doesn't appear.

Plus, I'm tailing all the log files with:

find /opt/apigee/var/log -type f -mmin -10 -exec tail -F {} +

when I do:

$ curl -v -H "Host: VALIDATE.apigee.com" http://127.0.1.1:59001/v1/apigee/healthCheck
* About to connect() to 127.0.1.1 port 59001 (#0)
*   Trying 127.0.1.1...
* Connection refused
* Failed connect to 127.0.1.1:59001; Connection refused
* Closing connection 0
curl: (7) Failed connect to 127.0.1.1:59001; Connection refused

but I don't see any changes.

mrios
Participant IV

I found that in /etc/hosts there was an entry for 127.0.1.1 I commented it and it worked.

Thanks.