Proxy setting problem

classic Classic list List threaded Threaded
34 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: Proxy setting problem

gbuijs
This post was updated on .
Hi Easwar,

That's great to hear, thanks for all the testing!

To test the broker we should run 2 tests.

1 Connect the (sample) broker without the TS.
   I've created a (looped) standalone game to test against.
   - samplebroker.core.powerTacBroker.username = VidyutVanika
   - comment out samplebroker.core.powerTacBroker.tourneyUrl
   - samplebroker.core.jmsManagementService.jmsBrokerUrl = tcp://wolf32.ict.eur.nl:61616

   Run with :
   - mvn exec:exec -Dsyst.args="-DsocksProxyHost=<SOCKS HOST> -DsocksProxyPort=<SOCKS PORT> -Djava.net.socks.username=<USERNAME> -Djava.net.socks.password=<PASSWORD>"

2 I've created a tounament for your broker, let me know when i can start it.
   - samplebroker.core.powerTacBroker.tourneyName = test2
   - samplebroker.core.powerTacBroker.tourneyUrl = http://ts.powertac.org:8080/TournamentScheduler/faces/brokerLogin.jsp
   - Don't forget your authToken

   - Run with :
     mvn exec:exec -Dsyst.args="-DsocksProxyHost=<SOCKS HOST> -DsocksProxyPort=<SOCKS PORT> -Djava.net.socks.username=<USERNAME> -Djava.net.socks.password=<PASSWORD> -Dhttp.proxyHost=<HTTP HOST> -Dhttp.proxyPort=<HTTP PORT>"

Cheers,

Govert
Reply | Threaded
Open this post in threaded view
|

Re: Proxy setting problem

easwar1977
Hi Govert,

  Actually, I saw your message now.  I just tested the set up for 1st instruction. When I run with
   - mvn exec:exec -Dsyst.args="-DsocksProxyHost=<SOCKS HOST> -DsocksProxyPort=<SOCKS PORT> -Djava.net.socks.username=<USERNAME> -Djava.net.socks.password=<PASSWORD>"


 I get the following error in the trace file.

<broker-authentication username="VidyutVanika" password="secret" brokerTime="1491901464739"/>
2251 INFO  core.PowerTacBroker: log attempt failed org.springframework.jms.UncategorizedJmsException: Uncategorized exception occurred during JMS processing; nested exception is javax.jms.JMSException: Could not connect to broker URL: tcp://wolf32.ict.eur.nl:61616. Reason: java.net.ConnectException: Connection refused (Connection refused)

 Did not test the second instruction as of now.

Best Regards,
Easwar
Reply | Threaded
Open this post in threaded view
|

Re: Proxy setting problem

gbuijs
Hi Easwar,

I've change the port, could you check again with the following change in broker.properties.
samplebroker.core.jmsManagementService.jmsBrokerUrl = tcp://wolf32.ict.eur.nl:8081
Cheers,

Govert
Reply | Threaded
Open this post in threaded view
|

Re: Proxy setting problem

easwar1977
Just checked, Same error Govert,

<broker-authentication username="VidyutVanika" password="secret" brokerTime="1491904578663"/>
2232 INFO  core.PowerTacBroker: log attempt failed org.springframework.jms.UncategorizedJmsException: Uncategorized exception occurred during JMS processing; nested exception is javax.jms.JMSException: Could not connect to broker URL: tcp://wolf32.ict.eur.nl:8081. Reason: java.net.ConnectException: Connection refused (Connection refused)
Reply | Threaded
Open this post in threaded view
|

Re: Proxy setting problem

gbuijs
In reply to this post by gbuijs
Hi Easwar,

Could you try with the IP-address instead of the url?
samplebroker.core.jmsManagementService.jmsBrokerUrl = tcp://130.115.24.32:8081
Cheers,

Govert
Reply | Threaded
Open this post in threaded view
|

Re: Proxy setting problem

easwar1977
Same Error again,

<broker-authentication username="VidyutVanika" password="secret" brokerTime="1491905631067"/>
1995 INFO  core.PowerTacBroker: log attempt failed org.springframework.jms.UncategorizedJmsException: Uncategorized exception occurred during JMS processing; nested exception is javax.jms.JMSException: Could not connect to broker URL: tcp://130.115.24.32:8081. Reason: java.net.ConnectException: Connection refused (Connection refused)
17997 INFO  core.MessageDispatcher: sending text:
<broker-authentication username="VidyutVanika" password="secret" brokerTime="1491905647101"/>
18001 INFO  core.PowerTacBroker: log attempt failed org.springframework.jms.UncategorizedJmsException: Uncategorized exception occurred during JMS processing; nested exception is javax.jms.JMSException: Could not connect to broker URL: tcp://130.115.24.32:8081. Reason: java.net.ConnectException: Connection refused (Connection refused)
Reply | Threaded
Open this post in threaded view
|

Re: Proxy setting problem

gbuijs
Did you rebuild the sample broker before running it?
I.e.
mvn clean compile
Reply | Threaded
Open this post in threaded view
|

Re: Proxy setting problem

easwar1977
I didn't do it previously. But I did now. I get the same error.

1951 INFO  core.MessageDispatcher: sending text:
<broker-authentication username="VidyutVanika" password="secret" brokerTime="1491908600923"/>
1957 INFO  core.PowerTacBroker: log attempt failed org.springframework.jms.UncategorizedJmsException: Uncategorized exception occurred during JMS processing; nested exception is javax.jms.JMSException: Could not connect to broker URL: tcp://130.115.24.32:8081. Reason: java.net.ConnectException: Connection refused (Connection refused)

I also tried two authtokens. One that was present in samplebroker properties file and another that we got during the trial registration last time. No sucess yet.
Reply | Threaded
Open this post in threaded view
|

Re: Proxy setting problem

grampajohn
Administrator
easwar1977 wrote
I didn't do it previously. But I did now. I get the same error.
Is it possible that some element of one of the system arguments is being mangled by the shell before maven or Java sees it? You could try using single-quotes rather than double-quotes around the list of Java system args.

John

Reply | Threaded
Open this post in threaded view
|

Re: Proxy setting problem

gbuijs
In reply to this post by easwar1977
The authtokens are only necessary in tournament mode.

I'm running out of ideas, my local setup runs as expected.
There must be something i'm missing in your setup.

The only thing we can try is a fresh setup.
- Clear ~/.m2/repository/org/powertac/
- Clone a fresh sample-broker
- Edit broker.properties (also test with the IP) :
    username = VidyutVanika
    jmsBrokerUrl = tcp://wolf32.ict.eur.nl:8081
- mvn compile
- mvn exec:exec -Dsyst.args="-DsocksProxyHost=<SOCKS HOST> -DsocksProxyPort=<SOCKS PORT> -Djava.net.socks.username=<USERNAME> -Djava.net.socks.password=<PASSWORD>"

Double/triple check the proxy settings.
Reply | Threaded
Open this post in threaded view
|

Re: Proxy setting problem

easwar1977
Ok, Thanks. I will try out these things tomorrow and let you know.

Easwar
Reply | Threaded
Open this post in threaded view
|

Re: Proxy setting problem

easwar1977
Hi Govert, John,

 I tried various combinations. I am getting connection refused error. We can keep trying. But for this trial, we will try and participate from cloud.

  Do let me know if you need any specific information from our side to overcome this problem.


Best Regards,
Easwar
Reply | Threaded
Open this post in threaded view
|

Re: Proxy setting problem

gbuijs
Hi Easwar,

Sorry to hear it's not working.
I don't know what to try anymore.
We'll see how the cloud solution is working.
Let me know if you want to try it.

Cheers,

Govert

Reply | Threaded
Open this post in threaded view
|

Re: Proxy setting problem

easwar1977
Dear Govert,

 During last trials, participating from cloud did worked after other experiments. This time around we will try the same thing. So, we will directly participate in the 2nd trial next week from cloud.

Cheers,
Easwar
12