Proxy setting problem

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

Proxy setting problem

easwar1977
Hello,

  I am trying to run to powertac server and broker from my workplace where I am behind a proxy. Even though I set HTTP, HTTPS, SOCKS, FTP proxy (with username/password) in settings.xml in .m2 directory I am unable to run them. The server  displays a Java exception origination in some weather request module.

 Things work well when I am at home where I am not behind any proxy. Can anyone help me with this ?

Easwar
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Proxy setting problem

gbuijs
Hi Easwar,

The problem is that Maven/Java doesn't use the OS system properties for SOCKS proxies.
So we have to set them on the command line.
But the current pom file doesn't handle system arguments.

1 Make the following changes to the sample-broker pom.
   - Add  <syst.args></syst.args> under <exec.args></exec.args>
     In the 'properties' section, around line 34.
   - Change the 'commandlineArgs' line (around line 79) to include the syst.args variable :
      From : ... %classpath org.powertac.samplebroker.core.BrokerMain ${exec.args} ...
      To : ... %classpath ${syst.args} org.powertac.samplebroker.core.BrokerMain ${exec.args} ...
     syst.args needs to be before the 'org...BrokerMain'.

2 You need to set the socks proxy host and port on the commandline.
   Therefor start the broker with (after compiling of course) :

   mvn exec:exec -Dsyst.args="-DsocksProxyHost=<YOUR-SOCKS-URL> -DsocksProxyPort=<YOUR-SOCKS-PORT>"

   Additional params (--repeat-count etc. ) still go in exec.args.

3 I've started an endless loop with very short games to test your setup.
   To test this, make the following changes in your broker.properties :
   - Set jmsBrokerUrl to tcp://130.115.24.32:61616
   - set username to Sample
   - comment out the tourneyUrl / tourneyName

You would still need to set the HTTP proxy system-wide for tournament setups,
but for this test that's not needed.

Let me know if this works, else we need to find another fix.

Cheers,

Govert
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Proxy setting problem

easwar1977
Thanks Govert,

 This looks a little elaborate set up for me. Anyways, I will have to go to office to do this which I will do early next week (after submitting a broker for trials !!). I will update you, for sure.

Thanks,
Easwar
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Proxy setting problem

easwar1977
Hi Govert,

  I tested what you suggested. I modified the pom.xml for the sample broker; But I get a POM parse error at line 34 with the following message.

non parseable pom parser must be on START_TAG or TEXT to read text (position: START_TAG seen ...<exec.args><syst.args>...

 For your reference, the 34th line of pom.xml is now,
    <exec.args><syst.args></syst.args></exec.args>
 

and the 79th line of pom.xml is now
<commandlineArgs>-server -Xmx512m -classpath %classpath ${syst.args} org.powertac.samplebroker.core.BrokerMain ${exec.args} </commandlineArgs>

Not sure where I did wrong.

2.  Further, I am behind a corporate proxy with a username and password and I have the following setup in settings.xml

   <proxy>
      <id>socks-proxy</id>
      <active>true</active>
      <protocol>socks</protocol>
      <username>user</username>
      <password>password</password>
      <host>server</host>
      <port>port</port>
      <nonProxyHosts>localhost,127.0.0.1</nonProxyHosts>
    </proxy>
     
Is this not enough or should we give (proxy settings) through the command line only ? I tried both; but I get a parse error.

3. I understand that this broker if it is running will connect to a server the URL you suggested. I have added that in the broker.properties file.  But what if I want the server and broker locally with the server needing Internet connectivity to get weather data.

Best Regards,
Easwar
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Proxy setting problem

gbuijs
Hi Easwar,

1 The exec.args and syst.args should be on 2 separate lines, like this :
<exec.args></exec.args>
<syst.args></syst.args>
2 You should be able to set user and pass with java.net.socks.username and java.net.socks.password
   But i haven't tried this myself.

3 If you run both the server and the broker on the same machine, i.e. localhost,
   the communication from broker to server shouldn't go via the proxy.
   In that case the cli args aren't needed, but the edits in the pom are harmless.
   
   The server needs access to the weather service, this is via port 8080.
   If you need to use the proxy for that as well, you need the same edits in the server-distribution pom.
   - Add the <syst.args></syst.args> to the pom, within the properties-tags.
   - Add ${syst.args} before org.powertac.server.PowerTacServer on line 72
   - Add the syst args on the command line, but i guess you need http.proxyHost and http.proxyPort.

The URL to test against is available again in 45 mins.

As an alternative to the options above, i found this remark on this page :
"java.net.useSystemProxies (default: false)
On recent Windows systems and on Gnome 2.x systems it is possible to tell the java.net stack, setting this property to true, to use the system proxy settings (both these systems let you set proxies globally through their user interface). Note that this property is checked only once at startup."

I.e. -Djava.net.useSystemProxies=true

Cheers,

Govert

   
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Proxy setting problem

easwar1977
Hi Govert,

  1.  1 The exec.args and syst.args should be on 2 separate lines, like this :
<exec.args></exec.args>
<syst.args></syst.args>

  I did this. Now there is no parse error.

 2.  You should be able to set user and pass with java.net.socks.username and java.net.socks.password
   
      I have no clue how and where to do this.

 3.   If you run both the server and the broker on the same machine, i.e. localhost,
   the communication from broker to server shouldn't go via the proxy.
   In that case the cli args aren't needed, but the edits in the pom are harmless.
   
      Yes, I understand. But I wanted the  server to access weather data over net.  So, I changed the pom.xml of server as suggested by you.  No parse error here as well.

  When I run server via via the command  mvn -P web  -Djava.net.useSystemProxies=true and then I start sim in visualizer,
 
  I get error 407 URL which is a proxy authentication error. I am using Ubuntu. I tried setting system proxy. In the UI of network manager there is no place to put username/password; you can just set system wide proxy.  So, where to give username and password for the server to be able to access weather data is not clear. How to give it through command line ?
Is there any role of ~/.m2/settings.xml at all  ?

 3. I tried running the broker to connect to the URL that you suggested to test against. I get a JMS connection refuse in the broker.trace. May be this also proxy user / password issue.
   
Any suggestions,

Easwar

 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Proxy setting problem

gbuijs
Hi Easwar,

It seems that setting the user/pass on the command line doesn't work.
I've pushed updates to server-distribution and powertac-server to fix this.
Can you check if this works for you?

1 Clone powertac-core : https://github.com/powertac/powertac-core
2 Install powertac-core into local .m2
3 Clone powertac-server : https://github.com/powertac/powertac-server
4 Install powertac-server into local .m2
5 Clone server-distribution : https://github.com/powertac/server-distribution
6 Run a boot from the cli (from the server-distribution directory) :

mvn -Pcli -Dsyst.args="-Dhttp.proxyHost=<proxy_url> -Dhttp.proxyPort=<proxy_port> -Dhttp.proxyUser=<proxy_user> -Dhttp.proxyPassword=<proxy_pass>" -Dexec.args="-boot bootstrap.xml --game-id 1"

You'll still need the .m2 settings.xml, as that is used by Maven.
If the boot works, a local sim with a local sample broker should work also.
And for tournament settings i'll need to fix the sample broker as well.

Cheers,

Govert
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Proxy setting problem

easwar1977
Hi Govert,

  Thanks a lot for your reply. I did the things that you mentioned.

1. I have user directory into which I cloned powertac-core, powertac-server and server-distribution.

2.  I set the proxy settings in .m2 directory (under my user directory) in the settings.xml file

3. I am not sure what is meant by Install powertac-core or powertac-server.  I ran mvn clean test from these directories. I got an error saying

COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error

I checked the mvn -version JAVA_HOME is pointing correctly it is version 1.8.0.  Prior to this message, it is able to download some things from repositories through the proxy. After some steps the above error shows up.

3. I did mvn clean test from server-distribution and it was a SUCESS.

4. Later I tried

mvn -Pcli -Dsyst.args="-Dhttp.proxyHost=<proxy_url> -Dhttp.proxyPort=<proxy_port> -Dhttp.proxyUser=<proxy_user> -Dhttp.proxyPassword=<proxy_pass>" -Dexec.args="-boot bootstrap.xml --game-id 1"

after downloading all necessary repositories (through the proxy), I get the following IO exception error


Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-toolchain/1.0/maven-toolchain-1.0.jar (33 KB at 92.6 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/apache/commons/commons-exec/1.3/commons-exec-1.3.jar (54 KB at 134.2 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0.20/plexus-utils-3.0.20.jar (238 KB at 291.3 KB/sec)
java.io.IOException: Server returned HTTP response code: 407 for URL: http://weather.powertac.org:8080/WeatherServer/faces/index.xhtml?weatherDate=2009101000&weatherLocation=rotterdam
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1876)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
        at org.powertac.server.WeatherService$WeatherRequester.webRequest(WeatherService.java:342)
        at org.powertac.server.WeatherService$WeatherRequester.run(WeatherService.java:308)
        at org.powertac.server.WeatherService.initialize(WeatherService.java:270)
        at org.powertac.server.CompetitionControlService.configurePlugins(CompetitionControlService.java:637)
        at org.powertac.server.CompetitionControlService.setup(CompetitionControlService.java:352)
        at org.powertac.server.CompetitionControlService.runOnce(CompetitionControlService.java:305)
        at org.powertac.server.CompetitionSetupService$1.run(CompetitionSetupService.java:558)
java.io.IOException: Server returned HTTP response code: 407 for URL: http://weather.powertac.org:8080/WeatherServer/faces/index.xhtml?weatherDate=2009101100&weatherLocation=rotterdam
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1876)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
        at org.powertac.server.WeatherService$WeatherRequester.webRequest(WeatherService.java:342)
        at org.powertac.server.WeatherService$WeatherRequester.run(WeatherService.java:308)
        at org.powertac.server.WeatherService.initialize(WeatherService.java:270)
        at org.powertac.server.CompetitionControlService.configurePlugins(CompetitionControlService.java:637)
        at org.powertac.server.CompetitionControlService.setup(CompetitionControlService.java:352)
        at org.powertac.server.CompetitionControlService.runOnce(CompetitionControlService.java:305)
        at org.powertac.server.CompetitionSetupService$1.run(CompetitionSetupService.java:558)
java.io.IOException: Server returned HTTP response code: 407 for URL: http://weather.powertac.org:8080/WeatherServer/faces/index.xhtml?weatherDate=2009101200&weatherLocation=rotterdam
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1876)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
        at org.powertac.server.WeatherService$WeatherRequester.webRequest(WeatherService.java:342)
        at org.powertac.server.WeatherService$WeatherRequester.run(WeatherService.java:308)
        at org.powertac.server.WeatherService.initialize(WeatherService.java:270)
        at org.powertac.server.CompetitionControlService.configurePlugins(CompetitionControlService.java:637)
        at org.powertac.server.CompetitionControlService.setup(CompetitionControlService.java:352)
        at org.powertac.server.CompetitionControlService.runOnce(CompetitionControlService.java:305)
        at org.powertac.server.CompetitionSetupService$1.run(CompetitionSetupService.java:558)


I think connection through proxy is working for downloading repositories but for some reason weather data is not getting downloaded through proxy.

Any help or suggestions ?

Many Thanks and Best Regards,
Easwar

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Proxy setting problem

gbuijs
Hi Easwar,

The downloading of the repositories works because of the .m2 settings.xml.
By installing i mean 'mvn install' (not 'mvn clean test').

The error you're seeing (no weather data) is because the install of powertac-server (and -core) failed.
It looks like you have a JRE installed, not an JDK.

A JDK can be installed from here.
After installing the JDK, you should be able to install powertac-core and powertac-server.

Cheers,

Govert
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Proxy setting problem

easwar1977
Hi Govert,
 
  I guess I had a older version of Java (although there was a directory of JDK 1.8.0) and Java home was pointing to JRE directory. I installed the latest JDK and corrected java paths and did what you suggested.

1. mvn install (from powertac-core)  was a SUCESS with the following message.

  [INFO] Reactor Summary:
[INFO]
[INFO] Power TAC parent ................................... SUCCESS [  0.845 s]
[INFO] Power TAC aspect-oriented programming .............. SUCCESS [  1.013 s]
[INFO] Power TAC common domain model ...................... SUCCESS [ 24.247 s]
[INFO] Power TAC broker-core .............................. SUCCESS [ 14.629 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS


2. mvn install (from powertac-server) was only a PARTIAL SUCESS with the following message :

[INFO] Reactor Summary:
[INFO]
[INFO] Power TAC server modules ........................... SUCCESS [  1.348 s]
[INFO] Power TAC server interface ......................... SUCCESS [  9.110 s]
[INFO] Power TAC accounting service ....................... SUCCESS [  6.391 s]
[INFO] Power TAC wholesale market ......................... SUCCESS [  5.229 s]
[INFO] Power TAC intra-hour market-based balancing ........ SUCCESS [ 12.993 s]
[INFO] Power TAC customer models .......................... SUCCESS [  3.773 s]
[INFO] Power TAC ev customer .............................. SUCCESS [  5.187 s]
[INFO] Power TAC default broker ........................... SUCCESS [  5.303 s]
[INFO] Power TAC distribution utility ..................... SUCCESS [  5.724 s]
[INFO] Power TAC factored customer ........................ SUCCESS [  5.819 s]
[INFO] Power TAC genco .................................... SUCCESS [  5.766 s]
[INFO] Power TAC household customer ....................... SUCCESS [ 14.924 s]
[INFO] Power TAC office complex customer .................. SUCCESS [ 10.687 s]
[INFO] Power TAC logtool core ............................. SUCCESS [  5.383 s]
[INFO] Power TAC server main .............................. FAILURE [  4.572 s]
[INFO] Power TAC visualizer ............................... SKIPPED
[INFO] Power TAC Visualizer v2 ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

The Powertac server main failed trying to access weather service.
-------------------------------------------------------
Running org.powertac.server.ServerMessageReceiverTests
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.177 sec - in org.powertac.server.ServerMessageReceiverTests
Running org.powertac.server.WeatherServiceTest
java.net.ConnectException: Connection refused (Connection refused)

In both cases, a lot of repos were downloaded through the proxy connection. I have set the proxy info with username/password in ~/.m2/setttings.xml file as well.

Just to be sure, I also set http_proxy (and https_proxy) in the shell and ran mvn install again and but got the same errors.

Still it is unable to connect to the weather service from behind the proxy. Other things are going OK, I suppose.

Any suggestions ?

Best Regards,
Easwar
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Proxy setting problem

gbuijs
Hi Easwar,

Sorry for the slow progress on this issue.

To fix this issue, you can in stall powertac-server without the tests.
mvn install -DskipTests

Cheers,

Govert
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Proxy setting problem

easwar1977
Hi Govert,

  I managed to run the server in boot and sim mode (with Sample Broker) using the CLI interface. Thanks a lot for your support.

  However, I have two issues.

 a) I got an error when I ran the mvn install _DskipTests from the powertac-server. The following is the relevant portion of the terminal output

[INFO] yarn install v0.20.3
[INFO] [1/4] Resolving packages...
[INFO] [2/4] Fetching packages...
[WARNING] warning fsevents@1.1.1: The platform "linux" is incompatible with this module.
[INFO] info "fsevents@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
[INFO] [3/4] Linking dependencies...
[INFO] [4/4] Building fresh packages...
[ERROR] error /home/easwar/work/powertac/server/powertac-server/visualizer2/node_modules/phantomjs-prebuilt: Command failed.
[ERROR] Exit code: 1
[ERROR] Command: sh
[ERROR] Arguments: -c node install.js
[ERROR] Directory: /home/easwar/work/powertac/server/powertac-server/visualizer2/node_modules/phantomjs-prebuilt
[ERROR] Output:
[ERROR] PhantomJS not found on PATH
[ERROR] Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
[ERROR] Saving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
[ERROR] Receiving...
[INFO] info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[ERROR]
[ERROR] Error making request.
[ERROR] Error: tunneling socket could not be established, statusCode=407
[ERROR]     at ClientRequest.onConnect (/home/easwar/work/powertac/server/powertac-server/visualizer2/node_modules/tunnel-agent/index.js:165:19)
[ERROR]     at ClientRequest.g (events.js:291:16)
[ERROR]     at emitThree (events.js:116:13)
[ERROR]     at ClientRequest.emit (events.js:194:7)
[ERROR]     at Socket.socketOnData (_http_client.js:395:11)
[ERROR]     at emitOne (events.js:96:13)
[ERROR]     at Socket.emit (events.js:188:7)
[ERROR]     at readableAddChunk (_stream_readable.js:176:18)
[ERROR]     at Socket.Readable.push (_stream_readable.js:134:10)
[ERROR]     at TCP.onread (net.js:548:20)
[ERROR]
[ERROR] Please report this full log at https://github.com/Medium/phantomjs
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Power TAC server modules ........................... SUCCESS [  1.299 s]
[INFO] Power TAC server interface ......................... SUCCESS [  5.173 s]
[INFO] Power TAC accounting service ....................... SUCCESS [  3.283 s]
[INFO] Power TAC wholesale market ......................... SUCCESS [  3.527 s]
[INFO] Power TAC intra-hour market-based balancing ........ SUCCESS [ 10.745 s]
[INFO] Power TAC customer models .......................... SUCCESS [  1.045 s]
[INFO] Power TAC ev customer .............................. SUCCESS [  3.126 s]
[INFO] Power TAC default broker ........................... SUCCESS [  2.921 s]
[INFO] Power TAC distribution utility ..................... SUCCESS [  3.016 s]
[INFO] Power TAC factored customer ........................ SUCCESS [  3.427 s]
[INFO] Power TAC genco .................................... SUCCESS [  3.109 s]
[INFO] Power TAC household customer ....................... SUCCESS [  3.738 s]
[INFO] Power TAC office complex customer .................. SUCCESS [  3.622 s]
[INFO] Power TAC logtool core ............................. SUCCESS [  3.891 s]
[INFO] Power TAC server main .............................. SUCCESS [ 35.836 s]
[INFO] Power TAC visualizer ............................... SUCCESS [27:49 min]
[INFO] Power TAC Visualizer v2 ............................ FAILURE [19:55 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 49:12 min
[INFO] Finished at: 2017-04-05T14:20:23+05:30
[INFO] Final Memory: 65M/1017M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.3:yarn (yarn install) on project visualizer2: Failed to run task: 'yarn install --https-proxy=<a href="http://user:***@IP:port">http://user:***@IP:port --proxy=<a href="http://user:***@IP:port'">http://user:***@IP:port' failed. (error code 1) -> [Help 1]

 
b)  I am unable to run the server in boot or in sim mode using the visualizer(s) (both the old and visualizer2). It may be because of problem a).   The message on the terminal in this case is as follows:
   
:: JHipster 🤓  :: Running Spring Boot 1.5.1.RELEASE ::
:: http://jhipster.github.io ::

java.net.ConnectException: Connection refused (Connection refused)
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at java.net.Socket.connect(Socket.java:538)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
        at sun.net.www.http.HttpClient.New(HttpClient.java:308)
        at sun.net.www.http.HttpClient.New(HttpClient.java:326)
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1202)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1138)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1032)
        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:966)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1546)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
        at org.powertac.server.WeatherService$WeatherRequester.webRequest(WeatherService.java:342)
        at org.powertac.server.WeatherService$WeatherRequester.run(WeatherService.java:308)
        at org.powertac.server.WeatherService.initialize(WeatherService.java:270)
        at org.powertac.server.CompetitionControlService.configurePlugins(CompetitionControlService.java:637)
        at org.powertac.server.CompetitionControlService.setup(CompetitionControlService.java:352)
        at org.powertac.server.CompetitionControlService.runOnce(CompetitionControlService.java:305)
        at org.powertac.server.CompetitionSetupService$1.run(CompetitionSetupService.java:558)
java.net.ConnectException: Connection refused (Connection refused)


Any help on this will be appreciated.

Best Regards,
Easwar

 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Proxy setting problem

gbuijs
Hi Easwar,

The easiest solution is getting a new snapshot released.
Unfortunately i can't do that, so i have to ask John.

Once the new snapshot is released, you only need to do the server-distribution part.
I'll let you know when the snapshot is released.

Cheers,

Govert
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Proxy setting problem

easwar1977
Ok. Thanks Govert for your patient assistance, help and putting up with my ignorance.

Best Regards,
Easwar
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Proxy setting problem

gbuijs
Hi Easwar,

No problem, we've all been there.
John has published the snapshot.

Now you should be able to run run the visualizer from the server-distribution folder.
Maven should download the new jar file from Sonatype.
So, no need to install powertac-core and powertac-server locally.

Cheers,

Govert
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Proxy setting problem

easwar1977
Hi Govert,

  I ran mvn -P web (and -P web2) from the server-distribution. It downloaded 1.4.2 Snapshot from sonatype but still the problem persists with regard fetching data from weather service.

  I am unable run boot from the old or the new visualizer. I didn't try the sim because the boot itself did not run.

  Is it that, should I download something new from Github before running mvn -P web ?

Best Regards,
Easwar
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Proxy setting problem

gbuijs
Hi Easwar,

I've made more changes to get the visualizers working via a proxy.
I need the help of John to publish a new set of snapshots.
Once those are available, you need to grab a fresh copy of the server-distribution.

Than you should be able to run the visualizers.
Notice the absence of the -Dsyst.args for viz 1.

viz 1 :
mvn -Pweb -Dhttp.proxyHost=<HOST> -Dhttp.proxyPort=<PORT> -Dhttp.proxyUser=<USER> -Dhttp.proxyPassword=<PASS>

viz 2 :
mvn -Pweb2 -Dsyst.args="-Dhttp.proxyHost=<HOST> -Dhttp.proxyPort=<PORT> -Dhttp.proxyUser=<USER> -Dhttp.proxyPassword=<PASS>"

Cheers,

Govert
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Proxy setting problem

grampajohn
Administrator
gbuijs wrote
I've made more changes to get the visualizers working via a proxy.
I need the help of John to publish a new set of snapshots.
Once those are available, you need to grab a fresh copy of the server-distribution.
I just deployed Govert's changes. You should be good to go, except that maven has a preference to check for new versions only once in 24h. If you try to run the system and don't see the correct behavior, you may need to clear out ~/.m2/repository/org/powertac and try again.

Cheers -

John
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Proxy setting problem

gbuijs
In reply to this post by gbuijs
John has published the new snapshots.
With the new server-distribution things should work.
Just to be safe : remove org/powertac stuff from your local .m2 repo.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Proxy setting problem

easwar1977
Hi Govert, John,
 
  The visualizers are now working with the proxy. I tested both old and new visualizers (the new one with and without weather data). Command line interface also is working with and without weather data.

  Thanks a lot for your patient support.

 Lastly, just wanted to check if we have done everything to run a broker for the tournament (say next trails scheduled for April 18th) from behind a proxy ? (System wide HTTP Proxy is set even now !!)

Best Regards,
Easwar
 
12
Loading...