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

  • Platform information:

    • Hardware:
      QNAP TVS-682
      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] # ./ 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/
+ 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 ] [] - Error starting activator
java.lang.IllegalStateException: Service not tracked for class interface
	at org.apache.karaf.util.tracker.BaseActivator.getTrackedService( ~[bundleFile:?]
	at org.apache.karaf.util.tracker.BaseActivator.ensureStartupConfiguration( ~[bundleFile:?]
	at ~[bundleFile:?]
	at [bundleFile:?]
	at java.util.concurrent.Executors$ [?:?]
	at [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker( [?:?]
	at java.util.concurrent.ThreadPoolExecutor$ [?:?]
	at [?:?]

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: