Since 2 days ago, i suddenly cannot make connection from outide my own local network.
I changed nothing so i hoped to solve it with a restart but same result. Within my own network everything works fine. Also the Openhab App on my iphone works fine, but when i’m outside my local network and try to reach it it doesnt work. Also my cloud connector keeps saying that i/m offline, so google home app does’t work anymore either.
I restarted my router, OpenHab etc, but no result. When i try to reach myOpenhab with the external Url link : https://myopenhab.org:443 nothing happens…
For 5 years i had no issues at all untill 2 days ago…Did something change? do i have to update something? Do i have to open a port in the router? What can i do?
I’m located in the netherlands. and as i said before everything was working well the last 5 years! In can reach myopenhab.org also from outside so that’s not the problem, but when i login it keeps saying that i’m offline.as long as i’m trying within my local network with ,phone , laptop etc everything works fine…
Your openHAB will not show as online until it can reach myopenhab.org. The machine running OH cannot reach the server.
This shows that you cannot reach myopenhab.org from your LAN.
Something changed in the past couple of days on the machine running OH, on your LAN, or in your ISP that has made it so you cannot reach myopenhab.org from the mcahine running OH.
Nothing has changed on myopenhab.org.
The server is up and reachable. Even you can reach the server from outside your LAN.
The problem is something is blocking your access from your LAN. Beyond that . We are not on your LAN, have no idea how it’s set up, and nothing changed to the myopenhab.org server. We can’t fix this for you.
@rlkoshak Stop posting when i’m about to write the same So i’ll add some tips now instead of posting an almost identical answer like yours
@Koert_Nuijten
I’d login to the openhab system and try a traceroute to find out where the connection gets blocked.
So you maybe can isolate it to a specific connection
But again, please also have a look into the logs from openhab what they are telling.
First of all ,thanks for all your answers and your time for looking into my problem.
I will try the different option you guys propose although i don’t know how to trace route my ooenhab … You wrote that in probably can’t reach myopenhab.org from my machine that runs openhab but when i go to myopenhab.org in a browser on that machine i have no problems to reach it and it also says again that myopenhab is offline …but then again ,that’s on my local network. so problem must be a failure in connection from outside to the machine that runs openhab…i will look further now at least i know that the problem has to be found there and noting has changed…thanks again guys…
You may have to install it but the command is literally traceroute myopenhab.org. This will report all the hops the packets make on their journey to the myopenhab.org server. It it’s getting stopped somewhere that will show up.
This is a Windows machine? Or a Mac, or a Linux machine running a desktop?
Windows particularly has an aggressive firewall which might block certain processes liek openHAB from setting up connections to outside websites. Mac and Linux also have firewalls.
No, that’s not how the cloud server works. It’s your openHAB instance that initiates the connection to the cloud server. The cloud server cannot and should not be able to ever reach inside your LAN because your LAN shouldn’t be exposed to the internet like that. The openHAB Cloud Connector add-on initiates the connection and the cloud server works within that connection. If there is a failure, it’s that your openHAB cannnot reach the cloud service.
And again, as long as OH cannot reach the cloud server, the cloud server is going to show it’s offline, whether you are on your LAN or not.
Note that the iOS and Android apps recongize when you are on your LAN or not and tries to connect to OH directly when you are on your LAN and do not use the cloud server.
Thanks for trying to add relevant info, your case might be totally different. So let’s stick to the OP’s case and focus on that.
I would definitely like to see the traceroute.
Because you are able to reach myopenhab.org from other devices on the same LAN, I’m pretty sure the issue is somewhere around your openHAB host. Could you share your network config? (ifconfig) Do you have firewalls or pi-hole or other network related stuff that might be relevant?
Thanks again,
So…here’s a screenshot of the machine running OH.
It’s a windows machine on W10 directly connected to my router.
As you can see, OH is running fine, but cloudserver keeps telling that OH is offline.
I know that my iphone app automaticly connect to my local lan and that evenrything is working fine.
Only problem i have is from the outside .
I shut down firewall in Windows & also in my router but still same result.
I traceroute openhab.org on that same machine but i don’'t know how to read it?
So question is still; why OH can’t reach the cloudserver, do i have to forward port 443?
For me it remains a strange thing , nothing has changed in my setup and all was running fine for the last 5 years, untill 5 days ago…
myopenhab.org doesn’t respond to pings. But the service is online. You can check with the URL above, bringing up the web browser, or running a scan to see that port 443 is accepting connections.
Yoou have people opn this thread who do. But please don’t post sccccccreen shots. Post the text.
Do not port forward anything. Again, the myopenhab.orf service does not initiate any connections to your LAN. You only open ports to accept connections from the Internet.
Did you see my traceroute? if i can reach myopenhab.org from a browser on the same machine running OH ,why then does my runningOH can’t connect. It can’t be a firewall then i guess …? any suggestions where to look now?
The traceroute does not show anything weird. Previously I misunderstood your case. You confirmed now that you can access myopenhab.org from the same device. There might still be a firewall that blocks Java or openHAB to access the cloud, while the same firewall allows your browsers just for a short test it would be useful to disable any firewall and restart openHAB.
I also noticed you use a very old openHAB version 2.5.1 personally I don’t use the cloud connector, so I might be wrong. But it might be needed to upgrade. As a test you could download the latest stable and install it side by side to do a short check if that version connects.
Last option would be to open the cloud binding page, revise settings and start the cloud connector binding in debug level logging. Maybe the log shows something interesting.
That’s what i did, disabled it on Windows and even on my router.
I would like to try that but since everything worked perfectly the last 5 years so i never dit that before and now have a big gap between 2.5.1 and the latest. Is it even possible to install the latest aside my other one and can i also move my setup (things,sitemap etc…) to the new one without problems.?
Is there a program or script or way to easily update my old version to the newest?
Start with a backup.
I would certainly suggest to update. I now realise a side by side won’t work because java17 is mandatory for openHAB 4.x
The upgrade path depends on the used bindings. Personally I would install a fresh installation and per binding things items and rules. To keep the steps as small as possible.
Not sure if you want to check other things before upgrading as it may or may not fix the cloud problem.
There was a change to the cloud server not too lopng ago which dropped support for the OH 1.x. But OH 2.5 should still work. And this was changed months ago, not days ago. If that were the problem it wouldn’t just be showing up now.
OH 2.5 doesn’t have to change the logger level through the UI. The log4j2.properties file needs to be edited or the logger changed through the karaf console.
It’s possible but not super easy on Windows.You’ll have to modify the settings of the new one to use different networking ports to run them both side by side. And of course there’s the Java versions issue, though it’s possible to have more than one version of Java installed at the same time so that’s overcomable as well.
Note, if you are using any 1.x version bindings you’ll have to redo those configurations. OH 3+ do not support OH 1.x bindings.
Unfortunately, when you don’t upgrade periodically because what you have “just works”, you are mainly just delaying the work, not avoiding the work. Eventually something will change outside your control that will force an update. I don’t think that’s happening here because nothing really change on the OH Cloud.
That’s what I thought. I don’t feel like doing the whole installation again and hoping that it might work. I do use 32 things,7 bindings and 4 rules and it just takes too much time. The worst part is that it’s probably a very small simple thing to get it working again. I understand that every now and then devices, software etc. need to be updated, but despite the fact that OpenHab is a great program, I think it’s a big shortcoming that the versions can’t be easily updated while maintaining the setup.
Well, you can, but don‘t expect easy migration from 2! major versions back to the latest. Too much has changed in the meantime, some changes had to be made cause of the Java version requirements.
And just to elaborate on @hmerk’s answer, OH has added an upgradeTool which will make changes to your config as part of the upgrade process which covers most of the breaking changes between versions.
Rules languages like JS Scripting and jRuby have helper libraries which are also able to shield the end users from a lot of breaking changes in Rules.
openHABian does a lot to automate upgrades as well.
Over the years the upgrade process for OH has become much better and much less disruptive. Based on the activity on the forum, I think the majority of people were able to upgrade between OH 3 and OH 4 without needing to make any changes to their configs.
But, as with any software, the longer you wait to upgrade/update, the less able such tools and processes will be to aide in the upgrade and the more work you will have to do to update.