Package Details: openhab3 3.3.0-2

Git Clone URL: https://aur.archlinux.org/openhab3.git (read-only, click to copy)
Package Base: openhab3
Description: openhab3 open source home automation software
Upstream URL: http://www.openhab.org/
Licenses: EPL
Conflicts: openhab3-snapshot
Submitter: ChaosKid42
Maintainer: ChaosKid42
Last Packager: ChaosKid42
Votes: 10
Popularity: 0.40
First Submitted: 2020-11-30 20:26 (UTC)
Last Updated: 2022-07-02 06:20 (UTC)

Dependencies (3)

Required by (1)

Sources (6)

Latest Comments

ChaosKid42 commented on 2022-07-02 06:23 (UTC)

Implemented benalexau's idea in current package version. Thus problem should be gone in next upgrade.

benalexau commented on 2022-07-02 02:27 (UTC)

Agree with others here that openHAB should not be running when upgraded. I use the following upgrade hook in case others want to adapt something similar.

Filename: /etc/pacman.d/hooks/10-openhab.hook

[Trigger]
Type = Package
Operation = Upgrade
Target = openhab3
Target = openhab3-addons

[Action]
Description = Stopping openHAB for upgrade (we expect Ansible to trigger a reboot)
When = PreTransaction
Exec = /usr/bin/systemctl stop openhab3.service

Alcatyone commented on 2022-07-01 08:57 (UTC)

I had to delete /var/lib/openhab/cache/ and /var/lib/openhab/tmp/ to be able to start OpenHAB again. Somehow, these directories survived even a reinstallation and caused problems until I deleted them manually.

igvk commented on 2022-07-01 07:57 (UTC)

The problem with non-working openhab after upgrade may be remedied by stopping it before install. In case it doesn't work after upgrade - just shut it down and reinstall the same package. Don't know the reason, it needs some debugging - but it's a simple solution. No downgrade needed.

zynex commented on 2022-01-14 15:24 (UTC) (edited on 2022-01-14 15:48 (UTC) by zynex)

Got same problem as @istobic, OpenHAB won't start and a bunch of errors appear in the journal. A downgrade and then upgrade it again seems to fix is for some reason..?

istobic commented on 2022-01-10 05:51 (UTC)

I had again problems with the update. There weren't even entries in journald at all or logs in /var/log/openhab3/. I downgraded the package to the previous version and ran the upgrade again. Now, it works fine.

benalexau commented on 2021-08-28 08:17 (UTC)

I also had the same issue as others reported here (namely openHAB loading its web UI on port 8181) despite /etc/default/openhab3 including OPENHAB_HTTP_PORT=8080. I found /var/lib/openhab3/config/org/ops4j/pax/web.config unexpectedly contained org.osgi.service.http.port="8181". I removed the file, restarted the service and port 8080 was again used.

ChaosKid42 commented on 2021-08-18 17:24 (UTC)

@Frans-Willen: Thanks for pointing out. Should be fixed now.

Frans-Willem commented on 2021-08-18 17:11 (UTC)

Could you change prepare to point to ${srcdir}/openhab.patch instead of ../openhab.patch, such that the package also works in mkchrootpkg ? Since it's listed as one of the sources, it will automatically be copied to the $srcdir by makepkg, whereas mkchrootpkg will not automatically mirror the startdir.

zynex commented on 2021-08-14 21:02 (UTC) (edited on 2021-08-15 08:34 (UTC) by zynex)

Problem again, previous solutions didn't help this time. Tried @doits example to, removing everything inside /var/lib/openhab3/etc/ folder to, still no web interface or connection to openhab what so ever. Any other ideas what happened this time? Everything seems to work, no error in logs or anything.

[EDIT] Not sure exactly what I did, but eventually got it up'n running again.

doits commented on 2021-07-05 07:45 (UTC)

FYI: Clearing tmp and cache was not enough for me, I had to remove /var/lib/openhab3/etc/ too. Was the first time after an upgrade though, before cache and tmp were enough. Everything seems back to normal after it.

ChaosKid42 commented on 2021-07-04 09:53 (UTC)

@zynex @obones Should be fixed with latest update of the package.

zynex commented on 2021-07-03 19:46 (UTC) (edited on 2021-07-03 20:14 (UTC) by zynex)

@obones; Got the same issue here, get a bunch of errors when looking at the service status.

[EDIT] Found how to fix it from OpenHAB community. Issue the following;

sudo rm -r /var/lib/openhab3/tmp/* /var/lib/openhab3/cache/*

This got my installation up'n running again. Might be best of to clear those folders on update in the PGKBUILD itself?

obones commented on 2021-07-03 15:53 (UTC)

Hello, I have just updated from the previous 3.0.2 version and while the service starts, it no longer answers on the 8080 for HTTP, nor on port 8101 for its internal ssh console. Have you noticed this as well?

istobic commented on 2021-04-13 14:35 (UTC)

ChaosKid42: Sorry, I obviously misinterpreted the tags in their repository.

ChaosKid42 commented on 2021-04-13 09:19 (UTC)

istobic: 3.1.0 is not available

TheHellSite commented on 2021-01-06 13:23 (UTC)

Thank you again!

ChaosKid42 commented on 2021-01-06 13:13 (UTC)

@TheHellSite: There is /etc/openhab3 where you can store your files for file based config. The config you do in the GUI is stored in /var/lib/openhab3/jsondb.

TheHellSite commented on 2021-01-06 12:45 (UTC)

Where does this version of OpenHAB store all the config files, i.e. things, items,...? I can't seem to find them anywhere.

TheHellSite commented on 2020-12-24 12:04 (UTC)

@ChaosKid42 Yes, I figured this out myself. But thank you.

For everyone else:

1. sudo pacman -S git jre11-openjdk-headless
2. mkdir git && cd git
3. git clone https://aur.archlinux.org/archlinux-java-run.git && cd archlinux-java-run
4. makepkg -sirc
5. cd .. && git clone https://aur.archlinux.org/openhab3.git && cd openhab3
6. makepkg -sirc

ChaosKid42 commented on 2020-12-24 11:56 (UTC)

@TheHellSite: You probably need to install archlinux-java-run from the aur first.

ChaosKid42 commented on 2020-12-24 11:56 (UTC)

@doits: If you install openhab3 your old config won't be migrated. I also don't know how to do it manually. Sorry.

TheHellSite commented on 2020-12-24 11:32 (UTC) (edited on 2020-12-24 11:35 (UTC) by TheHellSite)

I am having trouble installing it.

[archie@archlinux openhab3]$ makepkg -sirc
==> Making package: openhab3 3.0.0-1 (Thu 24 Dec 2020 12:27:57 CET)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[sudo] password for archie:
error: target not found: archlinux-java-run
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> java-runtime-headless=11
  -> archlinux-java-run
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
[archie@archlinux ~]$ sudo pacman -S archlinux-java-run java-runtime-headless=11
error: target not found: archlinux-java-run

doits commented on 2020-12-24 09:31 (UTC)

Is there any upgrade path from 2.5 to 3? In https://community.openhab.org/t/apt-yum-and-dnf-migration-from-oh2-to-oh3-stable/110771 is say about detecting old config and copying/migrating it:

If the install of openHAB 3 detects an existing openHAB 2 install, then it will copy the configurations across and update using those files

I don't think it is done when installing openhab3 here. Is there a way to start this manually?

lianse commented on 2020-12-08 18:06 (UTC)

Oh nice, I see you fixed minimum jre confusion by pulling in archlinux-java-run.

I worked around my default jre8 by providing JAVA_HOME=/usr/lib/jvm/java-11-openjdk/ within /etc/defaults/openhab3

lianse commented on 2020-12-01 18:43 (UTC)

I'll try it out at weekend (I hope it will work, because M4 has some major bugs https://community.openhab.org/t/openhab-3-milestone-builds/106329/5 )