SikuliX-2014 icon indicating copy to clipboard operation
SikuliX-2014 copied to clipboard

[ToCheck] Sikulisetup does'nt work with proxy

Open ksokolowski opened this issue 10 years ago • 6 comments

Hello.

I have executed sikulisetup from my VM that is configured to work with proxy servers. Unfortunately, it has failed, as sikulisetup has been not able to download files. There are those errors in log: [debug (11/12/14 8:54:24 AM)] ResourceLoader: SikuliX Package Build: 1.1.0 2014-11-12_01:00nightly [error (11/12/14 8:54:54 AM)] RunSetup: main: Maven download: could not get timestamp or buildnumber from: https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixlibslux/1.1.0-SNAPSHOT/maven-metadata.xml with content:

[debug (11/12/14 8:55:25 AM)] FileManager: Downloading 1.1.0-SNAPSHOT with unknown size [error (11/12/14 8:57:32 AM)] FileManager: problems while downloading Connection timed out [error (11/12/14 8:57:35 AM)] RunSetup: Fatal error 001: not able to download: 1.1.0-SNAPSHOT [error (11/12/14 8:57:35 AM)] RunSetup: ... terminated abnormally :-( [debug (11/12/14 8:57:35 AM)] RunSetup: popError: -------------------- Something serious happened! Sikuli not useable! Check the error log at /home/tauser/SikuliX/SikuliX-1.1.0-SetupLog.txt

There are proxies in my company network that are working without problems with any program in my VM that is able to use it. I have setup proxy using environment variables: http_proxy=http://10.0.10.1:8080 https_proxy=http://10.0.1.10:8080/ ftp_proxy=http://10.0.1.10:8080/

It would be great if sikulisetup could support proxies. As a workaround I guess it is possible to download, all files manually and put it to Download folder.

BR, Krzysztof

ksokolowski avatar Nov 12 '14 08:11 ksokolowski

did you fill in the IP and the port of the proxy into the setup dialog at the bottom?

RaiMan avatar Nov 12 '14 08:11 RaiMan

Hi.

Yes. I have entered IP and port number. Should I add http:// to this proxy address field? Would it still be possible to automatically check system/environment variable for proxy address? :)

BR, Krzysztof

2014-11-12 9:26 GMT+01:00 Raimund Hocke [email protected]:

did you fill in the IP and the port of the proxy into the setup dialog at the bottom?

— Reply to this email directly or view it on GitHub https://github.com/RaiMan/SikuliX-2014/issues/80#issuecomment-62684689.

ksokolowski avatar Nov 12 '14 08:11 ksokolowski

Hi

I have added http to proxy address field. Unfortunately it still doesn't work:

debug (11/12/14 9:48:26 AM)] RunSetup: RunningSystem: Linux 3.13.0-39-generic [debug (11/12/14 9:48:26 AM)] RunSetup: parent of jar/classes: /home/tauser/SikuliX [debug (11/12/14 9:48:26 AM)] RunSetup: RunningJava: Java 6 (i386) 1.6.0_45-b06 [debug (11/12/14 9:48:46 AM)] RunSetup: main: Prefs: [debug (11/12/14 9:48:46 AM)] RunSetup: main: Prefs: [debug (11/12/14 9:48:46 AM)] RunSetup: main: Prefs: [debug (11/12/14 9:48:46 AM)] FileManager: deleteFileOrFolder: /home/tauser/SikuliX/SikuliPrefs.txt [debug (11/12/14 9:48:46 AM)] RunSetup: popAsk: -------------------- The following file(s) will be downloaded to /home/tauser/SikuliX --- Native support libraries for Linux (sikulixlibs...) --- Package 1 --- 1.1.0-1.jar (IDE/Scripting)

  • with Jython Only click NO, if you want to terminate setup now! Click YES even if you want to use local copies in Downloads!

    [debug (11/12/14 9:48:48 AM)] ResourceLoader: SikuliX Package Build: 1.1.0 2014-11-12_01:00nightly [error (11/12/14 9:49:19 AM)] RunSetup: main: Maven download: could not get timestamp or buildnumber from: https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixlibslux/1.1.0-SNAPSHOT/maven-metadata.xml with content:

[debug (11/12/14 9:49:49 AM)] FileManager: Downloading 1.1.0-SNAPSHOT with unknown size [error (11/12/14 9:51:56 AM)] FileManager: problems while downloading Connection timed out [error (11/12/14 9:51:59 AM)] RunSetup: Fatal error 001: not able to download: 1.1.0-SNAPSHOT [error (11/12/14 9:51:59 AM)] RunSetup: ... terminated abnormally :-( [debug (11/12/14 9:51:59 AM)] RunSetup: popError: -------------------- Something serious happened! Sikuli not useable!

Check the error log at /home/tauser/SikuliX/SikuliX-1.1.0-SetupLog.txt

BR, Krzysztof

2014-11-12 9:48 GMT+01:00 Krzysztof Sokołowski < [email protected]>:

Hi.

Yes. I have entered IP and port number. Should I add http:// to this proxy address field? Would it still be possible to automatically check system/environment variable for proxy address? :)

BR, Krzysztof

2014-11-12 9:26 GMT+01:00 Raimund Hocke [email protected]:

did you fill in the IP and the port of the proxy into the setup dialog at the bottom?

— Reply to this email directly or view it on GitHub https://github.com/RaiMan/SikuliX-2014/issues/80#issuecomment-62684689.

ksokolowski avatar Nov 12 '14 08:11 ksokolowski

It seems, that the download using a proxy does not work. In fact I never had a chance to test it and will not do it in the near future (little time and no resources)

So for now you should run an offline setup after having manually downloaded from the nightly build page:

  • sikulixlibslux
  • 1.1.0-1
  • Jython

into the Downloads folder in the setup folder.

If you have any idea, how I can simply debug this problem (have and use a proxy) on OS X or Windows, this would help.

RaiMan avatar Nov 12 '14 09:11 RaiMan

Hi.

Yes, downloading files manually is workaround.

We have quite complicated network configuration and I have additionally checked that I'm able to open repo from my browser (firefox - configured to use proxy). https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixlibslux/1.1.0-SNAPSHOT/

Regarding proxy testing in Windows I guess you could setup some simple proxy e.g. http://sourceforge.net/projects/anonproxyserver/

BR, Krzysztof

ksokolowski avatar Nov 12 '14 10:11 ksokolowski

Thanks for the confirmation of the offline setup working.

And thanks for the proxy hint. I guess I will get it tested with that now.

RaiMan avatar Nov 12 '14 11:11 RaiMan