Guide: Installing and testing OH3 snapshots/milestones using APT and YUM

ok it seems it is still openhab 2.5

[10:21:21] openhabian@openHABianDevice:~$ dpkg -l | grep openhab
ic openhab2 2.5.10-1 all openhab2
[10:21:23] openhabian@openHABianDevice:~$

then the tutorial to upgrade to 3.0 is not clear!

1 Like

ok i see a problem:
Ran the procedure again:

[10:26:51] openhabian@openHABianPi:~$ sudo apt install openhab
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package openhab

Any idea?

1 Like

Are you using stable repo? I believe you need the testing repo for OH3. There is no stable release yet.

1 Like

What does ok I see the problem mean ?
Did you run sudo apt upgrade before running sudo apt install openhab in case you modified the repository ?

Prerequisite lists the repo that is required. It contains jfrog.io in the name. There is an other one that has bintray.com in it’s name. The later one does not have the OH3 binaries.

3 Likes

(don’t really know why, but it seems I’m not able to use the “quote” function of this forum any more)

I ran the commands recommended to purge the old OH2 stuff, but got some errors during the “apt install --reinstall openhab”. It seems everything is working afterwards, but it kinda scared me for a second. Anything worth reporting somewhere?

root@rockpi:/var/log/openhab# apt install --reinstall openhab
Läser paketlistor… Färdig
Bygger beroendeträd
Läser tillståndsinformation… Färdig
0 att uppgradera, 0 att nyinstallera, 1 att installera om, 0 att ta bort och 0 att inte uppgradera.
Behöver hämta 82,1 MB arkiv.
Efter denna åtgärd kommer ytterligare 0 B utrymme användas på disken.
Läs:1 https://openhab.jfrog.io/openhab/openhab-linuxpkg testing/main arm64 openhab all 3.0.0~M3-1 [82,1 MB]
Hämtade 82,1 MB på 16s (5 009 kB/s)
(Läser databasen ... 52386 filer och kataloger installerade.)
Förbereder att packa upp .../openhab_3.0.0~M3-1_all.deb ...
Packar upp openhab (3.0.0~M3-1) över (3.0.0~M3-1) ...
Ställer in openhab (3.0.0~M3-1) ...

[openHAB] Performing post-update tasks for version 3.0.0:
  Replacing: String org.eclipse.smarthome.i18n to org.openhab.i18n in file /var/lib/openhab/config/org/openhab/i18n.config
  Replacing: String org.eclipse.smarthome.persistence to org.openhab.persistence in file /var/lib/openhab/config/org/openhab/persistence.config
  Moving:   From /var/lib/openhab/config/org/eclipse/smarthome/audio.config to /var/lib/openhab/config/org/openhab/audio.config
  Replacing: String org.eclipse.smarthome.audio to org.openhab.audio in file /var/lib/openhab/config/org/openhab/audio.config
  Moving:   From /var/lib/openhab/config/org/eclipse/smarthome/voice.config to /var/lib/openhab/config/org/openhab/voice.config
  Replacing: String org.eclipse.smarthome.voice to org.openhab.voice in file /var/lib/openhab/config/org/openhab/voice.config
  Replacing: String org.eclipse.smarthome.inbox to org.openhab.inbox in file /var/lib/openhab/config/org/openhab/inbox.config
  Moving:   From /var/lib/openhab/config/org/eclipse/smarthome/links.config to /var/lib/openhab/config/org/openhab/links.config
  Replacing: String org.eclipse.smarthome.links to org.openhab.links in file /var/lib/openhab/config/org/openhab/links.config
  Replacing: String org.eclipse.smarthome.folder to org.openhab.folder in file /var/lib/openhab/config/org/openhab/folder.config
  Replacing: String org.eclipse.smarthome.threadpool to org.openhab.threadpool in file /var/lib/openhab/config/org/openhab/threadpool.config
  Replacing: String org.eclipse.smarthome.autoupdate to org.openhab.autoupdate in file /var/lib/openhab/config/org/openhab/autoupdate.config
  Replacing: String org.eclipse.smarthome.chart to org.openhab.chart in file /var/lib/openhab/config/org/openhab/chart.config
  Replacing: String org.eclipse.smarthome.lsp to org.openhab.lsp in file /var/lib/openhab/config/org/openhab/lsp.config
  Replacing: String org.eclipse.smarthome.network to org.openhab.network in file /var/lib/openhab/config/org/openhab/network.config
  Replacing: String org.eclipse.smarthome.core to org.openhab.core in file /var/lib/openhab/jsondb/org.openhab.core.config.discovery.DiscoveryResult.json
  Replacing: String org.eclipse.smarthome to org.openhab.core in file /var/lib/openhab/jsondb/org.openhab.core.config.discovery.DiscoveryResult.json
  Replacing: String org.eclipse.smarthome.core to org.openhab.core in file /var/lib/openhab/jsondb/org.openhab.core.items.Item.json
  Replacing: String org.eclipse.smarthome to org.openhab.core in file /var/lib/openhab/jsondb/org.openhab.core.items.Item.json
  Replacing: String org.eclipse.smarthome.core to org.openhab.core in file /var/lib/openhab/jsondb/org.openhab.core.items.Metadata.json
  Replacing: String org.eclipse.smarthome to org.openhab.core in file /var/lib/openhab/jsondb/org.openhab.core.items.Metadata.json
  Replacing: String org.eclipse.smarthome.core to org.openhab.core in file /var/lib/openhab/jsondb/org.openhab.core.thing.link.ItemChannelLink.json
  Replacing: String org.eclipse.smarthome to org.openhab.core in file /var/lib/openhab/jsondb/org.openhab.core.thing.link.ItemChannelLink.json
  Replacing: String org.eclipse.smarthome.core to org.openhab.core in file /var/lib/openhab/jsondb/org.openhab.core.thing.Thing.json
  Replacing: String org.eclipse.smarthome to org.openhab.core in file /var/lib/openhab/jsondb/org.openhab.core.thing.Thing.json
  Deleting Directory: /var/lib/openhab/config/org/eclipse/smarthome
  Deleting Directory: /var/lib/openhab/config/com/eclipsesource

dpkg: fel vid hantering av paketet openhab (--configure):
 installed openhab package post-installation script subprocess returned error exit status 1
Hanterar utlösare för systemd (241-7~deb10u4) ...
Fel uppstod vid hantering:
 openhab
E: Sub-process /usr/bin/dpkg returned an error code (1)

(Sorry for all the swedish in there, hope you can understand what it says anyway :slight_smile:)

2 Likes

What i found out is that this error has something to do with a running OH processs. If you stop openhab and then start the apt … everything works fine. After wards you need to start openhab again.

1 Like

Ah. That makes sense. Actually I just started openhab (which was now stopped) and did an “apt-get update” and after that everything seems to work fine. I guess what SHOULD have happened though was that the command ran should have stopped oh first. That is what happens during a normal upgrade, isn’t it?

1 Like

Actually the quote function seems to work sometimes. Likely bigs in the new version. Those maintaining the forum are aware.

2 Likes
2 Likes

@Kai The post above mine has a solution to our forum quoting issue.

1 Like

Thanks for the hint - I’ll try to remember to do an upgrade of the forum tomorrow morning when there is little traffic on it.

3 Likes

I just “upgraded” openHABian to 3.0.0 M3. Looks fantastic! :slight_smile: I’m getting a SAMBA migration error though, from the mismatched openhabian-config tool. Any idea when that will be more compatible, and will any special steps be needed to install it? Thanks.

1 Like

I’ve upgraded the forum software, but I cannot see the issue being fixed :thinking:.

1 Like

Confirmed. Still can only quote when only marking text within the same paragraph.

(btw, isn’t this a bit off topic for this thread? Maybe someone could split it out to another thread?)

2 Likes

No earlier than you have given the info needed to fix it … set debugmode=maximum in openhabian.conf and redo, post the log in a thread here or open a Github issue.

2 Likes

Continuing the discussion from Guide: Installing and testing OH3 snapshots/milestones using APT and YUM:

hello
i have install 3.0.0~M3-1 at a Raspberry Pi 4 at i have done this:

  1. I wrote the current version “openHABian 1.6” as an image on the SD card.

  2. Insert the SD card into Raspberry Pi, connect Ethernet and power on.

  3. Installation of the openHAB 2.5.10 was successful.
    Decision for Fresh Installation (delete openHAB 2.5.10) and Milestone version

  4. According to the notes in forum “disable ZRAM first” with “SD card” openhabian-config

  5. Zulu’s Open JDK 11 installed, with sudo openhabian-config
    5.1) sudo openhabian-config
    5.2) 40

  6. sudo apt purge openhab2

  7. wget -qO - ‘https://bintray.com/user/downloadSubjectPublicKey?username=openhab’ | sudo apt-key add -

  8. sudo apt-get install apt-transport-https

  9. echo ‘deb https://openhab.jfrog.io/openhab/openhab-linuxpkg testing main’ | sudo tee /etc/apt/sources.list.d/openhab2.list

  10. sudo apt-get update && sudo apt-get install openhab

  11. sudo apt-get install openhab-addons

  12. sudo systemctl start openhab.service

  13. sudo systemctl status openhab.service

  14. sudo systemctl daemon-reload

  15. sudo systemctl enable openhab.service

and i have this problem

openhabian@192.168.0.225’s password:
Linux openHABianDevice 5.4.72-v7l+ #1356 SMP Thu Oct 22 13:57:51 BST 2020 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Nov 29 04:09:29 2020 from 192.168.0.21

###############################################################################
############### openHABianDevice ############################################
###############################################################################

Ip = Unable to parse ip . Please debug.

Release = Raspbian GNU/Linux 10 (buster)

Kernel = Linux 5.4.72-v7l+

Platform = Raspberry Pi 4 Model B Rev 1.1

Uptime = 0 day(s). 5:57:43

CPU Usage = 0% avg over 4 cpu(s) (4 core(s) x 1 socket(s))

CPU Load = 1m: 0.08, 5m: 0.02, 15m: 0.01

Memory = Free: 3.19GB (84%), Used: 0.59GB (16%), Total: 3.78GB

Swap = Free: 1.99GB (100%), Used: 0.00GB (0%), Total: 1.99GB

Root = Free: 23.13GB (83%), Used: 4.72GB (17%), Total: 29.07GB

Updates = 0 apt updates available.

Sessions = 1 session(s)

Processes = 115 running processes of 32768 maximum processes

###############################################################################
sed: can’t read /var/lib/openhab2/etc/version.properties: No such file or directory

          Welcome to            __  _____    ____  _
        ____  ____  ___  ____  / / / /   |  / __ )(_)___ _____
       / __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __  / / __ `/ __ \
      / /_/ / /_/ /  __/ / / / __  / ___ |/ /_/ / / /_/ / / / /
      \____/ .___/\___/_/ /_/_/ /_/_/  |_/_____/_/\__,_/_/ /_/
          /_/
              openHAB  ()

Looking for a place to get started? Check out ‘sudo openhabian-config’ and the
documentation at https://www.openhab.org/docs/installation/openhabian.html
The openHAB dashboard can be reached at http://openHABianDevice:8080
To interact with openHAB on the command line, execute: ‘openhab-cli --help’

[10:08:30] openhabian@openHABianDevice:~$ dpkg -l | grep openhab
ii openhab 3.0.0~M3-1 all openhab
ii openhab-addons 3.0.0~M3-1 all openhab-addons
[10:08:33] openhabian@openHABianDevice:~$

Can you please help me to solve this probleme?
thank you

1 Like

Build #2032
I have a problem, I think in rest-api.
I am using Influxdb v1, item OnOff type.
I’m trying to display its state history on the timeline widget in the HabPanel. The state is always zero.

http://192.168.215.221:8080/rest/persistence/items/BlitzWOLF?serviceId=influxdb

result:

{"name":"BlitzWOLF","datapoints":"43","data":[{"time":1606638256335,"state":"OFF"},{"time":1606638459792,"state":"OFF"},{"time":1606638459792,"state":"OFF"},{"time":1606638588388,"state":"OFF"},{"time":1606638588388,"state":"OFF"},{"time":1606638748433,"state":"OFF"},{"time":1606638748433,"state":"OFF"},{"time":1606639034587,"state":"OFF"},{"time":1606639034587,"state":"OFF"},{"time":1606639081056,"state":"OFF"},{"time":1606639081056,"state":"OFF"},{"time":1606639121731,"state":"OFF"},{"time":1606639121731,"state":"OFF"},{"time":1606639132055,"state":"OFF"},{"time":1606639132055,"state":"OFF"},{"time":1606639144777,"state":"OFF"},{"time":1606639144777,"state":"OFF"},{"time":1606639176381,"state":"OFF"},{"time":1606639176381,"state":"OFF"},{"time":1606639259360,"state":"OFF"},{"time":1606639259360,"state":"OFF"},{"time":1606639293975,"state":"OFF"},{"time":1606639293975,"state":"OFF"},{"time":1606639312017,"state":"OFF"},{"time":1606639312017,"state":"OFF"},{"time":1606639373996,"state":"OFF"},{"time":1606639373996,"state":"OFF"},{"time":1606639381979,"state":"OFF"},{"time":1606639381979,"state":"OFF"},{"time":1606639440471,"state":"OFF"},{"time":1606639440471,"state":"OFF"},{"time":1606639457103,"state":"OFF"},{"time":1606639457103,"state":"OFF"},{"time":1606639515489,"state":"OFF"},{"time":1606639515489,"state":"OFF"},{"time":1606639534864,"state":"OFF"},{"time":1606639534864,"state":"OFF"},{"time":1606639538980,"state":"OFF"},{"time":1606639538980,"state":"OFF"},{"time":1606639806866,"state":"OFF"},{"time":1606639806866,"state":"OFF"},{"time":1606640170666,"state":"OFF"},{"time":1606640170666,"state":"OFF"}]}

tracert influx:

2020-11-29 16:59:34.418 [DEBUG] [.influxdb.InfluxDBPersistenceService] - Got a query for historic points!
2020-11-29 16:59:34.423 [TRACE] [.influxdb.InfluxDBPersistenceService] - Filter: itemname: BlitzWOLF, ordering: ASCENDING, state: null,  operator: EQ, getBeginDate: 2020-11-28T16:59:34.418093+08:00[Asia/Irkutsk], getEndDate: 2020-11-29T16:59:34.418093+08:00[Asia/Irkutsk], getPageSize: 2147483647, getPageNumber: 0
2020-11-29 16:59:34.425 [TRACE] [.influxdb.InfluxDBPersistenceService] - Query SELECT value FROM autogen.BlitzWOLF WHERE time >= '2020-11-28T08:59:34.418093Z' AND time <= '2020-11-29T08:59:34.418093Z' ORDER BY time ASC;
2020-11-29 16:59:34.434 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - series Series [name=BlitzWOLF, tags=null, columns=[time, value], values=[[1.606638256335E12, 0.0], [1.606638459792E12, 1.0], [1.606638588388E12, 0.0], [1.606638748433E12, 1.0], [1.606639034587E12, 0.0], [1.606639081056E12, 1.0], [1.606639121731E12, 0.0], [1.606639132055E12, 1.0], [1.606639144777E12, 0.0], [1.606639176381E12, 1.0], [1.60663925936E12, 0.0], [1.606639293975E12, 1.0], [1.606639312017E12, 0.0], [1.606639373996E12, 1.0], [1.606639381979E12, 0.0], [1.606639440471E12, 1.0], [1.606639457103E12, 0.0], [1.606639515489E12, 1.0], [1.606639534864E12, 0.0], [1.60663953898E12, 1.0], [1.606639806866E12, 0.0], [1.606640170666E12, 1.0]]]
2020-11-29 16:59:34.436 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - columns [time, value]
2020-11-29 16:59:34.439 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - adding historic item BlitzWOLF: time 2020-11-29T08:24:16.335Z value 0.0
2020-11-29 16:59:34.441 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - adding historic item BlitzWOLF: time 2020-11-29T08:27:39.792Z value 1.0
2020-11-29 16:59:34.443 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - adding historic item BlitzWOLF: time 2020-11-29T08:29:48.388Z value 0.0
2020-11-29 16:59:34.445 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - adding historic item BlitzWOLF: time 2020-11-29T08:32:28.433Z value 1.0
2020-11-29 16:59:34.448 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - adding historic item BlitzWOLF: time 2020-11-29T08:37:14.587Z value 0.0
2020-11-29 16:59:34.450 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - adding historic item BlitzWOLF: time 2020-11-29T08:38:01.056Z value 1.0
2020-11-29 16:59:34.452 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - adding historic item BlitzWOLF: time 2020-11-29T08:38:41.731Z value 0.0
2020-11-29 16:59:34.454 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - adding historic item BlitzWOLF: time 2020-11-29T08:38:52.055Z value 1.0
2020-11-29 16:59:34.456 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - adding historic item BlitzWOLF: time 2020-11-29T08:39:04.777Z value 0.0
2020-11-29 16:59:34.458 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - adding historic item BlitzWOLF: time 2020-11-29T08:39:36.381Z value 1.0
2020-11-29 16:59:34.460 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - adding historic item BlitzWOLF: time 2020-11-29T08:40:59.360Z value 0.0
2020-11-29 16:59:34.462 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - adding historic item BlitzWOLF: time 2020-11-29T08:41:33.975Z value 1.0
2020-11-29 16:59:34.464 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - adding historic item BlitzWOLF: time 2020-11-29T08:41:52.017Z value 0.0
2020-11-29 16:59:34.466 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - adding historic item BlitzWOLF: time 2020-11-29T08:42:53.996Z value 1.0
2020-11-29 16:59:34.468 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - adding historic item BlitzWOLF: time 2020-11-29T08:43:01.979Z value 0.0
2020-11-29 16:59:34.470 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - adding historic item BlitzWOLF: time 2020-11-29T08:44:00.471Z value 1.0
2020-11-29 16:59:34.472 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - adding historic item BlitzWOLF: time 2020-11-29T08:44:17.103Z value 0.0
2020-11-29 16:59:34.475 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - adding historic item BlitzWOLF: time 2020-11-29T08:45:15.489Z value 1.0
2020-11-29 16:59:34.477 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - adding historic item BlitzWOLF: time 2020-11-29T08:45:34.864Z value 0.0
2020-11-29 16:59:34.479 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - adding historic item BlitzWOLF: time 2020-11-29T08:45:38.980Z value 1.0
2020-11-29 16:59:34.481 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - adding historic item BlitzWOLF: time 2020-11-29T08:50:06.866Z value 0.0
2020-11-29 16:59:34.483 [TRACE] [rnal.influx1.InfluxDB1RepositoryImpl] - adding historic item BlitzWOLF: time 2020-11-29T08:56:10.666Z value 1.0

Am I doing something wrong?
I just installed the first version of the database, first I experimented with the second version, there I also had two problems, which I wrote about here and here.
Thanks!

1 Like

just want to report that I wanted to install a fresh OH3 on a fresh Ubuntu VM. Installing Openhabian, then selecting the beta branch, then (only after that) I was able to select the OH3 branch. And then, when installing, it failed to add the required keys.

[openHABian] Adding required keys to apt... FAILED

Reason was, that gnupg was not installed. I think it would be an improvement if openhabian would install that by itself.

Then, that part of the installation worked.

[openHABian] Adding required keys to apt... OK

I assume that gnupg is probably installed on a raspberryPi by default?

1 Like

openHABian is designed primarily for RaspiOS on the Raspberry Pi. They cannot easily support every Debian based distribution package choices.

1 Like

Understand that. My argument would be that if one command is what makes that work on ubuntu (and maybe others), wouldn’t that make the change reasonable?

1 Like