OpenHab3.sh start results in ps: invalid option -- 'p' [QNAP / BusyBox v1.24.1]

  • Platform information:

    • Hardware:
      QNAP TVS-682
      Version 4.5.4.1800
      CPU: Intel(R) Core™ i3-7100 CPU @ 3.90GHz
      RAM: 40 GB
      Storage: 12 TB
      Volume for OpenHab: 1 TB

    • OS:
      Linux NAS 4.14.24-qnap #1 SMP Thu Sep 23 01:25:58 CST 2021 x86_64 GNU/Linux

    • Java Runtime Environment:
      openjdk 11.0.10 2021-01-19 LTS
      OpenJDK Runtime Environment Zulu11.45+27-CA (build 11.0.10+9-LTS)
      OpenJDK 64-Bit Server VM Zulu11.45+27-CA (build 11.0.10+9-LTS, mixed mode)

    • openHAB version: 3.1.0

  • Issue of the topic: please be detailed explaining your issue
    OpenHab is listening on port 8101 but the Web-UI is not starting because of wrong ps command inside karaf.

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

[/OpenHab3] # ./OpenHab3.sh start
[/OpenHab3] # + export JAVA_HOME=/opt/OpenHab3/JDK
+ JAVA_HOME=/opt/OpenHab3/JDK
+ export JAVA=/opt/OpenHab3/JDK/bin/java
+ JAVA=/opt/OpenHab3/JDK/bin/java
+ echo Launching the openHAB runtime...
Launching the openHAB runtime...
++ dirname /OpenHab3/start.sh
+ DIRNAME=/OpenHab3
+ exec /OpenHab3/runtime/bin/karaf server
ps: invalid option -- 'p'
BusyBox v1.24.1 (2021-09-23 02:31:15 CST) multi-call binary.

Usage: ps [-o COL1,COL2=HEADER] [-T]

Show list of processes

        -o COL1,COL2=HEADER     Select columns for display
        -T                      Show threads

QNAP Options:
        --columns N
2021-10-01 16:10:52.997 [WARN ] [org.apache.karaf.shell.ssh.Activator] - Error starting activator
java.lang.IllegalStateException: Service not tracked for class interface org.osgi.service.cm.ConfigurationAdmin
	at org.apache.karaf.util.tracker.BaseActivator.getTrackedService(BaseActivator.java:369) ~[bundleFile:?]
	at org.apache.karaf.util.tracker.BaseActivator.ensureStartupConfiguration(BaseActivator.java:154) ~[bundleFile:?]
	at org.apache.karaf.shell.ssh.Activator.doStart(Activator.java:96) ~[bundleFile:?]
	at org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:312) [bundleFile:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.lang.Thread.run(Thread.java:834) [?:?]

I guess you better try the docker way on your QNAP…

1 Like

Yes good idea. Makes things much easier.
And with Container Station it was very easy.

I think this is now the better solution :grinning: