almond
almond copied to clipboard
Offline install
Hi,
I have the need to install jupyter-scala on a system running RHEL 6.7, jupyterhub 0.6.1 and jupyter 4.1.0 on an "offline" system with no access to repo1.maven.org.
I did an install on a system with the same configuration with internet connectivity, collected all of the packages that were downloaded into .jupyter-scala/bootstrap and moved them to the same location on the offline system and installed jupyter-scala with the following command.
./jupyter-scala --force --global Generated /usr/share/jupyter/kernels/scala211/kernel.json
Run jupyter console with this kernel with jupyter console --kernel scala211
Use this kernel from Jupyter notebook, running jupyter notebook and selecting the "Scala 2.11" kernel.
The output was identical to output on the online server, however when I connect to the the jupyterhub instance and try to launch a Scala 2.11 notebook I see errors about not being able to connect to https://repo1.maven.com in the jupyterhub logs (pasted below).
I put all of the files on a local web server, ran the install again using --force and -r http://localserver.mydomain.com/maven2 , still with no no luck.
Any ideas how to get an offline install to work?
Thanks,
Thomas
[I 2016-06-30 17:32:32.507 scalauser kernelmanager:89] Kernel started: bf49f006-2129-457e-9973-daf242a41022 Error while downloading https://repo1.maven.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.4/scala-parser-combinators_2.11-1.0.4.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it Error while downloading https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.11.8/scala-compiler-2.11.8.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it Error while downloading https://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.11/1.0.4/scala-xml_2.11-1.0.4.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it Error while downloading https://repo1.maven.org/maven2/com/github/alexarchambault/jupyter/kernel_2.11/0.3.0-M5/kernel_2.11-0.3.0-M5.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it Error while downloading https://repo1.maven.org/maven2/com/github/alexarchambault/jupyter/scala-api_2.11.8/0.3.0-M3/scala-api_2.11.8-0.3.0-M3.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it [I 2016-06-30 17:32:35.506 scalauser restarter:103] KernelRestarter: restarting kernel (1/5) Error while downloading https://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.11/1.0.4/scala-xml_2.11-1.0.4.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it Error while downloading https://repo1.maven.org/maven2/com/github/alexarchambault/jupyter/scala-api_2.11.8/0.3.0-M3/scala-api_2.11.8-0.3.0-M3.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it Error while downloading https://repo1.maven.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.4/scala-parser-combinators_2.11-1.0.4.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it Error while downloading https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.11.8/scala-compiler-2.11.8.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it Error while downloading https://repo1.maven.org/maven2/com/github/alexarchambault/jupyter/kernel_2.11/0.3.0-M5/kernel_2.11-0.3.0-M5.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it Error while downloading https://repo1.maven.org/maven2/com/github/alexarchambault/ammonium/interpreter_2.11.8/0.4.0-M6-1/interpreter_2.11.8-0.4.0-M6-1.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it [I 2016-06-30 17:32:38.515 scalauser restarter:103] KernelRestarter: restarting kernel (2/5) Error while downloading https://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.11/1.0.4/scala-xml_2.11-1.0.4.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it Error while downloading https://repo1.maven.org/maven2/com/github/alexarchambault/ammonium/interpreter_2.11.8/0.4.0-M6-1/interpreter_2.11.8-0.4.0-M6-1.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it Error while downloading https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.11.8/scala-compiler-2.11.8.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it Error while downloading https://repo1.maven.org/maven2/com/github/alexarchambault/jupyter/kernel_2.11/0.3.0-M5/kernel_2.11-0.3.0-M5.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it Error while downloading https://repo1.maven.org/maven2/com/github/alexarchambault/jupyter/scala-api_2.11.8/0.3.0-M3/scala-api_2.11.8-0.3.0-M3.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it Error while downloading https://repo1.maven.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.4/scala-parser-combinators_2.11-1.0.4.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it [I 2016-06-30 17:32:41.522 scalauser restarter:103] KernelRestarter: restarting kernel (3/5) Error while downloading https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.11.8/scala-compiler-2.11.8.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it Error while downloading https://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.11/1.0.4/scala-xml_2.11-1.0.4.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it Error while downloading https://repo1.maven.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.4/scala-parser-combinators_2.11-1.0.4.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it Error while downloading https://repo1.maven.org/maven2/com/github/alexarchambault/jupyter/scala-api_2.11.8/0.3.0-M3/scala-api_2.11.8-0.3.0-M3.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it Error while downloading https://repo1.maven.org/maven2/com/github/alexarchambault/ammonium/interpreter_2.11.8/0.4.0-M6-1/interpreter_2.11.8-0.4.0-M6-1.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it Error while downloading https://repo1.maven.org/maven2/com/github/alexarchambault/jupyter/kernel_2.11/0.3.0-M5/kernel_2.11-0.3.0-M5.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it [W 2016-06-30 17:32:44.311 scalauser handlers:201] Timeout waiting for kernel_info reply from bf49f006-2129-457e-9973-daf242a41022 [I 2016-06-30 17:32:44.528 scalauser restarter:103] KernelRestarter: restarting kernel (4/5) WARNING:root:kernel bf49f006-2129-457e-9973-daf242a41022 restarted Error while downloading https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.11.8/scala-compiler-2.11.8.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it Error while downloading https://repo1.maven.org/maven2/com/github/alexarchambault/ammonium/interpreter_2.11.8/0.4.0-M6-1/interpreter_2.11.8-0.4.0-M6-1.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it Error while downloading https://repo1.maven.org/maven2/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.4/scala-parser-combinators_2.11-1.0.4.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it Error while downloading https://repo1.maven.org/maven2/com/github/alexarchambault/jupyter/scala-api_2.11.8/0.3.0-M3/scala-api_2.11.8-0.3.0-M3.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it Error while downloading https://repo1.maven.org/maven2/com/github/alexarchambault/jupyter/kernel_2.11/0.3.0-M5/kernel_2.11-0.3.0-M5.jar: java.security.cert.CertificateException: No name matching repo1.maven.org found, ignoring it [W 2016-06-30 17:32:47.534 scalauser restarter:95] KernelRestarter: restart failed [W 2016-06-30 17:32:47.534 scalauser kernelmanager:54] Kernel bf49f006-2129-457e-9973-daf242a41022 died, removing from map. ERROR:root:kernel bf49f006-2129-457e-9973-daf242a41022 restarted failed! [W 2016-06-30 17:32:47.945 scalauser handlers:463] Kernel deleted before session [W 2016-06-30 17:32:47.945 scalauser log:47] 410 DELETE /user/scalauser/api/sessions/652e5466-7013-4e31-ad7b-2b066fd57baa (10.1.129.5) 1.70ms referer=http://scalasystem56.mydomain.com:8000/user/scalauser/notebooks/Untitled8.ipynb?kernel_name=scala211 [I 2016-06-30 17:34:32.801 scalauser handlers:179] Saving file at /Untitled8.ipynb
I'm also interested in this, for running behind a corporate firewall.
These instructions (currently in the develop branch should allow to do that, once the issue described there is addressed.
Is there any follow up on this one? The link in the answer is not valid anymore... How this kernel can be installed offline with all the dependencies etc? Thanks!