Hello,
i’m new of openhab and i try to use with a lot of guide on internet, but i fall in a difficult problem to resolve.
I installed a cloudconnector from Add-On, i registered on myopenhab and that works correctly. but if i acces on myopenhab.org i found this message:" Your openHAB is not online. Please check if your installation is running or recheck the openHAB settings in your account.". i can’t resolve this problem. i can’t find a /var/lib/openhab/secret and uuid. that’s impossible to resolve for me.
Can everyone help me please?!
Thanks a lot.
I use on Linux arm64 from ssh connection.
Please post you complete environment and method of installation.
hint: if it’s a raspberry Pi, it’s highly recommended to use openHABian:
Login to karaf console and check where openhab.userdata points to:
openhab-cli console
enter
env | grep -i openhab.userdata
This points to /var/lib/openhab/ for deb packages.
In case you use a zip / tar file installation the location might be a different one.
your screenshot shows
openhab.userdata /openhab/userdata
That means you will find uuid and secret at:
/openhab/userdata/uuid resp. /openhab/userdata/openhabcloud/secret
Ok, i understand that, but i don’t know where is the directory /openhab. How can i know where is located? can you give me a commad to find the directory? thanks.
That ( /openhab/userdata ) is the absolute path of the directory userdata.
In Linux environments “/” is the root-directory. That means the top directory you can have.
Every other directory is below the root directory.
You need to ssh into the computer that hosts your OH instance.
Then do
cd /openhab/userdata
in the ssh shell at command prompt.
Doing
ls
there you can get a listing ( ls ) of the directory content.
That might help a bit:
Sorry mate but i haven’t this directory. i have only one directory that maybe is the same and is /opt/openhab/userdata, but is empty. I don’t found any other directory. i don’t know where is the directory you said. what i can doing?
that is strange as the OH is configured to use that directory.
the userdata dir that is used by openhab must contain data.
Let’s try something else:
sudo find / -type d -name openhabcloud
that should find the openhabcloud directory that contains the secret.
Next to this directory the uuid should be located.
this is the result. i can’t find a uuid file, but there is a secret file. if it is correct…
I don‘t know if your system is like my system, but I found my UUID with the command
cat /var/lib/openhab/uuid
and my secret with
cat /var/lib/openhab/openhabcloud/secret
.
Another thing: after entering the two codes on myopenhab.org, openhab still wasn‘t online. I had to change the link (on the local openhab instance —> settings —> other services —> openhab cloud) from https://myopenhab.org/ to https://myopenhab.org, the / made the a difference.
I hope I can help you!
Edit: That means that the UUID is in the parent directory of openhabcloud secret, so the UUID is in the directory
/var/lib/openhab/
do you run openhab natively on the OS or in docker ?
I have the impression that you have two instances setup.
The output from karaf console seems to point to docker installation which also seems to be mentioned in the find output ( /var/lib/docker/volumes/… )
Hello, thanks everybody. i try all you suggest, but nothing change. i found the directory /var/lib/docker/volumes ecc… and i add my uuid and secret in the respectly file but i don’t know if i can write normaly or the data is crypted. Anyway doesn’t work properly.
I can’t connect it.
any other suggestions?
You did not specify how your openHAB installation works, please fill this out - this is the default when posting a thread - and consider using openHABian - especially if you’re not used to working in LINUX environments:
- Platform information:
- Hardware: CPUArchitecture/RAM/storage
- OS: what OS is used and which version
- Java Runtime Environment: which java platform is used and what version
- openHAB version:
- Issue of the topic: please be detailed explaining your issue
- Please post configurations (if applicable):
- Items configuration related to the issue
- Sitemap configuration related to the issue
- Rules code related to the issue
- Services configuration related to the issue
- If logs where generated please post these here using code fences:
I try to explain…
Plattform information:
-hardware: X96 mini with arm64
-os linux Armbian last version
-java— i don’t know
-openHab version 3.2 (i don’t know if is with a docker or no. i can’t understand what is this doker)
- Issue: Openhab cloud connector doesn’t work. i register on Openhab cloud with uuid and secret, but when i acces on myopenhab.org, the stat is wrong and the message is: " Your openHAB is not online. Please check if your installation is running or recheck the openHAB settings in your [account].". on my app the message is that error http 502
I don’t think, Android-TV Boxes running Linux are supported OS für openHAB… Perhaps someone here in the forum uses that also, but I would not think so.
Why not use a reaspberry Pi and openHABian? it’s pretty straight-forward and No offense, but if you even don’t know, how to use java -version
I think you WAY better of, using this as I explained above:
If you still don’t like to switch to a broadly supported platform nearly everyone here can help you with, please:
- post your
java --version
output - look into the logs for some info on
openhabcloud
, presumably:
**/var/log/openhab/openhab.log
**/var/log/openhab/events.log
java Version:
[10:27:24] root@openhabian:~# java --version
openjdk 11.0.12 2021-07-20
OpenJDK Runtime Environment (build 11.0.12+7-post-Debian-2)
OpenJDK 64-Bit Server VM (build 11.0.12+7-post-Debian-2, mixed mode)
i try to use openhabian-config for set mosquitto and something else.
i use this device beacuse i got it and i can’t buy otherone for nothing. this work correctly and just it. the problem isn’t the device but somenthing about the setting… i don’t know what…
At my installation, the UUID file and the secret file were automatically added as I installed the Cloud connector. I didn‘t have to add the key manually in the system.
Did you found your keys or which key did you add?
i try to share the log…
15:04:06.337 [WARN ] [okhttp3.OkHttpClient ] - A connection to https://myopenhab.org/ was leaked. Did you forget to close a response body? To see where this was allocated, set the OkHttpClient logger level to FINE: Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE);
what i can do?
Did anyone konw somenthing about this problem? Openhab cloud doesn’t work. i cant access at my istance from remote…