Ask Your Question
0

Can't install certain features in helium odl controller

asked 2014-11-26 22:12:12 -0700

hiba gravatar image

When I try to install certain features in the helium karaf container, I get the following error

"Error executing command: Error resolving artifact org.json:json:jar:20080701: Could not transfer artifact org.json:json:jar:20080701 from/to central ( http://repo1.maven.org/maven2/ ): Error transferring file: Connection refused"

How do I resolve this error?

edit retag flag offensive close merge delete

Comments

We're going to need more details. How did you get ODL? Pre-built from downloads page or built from source? Which version of ODL? What did you do to stand it up? What exactly did you tell the Karaf shell to do (install)?

dfarrell07 ( 2014-12-02 10:34:31 -0700 )edit

I got the odl pre-built from downloads. This is the zip file: distribution-karaf-0.2.1-Helium-SR1.zip. Version is helium SR1 which is the latest one released in November.I unzipped the file and followed the installation guide. I ran the distribution with ./bin/karaf. I successfully got the prompt. When I do feature:install odl-restconf odl-l2switch-switch odl-mdsal-apidocs odl-dlux-core Error executing command: Error resolving artifact org.json:json:jar:20080701: Could not transfer artifact org.json:json:jar:20080701 from/to central (http://repo1.maven.org/maven2/): Error transferring file: Connection refused opendaylight-user@root>feature:install odl-reException in thread "Thread-37" java.net.BindException: Address already in use at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:444) at sun.nio.ch.Net.bind(Net.java:436) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSo

hiba ( 2014-12-04 02:52:11 -0700 )edit

I get this error and "address already in use" exception. Please help me resolve this error.

hiba ( 2014-12-04 02:54:07 -0700 )edit

"address already in use" sounds like you already have ODL running. Does `pgrep java` show unexpected running Java processes?

dfarrell07 ( 2014-12-05 07:32:34 -0700 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-12-03 21:14:29 -0700

jamoluhrsen gravatar image

updated 2014-12-03 21:15:14 -0700

This looks a lot like a known issue in Helium. (see bug here)

Maybe you need a proxy set in your .m2/settings.xml , or maybe you don't have any connection to the external repos.

edit flag offensive delete publish link more

Comments

What proxy settings should I exactly change in the .m2/settings.xml file?

hiba ( 2014-12-04 02:56:39 -0700 )edit

see the maven guide for proxy settings http://maven.apache.org/guides/mini/guide-proxies.html, but as dfarrell07 noted, the "address already in use" is something to investigate first.

jamoluhrsen ( 2014-12-05 14:14:18 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-11-26 22:12:12 -0700

Seen: 1,177 times

Last updated: Dec 03 '14