There seems to be a known problem with third party package influxdb.
For more information see e.g. this thread: OH 3.1.0 InfluxDB stopped working after update to 1.8.7-1
You can fix it by running:
sudo chmod +x /usr/lib/influxdb/scripts/influxd-systemd-start.sh
sudo systemctl restart influxdb.service