Homegear Installation with Openhabian GUI

  • Platform information:
    • Hardware: Pi4+
    • OS: what OS is used and which version
    • Java Runtime Environment: Openhabian included
    • openHAB version: 3.0
  • Issue of the topic: please be detailed explaining your issue
  • Please post configurations (if applicable):
    • Items configuration related to the issue
    • Sitemap configuration related to the issue
    • Rules code related to the issue
    • Services configuration related to the issue
  • If logs where generated please post these here using code fences:

Hi,

ich habe Openhabian installiert und dann die Homegear installation über die gui durchgeführt. Diese endet mit Fehlermeldung. Homegear startet leider nicht. Nach sudo -u homegear homegear erhalte ich folgende Ausgabe:

09/18/21 22:05:22.800 Loading settings from /etc/homegear/main.conf
09/18/21 22:05:22.801 Loading RPC server settings from /etc/homegear/rpcservers.conf
09/18/21 22:05:22.802 Loading RPC client settings from /etc/homegear/rpcclients.conf
09/18/21 22:05:22.802 Debug: hostname of RPC client ExampleClient1 set to myhostname
09/18/21 22:05:22.802 Debug: caFile of RPC client ExampleClient1 set to /path/to/ca-certficate
09/18/21 22:05:22.802 Debug: verifyCertificate of RPC client ExampleClient1 set to 1
09/18/21 22:05:22.802 Debug: forceSSL of RPC client ExampleClient1 set to 0
09/18/21 22:05:22.802 Debug: authType of RPC client ExampleClient1 set to 1
09/18/21 22:05:22.802 Debug: userName of RPC client ExampleClient1 set to myuser
09/18/21 22:05:22.802 Debug: password of RPC client ExampleClient1 was set.
09/18/21 22:05:22.802 Debug: certFile of RPC client ExampleClient1 set to /path/to/client.crt
09/18/21 22:05:22.802 Debug: keyFile of RPC client ExampleClient1 set to /path/to/client.key
09/18/21 22:05:22.802 Debug: retries of RPC client ExampleClient1 set to 3
09/18/21 22:05:22.802 Debug: timeout of RPC client ExampleClient1 set to 15000000
09/18/21 22:05:22.802 Debug: hostname of RPC client ExampleClient2 set to 192.168.178.89
09/18/21 22:05:22.802 Debug: retries of RPC client ExampleClient2 set to 5
09/18/21 22:05:22.802 Debug: timeout of RPC client ExampleClient2 set to 30000000
09/18/21 22:05:22.803 Info: Setting allowed core file size to "4294967295" for user with id 114 and group with id 121.
09/18/21 22:05:22.803 Info: Core file size now is "4294967295".
09/18/21 22:05:22.803 Info: Setting maximum thread priority to "0" for user with id 114 and group with id 121.
09/18/21 22:05:22.803 Info: Maximum thread priority now is "0".
09/18/21 22:05:22.803 Starting Homegear...
09/18/21 22:05:22.803 Homegear version: 0.7.48-3324
09/18/21 22:05:22.803 Determining maximum thread count...
09/18/21 22:05:23.898 Maximum thread count is: 333
09/18/21 22:05:23.906 Info: Backing up database...
09/18/21 22:05:23.968 Initializing database...
09/18/21 22:05:24.465 Homegear instance ID: 0005CC49FD8C3351-A74E1325-EC55-E425-2042-DC1BEBB60270
09/18/21 22:05:24.465 Debug: Loading licensing modules
09/18/21 22:05:24.465 Initializing system variable controller...
09/18/21 22:05:24.467 Debug: Loading family modules
09/18/21 22:05:24.467 Info: Loading family module (type 1) mod_miscellaneous.so
09/18/21 22:05:24.471 Info: Loading settings from /etc/homegear/families/miscellaneous.conf
09/18/21 22:05:24.472 Info: Homegear is (now) running as user with id 114 and group with id 121.
09/18/21 22:05:24.526 Starting script engine server...
09/18/21 22:05:24.551 Script Engine Server: Critical: Directory /var/run/homegear/ does not exist. Please create it before starting Homegear otherwise the script engine won't work.
09/18/21 22:05:24.551 Script Engine Server: Critical: Directory /var/run/homegear/ does not exist. Please create it before starting Homegear otherwise the script engine won't work.
09/18/21 22:05:24.551 Critical: Cannot start script engine server. Exiting Homegear.
09/18/21 22:05:24.551 Critical: Cannot start script engine server. Exiting Homegear.
09/18/21 22:05:24.552 Closing database...
09/18/21 22:05:24.552 Debug: Can't execute "COMMIT": cannot commit - no transaction is active
09/18/21 22:05:24.586 Info: Disposing family module mod_miscellaneous.so
09/18/21 22:05:24.586 Debug: Deleting factory pointer of module mod_miscellaneous.so
09/18/21 22:05:24.586 Debug: Closing dynamic library module mod_miscellaneous.so
09/18/21 22:05:24.586 Debug: Dynamic library mod_miscellaneous.so disposed

Es scheint irgendwie an diesem Punkt zu liegen: Critical: Cannot start script engine server. Exiting Homegear.
Ich möchte einfach nur Homegear über das Openhabian GUI installieren…

Weiß jemand Rat?

Danke und Gruß

English, please.

You must not manually start homegear. If installed via openhabian-config, it’s a service.
See systemctl status homegear.

Hi, thnx for the quick answert. This is the Error message i get:

● homegear.service - Homegear
   Loaded: loaded (/etc/systemd/system/homegear.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2021-09-19 00:49:41 CEST; 9h ago
  Process: 4244 ExecStartPre=/usr/local/sbin/rpi_init /usr/bin/gpio export 18 out (code=exited, status=127)

Sep 19 00:49:41 openhabian2 systemd[1]: Starting Homegear...
Sep 19 00:49:41 openhabian2 rpi_init[4244]: /usr/local/sbin/rpi_init: Zeile 5: /usr/bin/gpio: Datei oder Verzeichnis nicht gefunden
Sep 19 00:49:41 openhabian2 systemd[1]: homegear.service: Control process exited, code=exited, status=127/n/a
Sep 19 00:49:41 openhabian2 systemd[1]: homegear.service: Failed with result 'exit-code'.
Sep 19 00:49:41 openhabian2 systemd[1]: Failed to start Homegear.

While installing Homegear with the Openhabian GUI an error message pops up. The posted infos about the message doesnt help me in any way.

 There was an error or interruption during the execution of:                  │
 │   "20 | Optional Components"                                                 │
 │                                                                              │
 │ Please try again. If the error persists, please read                         │
 │ /opt/openhabian/docs/openhabian-DEBUG.md or                                  │
 │ https://github.com/openhab/openhabian/blob/main/docs/openhabian-DEBUG.md how │
   to proceed.                                                                  │
  
2021-09-19_10:19:34_CEST [openHABian] Updating Linux package information... OK
2021-09-19_10:19:34_CEST [openHABian] Beginning Homematic CCU2 emulation software Homegear install... OK
2021-09-19_10:19:39_CEST [openHABian] Adding required keys to apt... OK
2021-09-19_10:19:39_CEST [openHABian] Installing Homegear... OK
2021-09-19_10:19:55_CEST [openHABian] Setting up Homegear user account permissions... OK
2021-09-19_10:19:56_CEST [openHABian] Setting up Homegear service... FAILED (enable service)
2021-09-19_10:21:54_CEST [openHABian] Checking for default openHABian username:password combination... FAILED

                                                                                 

this looks like the executable gpio is not available.
Seems like the package wiringpi is not installed.

Update openHABian and try again to install. Read the debug guide.