Sitemaps are gone

I recently updated to Openhab 2.5.1-2.

But now in my App and Webgui there is a hint that no Sitemap can be found.
Even ist i creat a test.sitemap file in Sitemaps folder it isn’t shown:

sitemap test label="test" {
Switch item=TestButton
String item=Testestring

Do you have any idea, how to solve this?

Did you try restarting openHAB or clearing the cache?
When I last updated OH did not read my Items files until I restarted. Some have reported needing to restart up to 3 times.

1 Like

What is the name of your sitemap file? It HAS TO BE test.sitemap! Is the name of the second item written correctly?

I restarted openhab, but not sure how to clear the cache.

Yes it is of both sitemaps, as it was b4 when it worked.
I know everyone say that, but I did not change anything in the sitemaps, just wanted to use my test item to test a new rule.

1 Like

clearing cache didn’t solve this issue.

user@openhab2:~$ ls -la /etc/openhab2/sitemaps
total 28
drwxr-xr-x  2 openhab openhab 4096 Apr  4 12:08 .
drwxr-xr-x 14 openhab openhab 4096 Oct  6  2018 ..
-rwxrw-r--  1 openhab openhab 5123 Apr  4 11:59 Casa_Brehm.sitemap
-rwxrw-rw-  1 openhab openhab 2556 Feb 24  2019 homebuilder.sitemap.bak
-rw-rw-r--  1 openhab openhab  241 May 28  2018 readme.txt
-rwxrw-rw-  1 openhab openhab   87 Jan 13  2019 test.sitemap

Here are the sitemaps and none is seeable

user@openhab2:~$ less /etc/openhab2/sitemaps/test.sitemap
sitemap test label="test" {
    Switch item=TestButton
    String item=Testestring

I have no ideal why this is…

No errors in the logs if you update the file by adding a blank line, for instance?

2020-04-18 18:08:50.882 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'test.sitemap' has errors, therefore ignoring it: [3,5]: mismatched input 'String' expecting '}'

Oh dear…
Sry for bothering you and thanks for ur help. Its working now.