Sitemap no longer available when not connected to home network (via OH-Cloud)

Also if I hit refresh many times it eventually will show it which is bizarre.

[{“name”:“uicomponents_page_8fec67aaa5”,“label”:“Test1”,“link”:“https://home.myopenhab.org:443/rest/sitemaps/uicomponents_page_8fec67aaa5",“homepage”:{“link”:“https://home.myopenhab.org:443/rest/sitemaps/uicomponents_page_8fec67aaa5/uicomponents_page_8fec67aaa5”,“leaf”:false,“timeout”:false,"widgets”:[]}}]

That’s what I’m thinking. I have two suggestions:

  1. Try making a new sitemap in MainUI, and change the ID to be “default”.
  2. If that doesn’t work, try making a default.sitemap text file.

Tried both.
added a default.sitemap text file and removed the one in then ui. Shows locally but still doesn’t over OH cloud. If I refresh a ton of times it will show but then refresh the page again… and blank.

so I can hit [https://home.myopenhab.org/rest/items] and refresh it and it always loads, never a blank page. But /rest/sitemaps doesn’t

1 Like

Darn, I thought that would be it. I can’t think of anything else, but I’ll let you know if I do.

Thanks Russ! Only other thing I wonder is having cloud acting weird like that could having more than 1 behind the same public IP (NAt’d though) make it do that? I mean they are different accounts and uuid/secrets. I’d imagine not since I see the requests in the trace each time on the server. Just a random desperate thought.

No, having multiple accounts wouldn’t have any impact. And since you mentioned that your OH2 installation works just fine, that means it’s something to do with OH3.

You could try setting it up from scratch again and using a text-based sitemap immediately. Maybe it can’t recover once you’ve had a sitemap in MainUI.

Same thing here.
Just a blank page for the REST/sitemap url, items work. after 20 + refreshes it shows the list - once than it’s gone again.

I am using a text based sitemap.
Trying from the scratch now and will let you know …

EDIT: Do i have to restart OH?
I deleted every sitemap except for the electric car and the others show up still when i spam refresh on the rest/sitemaps:

[{“name”:“Elektroauto”,“label”:“Elektroauto”,“link”:“https://home.myopenhab.org:443/rest/sitemaps/Elektroauto",“homepage”:{“link”:“https://home.myopenhab.org:443/rest/sitemaps/Elektroauto/Elektroauto”,“leaf”:false,“timeout”:false,“widgets”:[]}},{“name”:“Haus”,“label”:“Haus”,“link”:“https://home.myopenhab.org:443/rest/sitemaps/Haus”,“homepage”:{“link”:“https://home.myopenhab.org:443/rest/sitemaps/Haus/Haus”,“leaf”:false,“timeout”:false,“widgets”:[]}},{“name”:“Waermepumpe”,“label”:"Status Wärmepumpe”,“link”:“https://home.myopenhab.org:443/rest/sitemaps/Waermepumpe",“homepage”:{“link”:“https://home.myopenhab.org:443/rest/sitemaps/Waermepumpe/Waermepumpe”,“leaf”:false,“timeout”:false,"widgets”:[]}}]

I just go into the cloud connector and hit save. It restarts the binding. My sitemaps updated without any restart though. But still acting the same

Can you post your sitemap ? So in the Main UI when editing it, click on the code tab, and paste that here.

FYI myopenhab doesn’t know anything about sitemaps, or any rest call specifically , it simply forwards HTTP requests as serialized objects back through the websocket connection, and then the local binding makes the request on localhost, send the reply back to myopenhab who returns it to the client. So i’m not sure why this is an issue, other then maybe the binding is getting a response from local host it does not understand for sitemaps specifically.

It has been there for a long time now:

I deleted it from the UI and did a text-based one:

# cat default.sitemap
sitemap default label="Testv3"
{
    Switch icon="light" item=ShopPorchLightshelly18caab55fcbb11921681144_Power label="Shop Porch Lights"
    Switch icon="lightbulb" item=ShopLightsshelly18caab56d9e43192168178_Power label="Shop inside lights"
}

OK hopefully this helps, I’ve compared the log difference with DEBUG enabled on the logging for when home.myopenhab.org/rest/sitemaps/ load and when it returns a blank page.
The biggest difference is the last part when it doesn’t load… it gets this:

2022-07-01 15:57:18.150 [DEBUG] [io.openhabcloud.internal.CloudClient] - Received cancel for request 1693493
2022-07-01 15:57:18.151 [DEBUG] [io.openhabcloud.internal.CloudClient] - on(): cancel
2022-07-01 15:57:18.152 [DEBUG] [io.openhabcloud.internal.CloudClient] - Received cancel for request 1693493

When it loads:

2022-07-01 15:56:50.685 [DEBUG] [io.openhabcloud.internal.CloudClient] - on(): request
2022-07-01 15:56:50.687 [DEBUG] [io.openhabcloud.internal.CloudClient] - Got request 1693286
2022-07-01 15:56:50.687 [DEBUG] [io.openhabcloud.internal.CloudClient] - Path /rest/sitemaps/
2022-07-01 15:56:50.688 [DEBUG] [io.openhabcloud.internal.CloudClient] - Method GET
2022-07-01 15:56:50.689 [DEBUG] [io.openhabcloud.internal.CloudClient] - Headers: {"sec-fetch-mode":"navigate","sec-fetch-site":"none","accept-language":"en-US,en;q=0.9","sec-fetch-user":"?1","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9","sec-ch-ua":"\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"102\", \"Google Chrome\";v=\"102\"","sec-ch-ua-mobile":"?0","sec-ch-ua-platform":"\"Windows\"","upgrade-insecure-requests":"1","host":"home.myopenhab.org:443","accept-encoding":"gzip, deflate, br","user-agent":"openhab-cloud/0.0.1","sec-fetch-dest":"document"}
2022-07-01 15:56:50.691 [TRACE] [io.openhabcloud.internal.CloudClient] - Body
2022-07-01 15:56:50.691 [DEBUG] [io.openhabcloud.internal.CloudClient] - Query null
2022-07-01 15:56:50.692 [DEBUG] [io.openhabcloud.internal.CloudClient] - Request method is GET
2022-07-01 15:56:50.693 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header sec-fetch-mode = navigate
2022-07-01 15:56:50.694 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header sec-fetch-site = none
2022-07-01 15:56:50.695 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header accept-language = en-US,en;q=0.9
2022-07-01 15:56:50.695 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header sec-fetch-user = ?1
2022-07-01 15:56:50.696 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header accept = text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
2022-07-01 15:56:50.698 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header sec-ch-ua = " Not A;Brand";v="99", "Chromium";v="102", "Google Chrome";v="102"
2022-07-01 15:56:50.698 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header sec-ch-ua-mobile = ?0
2022-07-01 15:56:50.699 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header sec-ch-ua-platform = "Windows"
2022-07-01 15:56:50.700 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header upgrade-insecure-requests = 1
2022-07-01 15:56:50.701 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header host = home.myopenhab.org:443
2022-07-01 15:56:50.702 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header accept-encoding = gzip, deflate, br
2022-07-01 15:56:50.703 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header user-agent = openhab-cloud/0.0.1
2022-07-01 15:56:50.703 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header sec-fetch-dest = document
2022-07-01 15:56:50.707 [DEBUG] [io.openhabcloud.internal.CloudClient] - onHeaders 1693286
2022-07-01 15:56:50.708 [TRACE] [io.openhabcloud.internal.CloudClient] - Sent headers to request 1693286
2022-07-01 15:56:50.709 [TRACE] [io.openhabcloud.internal.CloudClient] - {"headers":{"Transfer-Encoding":"chunked","Server":"Jetty(9.4.46.v20220331)","Date":"Fri, 01 Jul 2022 15:56:50 GMT","Content-Type":"application/json"},"responseStatusCode":200,"responseStatusText":"OK","id":1693286}
2022-07-01 15:56:50.710 [DEBUG] [io.openhabcloud.internal.CloudClient] - onResponseContent: 1693286, content size 224
2022-07-01 15:56:50.711 [TRACE] [io.openhabcloud.internal.CloudClient] - [{"name":"default","label":"Testv3","link":"https://home.myopenhab.org:443/rest/sitemaps/default","homepage":{"link":"https://home.myopenhab.org:443/rest/sitemaps/default/default","leaf":false,"timeout":false,"widgets":[]}}]
2022-07-01 15:56:50.712 [TRACE] [io.openhabcloud.internal.CloudClient] - Sent content to request 1693286
2022-07-01 15:56:50.713 [DEBUG] [io.openhabcloud.internal.CloudClient] - onComplete: 1693286
2022-07-01 15:56:50.714 [DEBUG] [io.openhabcloud.internal.CloudClient] - Finished responding to request 1693286

And when it doesn’t and just returns a blank:

2022-07-01 15:57:17.821 [DEBUG] [io.openhabcloud.internal.CloudClient] - on(): request
2022-07-01 15:57:17.823 [DEBUG] [io.openhabcloud.internal.CloudClient] - Got request 1693493
2022-07-01 15:57:17.826 [DEBUG] [io.openhabcloud.internal.CloudClient] - Path /rest/sitemaps/
2022-07-01 15:57:17.828 [DEBUG] [io.openhabcloud.internal.CloudClient] - Method GET
2022-07-01 15:57:17.830 [DEBUG] [io.openhabcloud.internal.CloudClient] - Headers: {"sec-fetch-mode":"navigate","sec-fetch-site":"none","accept-language":"en-US,en;q=0.9","sec-fetch-user":"?1","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9","sec-ch-ua":"\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"102\", \"Google Chrome\";v=\"102\"","sec-ch-ua-mobile":"?0","sec-ch-ua-platform":"\"Windows\"","upgrade-insecure-requests":"1","host":"home.myopenhab.org:443","cache-control":"max-age=0","accept-encoding":"gzip, deflate, br","user-agent":"openhab-cloud/0.0.1","sec-fetch-dest":"document"}
2022-07-01 15:57:17.834 [TRACE] [io.openhabcloud.internal.CloudClient] - Body
2022-07-01 15:57:17.836 [DEBUG] [io.openhabcloud.internal.CloudClient] - Query null
2022-07-01 15:57:17.837 [DEBUG] [io.openhabcloud.internal.CloudClient] - Request method is GET
2022-07-01 15:57:17.838 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header sec-fetch-mode = navigate
2022-07-01 15:57:17.839 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header sec-fetch-site = none
2022-07-01 15:57:17.839 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header accept-language = en-US,en;q=0.9
2022-07-01 15:57:17.841 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header sec-fetch-user = ?1
2022-07-01 15:57:17.841 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header accept = text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
2022-07-01 15:57:17.843 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header sec-ch-ua = " Not A;Brand";v="99", "Chromium";v="102", "Google Chrome";v="102"
2022-07-01 15:57:17.844 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header sec-ch-ua-mobile = ?0
2022-07-01 15:57:17.844 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header sec-ch-ua-platform = "Windows"
2022-07-01 15:57:17.846 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header upgrade-insecure-requests = 1
2022-07-01 15:57:17.846 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header host = home.myopenhab.org:443
2022-07-01 15:57:17.848 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header cache-control = max-age=0
2022-07-01 15:57:17.848 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header accept-encoding = gzip, deflate, br
2022-07-01 15:57:17.849 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header user-agent = openhab-cloud/0.0.1
2022-07-01 15:57:17.850 [DEBUG] [io.openhabcloud.internal.CloudClient] - Jetty set header sec-fetch-dest = document
2022-07-01 15:57:17.856 [DEBUG] [io.openhabcloud.internal.CloudClient] - onHeaders 1693493
2022-07-01 15:57:17.856 [TRACE] [io.openhabcloud.internal.CloudClient] - Sent headers to request 1693493
2022-07-01 15:57:17.857 [TRACE] [io.openhabcloud.internal.CloudClient] - {"headers":{"Transfer-Encoding":"chunked","Server":"Jetty(9.4.46.v20220331)","Date":"Fri, 01 Jul 2022 15:57:17 GMT","Content-Type":"application/json"},"responseStatusCode":200,"responseStatusText":"OK","id":1693493}
2022-07-01 15:57:17.859 [DEBUG] [io.openhabcloud.internal.CloudClient] - onResponseContent: 1693493, content size 224
2022-07-01 15:57:17.859 [TRACE] [io.openhabcloud.internal.CloudClient] - [{"name":"default","label":"Testv3","link":"https://home.myopenhab.org:443/rest/sitemaps/default","homepage":{"link":"https://home.myopenhab.org:443/rest/sitemaps/default/default","leaf":false,"timeout":false,"widgets":[]}}]
2022-07-01 15:57:17.861 [TRACE] [io.openhabcloud.internal.CloudClient] - Sent content to request 1693493
2022-07-01 15:57:17.862 [DEBUG] [io.openhabcloud.internal.CloudClient] - onComplete: 1693493
2022-07-01 15:57:17.864 [DEBUG] [io.openhabcloud.internal.CloudClient] - Finished responding to request 1693493
2022-07-01 15:57:18.149 [DEBUG] [io.openhabcloud.internal.CloudClient] - on(): cancel
2022-07-01 15:57:18.150 [DEBUG] [io.openhabcloud.internal.CloudClient] - Received cancel for request 1693493
2022-07-01 15:57:18.151 [DEBUG] [io.openhabcloud.internal.CloudClient] - on(): cancel
2022-07-01 15:57:18.152 [DEBUG] [io.openhabcloud.internal.CloudClient] - Received cancel for request 1693493

There is apparently an interesting information in the last post in the issue, about country setting.

How do you access this list of sitemaps in the Android app? I always find my unique sitemap in the main menu at top of the menu. Is your problem only on case you have several sitemaps?

But on my side, I have the issue of the blank page when I open MainUI (from the Android app) and I am not on the local network,

That looks unbelievable but reseting the country setting in thr server allows me to open MainUI in the Android app when not in the local network.
To be tested by you, maybe it could save your problem with shiwing all sitemaps.

1 Like

That made no different for me. Tried that before.

Same here.