RPC Server (Port 2003) not starting - solved

Hi

Somehow the RPC server on port 2003 is not started. 2001 and 2002 RPCServer are working fine.
using homegear on raspberry pi running Stretch. rpcservers.conf and rpcclients.conf are default, no changes

enabling debug level 5 output below.

homegear -v
Homegear version 0.7.23-1891
Copyright (c) 2013-2018 Homegear GmbH

Git commit SHA of libhomegear-base: -
Git branch of libhomegear-base:     -
Git commit SHA of Homegear:         -
Git branch of Homegear:             -

PHP (License: PHP License):
This product includes PHP software, freely available from <http://www.php.net/software/>
Copyright (c) 1999-2018 The PHP Group. All rights reserved.

homegear.log:

07/04/18 11:03:13.441 Starting XML RPC server RPCServer1 listening on :::2001...
07/04/18 11:03:13.444 RPC Server (Port 2001): Warning: SSL is not enabled for this RPC server. It is strongly recommended to disable all unencrypted RPC servers when the connected clients support it.
07/04/18 11:03:13.444 RPC Server (Port 2001): Warning: RPC server has no authorization enabled. Everybody on your local network can login into this installation. It is strongly recommended to enable authorization on all RPC servers when the connected clients support it.
07/04/18 11:03:13.444 RPC Server (Port 2001): Info: Enabling session authentication for WebSockets.
07/04/18 11:03:13.445 Starting XML RPC server RPCServer2 listening on :::2002, SSL enabled...
07/04/18 11:03:13.445 RPC Server (Port 2001): Info: RPC Server started listening on address :: and port 2001
07/04/18 11:03:13.449 RPC Server (Port 2002): Warning: RPC server has no authorization enabled. Everybody on your local network can login into this installation. It is strongly recommended to enable authorization on all RPC servers when the connected clients support it.
07/04/18 11:03:13.449 RPC Server (Port 2002): Info: Enabling session authentication for WebSockets.
07/04/18 11:03:15.578 Starting XML RPC server RPCServer3 listening on :::2003, SSL enabled, authentication enabled...
07/04/18 11:03:15.579 RPC Server (Port 2002): Info: RPC Server started listening on address :: and port 2002
07/04/18 11:03:15.582 RPC Server (Port 2003): Info: Enabling basic authentication.
07/04/18 11:03:15.582 RPC Server (Port 2003): Info: Enabling client certificate authentication.
07/04/18 11:03:15.582 RPC Server (Port 2003): Info: Enabling session authentication for WebSockets.

homegear.err:

07/04/18 11:03:13.444 RPC Server (Port 2001): Warning: SSL is not enabled for this RPC server. It is strongly recommended to disable all unencrypted RPC servers when the connected clients support it.
07/04/18 11:03:13.444 RPC Server (Port 2001): Warning: RPC server has no authorization enabled. Everybody on your local network can login into this installation. It is strongly recommended to enable authorization on all RPC servers when the connected clients support it.
07/04/18 11:03:13.449 RPC Server (Port 2002): Warning: RPC server has no authorization enabled. Everybody on your local network can login into this installation. It is strongly recommended to enable authorization on all RPC servers when the connected clients support it.

syslog:

Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.830 Debug: debugLevel set to 5
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.830 Debug: memoryDebugging set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.830 Debug: devLog set to 0
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.830 Debug: enableCoreDumps set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: setDevicePermissions set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: workingDirectory set to /var/lib/homegear/
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: socketPath set to /var/run/homegear/
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: dataPath set to /var/lib/homegear/
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: familyDataPath set to /data/homegear/families/
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: databaseMemoryJournal set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: databaseWALJournal set to 0
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: databaseSynchronous set to 0
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: databasePath set to /data/homegear/db/
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: databaseBackupPath set to /data/homegear/db/
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: databaseMaxBackups set to 10
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: logfilePath set to /var/log/homegear/
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: enableUPnP set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: deviceDescriptionPath set to /etc/homegear/devices/
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: clientSettingsPath set to /etc/homegear/rpcclients.conf
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: serverSettingsPath set to /etc/homegear/rpcservers.conf
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: mqttSettingsPath set to /etc/homegear/mqtt.conf
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: familyConfigPath set to /etc/homegear/families/
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: phpIniPath set to /etc/homegear/php.ini
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: gpioPath set to /sys/class/gpio/
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: scriptPath set to /var/lib/homegear/scripts/
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: enableNodeBlue set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: nodeBluePath set to /var/lib/homegear/node-blue/
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.831 Debug: nodeBlueDataPath set to /data/homegear/node-blue/data/
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.832 Debug: nodeBlueDebugOutput set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.832 Debug: adminUiPath set to /var/lib/homegear/admin-ui/
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.832 Debug: uiPath set to /var/lib/homegear/ui/
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.832 Debug: libraryPath set to /var/lib/homegear/modules/
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.832 Debug: firmwarePath set to /usr/share/homegear/firmware/
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.832 Debug: tempPath set to /var/tmp/homegear/tmp/
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.832 Debug: lockFilePath set to /var/run/homegear/
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.832 Debug: lockFilePathPermissions set to 504
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.832 Debug: lockFilePathUser set to homegear
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.832 Debug: lockFilePathGroup set to homegear
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.832 Debug: Added replaceClientServerAddress xmlrpc_bin://127.0.0.1:1999 xmlrpc_bin://$remoteip:1999
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.832 Debug: Added replaceClientServerAddress http://127.0.0.1:9292/bidcos http://$remoteip:9292/bidcos
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.832 Debug: waitForCorrectTime set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.832 Debug: prioritizeThreads set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.832 Debug: secureMemorySize set to 65536
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.832 Debug: workerThreadWindow set to 3000
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.832 Debug: scriptEngineMaxThreadsPerScript set to 4
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.832 Debug: scriptEngineMaxScriptsPerProcess set to 50
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.832 Debug: scriptEngineThreadCount set to 5
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.832 Debug: scriptEngineServerMaxConnections set to 10
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.832 Debug: scriptEngineWatchdogTimeout set to 60000
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.832 Debug: scriptEngineManualClientStart set to 0
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: nodeBlueProcessingThreadCountServer set to 5
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: nodeBlueProcessingThreadCountNodes set to 10
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: nodeBlueServerMaxConnections set to 50
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: maxNodeThreadsPerProcess set to 60
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: nodeBlueWatchdogTimeout set to 60000
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: nodeBlueManualClientStart set to 0
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: ipcThreadCount set to 5
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: ipsServerMaxConnections set to 20
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: cliServerMaxConnections set to 50
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: rpcServerMaxConnections set to 50
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: rpcServerThreadPriority set to 0
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: rpcServerThreadPolicy set to 0
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: rpcClientMaxThreads set to 50
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: rpcClientThreadPriority set to 0
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: rpcClientThreadPolicy set to 0
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: workerThreadPriority set to 0
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: workerThreadPolicy set to 0
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: physicalInterfaceThreadPriority set to 45
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: physicalInterfaceThreadPolicy set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: packetReceivedThreadPriority set to 0
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: packetReceivedThreadPolicy set to 0
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: eventThreadCount set to 5
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: eventThreadPriority set to 0
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.833 Debug: eventThreadPolicy set to 0
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.835 Loading RPC server settings from /etc/homegear/rpcservers.conf
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.848 Debug: interface of server RPCServer1 set to ::
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.849 Debug: port of server RPCServer1 set to 2001
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.849 Debug: xmlrpcServer of server RPCServer1 set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.849 Debug: jsonrpcServer of server RPCServer1 set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.849 Debug: webServer of server RPCServer1 set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.849 Debug: restServer of server RPCServer1 set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.849 Debug: contentPath of RPC server RPCServer1 set to /var/lib/homegear/www/rpc/
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.849 Debug: webSocket of server RPCServer1 set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.849 Debug: ssl of server RPCServer1 set to 0
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.860 Debug: authType of server RPCServer1 set to 0
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.861 Debug: websocketauthtype of server RPCServer1 set to 4
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.861 Debug: interface of server RPCServer2 set to ::
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.861 Debug: port of server RPCServer2 set to 2002
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.861 Debug: xmlrpcServer of server RPCServer2 set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.861 Debug: jsonrpcServer of server RPCServer2 set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.861 Debug: webServer of server RPCServer2 set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.861 Debug: restServer of server RPCServer2 set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.861 Debug: contentPath of RPC server RPCServer2 set to /var/lib/homegear/www/rpc/
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.861 Debug: webSocket of server RPCServer2 set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.861 Debug: ssl of server RPCServer2 set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.861 Debug: authType of server RPCServer2 set to 0
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.861 Debug: websocketauthtype of server RPCServer2 set to 4
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.861 Debug: caPath of server RPCServer2 set to /etc/homegear/ca/cacert.pem
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.861 Debug: certPath of server RPCServer2 set to /etc/homegear/homegear.crt
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.861 Debug: keyPath of server RPCServer2 set to /etc/homegear/homegear.key
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.861 Debug: dhParamPath of server RPCServer2 set to /etc/homegear/dh1024.pem
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.861 Debug: interface of server RPCServer3 set to ::
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.862 Debug: port of server RPCServer3 set to 2003
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.862 Debug: xmlrpcServer of server RPCServer3 set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.862 Debug: jsonrpcServer of server RPCServer3 set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.862 Debug: webServer of server RPCServer3 set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.862 Debug: restServer of server RPCServer3 set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.862 Debug: contentPath of RPC server RPCServer3 set to /var/lib/homegear/www/rpc/
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.862 Debug: webSocket of server RPCServer3 set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.862 Debug: ssl of server RPCServer3 set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.862 Debug: authType of server RPCServer3 set to 3
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.862 Debug: websocketauthtype of server RPCServer3 set to 4
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.862 Debug: caPath of server RPCServer3 set to /etc/homegear/ca/cacert.pem
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.862 Debug: certPath of server RPCServer3 set to /etc/homegear/homegear.crt
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.862 Debug: keyPath of server RPCServer3 set to /etc/homegear/homegear.key
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.862 Debug: dhParamPath of server RPCServer3 set to /etc/homegear/dh1024.pem
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.862 Loading RPC client settings from /etc/homegear/rpcclients.conf
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.883 Debug: hostname of RPC client ExampleClient1 set to myhostname
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.883 Debug: caFile of RPC client ExampleClient1 set to /path/to/ca-certficate
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.883 Debug: verifyCertificate of RPC client ExampleClient1 set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.883 Debug: forceSSL of RPC client ExampleClient1 set to 0
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.883 Debug: authType of RPC client ExampleClient1 set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.883 Debug: userName of RPC client ExampleClient1 set to myuser
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.883 Debug: password of RPC client ExampleClient1 was set.
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.883 Debug: certFile of RPC client ExampleClient1 set to /path/to/client.crt
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.883 Debug: keyFile of RPC client ExampleClient1 set to /path/to/client.key
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.895 Debug: retries of RPC client ExampleClient1 set to 3
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.895 Debug: timeout of RPC client ExampleClient1 set to 15000000
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.895 Debug: hostname of RPC client ExampleClient2 set to 192.168.178.89
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.895 Debug: retries of RPC client ExampleClient2 set to 5
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.895 Debug: timeout of RPC client ExampleClient2 set to 30000000
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.903 Debug (MQTT settings): enabled set to 0
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.903 Debug (MQTT settings): brokerHostname set to localhost
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.903 Debug (MQTT settings): brokerPort set to 1883
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.903 Debug (MQTT settings): clientName set to Homegear
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.903 Debug (MQTT settings): prefix set to homegear/
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.903 Debug (MQTT settings): homegearId set to 1234-5678-9abc
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.903 Debug (MQTT settings): retain set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.903 Debug (MQTT settings): processingThreadCount set to 5
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.903 Debug (MQTT settings): plainTopic set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.903 Debug (MQTT settings): jsonTopic set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.903 Debug (MQTT settings): jsonobjTopic set to 1
Jul  4 11:03:10 lemonpi homegear[449]: 07/04/18 11:03:10.903 Debug (MQTT settings): enableSSL set to

folder structure:

ls -l
total 228
drwxr-xr-x 5 root     root      4096 May 10 20:17 devices
-r-------- 1 homegear homegear   820 Jan 23 15:34 dh1024.pem
drw-r-xr-x 2 root     root      4096 Jun 27 12:27 families
-rw-r--r-- 1 root     root      1111 Jan 23 15:25 homegear.crt
-r-------- 1 homegear homegear  1679 Jan 23 15:25 homegear.key
-rwxr-xr-x 1 root     root       209 Jan 24 12:19 homegear-start.sh
-rwxr-xr-x 1 root     root       208 Jan 24 12:19 homegear-start.sh.orig
-rwxr-xr-x 1 root     root       108 Dec 18  2017 homegear-stop.sh
-rw-r--r-- 1 root     root     13720 Jul  4 11:08 main.conf
-rw-r--r-- 1 root     root     13693 Jun 25 09:31 main.conf.orig
-rw-r--r-- 1 root     root      3422 Jan 29 12:34 mqtt.conf
-rw-r--r-- 1 root     root     72074 May 10 22:24 php.ini
-rw-r--r-- 1 root     root     72074 May 10 20:53 php.ini.orig
-r--r----- 1 homegear homegear  1941 Dec 18  2017 rpcclients.conf
-rw-r--r-- 1 root     root     11115 Jun 25 09:31 rpcservers.conf

ports listening on the server:

netstat -ln | grep 200
tcp6       0      0 :::2001                 :::*                    LISTEN
tcp6       0      0 :::2002                 :::*                    LISTEN
udp6       0      0 2002:6d5b:14bf:0:75:123 :::*

Hmm, there should be an error message. How does your rpcservers.conf look like? There have been two changes:

  1. validUsers is replaced by validGroups
  2. The certificates to use are now specified in rpcservers.conf instead of main.conf.

My rpcservers.conf looks like this:

[RPCServer3]
# Interface to bind the RPC server to. By default IPv4 and IPv6 are
# enabled. If you want to only use IPv4 set "interface" to "0.0.0.0".
# Default: rpcInterface = ::
interface = ::

# The port number to bind the RPC server to. This setting is mandatory.
port = 2003

# Enable Homegear's XML-RPC and binary RPC server on this port. 
# Default: true
xmlrpcServer = true

# Enable Homegear's JSON-RPC server on this port. 
# Default: true
jsonrpcServer = true

# Enable Homegear's build-in web server on this port
# Default: false
webServer = true

# Path to static web content used by the web server
# Default: /var/lib/homegear/www
contentPath = /var/lib/homegear/www/rpc

# Enable Homegear's build-in WebSocket server on this port
# Default: false
webSocket = true

# Set ssl to "true" to enable SSL support
ssl = true

# Default: certPath = /etc/homegear/homegear.crt
certPath = /etc/homegear/homegear.crt

# Default: keyPath = /etc/homegear/homegear.key
keyPath = /etc/homegear/homegear.key

# Default: dhParamPath = /etc/homegear/dh1024.pem
dhParamPath = /etc/homegear/dh1024.pem

# You can specify the HTTP authentication type your XML RPC server
# uses here.
# Can be one of the following: none, basic
# Default: authType = basic
authType = basic

# You can specify the websocket authentication type here. Never ever use basic auth
# over an unencrypted connection!
# Can be one of the following: none, basic, session
# "session" checks for the PHP session variable "authorized", which must be set to
# "true" for the authentication to succeed.
# Default: webSocketAuthType = session
webSocketAuthType = session

# The size in bit of the temporary Diffie-Hellman parameters generated at start up.
# This setting is ignored when Diffie-Hellman parameters are read from file.
# Should be >= 1024 bit.
# Default: diffieHellmanKeySize = 1024
diffieHellmanKeySize = 1024

# Comma separated list of user names created with Homegear's CLI.
validGroups = 1

Hi

thanks for checking.

I did a diff between this rpcservers.conf (https://raw.githubusercontent.com/Homegear/Homegear/0.7.23/misc/Config%20Directory/rpcservers.conf)
and mine and saw no difference. So did not do any modifications on it.

Checked as well on a fresh installation and server did also not start up there.

I see two differences to yours:

mine:
authType = basic, cert

yours:
authType = basic
diffieHellmanKeySize = 1024

when changing “authType = basic” the server starts.
using “authType = basic, cert” the server does not start.

thanks

Hmm,

maybe there is an error in 0.7.23. Let’s wait for 0.7.24 which will be released shortly (it’s testing now). It is very likely the error is solved there.

Cheers,

Sathya

Hi

using now: Homegear version 0.7.27-1824

but same problem is still existing

cheers
Wolfgang

Oh, you are missing the “ca” directory. Install homegear-management and execute:

homegear -e rc '$hg->managementCreateCa();'

When

homegear -e rc '$hg->managementGetCommandStatus();'

returns 0 as exit code (= success, 256 means running), the creation is finished. Restart Homegear and the RPC server should work.

Cheers,

Sathya

Hi

thanks for the prompt response, but the suggestion did not help.

cheers

What’s the content of /etc/homegear/ca now? Do the files referenced in rpcserver.conf exist? What is the output of homegear -e rc '$hg->managementGetCommandStatus();' after executing the managementCreateCa() command?

Hi

here what I did:

root@lemonpi:~# homegear -e rc ‘$hg->managementCreateCa();’
root@lemonpi:~# echo $?
0
root@lemonpi:~# homegear -e rc ‘$hg->managementGetCommandStatus();’
root@lemonpi:~# echo $?
0

The folder is not created.

root@lemonpi:~# ls -la /etc/homegear/
total 244
drwxr-xr-x 4 root root 4096 Aug 19 10:28 .
drwxr-xr-x 91 root root 4096 Aug 19 10:44 …
drwxr-xr-x 5 root root 4096 May 10 20:17 devices
-r-------- 1 homegear homegear 820 Jan 23 2018 dh1024.pem
drw-r-xr-x 2 root root 4096 Aug 19 10:31 families
-rw-r–r-- 1 root root 1111 Jan 23 2018 homegear.crt
-r-------- 1 homegear homegear 1679 Jan 23 2018 homegear.key
-rwxr-xr-x 1 root root 209 Jan 24 2018 homegear-start.sh
-rwxr-xr-x 1 root root 208 Jan 24 2018 homegear-start.sh.orig
-rwxr-xr-x 1 root root 108 Dec 18 2017 homegear-stop.sh
-rw-r–r-- 1 root root 13720 Aug 19 10:28 main.conf
-rw-r–r-- 1 root root 13693 Jun 25 09:31 main.conf.orig
-rw-r–r-- 1 root root 1319 Jul 4 13:39 management.conf
-rw-r–r-- 1 root root 1319 Jul 4 13:39 management.conf.orig
-rw-r–r-- 1 root root 3422 Jan 29 2018 mqtt.conf
-rw-r–r-- 1 root root 72074 May 10 22:24 php.ini
-rw-r–r-- 1 root root 72074 May 10 20:53 php.ini.orig
-r–r----- 1 homegear homegear 1941 Dec 18 2017 rpcclients.conf
-rw-r–r-- 1 root root 11115 Jul 11 18:49 rpcservers.conf

inside of rpcserver.conf I see the following reference:

caPath = /etc/homegear/ca/cacert.pem

cheers

Hi again

I found my fault in executing the command. The FS was ro, I have not changed it to rw.
After changing to rw the folder and content is created.

root@lemonpi:/var/log/homegear# ls -la /etc/homegear/ca/
total 36
drwxr-xr-x 7 root root 4096 Aug 20 21:19 .
drwxr-xr-x 5 root root 4096 Aug 20 21:18 …
-rw-r–r-- 1 root root 1931 Aug 20 21:19 cacert.pem
drwxr-xr-x 2 root root 4096 Aug 20 21:18 certs
drwxr-xr-x 2 root root 4096 Aug 20 21:18 crl
-rw-r–r-- 1 root root 0 Aug 20 21:18 index.txt
drwxr-xr-x 2 root root 4096 Aug 20 21:18 newcerts
drwxr-xr-x 2 root root 4096 Aug 20 21:18 private
drwxr-xr-x 2 root root 4096 Aug 20 21:18 requests
-rw-r–r-- 1 root root 5 Aug 20 21:18 serial

and also the server is started.

I tried is with an older release from scratch and saw the same problem. Will the folder not be created on an initial installation?

thanks a lot for your patience and help

cheers

No currently not - but you are right, it definitely should be created…