Influx 1.12.2 RHEL package broken on Rocky Linux 9

After an upgrade from 1.11.8 to 1.12.2, the influxdb.service does not exist, so we cannot start it. I downloaded the rpms from repos.influxdata, and after doing some more digging, some files were moved.

Before:

image

After:

The file(s) where moved from /usr/share to /usr/lib. Can anyone shed light on why this would have been done?

The new influxdb.service file also has no Umask, so it will default to 0022 according to my understanding, which is less secure than the one previously distributed, which sets UMask to 0027.

I’ve just upgraded it on my EL system and systemd can’t find the unit file, yet it auto completes, I was getting very confused. For now I’ve downgraded tge package back to 1.11

1 Like

Workaround if you want to stick with 1.12.2:

  • copy the influxdb.service file from /usr/lib/influxdb/scripts to /usr/lib/systemd/system.
  • edit the file and add UMask=0027 under the [Service] section to align with 1.11.8
  • systemctl daemon-reload
  • start influx using systemctl start influxdb

There is a symlink /etc/systemd/system/influxd.service that points to /usr/lib/systemd/system/influxdb.service