Cannot access webpage from fresh install using Apt on Ubuntu 18.04 server

  • Platform information:

    • Hardware: Intel i7 with 4gb ram

    • OS: Ubuntu 18.04 Server LTS

    • Java Runtime Environment:
      root@daqsrv7:~# java -version
      openjdk version “1.8.0_265”
      OpenJDK Runtime Environment (Zulu 8.48.0.53-CA-linux64) (build 1.8.0_265-b11)
      OpenJDK 64-Bit Server VM (Zulu 8.48.0.53-CA-linux64) (build 25.265-b11, mixed mode)

    • openHAB version:
      root@daqsrv7:~# dpkg -l | grep openhab2
      ii openhab2 2.5.8-1 all openhab2
      ii openhab2-addons 2.5.8-1 all openhab2-addons

  • Issue of the topic: Cannot access local web page

  • Please post configurations (if applicable):

    • Default items
    • Default Sitemap
    • Default Rules
    • Default Services configuration

I change the ports and ip address in config file to 9090, 9443 and 192.168.1.207 which is the address of the computer. I have other things running on 8080 etc.

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

‘’
2020-09-19 15:35:36.446 [WARN ] [org.jline ] - Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
2020-09-19 15:35:37.589 [WARN ] [raf.features.internal.osgi.Activator] - Error starting activator
java.lang.IllegalStateException: BundleContext is no longer valid
at org.eclipse.osgi.internal.framework.BundleContextImpl.checkValid(BundleContextImpl.java:989) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:468) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:487) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:1004) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.apache.karaf.util.tracker.BaseActivator.register(BaseActivator.java:425) ~[bundleFile:?]
at org.apache.karaf.util.tracker.BaseActivator.register(BaseActivator.java:413) ~[bundleFile:?]
at org.apache.karaf.features.internal.osgi.Activator.doStart(Activator.java:180) ~[bundleFile:?]
at org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:312) [bundleFile:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_265]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_265]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_265]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_265]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_265]
2020-09-19 15:35:57.076 [WARN ] [org.jline ] - Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
2020-09-19 15:35:58.206 [WARN ] [raf.features.internal.osgi.Activator] - Error starting activator
java.lang.IllegalStateException: BundleContext is no longer valid
at org.eclipse.osgi.internal.framework.BundleContextImpl.checkValid(BundleContextImpl.java:989) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:468) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:487) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:1004) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.apache.karaf.util.tracker.BaseActivator.register(BaseActivator.java:425) ~[bundleFile:?]
at org.apache.karaf.util.tracker.BaseActivator.register(BaseActivator.java:413) ~[bundleFile:?]
at org.apache.karaf.features.internal.osgi.Activator.doStart(Activator.java:180) ~[bundleFile:?]
at org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:312) [bundleFile:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_265]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_265]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_265]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_265]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_265]
2020-09-19 15:36:15.996 [WARN ] [org.jline ] - Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
2020-09-19 15:36:17.134 [WARN ] [raf.features.internal.osgi.Activator] - Error starting activator
java.lang.IllegalStateException: BundleContext is no longer valid
at org.eclipse.osgi.internal.framework.BundleContextImpl.checkValid(BundleContextImpl.java:989) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:468) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:487) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:1004) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.apache.karaf.util.tracker.BaseActivator.register(BaseActivator.java:425) ~[bundleFile:?]
at org.apache.karaf.util.tracker.BaseActivator.register(BaseActivator.java:413) ~[bundleFile:?]
at org.apache.karaf.features.internal.osgi.Activator.doStart(Activator.java:180) ~[bundleFile:?]
at org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:312) [bundleFile:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_265]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_265]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_265]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_265]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_265]

‘’

This was a clean install using the APT install guide directly from the Openhab website. Prior to this current error i had a “address in use” error when checking the logs i saw permission denied on the the /var/log/openhab folder can anyone tell me the proper permissions for those files, i changed them to openhab for owner and added +x permissions which brought me to this current error.

I cannot use the pre built image this is and existing lamp server with many other things already running on it.

First of all, you should not need the addons package. That is mainly for systems with no Internet connection.

I know that on version 2.5.0 there were problems for new installations with both in stalled. That was fixed in 2.5.1 but may be broken again.

ls -ld /var/log/openhab2/ /var/log/openhab2/*log
drwxr-xr-x 2 openhab openhab    4096 Sep 19 16:15 /var/log/openhab2/
-rw-r--r-- 1 openhab openhab       0 Sep 19 16:15 /var/log/openhab2/audit.log
-rw-r--r-- 1 openhab openhab 6233692 Sep 19 23:20 /var/log/openhab2/events.log
-rw-r--r-- 1 openhab openhab 7925208 Sep 19 23:11 /var/log/openhab2/openhab.log

I would revert the change with regard to the IP address and check if that works.
Changing the ports only shold be sufficient for what you would like to achieve.

i removed the X on the openhab.log permissions which seemed to get me further when running from the service i get the following page when i go to the webpage

HTTP ERROR 404
Problem accessing /start/index. Reason:
Not Found

The log shows

‘’
Sep 19 20:17:20 daqsrv7 karaf[12123]: Can’t connect to the container. The container is not running.
Sep 19 20:17:20 daqsrv7 systemd[1]: openhab2.service: Control process exited, code=exited status=1
Sep 19 20:17:20 daqsrv7 systemd[1]: openhab2.service: Failed with result ‘exit-code’.
Sep 19 20:17:25 daqsrv7 systemd[1]: openhab2.service: Service hold-off time over, scheduling restart.
Sep 19 20:17:25 daqsrv7 systemd[1]: openhab2.service: Scheduled restart job, restart counter is at 58.
Sep 19 20:17:25 daqsrv7 systemd[1]: Stopped openHAB 2 - empowering the smart home.
Sep 19 20:17:25 daqsrv7 systemd[1]: Started openHAB 2 - empowering the smart home.
Sep 19 20:17:26 daqsrv7 karaf[12286]: Listening for transport dt_socket at address: 5005
Sep 19 20:17:37 daqsrv7 karaf[12286]: [1B blob data]
Sep 19 20:17:37 daqsrv7 karaf[12286]: __ _____ ____
Sep 19 20:17:37 daqsrv7 karaf[12286]: ____ ____ ___ ____ / / / / | / __ )
Sep 19 20:17:37 daqsrv7 karaf[12286]: / __ / __ / _ / __ / // / /| | / __ |
Sep 19 20:17:37 daqsrv7 karaf[12286]: / /
/ / // / __/ / / / __ / ___ |/ // /
Sep 19 20:17:37 daqsrv7 karaf[12286]: _/ ./_// /// /// |/___/
Sep 19 20:17:37 daqsrv7 karaf[12286]: /_/ 2.5.8
Sep 19 20:17:37 daqsrv7 karaf[12286]: Release Build
Sep 19 20:17:37 daqsrv7 karaf[12286]: [1B blob data]
Sep 19 20:17:37 daqsrv7 karaf[12286]: Hit ‘’ for a list of available commands
Sep 19 20:17:37 daqsrv7 karaf[12286]: and ‘[cmd] --help’ for help on a specific command.
Sep 19 20:17:37 daqsrv7 karaf[12286]: Hit ‘’ or type ‘system:shutdown’ or ‘logout’ to shutdown openHAB.
Sep 19 20:17:38 daqsrv7 karaf[12286]: openhab>
Sep 19 20:17:58 daqsrv7 karaf[12286]: [8B blob data]
Sep 19 20:17:59 daqsrv7 karaf[12687]: Can’t connect to the container. The container is not running.
Sep 19 20:17:59 daqsrv7 systemd[1]: openhab2.service: Control process exited, code=exited status=1
Sep 19 20:17:59 daqsrv7 systemd[1]: openhab2.service: Failed with result ‘exit-code’.
Sep 19 20:18:04 daqsrv7 systemd[1]: openhab2.service: Service hold-off time over, scheduling restart.
Sep 19 20:18:04 daqsrv7 systemd[1]: openhab2.service: Scheduled restart job, restart counter is at 59.
Sep 19 20:18:04 daqsrv7 systemd[1]: Stopped openHAB 2 - empowering the smart home.
Sep 19 20:18:04 daqsrv7 systemd[1]: Started openHAB 2 - empowering the smart home.
Sep 19 20:18:04 daqsrv7 karaf[12852]: Listening for transport dt_socket at address: 5005
Sep 19 20:18:05 daqsrv7 systemd[1]: Stopping openHAB 2 - empowering the smart home…
Sep 19 20:18:06 daqsrv7 karaf[13013]: Can’t connect to the container. The container is not running.
Sep 19 20:18:06 daqsrv7 systemd[1]: openhab2.service: Control process exited, code=exited status=1
Sep 19 20:18:06 daqsrv7 systemd[1]: openhab2.service: Failed with result ‘exit-code’.
Sep 19 20:18:06 daqsrv7 systemd[1]: Stopped openHAB 2 - empowering the smart home.
‘’

The interesting thing is if i stop the service and run the start-debug.sh from the usr/share/openhab2 folder I get the command prompt and if can see the basicUI and paperUI on the web pages and can add things etc.

Once i type logout at command prompt and restart the service it breaks.

  • remark: removing the X on the openhab.log shouldn’t have any impact
  • what are the exact changes that you did to solve the address in use problem ?
  • in case you revert the changes and temporarily disable the web service that runs on 8080 does OH work then ?
  • have you tried to use 0.0.0.0 instead of your IP address ?

To honest I did not do anything to resolve the address issue, when i run the software using the start_debug.sh from the /usr/share/openhab2 folder it allowed me to see the web pages and do some preliminary setup. It was after doing that the service stopped giving the address error but i still cannot see the webpages when the service is running i only see them when i run start_debug.sh now.

I changed commented out the address line in config file and it has not changed the above.

I get this when i run a status when the service is running

‘’
root@daqsrv7:/usr/share/openhab2# openhab-cli status

A systemd service configuration exists…
Use ‘sudo /bin/systemctl status openhab2.service’ to find the status of an openHAB service
openHAB is not running.
root@daqsrv7:/usr/share/openhab2# systemctl start openhab2
root@daqsrv7:/usr/share/openhab2# openhab-cli status

A systemd service configuration exists…
Use ‘sudo /bin/systemctl status openhab2.service’ to find the status of an openHAB service
openHAB is running with PID: 2330 and has been running for 00:01
root@daqsrv7:/usr/share/openhab2# systemctl status openhab2
● openhab2.service - openHAB 2 - empowering the smart home
Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2020-09-20 16:09:12 EDT; 12s ago
Docs: https://www.openhab.org/docs/
https://community.openhab.org
Process: 13013 ExecStop=/usr/share/openhab2/runtime/bin/karaf stop (code=exited, status=1/FAILURE)
Main PID: 2198 (karaf)
Tasks: 38 (limit: 4658)
CGroup: /system.slice/openhab2.service
├─2198 /bin/sh /usr/share/openhab2/runtime/bin/karaf debug
└─2330 /usr/bin/java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -Dopenhab.home=/usr/share/openhab2 -Dopenhab.conf=/etc/openhab2 -Dopenhab.runtime=/usr/share/openhab2/runtime -Dopenha

Sep 20 16:09:12 daqsrv7 systemd[1]: Started openHAB 2 - empowering the smart home.
Sep 20 16:09:15 daqsrv7 karaf[2198]: Listening for transport dt_socket at address: 5005
Sep 20 16:09:22 daqsrv7 karaf[2198]: org.ops4j.pax.url.wrap [org.ops4j.pax.url.commons.handler.HandlerActivator] DEBUG : Handler for protocols [wrap] started

‘’
So as it stands right now if i manually run openhab2 it seems to work but when i start it as a service i get sometimes the front page and most of the time it get this.

‘’
Unable to connect

Firefox can’t establish a connection to the server at 192.168.1.207:9090.

‘’

If i run it under start_debug.sh i get this

‘’
root@daqsrv7:/usr/share/openhab2# ./start_debug.sh
Launching the openHAB runtime…
Listening for transport dt_socket at address: 5005

                      __  _____    ____

____ ____ ___ ____ / / / / | / __ )
/ __ / __ / _ / __ / // / /| | / __ |
/ /
/ / // / __/ / / / __ / ___ |/ // /
_/ ./_// /// /// |/___/
/_/ 2.5.8
Release Build

Hit ‘’ for a list of available commands
and ‘[cmd] --help’ for help on a specific command.
Hit ‘’ or type ‘system:shutdown’ or ‘logout’ to shutdown openHAB.

openhab>

‘’
When its run that way i get the main page showing basicUI and paperUI options i do note that is is not showing Habmin or Habpanel links there anymore despite my adding them yesterday.

So it seems that running it in manual start debug mode doesn’t really fix it either it may break it even more.

I started openhab2 under the setup-debug script and deleted all the configuration i did as far as bindings etc so it is basically back to installed state with exception of the items list and stuff i added from home builder.

After a full reboot without running anything and with the address option turned off in config so that part is default the ports i still need changed so i left them at 9090 i issued this

openhab-cli showlogs

I get this block in the logs repeated

‘’

2020-09-20 18:56:22.119 [ERROR] [r.features.FeatureDeploymentListener] - Unable to update deployed features for bundle: javassist - 3.18.1.GA
java.io.FileNotFoundException: /var/lib/openhab2/cache/org.eclipse.osgi/48/data/FeatureDeploymentListener.cfg (Permission denied)
at java.io.FileOutputStream.open0(Native Method) ~[?:1.8.0_265]
at java.io.FileOutputStream.open(FileOutputStream.java:270) ~[?:1.8.0_265]
at java.io.FileOutputStream.(FileOutputStream.java:213) ~[?:1.8.0_265]
at java.io.FileOutputStream.(FileOutputStream.java:162) ~[?:1.8.0_265]
at org.apache.karaf.deployer.features.FeatureDeploymentListener.saveProperties(FeatureDeploymentListener.java:130) ~[bundleFile:?]
at org.apache.karaf.deployer.features.FeatureDeploymentListener.bundleChanged(FeatureDeploymentListener.java:209) [bundleFile:?]
at org.apache.karaf.deployer.features.FeatureDeploymentListener.init(FeatureDeploymentListener.java:95) [bundleFile:?]
at org.apache.karaf.deployer.features.osgi.Activator$DeploymentFinishedListener.deploymentEvent(Activator.java:86) [bundleFile:?]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.registerListener(FeaturesServiceImpl.java:295) [bundleFile:?]
at org.apache.karaf.deployer.features.osgi.Activator.doStart(Activator.java:53) [bundleFile:?]
at org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:312) [bundleFile:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_265]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_265]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_265]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_265]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_265]
2020-09-20 18:56:23.814 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Time zone set to ‘Canada/Eastern’.
2020-09-20 18:56:23.816 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Locale set to ‘en_CA’.
2020-09-20 18:56:24.770 [ERROR] [g.dispatch.internal.ConfigDispatcher] - Error storing exclusive PID list in bundle data file: /var/lib/openhab2/cache/org.eclipse.osgi/141/data/configdispatcher_pid_list.json (Permission denied)
2020-09-20 18:56:24.812 [ERROR] [g.dispatch.internal.ConfigDispatcher] - Error storing exclusive PID list in bundle data file: /var/lib/openhab2/cache/org.eclipse.osgi/141/data/configdispatcher_pid_list.json (Permission denied)
2020-09-20 18:56:24.813 [ERROR] [g.dispatch.internal.ConfigDispatcher] - Error storing exclusive PID list in bundle data file: /var/lib/openhab2/cache/org.eclipse.osgi/141/data/configdispatcher_pid_list.json (Permission denied)
2020-09-20 18:56:24.813 [ERROR] [g.dispatch.internal.ConfigDispatcher] - Error storing exclusive PID list in bundle data file: /var/lib/openhab2/cache/org.eclipse.osgi/141/data/configdispatcher_pid_list.json (Permission denied)
2020-09-20 18:56:24.839 [ERROR] [g.dispatch.internal.ConfigDispatcher] - Error storing exclusive PID list in bundle data file: /var/lib/openhab2/cache/org.eclipse.osgi/141/data/configdispatcher_pid_list.json (Permission denied)
2020-09-20 18:56:27.628 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘rosewood.items’
2020-09-20 18:56:28.460 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘rosewood.sitemap’
2020-09-20 18:56:30.010 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2020-09-20 18:56:31.327 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://192.168.1.207:9090
2020-09-20 18:56:31.327 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://192.168.1.207:9443
2020-09-20 18:56:31.927 [INFO ] [openhab.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2020-09-20 18:56:34.002 [INFO ] [openhab.ui.paper.internal.PaperUIApp] - Stopped Paper UI
2020-09-20 18:56:34.056 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
2020-09-20 18:56:34.121 [INFO ] [.dashboard.internal.DashboardService] - Stopped Dashboard
2020-09-20 18:56:35.454 [ERROR] [e.internal.engine.RuleTriggerManager] - Error while starting the scheduler service: The Scheduler cannot be restarted after shutdown() has been called.
‘’

It keeps telling you “permission denied”. It is an OS permissions problem for the user account running OpenHAB.

Use the command to see current folder permissions:

openhab-cli info

Your folders are probably owned by root, use:

sudo openhab-cli reset-ownership

to fix them and please use code tags in your posts to make them readable:

```
Paste into your post like this
```

Thanks I looked for the code tags in the menu but didn’t see them hopefully I will get it right in this reply.

One thing to note since my last post i reinstalled java with no change and openhab updated itself as well but that did not change anything either so this code is all from the latest version of openhab that just came via apt.

openhab-cli info

Version:     2.5.9 (Build)

User:        openhab (Active Process 2250)
User Groups: openhab tty dialout audio

Directories: Folder Name      | Path                        | User:Group
             -----------      | ----                        | ----------
             OPENHAB_HOME     | /usr/share/openhab2         | openhab:openhab
             OPENHAB_RUNTIME  | /usr/share/openhab2/runtime | openhab:openhab
             OPENHAB_USERDATA | /var/lib/openhab2           | openhab:openhab
             OPENHAB_CONF     | /etc/openhab2               | openhab:openhab
             OPENHAB_LOGDIR   | /var/log/openhab2           | openhab:openhab

URLs:        http://192.168.1.207:9090
             https://192.168.1.207:9443

I did the reset-ownership anyway and the output result was the same as above i did a clean cache and then checked to see if it would run here is the terminal cap of the commands and the output

 echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/zulu-8/bin
root@daqsrv7:~# systemctl status openhab2
● openhab2.service - openHAB 2 - empowering the smart home
   Loaded: loaded (/usr/lib/systemd/system/openhab2.service; disabled; vendor preset: enabled)
   Active: active (running) since Mon 2020-09-21 02:33:20 EDT; 19s ago
     Docs: https://www.openhab.org/docs/
           https://community.openhab.org
  Process: 26544 ExecStop=/usr/share/openhab2/runtime/bin/karaf stop (code=exited, status=1/FAILURE)
 Main PID: 26695 (karaf)
    Tasks: 42 (limit: 4658)
   CGroup: /system.slice/openhab2.service
           ├─26695 /bin/sh /usr/share/openhab2/runtime/bin/karaf debug
           └─26825 /usr/bin/java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -Dopenhab.home=/usr/share/openhab2 -Dopenhab.conf=/etc/openhab2 -Dopenhab.runtime=

Sep 21 02:33:31 daqsrv7 karaf[26695]:  / __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __  |
Sep 21 02:33:31 daqsrv7 karaf[26695]: / /_/ / /_/ /  __/ / / / __  / ___ |/ /_/ /
Sep 21 02:33:31 daqsrv7 karaf[26695]: \____/ .___/\___/_/ /_/_/ /_/_/  |_/_____/
Sep 21 02:33:31 daqsrv7 karaf[26695]:     /_/                        2.5.9
Sep 21 02:33:31 daqsrv7 karaf[26695]:                                Release Build
Sep 21 02:33:31 daqsrv7 karaf[26695]: [1B blob data]
Sep 21 02:33:31 daqsrv7 karaf[26695]: Hit '<tab>' for a list of available commands
Sep 21 02:33:31 daqsrv7 karaf[26695]: and '[cmd] --help' for help on a specific command.
Sep 21 02:33:31 daqsrv7 karaf[26695]: Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown openHAB.
Sep 21 02:33:39 daqsrv7 karaf[26695]: openhab>
lines 1-22/22 (END)
root@daqsrv7:~# java -version
openjdk version "1.8.0_265"
OpenJDK Runtime Environment (Zulu 8.48.0.53-CA-linux64) (build 1.8.0_265-b11)
OpenJDK 64-Bit Server VM (Zulu 8.48.0.53-CA-linux64) (build 25.265-b11, mixed mode)
root@daqsrv7:~#
root@daqsrv7:~#
root@daqsrv7:~# openhab-cli info

Version:     2.5.9 (Build)

User:        openhab (Active Process 28352)
User Groups: openhab tty dialout audio

Directories: Folder Name      | Path                        | User:Group
             -----------      | ----                        | ----------
             OPENHAB_HOME     | /usr/share/openhab2         | openhab:openhab
             OPENHAB_RUNTIME  | /usr/share/openhab2/runtime | openhab:openhab
             OPENHAB_USERDATA | /var/lib/openhab2           | openhab:openhab
             OPENHAB_CONF     | /etc/openhab2               | openhab:openhab
             OPENHAB_LOGDIR   | /var/log/openhab2           | openhab:openhab

URLs:        http://192.168.1.207:9090
             https://192.168.1.207:9443

root@daqsrv7:~# openhab-cli status

A systemd service configuration exists...
Use 'sudo /bin/systemctl status openhab2.service' to find the status of an openHAB service
openHAB is running with PID: 32027 and has been running for       00:00

Output of “showlogs”

root@daqsrv7:~# openhab-cli showlogs

==> /var/log/openhab2/audit.log <==

==> /var/log/openhab2/events.log <==

==> /var/log/openhab2/openhab.log <==
        at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:1004) ~[org.eclipse.osgi-3.12.100.jar:?]
        at org.apache.karaf.util.tracker.BaseActivator.register(BaseActivator.java:425) ~[bundleFile:?]
        at org.apache.karaf.util.tracker.BaseActivator.register(BaseActivator.java:413) ~[bundleFile:?]
        at org.apache.karaf.features.internal.osgi.Activator.doStart(Activator.java:180) ~[bundleFile:?]
        at org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:312) [bundleFile:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_265]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_265]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_265]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_265]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_265]
2020-09-21 02:39:25.173 [WARN ] [org.jline                           ] - Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
2020-09-21 02:39:26.352 [ERROR] [ternal.service.BootFeaturesInstaller] - Error installing boot features
java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask@105d6692 rejected from java.util.concurrent.ThreadPoolExecutor@78344538[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
        at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2063) ~[?:1.8.0_265]
        at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830) ~[?:1.8.0_265]
        at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379) ~[?:1.8.0_265]
        at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) ~[?:1.8.0_265]
        at java.util.concurrent.Executors$DelegatedExecutorService.submit(Executors.java:681) ~[?:1.8.0_265]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvisionInThread(FeaturesServiceImpl.java:997) ~[bundleFile:?]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvisionInThread(FeaturesServiceImpl.java:972) ~[bundleFile:?]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:820) ~[bundleFile:?]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:740) ~[bundleFile:?]
        at org.apache.karaf.features.internal.service.BootFeaturesInstaller.installBootFeatures(BootFeaturesInstaller.java:97) [bundleFile:?]
        at org.apache.karaf.features.internal.service.BootFeaturesInstaller.start(BootFeaturesInstaller.java:87) [bundleFile:?]
        at org.apache.karaf.features.internal.osgi.Activator.doStart(Activator.java:196) [bundleFile:?]
        at org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:312) [bundleFile:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_265]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_265]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_265]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_265]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_265]

systemctl status openhab2

root@daqsrv7:~# systemctl status openhab2
● openhab2.service - openHAB 2 - empowering the smart home
   Loaded: loaded (/usr/lib/systemd/system/openhab2.service; disabled; vendor preset: enabled)
   Active: active (running) since Mon 2020-09-21 02:48:39 EDT; 5s ago
     Docs: https://www.openhab.org/docs/
           https://community.openhab.org
  Process: 11043 ExecStop=/usr/share/openhab2/runtime/bin/karaf stop (code=exited, status=1/FAILURE)
 Main PID: 11197 (karaf)
    Tasks: 42 (limit: 4658)
   CGroup: /system.slice/openhab2.service
           ├─11197 /bin/sh /usr/share/openhab2/runtime/bin/karaf debug
           └─11328 /usr/bin/java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -Dopenhab.home=/usr/share/openhab2 -Dopenhab.conf=/etc/openhab2 -Dopenhab.runtime=

Sep 21 02:48:41 daqsrv7 karaf[11197]:  / __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __  |
Sep 21 02:48:41 daqsrv7 karaf[11197]: / /_/ / /_/ /  __/ / / / __  / ___ |/ /_/ /
Sep 21 02:48:41 daqsrv7 karaf[11197]: \____/ .___/\___/_/ /_/_/ /_/_/  |_/_____/
Sep 21 02:48:41 daqsrv7 karaf[11197]:     /_/                        2.5.9
Sep 21 02:48:41 daqsrv7 karaf[11197]:                                Release Build
Sep 21 02:48:41 daqsrv7 karaf[11197]: [1B blob data]
Sep 21 02:48:41 daqsrv7 karaf[11197]: Hit '<tab>' for a list of available commands
Sep 21 02:48:41 daqsrv7 karaf[11197]: and '[cmd] --help' for help on a specific command.
Sep 21 02:48:41 daqsrv7 karaf[11197]: Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown openHAB.
Sep 21 02:48:41 daqsrv7 karaf[11197]: openhab>

Hopefully there is something in the code tags that will give a clue at what to check next, from what i see there is an issue with karaf for sure, and i suspect it has something to do with this server being root but i don’t know anything about karaf other than what i learned in the last few days.

Cheers and thanks to all for the responses.

I am not sure what the original issue was but the following got me to the main pages and installed everything that was included with expert mode. I can now see the main page with all the tabs for each UI.

sudo systemctl disable openhab2
sudo apt purge openhab2
sudo apt update
sudo apt install openhab2
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl start openhab2.service
root@daqsrv7:~# systemctl enable openhab2
root@daqsrv7:~# systemctl status openhab2
● openhab2.service - openHAB 2 - empowering the smart home
   Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2020-09-21 04:06:17 EDT; 6min ago
     Docs: https://www.openhab.org/docs/
           https://community.openhab.org
  Process: 18276 ExecStop=/usr/share/openhab2/runtime/bin/karaf stop (code=exited, status=0/SUCCESS)
 Main PID: 18436 (java)
    Tasks: 121 (limit: 4658)
   CGroup: /system.slice/openhab2.service
           └─18436 /usr/bin/java -Dopenhab.home=/usr/share/openhab2 -Dopenhab.conf=/etc/openhab2 -Dopenhab.runtime=/usr/share/openhab2/runtime -Dopenhab.userdata=/var/lib/openhab2 -Dopenhab.logdir=/var/log/op

Sep 21 04:06:17 daqsrv7 systemd[1]: Started openHAB 2 - empowering the smart home.

root@daqsrv7:~# openhab-cli info

Version:     2.5.9 (Build)

User:        openhab (Active Process 18436)
User Groups: openhab tty dialout audio

Directories: Folder Name      | Path                        | User:Group
             -----------      | ----                        | ----------
             OPENHAB_HOME     | /usr/share/openhab2         | openhab:openhab
             OPENHAB_RUNTIME  | /usr/share/openhab2/runtime | openhab:openhab
             OPENHAB_USERDATA | /var/lib/openhab2           | openhab:openhab
             OPENHAB_CONF     | /etc/openhab2               | openhab:openhab
             OPENHAB_LOGDIR   | /var/log/openhab2           | openhab:openhab

URLs:        http://192.168.1.207:9090
             https://192.168.1.207:9443