OH 3.1.0 InfluxDB stopped working after update to 1.8.7-1

Fixed it for me - thanks @samtd

Thx @samtd!
I‘ve tried it with the ‚fix permissions‘ -option via openhabian-config previously and that didn‘t work. Perhaps someone could add your fix to it

thanks - solved my problem aswell!

Why don’t you do it yourself ? Open Source is Give and Take.

And if you had used an up to date version of openHABian, it would have corrected the permissions.

I allways update my openhab to the lates stable version…
Don‘t know how to change the source and just wanted to be helpful🤷‍♂️

This is about openHABian not openHAB. The ‘stable’ openHABian branch is for OH2 only.
As I said with the latest openHABian version it would have worked. You didn’t even mention the versions and branches you use so we cannot know if that’s really the right and latest one.

How to ask a good question / Help Us Help You - Tutorials & Examples - openHAB Community

Simple, all code is on Github. Any help is welcome so if you really want to be helpful then just put up a Pull Request.

I just did a

sudo apt-get update
sudo apt-get upgrade
sudo reboot

and I got the follwing error as well

2021-10-15 20:16:14.814 [ERROR] [org.influxdb.impl.BatchProcessor    ] - Batch could not be sent. Data will be lost

org.influxdb.InfluxDBIOException: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:8086

	at org.influxdb.impl.InfluxDBImpl.execute(InfluxDBImpl.java:831) ~[bundleFile:?]

The suggested solution did not work for me.

Is there an option to export my already done work in OH3, because in openhabian_conf in the menu option 4 there seems to be a possibility to “Import an openHAB 3 configuration from file or URL”

I found the option to save the config and restore again → So may be better for me to start again :frowning:

Then I would do a clean install.

Or any other suggestion how to fix this error now in a way that future updates keep working

My config

runtimeInfo:
  version: 3.1.0
  buildString: Release Build
locale: de-DE
systemInfo:
  configFolder: /etc/openhab
  userdataFolder: /var/lib/openhab
  logFolder: /var/log/openhab
  javaVersion: 11.0.12
  javaVendor: Azul Systems, Inc.
  javaVendorVersion: Zulu11.50+19-CA
  osName: Linux
  osVersion: 5.10.63-v7l+
  osArchitecture: arm
  availableProcessors: 4
  freeMemory: 120032488
  totalMemory: 194772992
bindings:
  - http
  - modbus
  - senechome
clientInfo:
  device:
    ios: false
    android: false
    androidChrome: false
    desktop: true
    iphone: false
    ipod: false
    ipad: false
    edge: false
    ie: false
    firefox: true
    macos: false
    windows: true
    cordova: false
    phonegap: false
    electron: false
    nwjs: false
    webView: false
    webview: false
    standalone: false
    os: windows
    pixelRatio: 1.5
    prefersColorScheme: light
  isSecureContext: false
  locationbarVisible: true
  menubarVisible: true
  navigator:
    cookieEnabled: true
    deviceMemory: N/A
    hardwareConcurrency: 12
    language: de
    languages:
      - de
      - en-US
      - en
    onLine: true
    platform: Win32
  screen:
    width: 2560
    height: 1440
    colorDepth: 24
  support:
    touch: false
    pointerEvents: true
    observer: true
    passiveListener: true
    gestures: false
    intersectionObserver: true
  themeOptions:
    dark: light
    filled: true
    pageTransitionAnimation: default
    bars: filled
    homeNavbar: default
    homeBackground: default
    expandableCardAnimation: default
  userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101
    Firefox/93.0
timestamp: 2021-10-15T18:23:33.934Z

please try this:

If I understand that github thread, then everything should be solved with influx version 1.8.10 Right?

I have due to the apt-get update and upgrade now the version

influx -version
InfluxDB shell version: 1.8.10

So it seem to me that this version is not working even if I set the sleep from 1 to 10 I have the same problem.

Yes you are right. On my system with version 1.8.9 it worked putting the sleep parameter to 10.
I also upgraded to 1.8.10 on my testsystem without problem.

What is the output of this:

influxd

and this:

sudo systemctl status influxdb

So then a new install may not fix the problem?

The output is

openhabian@hab3:~ $ influxd

 8888888           .d888 888                   8888888b.  888888b.
   888            d88P"  888                   888  "Y88b 888  "88b
   888            888    888                   888    888 888  .88P
   888   88888b.  888888 888 888  888 888  888 888    888 8888888K.
   888   888 "88b 888    888 888  888  Y8bd8P' 888    888 888  "Y88b
   888   888  888 888    888 888  888   X88K   888    888 888    888
   888   888  888 888    888 Y88b 888 .d8""8b. 888  .d88P 888   d88P
 8888888 888  888 888    888  "Y88888 888  888 8888888P"  8888888P"

2021-10-16T11:50:32.075358Z     info    InfluxDB starting       {"log_id": "0XEEsNYl000", "version": "1.8.10", "branch": "1.8", "commit": "688e697c51fd"}
2021-10-16T11:50:32.075514Z     info    Go runtime      {"log_id": "0XEEsNYl000", "version": "go1.13.8", "maxprocs": 4}
2021-10-16T11:50:32.179988Z     info    Using data dir  {"log_id": "0XEEsNYl000", "service": "store", "path": "/var/lib/influxdb/data"}
2021-10-16T11:50:32.180666Z     info    Compaction settings     {"log_id": "0XEEsNYl000", "service": "store", "max_concurrent_compactions": 2, "throughput_bytes_per_second": 50331648, "throughput_bytes_per_second_burst": 50331648}
2021-10-16T11:50:32.181091Z     info    Open store (start)      {"log_id": "0XEEsNYl000", "service": "store", "trace_id": "0XEEsNyG000", "op_name": "tsdb_open", "op_event": "start"}
2021-10-16T11:50:32.202230Z     error   Unable to open series file      {"log_id": "0XEEsNYl000", "path": "/var/lib/influxdb/data/openhab/_series", "partition": 0, "error": "open /var/lib/influxdb/data/openhab/_series/00/0000: permission denied"}
2021-10-16T11:50:32.202458Z     info    Open store (end)        {"log_id": "0XEEsNYl000", "service": "store", "trace_id": "0XEEsNyG000", "op_name": "tsdb_open", "op_event": "end", "op_elapsed": "21.379ms"}
run: open server: open tsdb store: open /var/lib/influxdb/data/openhab/_series/00/0000: permission denied
openhabian@hab3:~ $

The result of

openhabian@hab3:~ $ sudo systemctl status influxdb
● influxdb.service - InfluxDB is an open-source, distributed, time series database
   Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2021-10-16 00:44:46 CEST; 20h ago
     Docs: https://docs.influxdata.com/influxdb/

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
openhabian@hab3:~ $

I would check the permissions of files and directories under /var/lib/influxdb/data/openhab/…
Do they all belong to influxd:influxdb ?

It looks to be okay. Maybe the flags are wrong

openhabian@hab3:~ $ cd /var/lib/influxdb/data/openhab
openhabian@hab3:/var/lib/influxdb/data/openhab $ ls -l
total 8
drwxrwsr-x 24 influxdb influxdb 4096 Oct 14 11:04 autogen
drwxrwsr-x 10 influxdb influxdb 4096 May 18 00:14 _series
openhabian@hab3:/var/lib/influxdb/data/openhab $ cd _series/
openhabian@hab3:/var/lib/influxdb/data/openhab/_series $ ls -l
total 32
drwxrwsr-x 2 influxdb influxdb 4096 Oct 15 19:45 00
drwxrwsr-x 2 influxdb influxdb 4096 Oct 15 19:45 01
drwxrwsr-x 2 influxdb influxdb 4096 Oct 15 19:45 02
drwxrwsr-x 2 influxdb influxdb 4096 Oct 15 19:45 03
drwxrwsr-x 2 influxdb influxdb 4096 Oct 15 19:45 04
drwxrwsr-x 2 influxdb influxdb 4096 Oct 15 19:45 05
drwxrwsr-x 2 influxdb influxdb 4096 Oct 15 19:45 06
drwxrwsr-x 2 influxdb influxdb 4096 Oct 15 19:45 07
openhabian@hab3:/var/lib/influxdb/data/openhab/_series $ cd 00
openhabian@hab3:/var/lib/influxdb/data/openhab/_series/00 $ ls -l
total 1024
-rw-rwSr-- 1 influxdb influxdb 4194304 Oct 10 19:01 0000
openhabian@hab3:/var/lib/influxdb/data/openhab/_series/00 $ cd ..
openhabian@hab3:/var/lib/influxdb/data/openhab/_series $ cd 01
openhabian@hab3:/var/lib/influxdb/data/openhab/_series/01 $ ls -l
total 1024
-rw-rwSr-- 1 influxdb influxdb 4194304 Oct 14 19:08 0000

I just started influx manually and I get following after entering also “journalctl -xe”

openhabian@hab3:~ $ systemctl start influxdb
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to start 'influxdb.service'.
Authenticating as: ,,, (openhabian)
Password:
==== AUTHENTICATION COMPLETE ===
Job for influxdb.service failed because the control process exited with error code.
See "systemctl status influxdb.service" and "journalctl -xe" for details.
openhabian@hab3:~ $ journalctl -xe
--
-- An ExecStart= process belonging to unit influxdb.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Oct 16 22:11:51 hab3 systemd[1]: influxdb.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit influxdb.service has entered the 'failed' state with result 'exit-code'.
Oct 16 22:11:51 hab3 systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database.
-- Subject: A start job for unit influxdb.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit influxdb.service has finished with a failure.
--
-- The job identifier is 6246 and the job result is failed.
Oct 16 22:11:51 hab3 systemd[1]: influxdb.service: Service RestartSec=100ms expired, scheduling restart.
Oct 16 22:11:51 hab3 systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 5.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Automatic restarting of the unit influxdb.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Oct 16 22:11:51 hab3 systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
-- Subject: A stop job for unit influxdb.service has finished
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A stop job for unit influxdb.service has finished.
--
-- The job identifier is 6309 and the job result is done.
Oct 16 22:11:51 hab3 systemd[1]: influxdb.service: Start request repeated too quickly.
Oct 16 22:11:51 hab3 systemd[1]: influxdb.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit influxdb.service has entered the 'failed' state with result 'exit-code'.
Oct 16 22:11:51 hab3 systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database.
-- Subject: A start job for unit influxdb.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit influxdb.service has finished with a failure.
--
-- The job identifier is 6309 and the job result is failed.
openhabian@hab3:~ $

and th status is

openhabian@hab3:~ $ systemctl status influxdb.service
● influxdb.service - InfluxDB is an open-source, distributed, time series database
   Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2021-10-16 22:11:51 CEST; 3min 22s ago
     Docs: https://docs.influxdata.com/influxdb/
  Process: 29440 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=1/FAILURE)

Oct 16 22:11:51 hab3 systemd[1]: influxdb.service: Service RestartSec=100ms expired, scheduling restart.
Oct 16 22:11:51 hab3 systemd[1]: influxdb.service: Scheduled restart job, restart counter is at 5.
Oct 16 22:11:51 hab3 systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
Oct 16 22:11:51 hab3 systemd[1]: influxdb.service: Start request repeated too quickly.
Oct 16 22:11:51 hab3 systemd[1]: influxdb.service: Failed with result 'exit-code'.
Oct 16 22:11:51 hab3 systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database.
openhabian@hab3:~ $

Has anybody an idea what I could try next?

I have the following options:

  1. uninstall influx and reinstall, via apt-get
  2. Complete new install of openhabian an play back of my old configuration → I probably will lose my databases
  3. change the /usr/lib/influxdb/scripts/influxd-systemd-start.sh script to an older version. I found some thread telling that this may work

Actual contend of influxd-systemd-start.sh is

#!/bin/bash -e

/usr/bin/influxd -config /etc/influxdb/influxdb.conf $INFLUXD_OPTS &
PID=$!
echo $PID > /var/lib/influxdb/influxd.pid

PROTOCOL="http"
BIND_ADDRESS=$(influxd config | grep -A5 "\[http\]" | grep '^  bind-address' | cut -d ' ' -f5 | tr -d '"')
HTTPS_ENABLED_FOUND=$(influxd config | grep "https-enabled = true" | cut -d ' ' -f5)
HTTPS_ENABLED=${HTTPS_ENABLED_FOUND:-"false"}
if [ $HTTPS_ENABLED = "true" ]; then
  HTTPS_CERT=$(influxd config | grep "https-certificate" | cut -d ' ' -f5 | tr -d '"')
  if [ ! -f "${HTTPS_CERT}" ]; then
    echo "${HTTPS_CERT} not found! Exiting..."
    exit 1
  fi
  echo "$HTTPS_CERT found"
  PROTOCOL="https"
fi
HOST=${BIND_ADDRESS%%:*}
HOST=${HOST:-"localhost"}
PORT=${BIND_ADDRESS##*:}

set +e
attempts=0
url="$PROTOCOL://$HOST:$PORT/health"
result=$(curl -k -s -o /dev/null $url -w %{http_code})
while [ "${result:0:2}" != "20" ] && [ "${result:0:2}" != "40" ]; do
  attempts=$(($attempts+1))
  echo "InfluxDB API unavailable after $attempts attempts..."
  sleep 1
  result=$(curl -k -s -o /dev/null $url -w %{http_code})
done
echo "InfluxDB started"
set -e

I have the same problem with 1.8.10.
None of the workarounds/suggestions work.
Anybody an idea what to do next ?
Thx
DirkB

Hello I just did an new apt-get update/upgrade and got the following, with errors

....
dpkg: could not open log '/var/log/dpkg.log': Read-only file system
....
dpkg: could not open log '/var/log/dpkg.log': Read-only file system
....
dpkg: error processing package grafana (--configure):
 installed grafana package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (241-7~deb10u8+rpi1) ...
Errors were encountered while processing:
 grafana

Could this be the problem, that causes that grafana fails to start now?

Here the settings of dpkg.log

openhabian@hab3:~ $ ls /var/log/dpkg.log -l
-rw-r--r-- 1 root root 0 Oct 16 00:00 /var/log/dpkg.log

Is it normal that this file is not writeable? How is the correct flag setting of this file?

Here the complete log

openhabian@hab3:~ $ sudo apt-get update
[sudo] password for openhabian:
Hit:1 http://davesteele.github.io/comitup/repo comitup InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Hit:3 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:4 https://deb.nodesource.com/node_14.x buster InRelease
Hit:5 https://packages.grafana.com/oss/deb stable InRelease
Hit:6 https://repos.influxdata.com/debian buster InRelease
Hit:7 https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable InRelease
Reading package lists... Done
W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list.d/openhab-linuxpkg.list:7 and /etc/apt/sources.list.d/openhab.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/openhab-linuxpkg.list:7 and /etc/apt/sources.list.d/openhab.list:1
W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/openhab-linuxpkg.list:7 and /etc/apt/sources.list.d/openhab.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/openhab-linuxpkg.list:7 and /etc/apt/sources.list.d/openhab.list:1
W: Target Translations (main/i18n/Translation-en_GB.UTF-8) is configured multiple times in /etc/apt/sources.list.d/openhab-linuxpkg.list:7 and /etc/apt/sources.list.d/openhab.list:1
W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list.d/openhab-linuxpkg.list:7 and /etc/apt/sources.list.d/openhab.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/openhab-linuxpkg.list:7 and /etc/apt/sources.list.d/openhab.list:1
W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/openhab-linuxpkg.list:7 and /etc/apt/sources.list.d/openhab.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/openhab-linuxpkg.list:7 and /etc/apt/sources.list.d/openhab.list:1
W: Target Translations (main/i18n/Translation-en_GB.UTF-8) is configured multiple times in /etc/apt/sources.list.d/openhab-linuxpkg.list:7 and /etc/apt/sources.list.d/openhab.list:1
openhabian@hab3:~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  triggerhappy
Use 'sudo apt autoremove' to remove it.
The following packages will be upgraded:
  grafana
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 63.2 MB of archives.
After this operation, 39.9 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 https://packages.grafana.com/oss/deb stable/main armhf grafana armhf 8.2.2 [63.2 MB]
Fetched 63.2 MB in 9s (6,693 kB/s)
Reading changelogs... Done
dpkg: could not open log '/var/log/dpkg.log': Read-only file system
(Reading database ... 59258 files and directories currently installed.)
Preparing to unpack .../grafana_8.2.2_armhf.deb ...
Unpacking grafana (8.2.2) over (8.2.1) ...
dpkg: could not open log '/var/log/dpkg.log': Read-only file system
Setting up grafana (8.2.2) ...
Installing new version of config file /usr/lib/systemd/system/grafana-server.service ...
chown: changing ownership of '/var/log/grafana/grafana.log': Read-only file system
chown: changing ownership of '/var/log/grafana/grafana.log.2021-10-15.001': Read-only file system
chown: changing ownership of '/var/log/grafana': Read-only file system
dpkg: error processing package grafana (--configure):
 installed grafana package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (241-7~deb10u8+rpi1) ...
Errors were encountered while processing:
 grafana
Updating FireMotD available updates count ...
W: Problem unlinking the file /var/log/apt/eipp.log.xz - FileFd::Open (30: Read-only file system)
W: Could not open file /var/log/apt/eipp.log.xz - open (17: File exists)
W: Could not open file '/var/log/apt/eipp.log.xz' - EIPP::OrderInstall (17: File exists)
W: Could not open file '/var/log/apt/term.log' - OpenLog (30: Read-only file system)
E: Sub-process /usr/bin/dpkg returned an error code (1)
openhabian@hab3:~ $

I just did also the “sudo apt autoremove” and this also runs into errors

openhabian@hab3:~ $ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  triggerhappy
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 97.3 kB disk space will be freed.
Do you want to continue? [Y/n] Y
dpkg: could not open log '/var/log/dpkg.log': Read-only file system
(Reading database ... 59261 files and directories currently installed.)
Removing triggerhappy (0.5.0-1) ...
Warning: Stopping triggerhappy.service, but it can still be activated by:
  triggerhappy.socket
dpkg: could not open log '/var/log/dpkg.log': Read-only file system
Setting up grafana (8.2.2) ...
chown: changing ownership of '/var/log/grafana/grafana.log': Read-only file system
chown: changing ownership of '/var/log/grafana/grafana.log.2021-10-15.001': Read-only file system
chown: changing ownership of '/var/log/grafana': Read-only file system
dpkg: error processing package grafana (--configure):
 installed grafana package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.8.5-2) ...
Errors were encountered while processing:
 grafana
Updating FireMotD available updates count ...
W: Problem unlinking the file /var/log/apt/eipp.log.xz - FileFd::Open (30: Read-only file system)
W: Could not open file /var/log/apt/eipp.log.xz - open (17: File exists)
W: Could not open file '/var/log/apt/eipp.log.xz' - EIPP::OrderInstall (17: File exists)
W: Could not open file '/var/log/apt/term.log' - OpenLog (30: Read-only file system)
E: Sub-process /usr/bin/dpkg returned an error code (1)

I just also did now an sudo openhabian-config which also has errors and a “fix Permission” which also runs with errors

openhabian@hab3:~ $ sudo openhabian-config
2021-10-24_13:51:55_CEST [openHABian] Checking for root privileges... OK
2021-10-24_13:51:55_CEST [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2021-10-24_13:51:55_CEST [openHABian] openHABian configuration tool version: [main]{2021-10-14T12:07:14+02:00}(9bbfa35)
2021-10-24_13:51:55_CEST [openHABian] Checking for changes in origin branch main... Updates available... UPDATING
2021-10-24_13:52:02_CEST [openHABian] Updating myself... mv: cannot stat '/opt/openhabian/docs/NEWS.md': No such file or directory
OK - Commit history (oldest to newest):

ebf77f4 - Bump actions/checkout from 2.3.4 to 2.3.5 (#1606) (6 days ago) <dependabot[bot]> E
 .github/workflows/bats-action.yml         | 4 ++--
 .github/workflows/build-action.yml        | 4 ++--
 .github/workflows/installation-action.yml | 8 ++++----
 .github/workflows/shellcheck-action.yml   | 2 +-
 4 files changed, 9 insertions(+), 9 deletions(-)

4eb12b2 - cosmetics (6 days ago) <Markus Storm> E
 functions/vpn.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

67b918d - cosmetics (4 days ago) <Markus Storm> E
 functions/menu.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

3e21da6 - cosmetics (4 days ago) <Markus Storm> E
 build-image/openhabian.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

789b855 - cosmetics (4 days ago) <Markus Storm> E
 build-image/openhabian.pi-raspios64beta.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

78af774 - cosmetics (4 days ago) <Markus Storm> E
 build-image/openhabian.pi-raspios32.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

bb2cb4b - Update menu.bash (4 days ago) <Markus Storm> E
 functions/menu.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

087e661 - fix unattended restore to use argument as filename (16 hours ago) <Markus Storm> E
 functions/backup.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

63d725b - no group+s permission on files (just on dirs) (5 hours ago) <Markus Storm> E
 functions/system.bash | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

65f82c4 - Fix RPi generating random MAC address on boot (#1608) (5 hours ago) <Markus Storm> E
 functions/wifi.bash                                      | 1 +
 includes/generic/100-disable-wifi-mac-randomization.conf | 5 +++++
 2 files changed, 6 insertions(+)

855cb4e - fix chmod fix (5 hours ago) <Markus Storm> E
 functions/system.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

openHABian configuration tool successfully updated.
Visit the development repository for more details: https://github.com/openhab/openhabian
The tool will now restart to load the updates... OK
2021-10-24_13:52:08_CEST [openHABian] Checking for root privileges... OK
2021-10-24_13:52:08_CEST [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2021-10-24_13:52:08_CEST [openHABian] openHABian configuration tool version: [main]{2021-10-24T08:54:39+02:00}(855cb4e)
2021-10-24_13:52:08_CEST [openHABian] Checking for changes in origin branch main... OK
2021-10-24_13:52:14_CEST [openHABian] Switching to branch main... OK
2021-10-24_13:53:00_CEST [openHABian] Updating Linux package information... OK
2021-10-24_13:53:00_CEST [openHABian] Applying file permissions recommendations... FAILED (openhab folders)
FAILED (folders)
FAILED (setgid backups folder)
FAILED (unattended upgrades logdir)
FAILED (openhab log)
OK
2021-10-24_13:53:09_CEST [openHABian] Checking for default openHABian username:password combination... OK
2021-10-24_13:53:09_CEST [openHABian] We hope you got what you came for! See you again soon ;)
openhabian@hab3:~ $

After the fix permisson the flags changed

openhabian@hab3:~ $ ls /var/log/dpkg* -l
-rw-rw-r-- 1 root root     0 Oct 16 00:00 /var/log/dpkg.log
-rw-rwSr-- 1 root root 38470 Oct 15 19:56 /var/log/dpkg.log.1
-rw-rw-r-- 1 root root  2218 Jul  1 22:29 /var/log/dpkg.log.2.gz

I did now an other apt-get update /upgrade this tim error free

openhabian@hab3:~ $ sudo apt-get update
[sudo] password for openhabian:
Hit:1 http://davesteele.github.io/comitup/repo comitup InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:3 http://archive.raspberrypi.org/debian buster InRelease
Hit:4 https://packages.grafana.com/oss/deb stable InRelease
Hit:5 https://repos.influxdata.com/debian buster InRelease
Hit:6 https://deb.nodesource.com/node_14.x buster InRelease
Hit:7 https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable InRelease
Reading package lists... Done
W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list.d/openhab-linuxpkg.list:7 and /etc/apt/sources.list.d/openhab.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/openhab-linuxpkg.list:7 and /etc/apt/sources.list.d/openhab.list:1
W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/openhab-linuxpkg.list:7 and /etc/apt/sources.list.d/openhab.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/openhab-linuxpkg.list:7 and /etc/apt/sources.list.d/openhab.list:1
W: Target Translations (main/i18n/Translation-en_GB.UTF-8) is configured multiple times in /etc/apt/sources.list.d/openhab-linuxpkg.list:7 and /etc/apt/sources.list.d/openhab.list:1
W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list.d/openhab-linuxpkg.list:7 and /etc/apt/sources.list.d/openhab.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/openhab-linuxpkg.list:7 and /etc/apt/sources.list.d/openhab.list:1
W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list.d/openhab-linuxpkg.list:7 and /etc/apt/sources.list.d/openhab.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/openhab-linuxpkg.list:7 and /etc/apt/sources.list.d/openhab.list:1
W: Target Translations (main/i18n/Translation-en_GB.UTF-8) is configured multiple times in /etc/apt/sources.list.d/openhab-linuxpkg.list:7 and /etc/apt/sources.list.d/openhab.list:1
openhabian@hab3:~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up grafana (8.2.2) ...
Restarting grafana-server service... OK
Updating FireMotD available updates count ...

Fixing the permissions ended in

openhabian@hab3:~ $ sudo openhabian-config
2021-10-24_14:18:33_CEST [openHABian] Checking for root privileges... OK
2021-10-24_14:18:33_CEST [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2021-10-24_14:18:33_CEST [openHABian] openHABian configuration tool version: [main]{2021-10-24T08:54:39+02:00}(855cb4e)
2021-10-24_14:18:33_CEST [openHABian] Checking for changes in origin branch main... OK
2021-10-24_14:18:36_CEST [openHABian] Switching to branch main... OK
2021-10-24_14:18:46_CEST [openHABian] Updating Linux package information... OK
2021-10-24_14:18:46_CEST [openHABian] Applying file permissions recommendations... FAILED (setgid backups folder)
OK
2021-10-24_14:19:22_CEST [openHABian] Checking for default openHABian username:password combination... OK
2021-10-24_14:19:22_CEST [openHABian] We hope you got what you came for! See you again soon ;)

Wondering if it is somehow caused by openhabian-config ?
I managed to get InfluxDB working after a manual re-install (not via openhabian-config).
All was fine.
Untill I did a 50.Backup Openhab config in the openhabian-config tool… after reboot, same problem again.
Then I realised that this is the second time I had this phenomena (InfluxDb no longer working after 50. Backup Openhab config) …

What I did with openhabian was

02 Upgrade System (which was automatically asked for on starting openhabian conf)

After an reboot an relogin I noticed the I had lots of apt updates open, so I started apt-get update + apt-get upgrade and rebooted again.

Then I noticed that influxdb is not working anymore.

apt reinstall influxdb

did not work for me.

The issues seems to be very common if I read through the internet. But no one has a real solutuion for it. Additional I have the problem that I allready got the version “1.8.10” all other threads at the moment have the problem with “1.8.9”

I have doubts at the moment with doing a complete new install of openhabian as I think I will again run into this trouble. And I hope at the moment to find somewhere a solution which fixes the problem.

I think it is a problem of missing/wrong permission, group or users.

I have no idea why this does not work and if it is important for influxDB