Theengs/gateway docker latest: fails to start

Hello

I’ve just updated my p3b+ antenna docker image with the latest dockerhub release.
The service now fails to start, see the traces below.
It seems this is due to the python version. Are you using venv?
I’m running debian12:

Linux rpi2 6.6.51+rpt-rpi-v7 #1 SMP Raspbian 1:6.6.51-1+rpt2 (2024-10-01) armv7l GNU/Linux

Could you please help?

root@rpi2> docker compose up
[+] Running 1/1
 ✔ Container theengs  Created                                                                              0.3s
Attaching to theengs
theengs  | Creating config at /root/theengsgw.conf ...
theengs  | {
theengs  |     "host": "192.168.1.92",
theengs  |     "pass": "xxxx",
theengs  |     "user": "jeedom",
theengs  |     "port": 1883,
theengs  |     "publish_topic": "theengs/local/BTtoMQTT",
theengs  |     "subscribe_topic": "theengs/local/commands",
theengs  |     "presence_topic": "home/presence/TheengsGateway",
theengs  |     "presence": false,
theengs  |     "general_presence": true,
theengs  |     "publish_all": true,
theengs  |     "publish_advdata": false,
theengs  |     "ble_scan_time": 5,
theengs  |     "ble_time_between_scans": 60,
theengs  |     "tracker_timeout": 120,
theengs  |     "log_level": "WARNING",
theengs  |     "lwt_topic": "theengs/local/LWT",
theengs  |     "discovery": true,
theengs  |     "hass_discovery": true,
theengs  |     "discovery_topic": "homeassistant",
theengs  |     "discovery_device_name": "TheengsGateway",
theengs  |     "discovery_filter": "[IBEACON,GAEN,MS-CDP,APPLE_CONT,APPLE_CONTAT]",
theengs  |     "scanning_mode": "active",
theengs  |     "adapter": "hci0",
theengs  |     "time_sync": "[]",
theengs  |     "time_format": "0",
theengs  |     "ble": true,
theengs  |     "enable_tls": false,
theengs  |     "enable_websocket": false
theengs  | ,    "identities": {"xxxx":"xxxx","xxxx":"xxxx"}
theengs  | }
theengs  | Traceback (most recent call last):
theengs  |   File "<frozen runpy>", line 198, in _run_module_as_main
theengs  |   File "<frozen runpy>", line 88, in _run_code
theengs  |   File "/opt/venv/lib/python3.11/site-packages/TheengsGateway/__main__.py", line 5, in <module>
theengs  |     main()
theengs  |   File "/opt/venv/lib/python3.11/site-packages/TheengsGateway/__init__.py", line 56, in main
theengs  |     configuration["discovery_filter"].remove("GAEN")
theengs  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
theengs  | AttributeError: 'str' object has no attribute 'remove'
theengs exited with code 0

Hi there

Any news? Anyone else succeeded running this image?
My previous docker image was working perfectly on the same HW and OS release, the only thing I changed is the image version.

Thanks

Hello,

I would suggest looking at this:

thanks @1technophile
I’ve reverted to v1.5.0.3 but I had the same error.
I had to suppress the discovery filter to get it work

As I originally introduced this discovery_filter clean-up – no other discovery filter entries other than IBEACON are required with recent Theengs Gateway releases – and obviously having tested the functionality with my pip installation obefore submitting and merging, this is causing major issues with the Docker image, where there are any additional entries in addition to IBEACON, as well as for the Home Assistant Add-on, because these two variations somehow require the list to be encapsulated in a string, e. g. compare your above

discovery_filter": "[IBEACON,GAEN,MS-CDP,APPLE_CONT,APPLE_CONTAT]",

to a pip installation

"discovery_filter": [
        "IBEACON","GAEN","MS-CDP","APPLE_CONT","APPLE_CONTAT"
    ],

which is a list of strings, working fine for the clean-up. The Docker image and HA Add-on string however does cause a major issue however when trying to use the list .remove function.

Trying a test fix, but it will need testing with Docker and HA-Add-on to see if discovery_filter can be written back as a list with them, or if it requires converting back to a string again.