[SOLVED] openHABian on Pine A64(+) regarding Java Problem

Hello,

I have a problem getting my Pine A64 to run openHAB using the openHABian config tool.

  • Platform information:

    • Hardware: ARM64 (Allwinner SOC)/2GB DDR3/32 GB SD-Card
    • OS: Armbian Buster (2019-11-19)
    • Java Runtime Environment: Zulu-8
    • openHAB version: 2.5
  • Issue of the topic: Using the openHABian Config Tool it seems to not install Zulu-8 correctly or an incompatible Version. openHAB can’t be started after installation. Has anyone got luck with his Pine A64 running the current openHABian installer? Or is there a modified way I should go (installing another Java Version?)?

  • If logs where generated please post these here using code fences:

running

sudo systemctl status openhab2

gets me:

openhab2.service - openHAB 2 - empowering the smart home
Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: signal) since Thu 2019-12-26 14:01:10 UTC; 2s ago
Docs: https://www.openhab.org/docs/
https://community.openhab.org
Process: 24404 ExecStart=/usr/share/openhab2/runtime/bin/karaf ${OPENHAB_STARTMODE} (code=killed, signal=ILL)
Main PID: 24404 (code=killed, signal=ILL)

running

java -version

gets me:

Illegal instruction

running

journalctl -u openhab2.service -b

gets me:

– Logs begin at Thu 2019-12-26 13:40:21 UTC, end at Thu 2019-12-26 14:07:10 UTC. –
Dec 26 13:53:47 pine64 systemd[1]: Started openHAB 2 - empowering the smart home.
Dec 26 13:53:47 pine64 karaf[10548]: Illegal instruction
Dec 26 13:53:47 pine64 karaf[10548]: /usr/share/openhab2/runtime/bin/karaf: 247: [: Illegal number:
Dec 26 13:53:47 pine64 karaf[10548]: Illegal instruction
Dec 26 13:53:47 pine64 karaf[10548]: Illegal instruction
Dec 26 13:53:47 pine64 karaf[10548]: /usr/share/openhab2/runtime/bin/karaf: 247: [: Illegal number:
Dec 26 13:53:47 pine64 karaf[10548]: /usr/share/openhab2/runtime/bin/karaf: 95: [: Illegal number:
Dec 26 13:53:47 pine64 karaf[10548]: /usr/share/openhab2/runtime/bin/karaf: 296: [: Illegal number:
Dec 26 13:53:47 pine64 systemd[1]: openhab2.service: Main process exited, code=killed, status=4/ILL
Dec 26 13:53:47 pine64 systemd[1]: openhab2.service: Failed with result ‘signal’.
Dec 26 13:53:52 pine64 systemd[1]: openhab2.service: Service RestartSec=5s expired, scheduling restart.
Dec 26 13:53:52 pine64 systemd[1]: openhab2.service: Scheduled restart job, restart counter is at 1.
Dec 26 13:53:52 pine64 systemd[1]: Stopped openHAB 2 - empowering the smart home.
Dec 26 13:53:52 pine64 systemd[1]: Started openHAB 2 - empowering the smart home.
Dec 26 13:53:53 pine64 karaf[10664]: Illegal instruction
Dec 26 13:53:53 pine64 karaf[10664]: /usr/share/openhab2/runtime/bin/karaf: 247: [: Illegal number:
Dec 26 13:53:53 pine64 karaf[10664]: Illegal instruction
Dec 26 13:53:53 pine64 karaf[10664]: Illegal instruction
Dec 26 13:53:53 pine64 karaf[10664]: /usr/share/openhab2/runtime/bin/karaf: 247: [: Illegal number:
Dec 26 13:53:53 pine64 karaf[10664]: /usr/share/openhab2/runtime/bin/karaf: 95: [: Illegal number:
Dec 26 13:53:53 pine64 karaf[10664]: /usr/share/openhab2/runtime/bin/karaf: 296: [: Illegal number:
Dec 26 13:53:53 pine64 systemd[1]: openhab2.service: Main process exited, code=killed, status=4/ILL
Dec 26 13:53:53 pine64 systemd[1]: openhab2.service: Failed with result ‘signal’.
Dec 26 13:53:58 pine64 systemd[1]: openhab2.service: Service RestartSec=5s expired, scheduling restart.
Dec 26 13:53:58 pine64 systemd[1]: openhab2.service: Scheduled restart job, restart counter is at 2.
Dec 26 13:53:58 pine64 systemd[1]: Stopped openHAB 2 - empowering the smart home.
Dec 26 13:53:58 pine64 systemd[1]: Started openHAB 2 - empowering the smart home.
Dec 26 13:53:58 pine64 karaf[10749]: Illegal instruction
Dec 26 13:53:58 pine64 karaf[10749]: /usr/share/openhab2/runtime/bin/karaf: 247: [: Illegal number:
Dec 26 13:53:58 pine64 karaf[10749]: Illegal instruction
Dec 26 13:53:58 pine64 karaf[10749]: Illegal instruction
Dec 26 13:53:58 pine64 karaf[10749]: /usr/share/openhab2/runtime/bin/karaf: 247: [: Illegal number:
Dec 26 13:53:58 pine64 karaf[10749]: /usr/share/openhab2/runtime/bin/karaf: 95: [: Illegal number:
Dec 26 13:53:58 pine64 karaf[10749]: /usr/share/openhab2/runtime/bin/karaf: 296: [: Illegal number:
Dec 26 13:53:58 pine64 systemd[1]: openhab2.service: Main process exited, code=killed, status=4/ILL
Dec 26 13:53:58 pine64 systemd[1]: openhab2.service: Failed with result ‘signal’.
Dec 26 13:54:03 pine64 systemd[1]: openhab2.service: Service RestartSec=5s expired, scheduling restart.
Dec 26 13:54:03 pine64 systemd[1]: openhab2.service: Scheduled restart job, restart counter is at 3.
Dec 26 13:54:03 pine64 systemd[1]: Stopped openHAB 2 - empowering the smart home.
Dec 26 13:54:03 pine64 systemd[1]: Started openHAB 2 - empowering the smart home.
Dec 26 13:54:03 pine64 karaf[10823]: Illegal instruction
Dec 26 13:54:03 pine64 karaf[10823]: /usr/share/openhab2/runtime/bin/karaf: 247: [: Illegal number:
Dec 26 13:54:03 pine64 karaf[10823]: Illegal instruction
Dec 26 13:54:03 pine64 karaf[10823]: Illegal instruction
Dec 26 13:54:03 pine64 karaf[10823]: /usr/share/openhab2/runtime/bin/karaf: 247: [: Illegal number:
Dec 26 13:54:03 pine64 karaf[10823]: /usr/share/openhab2/runtime/bin/karaf: 95: [: Illegal number:
Dec 26 13:54:03 pine64 karaf[10823]: /usr/share/openhab2/runtime/bin/karaf: 296: [: Illegal number:
Dec 26 13:54:03 pine64 systemd[1]: openhab2.service: Main process exited, code=killed, status=4/ILL
Dec 26 13:54:03 pine64 systemd[1]: openhab2.service: Failed with result ‘signal’.
Dec 26 13:54:08 pine64 systemd[1]: openhab2.service: Service RestartSec=5s expired, scheduling restart.
Dec 26 13:54:08 pine64 systemd[1]: openhab2.service: Scheduled restart job, restart counter is at 4.
Dec 26 13:54:08 pine64 systemd[1]: Stopped openHAB 2 - empowering the smart home.
Dec 26 13:54:08 pine64 systemd[1]: Started openHAB 2 - empowering the smart home.
Dec 26 13:54:09 pine64 karaf[10896]: Illegal instruction
Dec 26 13:54:09 pine64 karaf[10896]: /usr/share/openhab2/runtime/bin/karaf: 247: [: Illegal number:
Dec 26 13:54:09 pine64 karaf[10896]: Illegal instruction
Dec 26 13:54:09 pine64 karaf[10896]: Illegal instruction
Dec 26 13:54:09 pine64 karaf[10896]: /usr/share/openhab2/runtime/bin/karaf: 247: [: Illegal number:
Dec 26 13:54:09 pine64 karaf[10896]: /usr/share/openhab2/runtime/bin/karaf: 95: [: Illegal number:
Dec 26 13:54:09 pine64 karaf[10896]: /usr/share/openhab2/runtime/bin/karaf: 296: [: Illegal number:
Dec 26 13:54:09 pine64 systemd[1]: openhab2.service: Main process exited, code=killed, status=4/ILL
Dec 26 13:54:09 pine64 systemd[1]: openhab2.service: Failed with result ‘signal’.
Dec 26 13:54:14 pine64 systemd[1]: openhab2.service: Service RestartSec=5s expired, scheduling restart.
Dec 26 13:54:14 pine64 systemd[1]: openhab2.service: Scheduled restart job, restart counter is at 5.
Dec 26 13:54:14 pine64 systemd[1]: Stopped openHAB 2 - empowering the smart home.
Dec 26 13:54:14 pine64 systemd[1]: Started openHAB 2 - empowering the smart home.
Dec 26 13:54:14 pine64 karaf[10969]: Illegal instruction
Dec 26 13:54:14 pine64 karaf[10969]: /usr/share/openhab2/runtime/bin/karaf: 247: [: Illegal number:
Dec 26 13:54:14 pine64 karaf[10969]: Illegal instruction

Wow… Just looked for the code killed on karaf process…
I tried the last few hours to get the current stable version of openhab to run on my pine64.

I wish I had looked this up hours ago :neutral_face:

Try using: java --version and see if that will show what version is installed.

From the openhabain-config tool have you used the “additional features” such as add additional packages needed, fix permissions, etc…?

1 Like

As he said java --version just output “Illegal instruction”

He typed “java -version” not java --version. Note the two – not just one.

Oh sorry.
But I typed java --version and it’s the same result

No, it also returns “Illegal instruction”, i have just tried that.

Yes I used all of the options listed in the “Apply Improvements” tab.

Sometimes the extra - can make a difference…I’m no linux expert just something I’ve ran across in the past.:grinning:

2 Likes

Did you use Etcher or something else to flash image to SD card?

I used the ArmBian image with etcher and installed openhab via the default git instruction…

Nice day to reset the pine64 openhab instance…

I used Etcher to flash the SD-Card and I’ve also tried redoing it several times with no success yet. The SD-Card itself is a newly bought SanDisk Extreme 32GB, so it should be fine I think.

The only thing you are flashing to the card is the openhabian image or other OS and trying to install manually?

As stated here the Pine Image itself has been dropped so I’m following the instructions to get it up and running.
I downloaded and flashed the Armbian Buster OS and then I installed the openHABian configurator as described here.
And as @Desmond206x is facing the exact same problem I dont think its homemade.

1 Like

I would try a later version of openhabian image or have a look here:

https://wiki.pine64.org/index.php/Pine_A64_openHAB_Release

I already tried running the last image that was made available with no success either. It starts up fine but spits out a error as it tries to get the latest packages and updates (I suspect because the image is out-dated).

Did you look at the link I posted?

Not sure if it’s also outdated or not.:face_with_raised_eyebrow:

The link you posted refers to openHAB 2.0 Image 20170129. So it’s an very old image from 2017.

I tried my best to get java running of the armbian image. But I give up now.
Now trying to install the latest normal pine64 openhabian image again.

If it installs you should be able to upgrade.

Try running: sudo apt --fix-broken install

If you install manually and run into issues use:

sudo apt update && sudo apt upgrade

And

sudo ./boot/first-boot.sh

As this has been a solution for others with Pine64

So I just tried Armbian Bionic (based on Ubuntu vs. Debian) and it shows the exact same problem.