HTTP ERROR 500 - Sitemap 'default' could not be found

If you have installed OH1 and OH2 in parallel in the same host, try to stop the OH1 service and check OH2 again.

Where do you see info about openhab in SSH?

Ok run sudo systemctl stop openhab.service but now i get page cannot be display,
Run sudo systemctl Start openhab2.service but still - The page cannot be displayā€¦

About the SSH

Work!!! i try with Other browser after i trun the Start openhab2.service.

1 Like

can i just delete the folder OH1 ?

Excellent!

If you are migrating from OH1, check the following:
http://docs.openhab.org/tutorials/migration.html

If not (and just had an empty OH1 deployment, just uninstall OH1 to avoid conflicts with OH2)

how do i uninstall? ca i just delete the folder OH1 ?

Big Thanks DIM!!

apt-get remove openhab will remove the package
Or
apt-get purge openhab will remove the package and the associated sub-directories and config files

pi@raspberrypi:~ $ sudo apt-get purge openhab
Reading package listsā€¦ Done
Building dependency tree
Reading state informationā€¦ Done
E: Unable to locate package openhab

i will try to read about it, big big Thanks!

i will play with this now.

I may be wrongā€¦ I donā€™t remember if openHAB 1 came as a packageā€¦ (never used it myself)

You can remove the OH1 directories and also do systemctl disable openhab

1 Like

His path is correct for apt-get installed openHAB2. You have a manual installation.

Thank you Dim . I worked 2 hours and then good shot with your help .

Just for completeness, I received a slightly different HTTPT ERROR 500 message "Server Error"
If someone else comes across this, then to save you hours of time, assuming you have everything else setup correctly (site map name, file in correct location, name configured as default in PaperUI), then the problem is likely the fact that youā€™re using Notepad++ for editing the configuration files and you have inadvertently set the encoding as ā€œEncode in UTF-8ā€. Change to ā€œEncode in UTF-8-BOMā€ and save, voila - the page will load. I literally spent days on this issue!!! The below is the actual error under Classic UI. under Basic UI youā€™ll get the ā€œIt seems like you have not defined any sitemaps yet.ā€ message if the encoding is wrong

**

HTTP ERROR 500

Problem accessing /classicui/app. Reason:

Server Error

Caused by:

javax.servlet.ServletException: Sitemap ā€˜homeā€™ could not be found
at org.eclipse.smarthome.ui.classic.internal.servlet.WebAppServlet.service(WebAppServlet.java:169)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:287)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.eclipse.smarthome.ui.classic.render.RenderException: Sitemap ā€˜homeā€™ could not be found
at org.eclipse.smarthome.ui.classic.internal.servlet.WebAppServlet.service(WebAppServlet.java:130)
ā€¦ 21 more

1 Like

@chimeranzl Thanks for posting this about encoding. I checked this out as a possible answer to my ā€œsitemap could not be foundā€ problem. I either use leafpad or nano for editing so did not expect an issue with encoding.
My problem arose when I did an openhabian update to 2.1.0. Following the update I got a similar message to yours. There had been no change to the sitemap file just the update process.
I made a new copy of the sitemap file and still get the error. Also get the basicui error message you got.
Perhaps I am not creating the new file with the UTF-8-BOM encoding.

Ok an update.
I created a further new file using Geany with the option Write Unicode BOM and scpā€™d it to the Pi. The file size showed that it was 3 chars longer so I guess that is the BOM signature but this is all new to me. End result was that the sitemap is still being reported as not found. And yes it is present in the required locations.

I had the same error when i upgraded to 2.1.0.
The new version i think is very strict with the sitemap file, if there is just one error in your structure in the file, the error appears. I worked my file with SmartHome Designer and corrected all the errors in the sitemap file that it reported back to me and voila, the sitemap could be read again from openhab.

Thanks for the SmartHome Designer tip. As you say when you get rid of the errors OH is happy again. Need to continue to hone my sitemap editing skills.

OK, I am having the same issue but just did a clean istall of OpenHabian, basic UI works fine (Sort of) but classic UI I get the error. As for the sort of on basic ui i only have my garage door so far and it opens and closes but nothing but the switch updates.

HTTP ERROR 500
Problem accessing /classicui/app. Reason:

Server Error

Caused by:
javax.servlet.ServletException: Sitemap ā€˜Homeā€™ could not be found
at org.eclipse.smarthome.ui.classic.internal.servlet.WebAppServlet.service(WebAppServlet.java:205)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:284)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
at org.eclipse.jetty.server.Server.handle(Server.java:534)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.eclipse.smarthome.ui.classic.render.RenderException: Sitemap ā€˜Homeā€™ could not be found
at org.eclipse.smarthome.ui.classic.internal.servlet.WebAppServlet.service(WebAppServlet.java:166)
ā€¦ 26 more
Caused by:
org.eclipse.smarthome.ui.classic.render.RenderException: Sitemap ā€˜Homeā€™ could not be found
at org.eclipse.smarthome.ui.classic.internal.servlet.WebAppServlet.service(WebAppServlet.java:166)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:284)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
at org.eclipse.jetty.server.Server.handle(Server.java:534)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
at java.lang.Thread.run(Thread.java:748)

Usually the reason for a problem with the sitemap, is user errorā€¦ie a bad line of code. I would suggest checking over your sitemap. Use the logs, they are your friend.

Logs are only showing the same error as the classic UI had above. I did a fresh install and just did a demo item only. The Basic UI works, it finds the sitemap and functions fine. I am running openhabian 2.3.0-1 on Raspberry Pi 3. Editing with Nano

I believe I read somewhere that the classic UI was depreciated and would no longer be maintained. I believe i read it from @rlkoshak.