Hello,
I've been trying to get a test environment going using the current code base, but keep getting the following error when I run it.
TASK [aa : wait for aa to start] ***********************************************
fatal: [192.168.66.79]: FAILED! => {"changed": false, "elapsed": 300, "failed": true, "msg": "Timeout when waiting for 127.0.0.1:9198"}
Accessing https://vm.openconext.org/ gives:
503 Service Unavailable
No server is available to handle this request.
I've poked around to see if I can figure it out, but haven't been able to yet.. Any help would be great!
Thanks,
Andrew
Here's an analysis on different pieces relating to 'aa'
[root@apps current]# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 08:00:27:68:75:FA
inet addr:192.168.66.79 Bcast:192.168.66.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe68:75fa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:125468 errors:0 dropped:0 overruns:0 frame:0
TX packets:47958 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:125161937 (119.3 MiB) TX bytes:4089058 (3.8 MiB)
According to the aa.conf file, the port should be running locally on the apps server:
[root@apps current]# cat /etc/httpd/conf.d/aa.conf |grep 9198
ProxyPass /aa/api http://localhost:9198/ retry=0
ProxyPassReverse /aa/api http://localhost:9198/
[root@apps current]# /etc/init.d/aa status
aa (pid 30497) is running...
[root@apps current]# telnet 127.0.0.1 9198
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
This is what I'm seeing in the /var/log/aa/aa.log file:
2016-03-05 00:23:33,876 DEBUG [pool-4-thread-1] a.s.UrlResourceServiceRegistry:34 - Starting refreshing SP metadata.
2016-03-05 00:23:33,877 DEBUG [pool-4-thread-1] a.s.UrlResourceServiceRegistry:51 - Fetching SP metadata entries from https://multidata.vm.openconext.org/service-providers.json
2016-03-05 00:23:33,879 ERROR [pool-4-thread-1] a.s.UrlResourceServiceRegistry:68 - Error in refreshing metadata
java.lang.RuntimeException: java.io.IOException: Server returned HTTP response code: 503 for URL: https://multidata.vm.openconext.org/service-providers.json
at aa.serviceregistry.ClassPathResourceServiceRegistry.readValue(ClassPathResourceServiceRegistry.java:80) ~[aa-server-1.0.1-20160302.080912-1.jar!/:1.0.1-SNAPSHOT]
at aa.serviceregistry.ClassPathResourceServiceRegistry.parseEntities(ClassPathResourceServiceRegistry.java:57) ~[aa-server-1.0.1-20160302.080912-1.jar!/:1.0.1-SNAPSHOT]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[na:1.8.0_71]
at java.util.Collections$2.tryAdvance(Collections.java:4717) ~[na:1.8.0_71]
at java.util.Collections$2.forEachRemaining(Collections.java:4725) ~[na:1.8.0_71]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[na:1.8.0_71]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[na:1.8.0_71]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[na:1.8.0_71]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:1.8.0_71]
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[na:1.8.0_71]
at aa.serviceregistry.ClassPathResourceServiceRegistry.initializeMetadata(ClassPathResourceServiceRegistry.java:36) ~[aa-server-1.0.1-20160302.080912-1.jar!/:1.0.1-SNAPSHOT]
at aa.serviceregistry.UrlResourceServiceRegistry.initializeMetadata(UrlResourceServiceRegistry.java:58) ~[aa-server-1.0.1-20160302.080912-1.jar!/:1.0.1-SNAPSHOT]
at aa.serviceregistry.UrlResourceServiceRegistry.refreshMetataData(UrlResourceServiceRegistry.java:66) ~[aa-server-1.0.1-20160302.080912-1.jar!/:1.0.1-SNAPSHOT]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_71]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) ~[na:1.8.0_71]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) ~[na:1.8.0_71]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) ~[na:1.8.0_71]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_71]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_71]
at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_71]
Caused by: java.io.IOException: Server returned HTTP response code: 503 for URL: https://multidata.vm.openconext.org/service-providers.json
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840) ~[na:1.8.0_71]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441) ~[na:1.8.0_71]
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) ~[na:1.8.0_71]
at aa.serviceregistry.BasicAuthenticationUrlResource.getInputStream(BasicAuthenticationUrlResource.java:32) ~[aa-server-1.0.1-20160302.080912-1.jar!/:1.0.1-SNAPSHOT]
at aa.serviceregistry.ClassPathResourceServiceRegistry.readValue(ClassPathResourceServiceRegistry.java:78) ~[aa-server-1.0.1-20160302.080912-1.jar!/:1.0.1-SNAPSHOT]
... 19 common frames omitted
No service listening on port 9198:
[root@apps current]# netstat -ln |grep 9198
[root@apps current]# netstat -ln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:11211 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:9876 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:42939 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:389 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 :::9291 :::* LISTEN
tcp 0 0 :::11211 :::* LISTEN
tcp 0 0 :::9196 :::* LISTEN
tcp 0 0 :::9197 :::* LISTEN
tcp 0 0 :::9199 :::* LISTEN
tcp 0 0 :::111 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 0 ::1:25 :::* LISTEN
tcp 0 0 :::33856 :::* LISTEN
tcp 0 0 :::389 :::* LISTEN
tcp 0 0 :::9190 :::* LISTEN
tcp 0 0 :::9191 :::* LISTEN
tcp 0 0 :::9290 :::* LISTEN
udp 0 0 0.0.0.0:111 0.0.0.0:*
udp 0 0 192.168.66.79:123 0.0.0.0:*
udp 0 0 10.0.2.15:123 0.0.0.0:*
udp 0 0 127.0.0.1:123 0.0.0.0:*
udp 0 0 0.0.0.0:123 0.0.0.0:*
udp 0 0 0.0.0.0:60805 0.0.0.0:*
udp 0 0 0.0.0.0:705 0.0.0.0:*
udp 0 0 0.0.0.0:68 0.0.0.0:*
udp 0 0 0.0.0.0:11211 0.0.0.0:*
udp 0 0 0.0.0.0:724 0.0.0.0:*
udp 0 0 :::111 :::*
udp 0 0 fe80::a00:27ff:fe68:75fa:123 :::*
udp 0 0 fe80::a00:27ff:fe5e:ac7:123 :::*
udp 0 0 ::1:123 :::*
udp 0 0 :::123 :::*
udp 0 0 :::34307 :::*
udp 0 0 :::46738 :::*
udp 0 0 :::54814 :::*
udp 0 0 :::60959 :::*
udp 0 0 :::33956 :::*
udp 0 0 :::54316 :::*
udp 0 0 :::60590 :::*
udp 0 0 :::40880 :::*
udp 0 0 :::705 :::*
udp 0 0 :::48453 :::*
udp 0 0 :::11211 :::*