InfluxDB Logger Support

Could be. i am pretty sure i was hitting a return before the drop from the events and i kept seeing the same count of queued up events. But regardless, next time i will try the official way again, if not i have a workaround.

Case closed, i don't want to spend your valuable time.

Happy to see my events in the db.

Unless you had already changed the code, the only return in handleInfluxResponse() is on line 1170, and that is surrounded by the conditional on line 1157:

if (loggerQueueSize <= settings.prefBacklogLimit)

With a backlog limit of 1, this conditional will be false until there is just one event left in the queue.

And all the good events will be sent to InfluxDB while only the bad ones will be lost? It could be that in panic i set the backlog to 10000 or whatever the max is after setting the bucket at 1 only did not work. Regardless, the PR is dropped. I now have temp and gas use data to try figure out my thermostat scheduler and controller ping ponging my heating to on or off every 5 minutes.

Thanks for the work on the InfluxDB logger.

With a maximum backlog of 1, each record will be tried once. Regardless of whether InfluxDB accepts the record or not, the record will be removed from the queue.

1 Like

I'm really struggling with this and I'm wondering if someone could lead me in the right direction.

Hubitat Hub and the QNAP NAS InfluxDB is running on (via Docker / Container) are on the same network.

I'm always getting:
Post of 200 events failed - elapsed time 12.284 seconds - Status: 408, Error: No route to host (Host unreachable), Headers: null, Data: null

However if I set up a routine with:
Send GET to: http://192.168.0.86:32768/health
Set HTTP Status from GET response: http://192.168.0.86:32768/health|

The variable is set to:
HTTP Status String
{checks=, commit=40a633239e, message=ready for queries and writes, name=influxdb, status=pass, version=v2.8.0}

Surely, this means the host is not unreachable?

If I use a browser to access http://192.168.0.86:32768/ it works fine (so it's the internal IP address of the NAS, with port forwarding set up from 32768 to 8086 via a setting in container station:
Port forwarding: 32768 → 8086/TCP

I tried to elicit the help of ChatGPT which is trying to say Hubitat / InfluxDB Logger is incompatible with V2 even though you can literally select it, and so I need to set up compatibility with V1 instead via DBRP mapping - I'm skeptical

Showing configuration for the app would be the first step in seeking connectivity help...

FWIW, your URL is likely wrong, but I can't say for sure without seeing your configuration or your log entry.

Yes I should have posted the configuration :rofl:

But the log entry was already posted (I think there is only one relevent line, looking at it, and it's the error saying the host is unreachable)

Assuming the logging setting allows it, the URL is logged when you save the app. I recommend you keep it at Info or Debug until you have everything it working.

I don't see the immediate problem in your config. I suggest you set app logging to Debug, and post the actual log entries both from the save and from post attempts.

You should post your docker config as well.

One item of note: Although this should not be your problem, I do not recommend using port 32768. You should use 32767 or below for static ports. FWIW, I would use the recommended 8086:8086, or use host native (which will also be 8086).

Earlier you said

What do you mean "set up a routine"? Is this on the same hub as InfluxDB Logger? Is this code you wrote?

I haven't run InfluxDB in docker for a couple of years, but I'm sure someone else in the forum does...

Thanks for your help! I can try changing the port to 32767 and then 8086 and see if that changes anything and report back soon

Sorry I called it Routine, I meant Rule, on Hubitat, to check if the Hubitat could communicate with the relevant IP address / Port.

I have the InfluxDB Logger app set to Debug logging, but I don't see any information in the logs that are of use:

There's not much you can change on a container in the QNAP UI seemingly:
image

image

Above are the only editable settings, you can do a bit more if you delete the container and start from scratch.

Container Logs from Container Station / Docker

2025-12-21T10:51:25.711175Z info TSI log compaction (end) {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "5", "op_name": "tsi1_compact_log_file", "tsi1_log_file_id": 2, "op_event": "end", "op_elapsed": "717.748ms"}
2025-12-21T10:51:25.711248Z info TSI level compaction (start) {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "5", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "op_event": "start"}
2025-12-21T10:51:25.711366Z info Performing full compaction {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "5", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "src": "2,1", "dst": "/var/lib/influxdb2/engine/data/95c96e770a49ead4/autogen/1/index/4/L2-00000004.tsi"}
2025-12-21T10:51:25.744926Z info Log file compacted {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "3", "op_name": "tsi1_compact_log_file", "tsi1_log_file_id": 2, "elapsed": "751ms", "bytes": 2268, "kb_per_sec": 2}
2025-12-21T10:51:25.745046Z info TSI log compaction (end) {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "3", "op_name": "tsi1_compact_log_file", "tsi1_log_file_id": 2, "op_event": "end", "op_elapsed": "751.627ms"}
2025-12-21T10:51:25.745154Z info TSI level compaction (start) {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "3", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "op_event": "start"}
2025-12-21T10:51:25.745348Z info Performing full compaction {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "3", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "src": "2,1", "dst": "/var/lib/influxdb2/engine/data/95c96e770a49ead4/autogen/1/index/2/L2-00000004.tsi"}
2025-12-21T10:51:25.820244Z info Full compaction complete {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "5", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "path": "/var/lib/influxdb2/engine/data/95c96e770a49ead4/autogen/1/index/4/L2-00000004.tsi", "elapsed": "108ms", "bytes": 7989, "kb_per_sec": 71}
2025-12-21T10:51:25.820304Z info Removing index file {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "5", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "path": "/var/lib/influxdb2/engine/data/95c96e770a49ead4/autogen/1/index/4/L1-00000002.tsi"}
2025-12-21T10:51:25.820381Z info Removing index file {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "5", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "path": "/var/lib/influxdb2/engine/data/95c96e770a49ead4/autogen/1/index/4/L1-00000001.tsi"}
2025-12-21T10:51:25.820449Z info TSI level compaction (end) {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "5", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "op_event": "end", "op_elapsed": "109.206ms"}
2025-12-21T10:51:25.836834Z info Full compaction complete {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "3", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "path": "/var/lib/influxdb2/engine/data/95c96e770a49ead4/autogen/1/index/2/L2-00000004.tsi", "elapsed": "91ms", "bytes": 7971, "kb_per_sec": 84}
2025-12-21T10:51:25.836892Z info Removing index file {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "3", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "path": "/var/lib/influxdb2/engine/data/95c96e770a49ead4/autogen/1/index/2/L1-00000002.tsi"}
2025-12-21T10:51:25.836967Z info Removing index file {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "3", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "path": "/var/lib/influxdb2/engine/data/95c96e770a49ead4/autogen/1/index/2/L1-00000001.tsi"}
2025-12-21T10:51:25.837019Z info TSI level compaction (end) {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "3", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "op_event": "end", "op_elapsed": "91.876ms"}
2025-12-21T10:53:34.983756Z info TSI log compaction (start) {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "8", "op_name": "tsi1_compact_log_file", "tsi1_log_file_id": 2, "op_event": "start"}
2025-12-21T10:53:34.983758Z info TSI log compaction (start) {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "4", "op_name": "tsi1_compact_log_file", "tsi1_log_file_id": 2, "op_event": "start"}
2025-12-21T10:53:35.402852Z info Log file compacted {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "4", "op_name": "tsi1_compact_log_file", "tsi1_log_file_id": 2, "elapsed": "419ms", "bytes": 3131, "kb_per_sec": 7}
2025-12-21T10:53:35.403029Z info TSI log compaction (end) {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "4", "op_name": "tsi1_compact_log_file", "tsi1_log_file_id": 2, "op_event": "end", "op_elapsed": "419.288ms"}
2025-12-21T10:53:35.403088Z info TSI level compaction (start) {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "4", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "op_event": "start"}
2025-12-21T10:53:35.403193Z info Performing full compaction {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "4", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "src": "2,1", "dst": "/var/lib/influxdb2/engine/data/95c96e770a49ead4/autogen/1/index/3/L2-00000004.tsi"}
2025-12-21T10:53:35.428426Z info Log file compacted {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "8", "op_name": "tsi1_compact_log_file", "tsi1_log_file_id": 2, "elapsed": "444ms", "bytes": 3261, "kb_per_sec": 7}
2025-12-21T10:53:35.428547Z info TSI log compaction (end) {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "8", "op_name": "tsi1_compact_log_file", "tsi1_log_file_id": 2, "op_event": "end", "op_elapsed": "444.805ms"}
2025-12-21T10:53:35.428620Z info TSI level compaction (start) {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "8", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "op_event": "start"}
2025-12-21T10:53:35.428721Z info Performing full compaction {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "8", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "src": "2,1", "dst": "/var/lib/influxdb2/engine/data/95c96e770a49ead4/autogen/1/index/7/L2-00000004.tsi"}
2025-12-21T10:53:35.503791Z info Full compaction complete {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "4", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "path": "/var/lib/influxdb2/engine/data/95c96e770a49ead4/autogen/1/index/3/L2-00000004.tsi", "elapsed": "100ms", "bytes": 8137, "kb_per_sec": 78}
2025-12-21T10:53:35.503835Z info Removing index file {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "4", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "path": "/var/lib/influxdb2/engine/data/95c96e770a49ead4/autogen/1/index/3/L1-00000002.tsi"}
2025-12-21T10:53:35.503900Z info Removing index file {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "4", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "path": "/var/lib/influxdb2/engine/data/95c96e770a49ead4/autogen/1/index/3/L1-00000001.tsi"}
2025-12-21T10:53:35.503947Z info TSI level compaction (end) {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "4", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "op_event": "end", "op_elapsed": "100.863ms"}
2025-12-21T10:53:35.520054Z info Full compaction complete {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "8", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "path": "/var/lib/influxdb2/engine/data/95c96e770a49ead4/autogen/1/index/7/L2-00000004.tsi", "elapsed": "91ms", "bytes": 12151, "kb_per_sec": 129}
2025-12-21T10:53:35.520100Z info Removing index file {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "8", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "path": "/var/lib/influxdb2/engine/data/95c96e770a49ead4/autogen/1/index/7/L1-00000002.tsi"}
2025-12-21T10:53:35.520166Z info Removing index file {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "8", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "path": "/var/lib/influxdb2/engine/data/95c96e770a49ead4/autogen/1/index/7/L1-00000001.tsi"}
2025-12-21T10:53:35.520217Z info TSI level compaction (end) {"log_id": "0~wuO1mW000", "service": "storage-engine", "index": "tsi", "tsi1_partition": "8", "op_name": "tsi1_compact_to_level", "tsi1_level": 2, "op_event": "end", "op_elapsed": "91.607ms"}
2025-12-21T10:58:54.221950Z info Retention policy deletion check (start){"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "start"}
2025-12-21T10:58:54.222054Z info Pruning shard groups after retention check (start) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "start"}
2025-12-21T10:58:54.222082Z info Pruning shard groups after retention check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "end", "op_elapsed": "0.029ms"}
2025-12-21T10:58:54.222103Z info Retention policy deletion check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "end", "op_elapsed": "0.181ms"}
2025-12-21T11:28:54.221911Z info Retention policy deletion check (start){"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "start"}
2025-12-21T11:28:54.222033Z info Pruning shard groups after retention check (start) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "start"}
2025-12-21T11:28:54.222070Z info Pruning shard groups after retention check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "end", "op_elapsed": "0.038ms"}
2025-12-21T11:28:54.222092Z info Retention policy deletion check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "end", "op_elapsed": "0.200ms"}
2025-12-21T11:58:54.222245Z info Retention policy deletion check (start){"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "start"}
2025-12-21T11:58:54.222370Z info Pruning shard groups after retention check (start) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "start"}
2025-12-21T11:58:54.222404Z info Pruning shard groups after retention check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "end", "op_elapsed": "0.035ms"}
2025-12-21T11:58:54.222420Z info Retention policy deletion check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "end", "op_elapsed": "0.182ms"}
2025-12-21T12:28:54.831949Z info Retention policy deletion check (start){"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "start"}
2025-12-21T12:28:54.832051Z info Pruning shard groups after retention check (start) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "start"}
2025-12-21T12:28:54.832079Z info Pruning shard groups after retention check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "end", "op_elapsed": "0.030ms"}
2025-12-21T12:28:54.832095Z info Retention policy deletion check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "end", "op_elapsed": "0.162ms"}
2025-12-21T12:58:54.832741Z info Retention policy deletion check (start){"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "start"}
2025-12-21T12:58:54.832821Z info Pruning shard groups after retention check (start) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "start"}
2025-12-21T12:58:54.832847Z info Pruning shard groups after retention check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "end", "op_elapsed": "0.027ms"}
2025-12-21T12:58:54.832872Z info Retention policy deletion check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "end", "op_elapsed": "0.171ms"}
2025-12-21T13:19:25.832118Z info Cache snapshot (start) {"log_id": "0~wuO1mW000", "service": "storage-engine", "engine": "tsm1", "op_name": "tsm1_cache_snapshot", "op_event": "start"}
2025-12-21T13:19:26.484101Z info Purge held files (start) {"log_id": "0~wuO1mW000", "service": "storage-engine", "engine": "tsm1", "service": "filestore", "op_name": "filestore_purger", "op_event": "start"}
2025-12-21T13:19:26.484225Z info added {"log_id": "0~wuO1mW000", "service": "storage-engine", "engine": "tsm1", "service": "filestore", "op_name": "filestore_purger", "count": 0}
2025-12-21T13:19:26.484394Z info removed {"log_id": "0~wuO1mW000", "service": "storage-engine", "engine": "tsm1", "service": "filestore", "op_name": "filestore_purger", "files": 0}
2025-12-21T13:19:26.484487Z info Purge held files (end) {"log_id": "0~wuO1mW000", "service": "storage-engine", "engine": "tsm1", "service": "filestore", "op_name": "filestore_purger", "op_event": "end", "op_elapsed": "0.399ms"}
2025-12-21T13:19:26.489828Z info Snapshot for path written {"log_id": "0~wuO1mW000", "service": "storage-engine", "engine": "tsm1", "op_name": "tsm1_cache_snapshot", "path": "/var/lib/influxdb2/engine/data/95c96e770a49ead4/autogen/1", "duration": "657.732ms"}
2025-12-21T13:19:26.489887Z info Cache snapshot (end) {"log_id": "0~wuO1mW000", "service": "storage-engine", "engine": "tsm1", "op_name": "tsm1_cache_snapshot", "op_event": "end", "op_elapsed": "657.803ms"}
2025-12-21T13:28:54.832597Z info Retention policy deletion check (start){"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "start"}
2025-12-21T13:28:54.832695Z info Pruning shard groups after retention check (start) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "start"}
2025-12-21T13:28:54.832715Z info Pruning shard groups after retention check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "end", "op_elapsed": "0.021ms"}
2025-12-21T13:28:54.832736Z info Retention policy deletion check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "end", "op_elapsed": "0.157ms"}
2025-12-21T13:58:54.832068Z info Retention policy deletion check (start){"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "start"}
2025-12-21T13:58:54.832188Z info Pruning shard groups after retention check (start) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "start"}
2025-12-21T13:58:54.832217Z info Pruning shard groups after retention check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "end", "op_elapsed": "0.031ms"}
2025-12-21T13:58:54.832236Z info Retention policy deletion check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "end", "op_elapsed": "0.208ms"}
2025-12-21T14:28:54.831980Z info Retention policy deletion check (start){"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "start"}
2025-12-21T14:28:54.832083Z info Pruning shard groups after retention check (start) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "start"}
2025-12-21T14:28:54.832112Z info Pruning shard groups after retention check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "end", "op_elapsed": "0.030ms"}
2025-12-21T14:28:54.832134Z info Retention policy deletion check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "end", "op_elapsed": "0.195ms"}
2025-12-21T14:58:54.832004Z info Retention policy deletion check (start){"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "start"}
2025-12-21T14:58:54.832139Z info Pruning shard groups after retention check (start) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "start"}
2025-12-21T14:58:54.832160Z info Pruning shard groups after retention check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "end", "op_elapsed": "0.021ms"}
2025-12-21T14:58:54.832179Z info Retention policy deletion check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "end", "op_elapsed": "0.215ms"}
2025-12-21T15:28:54.832125Z info Retention policy deletion check (start){"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "start"}
2025-12-21T15:28:54.832218Z info Pruning shard groups after retention check (start) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "start"}
2025-12-21T15:28:54.832237Z info Pruning shard groups after retention check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "end", "op_elapsed": "0.020ms"}
2025-12-21T15:28:54.832252Z info Retention policy deletion check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "end", "op_elapsed": "0.141ms"}
2025-12-21T15:58:54.832236Z info Retention policy deletion check (start){"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "start"}
2025-12-21T15:58:54.832349Z info Pruning shard groups after retention check (start) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "start"}
2025-12-21T15:58:54.832368Z info Pruning shard groups after retention check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "end", "op_elapsed": "0.022ms"}
2025-12-21T15:58:54.832389Z info Retention policy deletion check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "end", "op_elapsed": "0.206ms"}
2025-12-21T16:28:54.832719Z info Retention policy deletion check (start){"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "start"}
2025-12-21T16:28:54.832821Z info Pruning shard groups after retention check (start) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "start"}
2025-12-21T16:28:54.832842Z info Pruning shard groups after retention check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "end", "op_elapsed": "0.022ms"}
2025-12-21T16:28:54.832878Z info Retention policy deletion check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "end", "op_elapsed": "0.191ms"}
2025-12-21T16:58:54.831965Z info Retention policy deletion check (start){"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "start"}
2025-12-21T16:58:54.832068Z info Pruning shard groups after retention check (start) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "start"}
2025-12-21T16:58:54.832098Z info Pruning shard groups after retention check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "end", "op_elapsed": "0.032ms"}
2025-12-21T16:58:54.832116Z info Retention policy deletion check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "end", "op_elapsed": "0.189ms"}
2025-12-21T17:28:54.832269Z info Retention policy deletion check (start){"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "start"}
2025-12-21T17:28:54.832426Z info Pruning shard groups after retention check (start) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "start"}
2025-12-21T17:28:54.832454Z info Pruning shard groups after retention check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "end", "op_elapsed": "0.030ms"}
2025-12-21T17:28:54.832476Z info Retention policy deletion check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "end", "op_elapsed": "0.238ms"}
2025-12-21T17:58:54.832116Z info Retention policy deletion check (start){"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "start"}
2025-12-21T17:58:54.832217Z info Pruning shard groups after retention check (start) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "start"}
2025-12-21T17:58:54.832233Z info Pruning shard groups after retention check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_name": "retention_prune_shard_groups", "op_event": "end", "op_elapsed": "0.018ms"}
2025-12-21T17:58:54.832253Z info Retention policy deletion check (end) {"log_id": "0~wuO1mW000", "service": "retention", "op_name": "retention_delete_check", "op_event": "end", "op_elapsed": "0.204ms"}

Did you create the database on the InfluxDB side of things?

I have only used InfluxDB v1, and I know I have to manually issue InfluxDB commands to create the properly named database. It sure if that is the same on v2 or v3 of InfluxDB.

[IMPORTANT: Until you get this working, I would highly recommend setting Backlog size limit to a small value like 100. A backlog size of 5000 will have a significant impact on your hub.]

You can/should set it back to info.

When you save the app, it generates a log entry that looks like this:

app:17 2025-12-21 08:50:08.385 info InfluxDB URI: http://influxdb.mynet.com:8086/write?db=hubitat

That's what I was looking to see.

I don't have a QNAP, but one thing that I would be concerned about is the phrasing "Default web URL port" which might imply that the QNAP container system is doing some sort of validation on the http connections. InfluxDB uses POST rather than GET, which the QNAP firewall may not allow.

I have an 'Organization' and a 'Bucket' created in the InfluxDB side, this is my first time using InfluxDB but it gives you the option to make these on first log in

1 Like

I previously created an allow-all rule on the QNAP firewall for the Hubitat's IP address, it still didn't work but since you mentioned it, I tried disabling the firewall completely and it's still had no effect.

I've now reduced the backlog size as advised, thanks :slight_smile:

Have you tried host native networking for the docker container?

Perhaps you should set aside Hubitat for the moment, and use curl or some such to test remote posting of data.

Hmm... reading here, it suggests that the port is wrong, and should be 8086:

Setting Action
Default web URL port Enable this setting and specify a port number.

This should be the container port and not the published host port. For example, entering 80 for an NGINX container or 8080 for a Jenkins container.


FWIW, most of the stuff I find regarding docker InfluxDB on QNAP suggests using the command line to create the container:

docker run -itd \
  -p 8086:8086 \
  --restart always \
  --name=influxdb \
  -v /share/Container/influxdb/config:/etc/influxdb \
  -v /share/Container/influxdb/db:/var/lib/influxdb \
  influxdb

You might give that a go.

Did you get your issue sorted?

Thanks so much for your help so far, I've been hosting family for Christmas so still working on it.

I gave up with the using alternative port, and tried it using port 8086 as suggested, and I still was getting the same error.

The web UI would be reachable at 192.168.0.86:8086, but still getting the 'Error 408: host unreachable' message in Hubitat.

So I deleted it all and started again using the 'host' / native network setting, so IP address of the NAS and port 8086 - again, the web UI is reachable, I can create an organization and bucket, and I copy the API token over into Hubitat, but still get the same error!

I'm guessing the command line suggestions are from people using SSH or something? (There isn't a command line interface in Container Station on QNAP)

Can you verify the IP address configured i the Smartapp on the Hub. Scanning through the information you posted above i see where it looks like the hub software is set to 192.168.0.68 and the every other reference is 192.168.0.86. Looks ike you swapped the numbers in the last octet.

1 Like

Yes, ssh is what you would use to access the command line.

I have found something interesting. I have the Inovelli Blue mmWave switches and started to log the motion attribute to my InfluxDB instance to track. It shows up a as a Binary value but I am getting more than just 1's and 0's. This is the first time logging a motion device and wonder if others have seen this: