Unable to backup OH3 on Mac - asks for password

  • Platform information:
    • Hardware: iMac (late 2013)
    • OS: MacOS Catalina (10.15.7)
    • Java Runtime Environment: Zulu11.60+19-CA (build 11.0.17+8-LTS)
    • openHAB version: 3.4.1

I’m preparing to migrate my OH3 install to a different Mac. I’m trying to run a backup but it asks for a password and I can’t figure out what password it needs.

At the openhab> prompt, I enter: sudo openhab-cli backup
I get a password prompt. Passwords I’ve tried:

  • No password (my Mac user doesn’t have a password)
  • habopen (which I believe is the openhab user’s password)
  • My OH3 user’s password

But it always returns: " Error executing command: login failed"

Here are my sudoers entries:

root            ALL = (ALL) ALL
%admin          ALL = (ALL) NOPASSWD: ALL
etengert        ALL = (ALL) NOPASSWD: ALL
openhab         ALL = (ALL) NOPASSWD: ALL

Can someone help me figure out how to successfully create a backup? Thanks.

It would be your user‘s password. Not sure if sudo fails if no password is set for the user.