# HTTP UI returns 404

**URL:** <https://community.openhab.org/t/http-ui-returns-404/14800>\
**Category:** Runtime\
**Created:** [October 3, 2016, 8:53pm UTC](https://community.openhab.org/t/http-ui-returns-404/14800 "2016-10-03T20:53:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshproehl](https://community.openhab.org/letter_avatar_proxy/v4/letter/j/c0e974/32.png) [@joshproehl](https://community.openhab.org/u/joshproehl)\
**Post date:** [October 3, 2016, 8:53pm UTC](https://community.openhab.org/t/http-ui-returns-404/14800/1 "2016-10-03T20:53:07Z")

</div>

Upgrading from OH1 on a RPi to OH2 running in a docker image on a full-scale computer. Using the openhab/openhab official docker image, following the guide on the website.

Things appear to be starting up fine according to the log, except there is no UI available via HTTP.

With log level DEBUG I see this:

```auto
2016-10-03 20:26:48.920 [DEBUG] [org.eclipse.jetty.server.Server] - REQUEST GET / on HttpChannelOverHttp@6128aa5d{r=1,c=false,a=DISPATCHED,uri=/} 
2016-10-03 20:26:48.921 [DEBUG] [ax.web.service.spi.model.ServerModel] - Matching [/]...
2016-10-03 20:26:48.921 [DEBUG] [ax.web.service.spi.model.ServerModel] - Path [/] does not match any context

```

Followed by a bunch of debug info that appears related to handling the 404.  
Using `http:list` from the console I get the following:

```
openhab> http:list
ID | Servlet | Servlet-Name | State | Alias | Url
------------------------------------------------------------------------------------------------
11 | ServletContainerBridge | ServletModel-2 | Deployed | /rest | [/rest/*]
135 | IconServlet | ServletModel-7 | Deployed | /icon | [/icon/*]
134 | ChartServlet | ServletModel-5 | Deployed | /chart | [/chart/*]
134 | ProxyServlet | ServletModel-4 | Deployed | /proxy | [/proxy/*]
165 | IconForwarder | ServletModel-11 | Deployed | /images | [/images/*]
160 | AsyncServlet | ServletModel-9 | Deployed | /upnpcallback | [/upnpcallback/*]

```

Those other endpoints appear to work (/rest specifically is returning actual data from my items and sitemaps), so it appears to me that the http server itself is running just fine, I just get that “path does not match any context” error when trying to access / or anything in /static/

The only reference I’ve been able to find for this error is a thread saying “wait 5 minutes”. Waiting over an hour does nothing to resolve the error, so now I’m sort of stuck. Any ideas?

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [October 3, 2016, 10:13pm UTC](https://community.openhab.org/t/http-ui-returns-404/14800/2 "2016-10-03T22:13:51Z")

</div>

I didn’t experience that error. But I am successfully running the official Docker image. I documented my steps and lessons learned in the following link. Perhaps it may give you an idea.

> [@Running openHAB 2 in Docker](https://community.openhab.org/t/running-openhab-2-in-docker/14267):
>
> Please see the [Docker Installation Page](https://docs.openhab.org/installation/docker.html) and [DockerHub Readme](https://hub.docker.com/r/openhab/openhab/) for the most recent instructions. Update Jan 30, 2018 Upgrades are now handled by the container. Update Jan 20, 2017 This update is an almost complete rewrite of the tutorial to comply with recent changes to OH and in preparation of moving the tutorial to the official docs. Update Nov. 12 The latest build as of Nov. 10 #579 reworks the locations of a lot of config files moving them from runtime/karaf/etc and rutime/etc to userdata/et…

---

<div class="post-metadata">

**Author:** ![joshproehl](https://community.openhab.org/letter_avatar_proxy/v4/letter/j/c0e974/32.png) [@joshproehl](https://community.openhab.org/u/joshproehl)\
**Post date:** [October 5, 2016, 4:36pm UTC](https://community.openhab.org/t/http-ui-returns-404/14800/3 "2016-10-05T16:36:51Z")

</div>

Your excellent notes were exactly what I used to get things started actually. 🙂  
It looks like the problem was in my migrated config files, although I haven’t yet been able to figure out exactly where. I was able to resolve this issue by frying my conf directory and re-importing the entire conf.dist folder. With a default conf folder the UI is startid up now, so I’ll start importing my old configs one at a time to see if I can figure out what was causing the crash.

For anyone in the future reading this:  
With an empty directory mounted to the container’s /openhab/conf (as shown in the links above)

```auto
docker -it exec CONTAINER_NAME bash
cp -r /openhab/conf.dist/* /openhab/conf/

```

Will copy a nice clean conf directory to your docker host’s conf folder, and you can get started customizing from there!
