Thanks for solution, yesterday I was fighting with this and found it on github. I was able to set script to executable, but now got problems with saving data to influx. I see such error and I dont know what is happening. Did you have same behavior? Part from log is below:
2021-08-05 13:26:39.471 [ERROR] [org.influxdb.impl.BatchProcessor ] - Batch could not be sent. Data will be lost
org.influxdb.InfluxDBException: [shard 189] open /var/lib/influxdb/data/openhab_db/autogen/189/fields.idx.1.tmp: permission denied
at org.influxdb.InfluxDBException.buildExceptionFromErrorMessage(InfluxDBException.java:161) ~[bundleFile:?]
at org.influxdb.InfluxDBException.buildExceptionForErrorState(InfluxDBException.java:173) ~[bundleFile:?]
at org.influxdb.impl.InfluxDBImpl.execute(InfluxDBImpl.java:827) ~[bundleFile:?]
at org.influxdb.impl.InfluxDBImpl.write(InfluxDBImpl.java:460) ~[bundleFile:?]
at org.influxdb.impl.OneShotBatchWriter.write(OneShotBatchWriter.java:22) ~[bundleFile:?]
at org.influxdb.impl.BatchProcessor.write(BatchProcessor.java:340) [bundleFile:?]
at org.influxdb.impl.BatchProcessor$1.run(BatchProcessor.java:287) [bundleFile:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:?]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
at java.lang.Thread.run(Unknown Source) [?:?]
I solved the problem with: sudo chmod + x /usr/lib/influxdb/scripts/influxd-systemd-start.sh
and: sudo systemctl restart influxdb.service
but 4 days after the problem starts again! i have to uninstall influxdb and reinstall it and it works…but how long does it take? Do you have any solutions ?
please be more specific in the description of what is happening again.
The thread title and the intro of your post let make me think that the x bit is gone.
Question then would be why you need to install the software again.
I assume that you have a different problem may be permssion of a subdirectory in /var/lib/influxdb/data/. But that is just a guess as it is not mentioned explicitly.
This thread if dedicated for 1.8.7 but I had similar kind of problem like yours after upgrade to 1.8.9
I couldn’t trace any root cause of that problem so my only solution was:
The problem that occurs is the inability to start influx, with the error “access denied to war”, while I had done nothing on the server, the last update via apt get upgrade dated back to there is 20 days, apart from that this server has been running for 2 years without problem under linux ubuntu, to solve this strange problem I had to reinstall influxdb without doing anything else, and I had to do it 2 times in a row week. This time I’m under 1.8.9 and we’ll see if it works this time.