Homematic Binding can not connect to Homegear after OH4 Upgrade

Hello,

I recently updated my system to OH4 stable. After two days of trying to get the Homematic Binding to work again, I need your help. Until the upgrade the binding was working, but since the new OH version, it seems as if the connection to the homegear rpc server could not be established.

The OH log states the following when I try to enable the bridge:
2023-07-26 19:32:09.899 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘homematic:bridge:277af19682’ changed from INITIALIZING to OFFLINE (COMMUNICATION_ERROR): java.util.concurrent.ExecutionException: java.net.ConnectException: Verbindungsaufbau abgelehnt

Connection refused. The Homegear logfile states, that the rfc server is successfully started and running, written in the logfile as well as in the integrated lifetick function:
07/26/23 17:17:20.842 Initializing RPC server RPCServer1 listening on 0.0.0.0:2001…

But if I use netstat to show the open ports, port 2001 does not appear. This is the output of netstat -tlnp:
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:9001 0.0.0.0:* LISTEN 468/node
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 604/mariadbd
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 4542/smbd
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 16779/nginx: master
tcp 0 0 0.0.0.0:8081 0.0.0.0:* LISTEN 16779/nginx: master
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 563/sshd: /usr/sbin
tcp 0 0 0.0.0.0:1880 0.0.0.0:* LISTEN 373/node-red
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 16779/nginx: master
tcp 0 0 0.0.0.0:1883 0.0.0.0:* LISTEN 501/mosquitto
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 4542/smbd
tcp6 0 0 127.0.0.1:45091 :::* LISTEN 467/java
tcp6 0 0 127.0.0.1:8101 :::* LISTEN 467/java
tcp6 0 0 :::139 :::* LISTEN 4542/smbd
tcp6 0 0 :::5007 :::* LISTEN 467/java
tcp6 0 0 :::8080 :::* LISTEN 467/java
tcp6 0 0 :::22 :::* LISTEN 563/sshd: /usr/sbin
tcp6 0 0 :::3000 :::* LISTEN 4587/grafana-server
tcp6 0 0 :::8443 :::* LISTEN 467/java
tcp6 0 0 :::1883 :::* LISTEN 501/mosquitto
tcp6 0 0 :::445 :::* LISTEN 4542/smbd

The Homegear logfile shows, that the communication between the Homematic items and Homegear is working fine, but it seems that something is blocking the rpc server…

Any ideas on this?

Thank you!

I think this is a contradiction.
Either the port is in listening mode and it is listed by running netstat command or it is not in listening mode then it is not listed.
Even if a firewall is used in front of the port the and port itself is in listening mode it will be shown using netstat.

Does journalctl show something about a problem e.g. that the rpc server stops again ?

This is exactly what I thought, if it is not avaiable via netstat, it should not be up.

The lifetick function from Homegear returns just the following:
RPC Client: OK
RPC Server (Port 2001): OK
Device families: OK

This is the output of journalctl -p 3 -xb, errors only from openhab:

Jul 26 23:25:20 openhab kernel: vc_sm_cma_vchi_init: failed to open VCHI service (-1)
Jul 26 23:25:20 openhab kernel: [vc_sm_connected_init]: failed to initialize shared memory service
Jul 26 23:25:21 openhab kernel: bcm2835_mmal_vchiq: Failed to open VCHI service connection (status=-1)
Jul 26 23:25:21 openhab kernel: bcm2835_mmal_vchiq: Failed to open VCHI service connection (status=-1)
Jul 26 23:25:21 openhab kernel: bcm2835_mmal_vchiq: Failed to open VCHI service connection (status=-1)
Jul 26 23:25:21 openhab kernel: brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
Jul 26 23:25:21 openhab systemd-udevd[174]: eth0: Failed to rename network interface 2 from ‘eth0’ to ‘enxb827eb65287b’: Device or resource busy
Jul 26 23:25:22 openhab kernel: brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
Jul 26 23:25:22 openhab kernel: brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Nov 1 2021 00:37:25 version 7.45.241 (1a2f2fa CY) FWID 01-703fd60
Jul 26 23:25:58 openhab dhcpcd[323]: dhcpcd_prestartinterface: wlan0: Operation not possible due to RF-kill
Jul 26 23:26:11 openhab bluetoothd[1261]: profiles/sap/server.c:sap_server_register() Sap driver initialization failed.
Jul 26 23:26:11 openhab bluetoothd[1261]: sap-server: Operation not permitted (1)
Jul 26 23:26:11 openhab bluetoothd[1261]: Failed to set privacy: Rejected (0x0b)

What I forgot to mention, with the OH4 update Homegear wa updated to V0.8.1 (?), testing repo. I already tried the stable and the nightly versions (0.7 and 0.9), currently I am at the stable version again.

Short update, another thing that is uncommon.

If I use homegear -r and lt for the lifetick the answer is:
RPC Client: OK
RPC Server (Port 2001): OK
RPC Server (Port 2002): OK
RPC Server (Port 2003): OK
RPC Server (Port 2004): OK
RPC Server (Port 9080): OK
RPC Server (Port 9443): OK
Device families: OK

But if I use rpc to list servers I get:
Name Interface Port SSL Auth
RPCServer1 :: 2001 false none
RPCServer2 :: 2002 true none
RPCServer4 127.0.0.1 2004 false none
WebServer1 :: 9080 false none
WebServer2 :: 9443 true none

Here the RPCServer3 is missing completely…

I’ll try it in a different way… Is there anybody here, who is using homegear with OH 4.x wihtout any problems?

Hi there
did you get anywhere with this issue? I do have major issues with the homematic binding / homegear setup. There has been no way to get it up and running.

No, there is no change since my last post.

I hope to get rid of the homematic devices soon, so I won’t invest more time into his issue.
At least for me, it is one of a few things that simply don’t work with OH 4.x…

thanks
I am absolutely with you. Got most of OH4 working after spending several hours adapting all kinds of settings to this version.
Homematic and homegear will not work at all. Even switching back to the old version nothing will connect.

Was lucky to have the old 3.4.4 setup on sd and ssd. So at least on that side I can switch between trail and operating. For now

Yes, here. I am using Homegear (0.8.1-3519) with OH 4.0.2 without any problems. If netstat -al doesn’t show port 2001 in your case, the issue clearly is with HG, not OH, since it’s totally listed for me:

$ netstat -al | grep 2001
tcp6       0      0 [::]:2001               [::]:*                  LISTEN     
tcp6       0      0 server.fritz.box:2001   server.fritz.box:32788  VERBUNDEN  
tcp6       0      0 server.fritz.box:32788  server.fritz.box:2001   VERBUNDEN 

FWIW, this is also the case for me, so probably not indicative of an issue.

sounds good. but the questions is why and/or how?

With or without any of the many manual adjustments suggested by homegear? Back in the old days some changes besides the adjustment in the homematicwired, homematicbidcos, etc were required. Plus changes to the GPIO settings.

I am currently restarting another fresh install. Would be nice to get it working this time.

Without any manual adjustments (that I’m aware of - the HG installation isn’t new, so I may have forgotten something), except the needed ones (rfKey, centralAddress, RF hardware).
I’m not using a Raspi though, but an Intel NUC with a CULv3 stick.
Does the homegear.log file shed any light?

Ok, just got the next install started. First thing out of the log ‘could not start listening on port 80’. More important ‘Could not set owner on /var/lib/homegear/defaultPassword.txt’

for automatic setup that is quite annoying.

That sounds pretty fatal … and reminds me I changed the web server port in rpcservers.conf (to 2080 in my case).

did change the port 80 and 443. Homegear connects to the CUN. It did before but it took forever on these two ports.

Now I still need to get the homematic binding to react as well. there it still shows an Error ‘java.util.concurrent.ExecutionException: java.net.ConnectException: Connection refused’

In the binding there is no more Gateway-Extras which does not seem to be correct. In the old setup it appeared right away. It is also mentioned in the documentation for openhab 4.

This suggests port 2001 still is not reachable. Did you double check netstat -al after making the port changes?
If it’s listed in netstat, a trace log of the HM binding startup (log:set TRACE org.openhab.binding.homematic) would be helpful.

A change of the port 80 and 443 to something like 8180 and 8143 is necessary to access the homegear webserver. I did this too, but it should not be necessary for basic operation.

That’s a HG, not OH, issue though … but I agree that HG’s defaults are not well-suited there.

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:microsoft-ds 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:1883 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9001 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:netbios-ssn 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:ssh 0.0.0.0:* LISTEN
tcp 0 0 openhabian.fritz.b:1883 tasmota-7C68E0-22:65226 ESTABLISHED
tcp 0 0 openhabian.fritz.bo:ssh vlMacBook.fritz.b:52104 ESTABLISHED
tcp 0 0 openhabian.fritz.:52082 192.168.178.37:2323 ESTABLISHED
tcp 0 0 openhabian.fritz.b:1883 tasmota-7C77FF-61:58593 ESTABLISHED
tcp 0 0 openhabian.fritz.b:1883 tasmota-7CF2DF-48:64205 ESTABLISHED
tcp 0 172 openhabian.fritz.bo:ssh vlMacBook.fritz.b:51948 ESTABLISHED
tcp 0 0 openhabian.fritz.b:1883 openhabian.fritz.:47728 ESTABLISHED
tcp 0 0 openhabian.fritz.b:9001 vlMacBook.fritz.b:51901 ESTABLISHED
tcp6 0 0 [::]:5007 [::]:* LISTEN
tcp6 0 0 [::]:http-alt [::]:* LISTEN
tcp6 0 0 [::]:8101 [::]:* LISTEN
tcp6 0 0 [::]:microsoft-ds [::]:* LISTEN
tcp6 0 0 [::]:1883 [::]:* LISTEN
tcp6 0 0 [::]:8443 [::]:* LISTEN
tcp6 0 0 [::]:netbios-ssn [::]:* LISTEN
tcp6 0 0 [::]:8888 [::]:* LISTEN
tcp6 0 0 127.0.0.1:37073 [::]:* LISTEN
tcp6 0 0 [::]:ssh [::]:* LISTEN
tcp6 0 0 openhabian.fritz.:47122 shellyplug-s-E1930:http TIME_WAIT
tcp6 0 0 openhabian.fritz.:44280 shellyplug-s-AB947:http TIME_WAIT
tcp6 0 0 openhabian.fritz.:55226 shellyplug-s-AB947:http TIME_WAIT
tcp6 0 0 localhost:8888 localhost:47580 ESTABLISHED
tcp6 0 0 openhabian.fritz.:47728 openhabian.fritz.b:1883 ESTABLISHED
tcp6 0 0 openhabian.fritz.:53450 shellyplus1-a8032a:http TIME_WAIT
tcp6 0 0 localhost:8888 localhost:47584 ESTABLISHED
tcp6 0 0 openhabian.fritz.:48300 shellyplug-s-E1930:http TIME_WAIT
tcp6 0 0 localhost:47584 localhost:8888 ESTABLISHED
tcp6 0 0 openhabian.fri:http-alt vlMacBook.fritz.b:51953 ESTABLISHED
tcp6 0 0 openhabian.fritz.:49152 shellyplus1-a8032a:http ESTABLISHED
tcp6 0 0 localhost:47580 localhost:8888 ESTABLISHED
tcp6 0 0 openhabian.fritz.:38994 shellyplug-s-AB947:http TIME_WAIT
tcp6 0 0 openhabian.fritz.:53262 shellyplug-s-E1930:http TIME_WAIT
tcp6 0 0 openhabian.fritz.:39010 shellyplug-s-AB947:http TIME_WAIT
tcp6 0 0 openhabian.fritz.:53020 li2311-175.member:https ESTABLISHED
tcp6 0 0 openhabian.fritz.:35414 shellyplug-s-E1930:http TIME_WAIT
tcp6 0 0 openhabian.fri:http-alt vlMacBook.fritz.b:51951 ESTABLISHED
udp 0 0 0.0.0.0:38951 0.0.0.0:*
udp 0 0 0.0.0.0:bootpc 0.0.0.0:*
udp 0 0 192.168.178.:netbios-ns 0.0.0.0:*
udp 0 0 openhabian.f:netbios-ns 0.0.0.0:*
udp 0 0 0.0.0.0:netbios-ns 0.0.0.0:*
udp 0 0 192.168.178:netbios-dgm 0.0.0.0:*
udp 0 0 openhabian.:netbios-dgm 0.0.0.0:*
udp 0 0 0.0.0.0:netbios-dgm 0.0.0.0:*
udp 0 0 0.0.0.0:mdns 0.0.0.0:*
udp6 0 0 [::]:5683 [::]:*
udp6 0 0 openhabian.fritz.:56397 [::]:*
udp6 0 0 [::]:48835 [::]:*
udp6 0 0 [::]:mdns [::]:*
udp6 0 0 [::]:mdns [::]:*
udp6 0 0 [::]:51982 [::]:*
udp6 0 0 [::]:8530 [::]:*
udp6 0 0 [::]:1900 [::]:*
raw6 0 0 [::]:ipv6-icmp [::]:* 7
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ] DGRAM CONNECTED 578
unix 3 [ ] STREAM CONNECTED 14462 /run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 580
unix 3 [ ] STREAM CONNECTED 12469
unix 2 [ ] DGRAM 18459 /run/user/1000/systemd/notify
unix 2 [ ACC ] STREAM LISTENING 12857 /var/run/samba/nmbd/unexpected
unix 3 [ ] STREAM CONNECTED 588
unix 2 [ ACC ] STREAM LISTENING 18462 /run/user/1000/systemd/private
unix 2 [ ACC ] STREAM LISTENING 18468 /run/user/1000/gnupg/S.dirmngr
unix 2 [ ACC ] STREAM LISTENING 18470 /run/user/1000/gnupg/S.gpg-agent.browser
unix 3 [ ] STREAM CONNECTED 965
unix 2 [ ACC ] STREAM LISTENING 18472 /run/user/1000/gnupg/S.gpg-agent.extra
unix 3 [ ] STREAM CONNECTED 964
unix 2 [ ACC ] STREAM LISTENING 18474 /run/user/1000/gnupg/S.gpg-agent.ssh
unix 2 [ ACC ] STREAM LISTENING 18476 /run/user/1000/gnupg/S.gpg-agent
unix 2 [ ACC ] STREAM LISTENING 18478 /run/user/1000/pk-debconf-socket
unix 3 [ ] STREAM CONNECTED 579
unix 3 [ ] STREAM CONNECTED 960
unix 3 [ ] STREAM CONNECTED 959
unix 2 [ ] STREAM CONNECTED 15856
unix 2 [ ACC ] STREAM LISTENING 13772 /var/run/samba/ncalrpc/np/mdssvc
unix 2 [ ACC ] STREAM LISTENING 13773 /var/run/samba/ncalrpc/np/initshutdown
unix 3 [ ] STREAM CONNECTED 14405 /run/systemd/journal/stdout
unix 2 [ ACC ] STREAM LISTENING 13774 /var/run/samba/ncalrpc/np/eventlog
unix 2 [ ACC ] STREAM LISTENING 13775 /var/run/samba/ncalrpc/np/plugplay
unix 2 [ ACC ] STREAM LISTENING 13776 /var/run/samba/ncalrpc/np/ntsvcs
unix 2 [ ACC ] STREAM LISTENING 13777 /var/run/samba/ncalrpc/np/svcctl
unix 2 [ ACC ] STREAM LISTENING 13778 /var/run/samba/ncalrpc/np/spoolss
unix 4 [ ] DGRAM CONNECTED 227 /run/systemd/notify
unix 2 [ ACC ] STREAM LISTENING 13779 /var/run/samba/ncalrpc/np/wkssvc
unix 2 [ ACC ] STREAM LISTENING 230 /run/systemd/private
unix 2 [ ACC ] STREAM LISTENING 13780 /var/run/samba/ncalrpc/np/netdfs
unix 2 [ ACC ] STREAM LISTENING 13781 /var/run/samba/ncalrpc/np/samr
unix 2 [ ACC ] STREAM LISTENING 232 /run/systemd/userdb/io.systemd.DynamicUser
unix 2 [ ACC ] STREAM LISTENING 13782 /var/run/samba/ncalrpc/np/lsass
unix 2 [ ACC ] STREAM LISTENING 233 /run/systemd/io.system.ManagedOOM
unix 2 [ ACC ] STREAM LISTENING 13783 /var/run/samba/ncalrpc/np/lsarpc
unix 2 [ ACC ] STREAM LISTENING 13784 /var/run/samba/ncalrpc/np/netlogon
unix 2 [ ACC ] STREAM LISTENING 13785 /var/run/samba/ncalrpc/np/srvsvc
unix 2 [ ] DGRAM 9967 /run/systemd/journal/syslog
unix 2 [ ACC ] STREAM LISTENING 13786 /var/run/samba/ncalrpc/DEFAULT
unix 2 [ ACC ] STREAM LISTENING 9969 /run/systemd/fsck.progress
unix 2 [ ACC ] STREAM LISTENING 13787 /var/run/samba/ncalrpc/np/winreg
unix 16 [ ] DGRAM CONNECTED 9974 /run/systemd/journal/dev-log
unix 7 [ ] DGRAM CONNECTED 9976 /run/systemd/journal/socket
unix 2 [ ACC ] STREAM LISTENING 9978 /run/systemd/journal/stdout
unix 2 [ ACC ] SEQPACKET LISTENING 9980 /run/udev/control
unix 3 [ ] STREAM CONNECTED 614
unix 3 [ ] STREAM CONNECTED 14463 /run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 1689 /run/systemd/journal/io.systemd.journal
unix 3 [ ] STREAM CONNECTED 15891 /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTED 13838
unix 3 [ ] STREAM CONNECTED 13646 /run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 13839
unix 3 [ ] DGRAM CONNECTED 1975
unix 3 [ ] STREAM CONNECTED 23410
unix 3 [ ] STREAM CONNECTED 13834
unix 3 [ ] STREAM CONNECTED 13835
unix 3 [ ] STREAM CONNECTED 13837
unix 2 [ ] DGRAM CONNECTED 13421
unix 3 [ ] STREAM CONNECTED 13836
unix 2 [ ] DGRAM CONNECTED 12487
unix 3 [ ] DGRAM CONNECTED 1978
unix 2 [ ] DGRAM CONNECTED 23399
unix 3 [ ] DGRAM CONNECTED 228
unix 3 [ ] STREAM CONNECTED 13419
unix 3 [ ] STREAM CONNECTED 2030 /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTED 15340
unix 2 [ ACC ] STREAM LISTENING 12432 /run/avahi-daemon/socket
unix 2 [ ACC ] STREAM LISTENING 26696 /var/run/homegear/homegearSE.sock
unix 3 [ ] STREAM CONNECTED 23411
unix 2 [ ACC ] STREAM LISTENING 12435 /run/dbus/system_bus_socket
unix 2 [ ] DGRAM CONNECTED 1971
unix 2 [ ACC ] STREAM LISTENING 26698 /var/run/homegear/homegearIPC.sock
unix 2 [ ACC ] STREAM LISTENING 12437 /run/thd.socket
unix 2 [ ACC ] STREAM LISTENING 26699 /var/run/homegear/homegearFE.sock
unix 3 [ ] DGRAM CONNECTED 1977
unix 3 [ ] STREAM CONNECTED 16659
unix 3 [ ] STREAM CONNECTED 13795 /run/dbus/system_bus_socket
unix 2 [ ] DGRAM CONNECTED 15349
unix 3 [ ] STREAM CONNECTED 13884
unix 3 [ ] STREAM CONNECTED 14577
unix 3 [ ] DGRAM CONNECTED 18461
unix 3 [ ] STREAM CONNECTED 13866
unix 3 [ ] STREAM CONNECTED 16658
unix 3 [ ] STREAM CONNECTED 13794
unix 2 [ ] DGRAM CONNECTED 18600
unix 3 [ ] STREAM CONNECTED 13867
unix 3 [ ] DGRAM CONNECTED 1976
unix 3 [ ] STREAM CONNECTED 13883
unix 2 [ ] DGRAM CONNECTED 1758
unix 2 [ ] DGRAM 900 /var/lib/samba/private/msg.sock/666
unix 3 [ ] STREAM CONNECTED 12893
unix 3 [ ] STREAM CONNECTED 10111 /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTED 25795 /var/run/homegear/homegearIPC.sock
unix 3 [ ] DGRAM CONNECTED 1761
unix 3 [ ] STREAM CONNECTED 13469
unix 3 [ ] STREAM CONNECTED 1748
unix 2 [ ACC ] STREAM LISTENING 12478 /run/dhcpcd.sock
unix 2 [ ACC ] STREAM LISTENING 12479 /run/dhcpcd.unpriv.sock
unix 3 [ ] STREAM CONNECTED 16651 /run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 13496 /run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 18464
unix 2 [ ] DGRAM CONNECTED 13767 /var/lib/samba/private/msg.sock/1069
unix 3 [ ] STREAM CONNECTED 14406 /run/systemd/journal/stdout
unix 2 [ ] DGRAM CONNECTED 17454
unix 2 [ ] DGRAM CONNECTED 12879 /var/lib/samba/private/msg.sock/1070
unix 2 [ ] DGRAM CONNECTED 13647
unix 3 [ ] STREAM CONNECTED 12574
unix 3 [ ] STREAM CONNECTED 12635 /run/systemd/journal/stdout
unix 2 [ ] DGRAM CONNECTED 1691
unix 3 [ ] STREAM CONNECTED 13534
unix 3 [ ] STREAM CONNECTED 12678 /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTED 12892
unix 2 [ ] STREAM CONNECTED 24962
unix 3 [ ] STREAM CONNECTED 13547
unix 3 [ ] STREAM CONNECTED 667 /run/dbus/system_bus_socket
unix 2 [ ] DGRAM CONNECTED 17575
unix 3 [ ] DGRAM CONNECTED 1762
unix 3 [ ] DGRAM CONNECTED 229
unix 3 [ ] STREAM CONNECTED 25161
unix 2 [ ] DGRAM 14715 /var/lib/samba/private/msg.sock/1080
unix 2 [ ] DGRAM CONNECTED 13508
unix 2 [ ] DGRAM CONNECTED 14704 /var/lib/samba/private/msg.sock/1043
unix 2 [ ] DGRAM CONNECTED 12630
unix 3 [ ] STREAM CONNECTED 13522
unix 3 [ ] STREAM CONNECTED 14399
unix 3 [ ] STREAM CONNECTED 2033 /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTED 2025 /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTED 716
unix 3 [ ] STREAM CONNECTED 14403 /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTED 2031
unix 3 [ ] DGRAM CONNECTED 18460
unix 2 [ ] DGRAM 691 /var/run/wpa_supplicant/wlan0
unix 3 [ ] STREAM CONNECTED 14460
unix 2 [ ] DGRAM 699 /var/run/wpa_supplicant/p2p-dev-wlan0
unix 2 [ ] DGRAM CONNECTED 15357
unix 3 [ ] STREAM CONNECTED 14539
unix 3 [ ] STREAM CONNECTED 14461 /run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 12669 /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTED 2024
unix 2 [ ] DGRAM CONNECTED 10040
unix 3 [ ] STREAM CONNECTED 683
unix 3 [ ] STREAM CONNECTED 2009
unix 3 [ ] STREAM CONNECTED 14459
unix 2 [ ] DGRAM CONNECTED 14445
unix 2 [ ] STREAM CONNECTED 14739
unix 3 [ ] STREAM CONNECTED 733 /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTED 13564 /run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 14538
unix 3 [ ] STREAM CONNECTED 798 /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTED 14609 /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTED 13367 /run/systemd/journal/stdout
unix 2 [ ] DGRAM CONNECTED 12690
unix 3 [ ] STREAM CONNECTED 706 /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTED 12383
unix 2 [ ] DGRAM CONNECTED 14576
unix 3 [ ] STREAM CONNECTED 13497 /run/dbus/system_bus_socket
unix 2 [ ] DGRAM CONNECTED 14574
unix 3 [ ] STREAM CONNECTED 654
unix 3 [ ] STREAM CONNECTED 14518
unix 3 [ ] STREAM CONNECTED 13551 /run/dbus/system_bus_socket
unix 2 [ ] DGRAM CONNECTED 643
unix 3 [ ] STREAM CONNECTED 797
unix 3 [ ] STREAM CONNECTED 14567
unix 3 [ ] STREAM CONNECTED 14614
unix 3 [ ] STREAM CONNECTED 14515

No port 2001 to be seen. What does homegear.log look like?

the command seems to be for karaf?