sikuli silent install behind proxy

Asked by Kevin Wei on 2019-01-07

Planning to install sikuli behind company proxy. With GUI, everything works fine, I could easily specify a proxy. But when I use following command "java -jar sikulixsetup-1.1.2.jar options 2 4" to do silent install, it gives me error as follows:

➜ Downloads java -jar sikulixsetup-1.1.2.jar options 2 4
[debug] RunTimeINIT: global init: entering as: SETUP
[debug] RunTimeINIT: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
[debug] RunTimeINIT: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
[debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[debug] RunTimeINIT: Monitor 0: (0, 0) 1680 x 1050
[debug] RunTimeINIT: runs as sikulixsetup-1.1.2.jar in: /Users/weik/Downloads
***** show environment for SETUP (build 201803080837)
user.home: /Users/weik
user.dir (work dir): /Users/weik/Downloads
user.name: weik
java.io.tmpdir: /var/folders/s1/z_q9pwb90vqcv9k5_w9ftv9m0000gn/T
running 64Bit on Mac OSX (10.14.2) from a jar
java 8-64 version 1.8.0_181-b13 vm 25.181-b13 class 52.0 arch x86_64
app data folder: /Users/weik/Library/Application Support/Sikulix
libs folder: null
executing jar: /Users/weik/Downloads/sikulixsetup-1.1.2.jar
*** classpath dump sikulix
  0: /Users/weik/Downloads/sikulixsetup-1.1.2.jar
*** classpath dump end
***** show environment end
[debug] RunTimeSETUP: global init: leaving
[debug] RunTimeSETUP: initAPI: entering
[debug] RunTimeSETUP: resourceList: enter
[debug] RunTimeSETUP: resourceLocation: (class org.sikuli.setup.RunSetup) /Lib/sikuli
[debug] RunTimeSETUP: resourceList: having jar: jar:file:/Users/weik/Downloads/sikulixsetup-1.1.2.jar!/Lib/sikuli
[debug] RunTimeSETUP: files exported: 7 from: Lib/sikuli to:
 /Users/weik/Library/Application Support/Sikulix/Lib/sikuli
[debug] RunTimeSETUP: initAPI: leaving
[debug] FileManager: download to string from:
https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixsetupIDE/1.1.2-SNAPSHOT/maven-metadata.xml,
[error] FileManager: problems while downloading
Remote host closed connection during handshake
[error] RunSetup: Maven download: could not get timestamp nor buildnumber for sikulixsetupIDE#forsetup from:
https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixsetupIDE/1.1.2-SNAPSHOT/maven-metadata.xml
with content:

[debug] FileManager: download to string from:
https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixsetupAPI/1.1.2-SNAPSHOT/maven-metadata.xml,
[error] FileManager: problems while downloading
Remote host closed connection during handshake
[error] RunSetup: Maven download: could not get timestamp nor buildnumber for sikulixsetupAPI#forsetup from:
https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixsetupAPI/1.1.2-SNAPSHOT/maven-metadata.xml
with content:

[debug] RunSetup: command line options:
[debug] RunSetup: options 2 4
[debug (8/01/19 10:35:19 AM)] RunTimeSETUP: exists libs folder at: /Users/weik/Library/Application Support/Sikulix/SikulixLibs_201803080837
[debug (8/01/19 10:35:19 AM)] FileManager: resetFolder:
/Users/weik/Downloads/SetupStuff
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: workDir:
/Users/weik/Downloads
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: workDirDownloads:
/Users/weik/Downloads/Downloads
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: downloadsGeneric:
/Users/weik/Library/Application Support/Sikulix/SikulixDownloads
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: downloadsGenericApp:
/Users/weik/Library/Application Support/Sikulix/SikulixDownloads_201803080837
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: found: python:
/Users/weik/Library/Application Support/Sikulix/SikulixDownloads/jython-standalone-2.7.1.jar
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: tess
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: python25
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: api
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: ide
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: rubyaddons
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: win
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: found: mac:
/Users/weik/Library/Application Support/Sikulix/SikulixDownloads/sikulixlibsmac-1.1.1.jar
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: lux
[debug (8/01/19 10:35:19 AM)] RunSetup: checkDownloads: not found: ruby
[debug (8/01/19 10:35:19 AM)] RunSetup: ... starting with: options 2 4
[debug (8/01/19 10:35:19 AM)] RunSetup: Setup: 1.1.2 2018-03-08_08:37 in folder:
/Users/weik/Downloads
[debug (8/01/19 10:35:19 AM)] RunSetup:
popAsk: --------------------
null
--- Native support libraries for all systems (sikulixlibs...)
--- Package 2 ---
null (Java API)
Only click NO, if you want to terminate setup now!
Click YES even if you want to use local copies in Downloads!
--------------------
[debug (8/01/19 10:35:19 AM)] RunSetup: SilentSetup: Downloading: sikulixlibslux
[debug (8/01/19 10:35:36 AM)] RunSetup: SilentSetup: Downloading: sikulixlibswin
[debug (8/01/19 10:35:52 AM)] RunSetup:
popAsk: --------------------
You have for Mac native libs
/Users/weik/Library/Application Support/Sikulix/SikulixDownloads/sikulixlibsmac-1.1.1.jar
Click YES, if you want to use this for setup processing
... or click NO, to ignore it and download a fresh copy
--------------------
[debug (8/01/19 10:35:52 AM)] RunSetup: Copied from Downloads: sikulixlibsmac
[debug (8/01/19 10:36:00 AM)] RunSetup: Download ended
[debug (8/01/19 10:36:00 AM)] RunSetup: Downloads for selected options:
sikulixlibswin-1.1.1.jar sikulixlibsmac-1.1.1.jar sikulixlibslux-1.1.1.jar null
[debug (8/01/19 10:36:00 AM)] RunSetup:
popError: --------------------
Some of the downloads did not complete successfully.
Check the logfile for possible error causes.
If you think, setup's inline download is blocked somehow on
your system, you might download the appropriate raw packages manually
into the folder Downloads in the setup folder and run setup again.
files to download (information is in the setup log file too)
sikulixlibswin-1.1.1.jar
sikulixlibsmac-1.1.1.jar
sikulixlibslux-1.1.1.jar
null
Be aware: The raw packages are not useable without being processed by setup!
For other reasons, you might simply try to run setup again.
--------------------
[error (8/01/19 10:36:00 AM)] RunSetup: download not completed successfully
[error (8/01/19 10:36:00 AM)] RunSetup: ... terminated abnormally :-(
[debug (8/01/19 10:36:00 AM)] RunSetup:

I think it's because of java -jar sikulixsetup-1.1.2.jar options 2 4 parameters are wrong and we didn't specify a proxy properly.

But with current java -jar *** options 2 4 format, could you enlighten where we could specify proxy host and proxy port number?
Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
2019-01-08
Last query:
2019-01-08
Last reply:
2019-01-08
Best RaiMan (raimund-hocke) said : #1

Sorry, but there is no option to specify the proxy settings in silent setup.
1.1.2 is no longer supported.

Please check 1.1.4, which does not need a setup any more - only a download.

Kevin Wei (kevinwee0712) said : #2

Thanks RaiMan, that solved my question.

Kevin Wei (kevinwee0712) said : #3

Just download 1.1.4 and integrate into my project. It's perfect to resolve all my concerns, thanks again.