OH4.0.4 bundle:restart command not found

Hello all,

just out of the blue - withhout having done any changes the bundle:restart command is missing. So bascially I can not restart bundles anymore.

Just restarted openhab, but that did not help.

                           _   _     _     ____
   ___   ___   ___   ___  | | | |   / \   | __ )
  / _ \ / _ \ / _ \ / _ \ | |_| |  / _ \  |  _ \
 | (_) | (_) |  __/| | | ||  _  | / ___ \ | |_) )
  \___/|  __/ \___/|_| |_||_| |_|/_/   \_\|____/
       |_|       4.0.4 - Release Build

Use '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
To exit, use '<ctrl-d>' or 'logout'.

openhab> bundle:restart
Command not found: bundle:restart

Karaf
  Karaf version               4.4.3
  Karaf home                  /usr/share/openhab/runtime
  Karaf base                  /var/lib/openhab
  OSGi Framework              org.eclipse.osgi-3.18.0.v20220516-2155

JVM
  Java Virtual Machine        OpenJDK 64-Bit Server VM version 17.0.9+8-LTS
  Version                     17.0.9
  Vendor                      Azul Systems, Inc.
  Pid                         930700
  Uptime                      13 minutes
  Process CPU time            6 minutes
  Process CPU load            0.00
  System CPU load             1.00
  Open file descriptors       224
  Max file descriptors        102,642
  Total compile time          4 minutes
Threads
  Live threads                304
  Daemon threads              134
  Peak                        321
  Total started               1311
Memory
  Current heap size           300,544 kbytes
  Maximum heap size           2,048,000 kbytes
  Committed heap size         862,208 kbytes
  Pending objects             0
  Garbage collector           Name = 'G1 Young Generation', Collections = 43, Time = 2.868 seconds
  Garbage collector           Name = 'G1 Old Generation', Collections = 0, Time = 0.000 seconds
Classes
  Current classes loaded      26,285
  Total classes loaded        26,432
  Total classes unloaded      147
Operating system
  Name                        Linux version 6.2.16-3-pve
  Architecture                amd64
  Processors                  2
  Total physical memory       3,432,636 kbytes
  Free physical memory        125,340 kbytes

Can you post output of la -s|grep shell and la -s|grep console? Please also check if you have any suspicious log entries.

openhab> la -s | grep console
168 x Active x  80 x 4.0.4                  x org.openhab.core.io.console
169 x Active x  80 x 4.0.4                  x org.openhab.core.io.console.karaf
openhab> la -s | grep shell
259 x Active x  80 x 4.0.4                  x org.openhab.binding.shelly

Some entries from openhab.log

2023-12-06 06:29:00.806 [ERROR] [ommunicator.AbstractHomematicGateway] - java.util.concurrent.ExecutionException: java.util.concurrent.TimeoutException: Total timeout 15000 ms elapsed
2023-12-07 01:08:42.775 [ERROR] [ommunicator.AbstractHomematicGateway] - java.util.concurrent.ExecutionException: java.util.concurrent.TimeoutException: Total timeout 15000 ms elapsed
2023-12-07 01:10:12.991 [ERROR] [ommunicator.AbstractHomematicGateway] - java.util.concurrent.TimeoutException

Oh, I think I found the reason:

I added my public keys to the console as described here:

When I log in via public keys the bundle:restart command is missing. When I log on “tradionally” with username and pw it works…

openhab> la -s | grep console
168 x Active   x  80 x 4.0.4                  x org.openhab.core.io.console
169 x Active   x  80 x 4.0.4                  x org.openhab.core.io.console.ka
openhab> la -s | grep shell
 23 x Active   x  30 x 4.4.3                  x org.apache.karaf.shell.commands
 24 x Active   x  30 x 4.4.3                  x org.apache.karaf.shell.core
 86 x Active   x  30 x 4.4.3                  x org.apache.karaf.shell.ssh
259 x Active   x  80 x 4.0.4                  x org.openhab.binding.shelly

Do you still have :admingroup at the end of the entry with the key? If not that login doesn’t have permission to run those commands. It’s not a member of the admin group.

@rlkoshak thanks for the hint. Indeed I had the :admingroup but by mistake I placed a , between → :,admingroup

That was the issue. I removed the , and everything works fine.

Awesome, I believe that Rich post above yours deserves solution badge. :wink: