Setting up Porxy on openHAB v2

Tags: #<Tag:0x00007f61733469b8> #<Tag:0x00007f61733468c8> #<Tag:0x00007f6173346800>

Hello All,

I am new here.

I wanted to install openHAB v2 and I get the following error during ui download. (OS: win7)

My computer has a proxy setting. Without this I can not go to any page on the internet in my workplace. https://dl.bintray.com/openhab/mvn/online-repo/2.1/ Why do I get the following error, even though it is accessed via my browser?

How do I set up a proxy in openHAB?

2017-11-02 14:34:46.613 [WARN ] [url.mvn.internal.AetherBasedResolver] - Error resolving artifact org.openhab.core:org.openhab.ui.paperui:jar:2.1.0: [Could not transfer artifact org.openhab.core:org.openhab.ui.paperui:jar:2.1.0 from/to openhab: Connect to [dl.bintray.com/159.122.18.156] failed: connect timed out]
java.io.IOException: Error resolving artifact org.openhab.core:org.openhab.ui.paperui:jar:2.1.0: [Could not transfer artifact org.openhab.core:org.openhab.ui.paperui:jar:2.1.0 from/to openhab: Connect to failed: connect timed out]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:720)[7:org.ops4j.pax.url.mvn:2.5.2]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:659)[7:org.ops4j.pax.url.mvn:2.5.2]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:600)[7:org.ops4j.pax.url.mvn:2.5.2]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:567)[7:org.ops4j.pax.url.mvn:2.5.2]
at org.apache.karaf.features.internal.download.impl.MavenDownloadTask.download(MavenDownloadTask.java:36)[8:org.apache.karaf.features.core:4.0.8]
at org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:60)[8:org.apache.karaf.features.core:4.0.8]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_131]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_131]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[:1.8.0_131]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.8.0_131]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_131]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_131]
at java.lang.Thread.run(Thread.java:748)[:1.8.0_131]
Caused by: shaded.org.eclipse.aether.resolution.ArtifactResolutionException: Error resolving artifact org.openhab.core:org.openhab.ui.paperui:jar:2.1.0
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294)
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:705)[7:org.ops4j.pax.url.mvn:2.5.2]
… 12 more
2017-11-02 14:34:46.621 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-ui-basic, openhab-ui-habpanel, openhab-ui-paper’: Error

There is your error. Your openHAB can’t a connection. Try pinging the IP from openHAB system.
Does this help?
http://docs.openhab.org/installation/security.html#nginx-reverse-proxy

Hi Elias,

I access on browser this site and pinging… http://dl.bintray.com/openhab/mvn/online-repo/2.1/

My error is related that: (i cant add 3 links in my answer because i am newbie for this forum)

java.io.IOException: Error resolving artifact org.openhab.core:org.openhab.ui.paperui:jar:2.1.0: [Could not transfer artifact org.openhab.core:org.openhab.ui.paperui:jar:2.1.0 from/to openhab (https://dl.bintray.com/openhab/mvn/online-repo/2.1/):

I think openHAB cant use my proxy and I set java proxy but didnt work.