Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


HTTP ERROR 404 : when restart the karaf

asked 2014-11-04 08:08:42 -0700

updated 2014-11-04 08:09:27 -0700

I am using karaf opendaylight distribution as controller, but I am not able to see the web gui at http://localhost:8181/dlux/index.html . For the first run (after installing the required features) it comes properly but when I started the karaf for the second time, the web url start throwing

HTTP ERROR:404 Problem accessing /dlux/index.html. Reason: not found

I will appreciate the help to resolve this issue.

edit retag flag offensive close merge delete


What does this command print 'http:list | grep flux' below is sample of working setup opendaylight-user@root>http:list | grep dlux 334 | ResourceServlet | /pages | Deployed | /dlux | [/dlux/*]

Chris O'Shea ( 2014-11-04 11:54:16 -0700 )edit

Mine gives nothing, but when I do 'http:list' it gives 238 | ResourceServlet | default | Deployed | / | [/] Still localhost not working

rizasif ( 2015-04-08 23:46:54 -0700 )edit

4 answers

Sort by ยป oldest newest most voted

answered 2014-11-04 22:27:58 -0700

jamoluhrsen gravatar image

in your distribution directory in the etc/ folder you'll find a file "org.apache.karaf.features.cfg". You can configure the features you want to install by default when you start karaf. Look for the featuresBoot config line. for example, my controller has this:

edit flag offensive delete publish link more


Just a 2cents... odl-integration-compatible-with-all is basically importing the world so you likely would not like to boot every existing features.. I also do find it strange . If it is still happening please get in touch with me.

mlemay ( 2014-11-05 10:36:43 -0700 )edit

@Chris, I am new to this ODL...I have downloaded distribution-karaf-0.2.3-Helium-SR3 & have installed these features odl-bgpcep-all, odl-mdsal-clustering, odl-restconf, odl-l2switch-switch-ui, odl-openflowplugin-flow-services-ui. I am also seeing the same issue "Problem accessing /dlux/index.html. Reason: Not Found". with http://localhost:8181/dlux/index.html I checked the file etc/org.apache.karaf.features.cfg & this is what I see featuresBoot=config,standard,region,package,kar,ssh,management Kindly help me in resolving this. thanks, Sanjib

sanjibdas ( 2015-05-08 05:39:40 -0700 )edit

with feature:list I can see odl-dlux-core is installed...but http:list doesn't show anything for me

sanjibdas ( 2015-05-08 05:47:39 -0700 )edit

answered 2014-11-04 11:57:51 -0700


Can you check the bundle is loaded, run the command http:list | grep dlux at the karaf console.

below is a sample of working system:

opendaylight-user@root>http:list | grep dlux
334 | ResourceServlet   | /pages                    | Deployed    | /dlux | [/dlux/*]
edit flag offensive delete publish link more


thanks @Chris, bundle was not loaded, so i installed it using the `feature:install odl-restconf odl-l2switch-switch odl-mdsal-apidocs odl-dlux-core` and it worked. But I have to execute feature:install on each restart of karaf, otherwise it throws same error.

subhash ( 2014-11-04 22:01:20 -0700 )edit

That's strange, can you check the features are still loaded after restart ` feature:list -i `and then the check the bundles are active. Cause if you don't delete the ./data/ directory then it should be the same feature, also still an issue Jamo explain how to do it with feature boot

Chris O'Shea ( 2014-11-05 06:57:34 -0700 )edit

May be he's using "./bin/karaf clean" to start?

muharif ( 2015-11-24 16:06:11 -0700 )edit

answered 2015-11-24 13:53:53 -0700

crohan gravatar image


When I run the command [ http:list | grep dlux ], I get the following output: opendaylight-user@root>http:list | grep dlux 249 | ResourceServlet | /dlux | Deployed | / | [/]

So I needed to change the url from http://localhost:8181/dlux/index.html to http://localhost:8181/index.html

Not sure if that was as a result of something I did with the install or something new with distribution-karaf-0.3.0-SNAPSHOT?

Anyway hope that helps someone who comes across the same issue?

edit flag offensive delete publish link more

answered 2015-11-24 16:09:55 -0700

muharif gravatar image

Hi @subhash,

Sometimes you just need to wait for few more minutes for the DLUX to run properly (in my VBOX, it's up to 15 mins). Another problem that you might encounter but can be solved by waiting for few mins is the authentication problem to DLUX or even the restconf ("Unable To Login" or "Auth not found" error).

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-11-04 08:08:42 -0700

Seen: 4,833 times

Last updated: Nov 24 '15