Skip to content

feat: Updates post-install for linux package builds (#26893)#26903

Merged
devanbenz merged 2 commits intomain-2.xfrom
db/cherrypick-2.x-310d97
Oct 14, 2025
Merged

feat: Updates post-install for linux package builds (#26893)#26903
devanbenz merged 2 commits intomain-2.xfrom
db/cherrypick-2.x-310d97

Conversation

@devanbenz
Copy link
Copy Markdown

(cherry picked from commit 310d97a)

Closes #

Describe your proposed changes here.

  • I've read the contributing section of the project README.
  • Signed CLA (if not already signed).

Co-authored-by: Brandon Pfeifer <bpfeifer@influxdata.com>
(cherry picked from commit 310d97a)
Copy link
Copy Markdown
Contributor

@jdstrand jdstrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is missing the needed change to https://github.com/influxdata/influxdb/blob/main-2.x/.circleci/packages/influxdb2/control/post-install#L16.

After addressing that, can you detail your testing? Thanks!

@devanbenz
Copy link
Copy Markdown
Author

This is missing the needed change to main-2.x/.circleci/packages/influxdb2/control/post-install#L16.

After addressing that, can you detail your testing? Thanks!

Just modified

@jdstrand
Copy link
Copy Markdown
Contributor

This is missing the needed change to main-2.x/.circleci/packages/influxdb2/control/post-install#L16.
After addressing that, can you detail your testing? Thanks!

Just modified

Thanks! It looks good; can you detail your testing?

@devanbenz
Copy link
Copy Markdown
Author

@jdstrand

  1. Download influxdb2-2.7.12-1 rpm via https://repos.influxdata.com/packages/ using wget on fresh Rocky 10 box
  2. Run install and verify influxdb2 is running
[devan@rocky ~]$ sudo yum localinstall influxdb2-2.7.12-1.aarch64.rpm
Last metadata expiration check: 0:05:29 ago on Tue 14 Oct 2025 02:38:56 PM CDT.
Dependencies resolved.
======================================================================================================================================================================================
 Package                                    Architecture                             Version                                      Repository                                     Size
======================================================================================================================================================================================
Installing:
 influxdb2                                  aarch64                                  2.7.12-1                                     @commandline                                   45 M

Transaction Summary
======================================================================================================================================================================================
Install  1 Package

Total size: 45 M
Installed size: 111 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                              1/1
  Running scriptlet: influxdb2-2.7.12-1.aarch64                                                                                                                                   1/1
  Installing       : influxdb2-2.7.12-1.aarch64                                                                                                                                   1/1
  Running scriptlet: influxdb2-2.7.12-1.aarch64                                                                                                                                   1/1
Created symlink '/etc/systemd/system/influxd.service' → '/usr/lib/systemd/system/influxdb.service'.
Created symlink '/etc/systemd/system/multi-user.target.wants/influxdb.service' → '/usr/lib/systemd/system/influxdb.service'.


Installed:
  influxdb2-2.7.12-1.aarch64

Complete!
[devan@rocky ~]$ sudo systemctl status influxdb
○ influxdb.service - InfluxDB is an open-source, distributed, time series database
     Loaded: loaded (/usr/lib/systemd/system/influxdb.service; enabled; preset: disabled)
    Drop-In: /run/systemd/system/service.d
             └─zzz-lxc-service.conf
     Active: inactive (dead)
       Docs: https://docs.influxdata.com/influxdb/
[devan@rocky ~]$ sudo systemctl enable --now influxdb
[devan@rocky ~]$ sudo systemctl status influxdb
● influxdb.service - InfluxDB is an open-source, distributed, time series database
     Loaded: loaded (/usr/lib/systemd/system/influxdb.service; enabled; preset: disabled)
    Drop-In: /run/systemd/system/service.d
             └─zzz-lxc-service.conf
     Active: active (running) since Tue 2025-10-14 14:44:42 CDT; 1s ago
 Invocation: 46f7087e88494c3f8bfdb43b9e8b349e
       Docs: https://docs.influxdata.com/influxdb/
    Process: 1906 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=0/SUCCESS)
   Main PID: 1909 (influxd)
      Tasks: 20 (limit: 102589)
     Memory: 62.4M (peak: 65.5M)
        CPU: 209ms
     CGroup: /system.slice/influxdb.service
             └─1909 /usr/bin/influxd

Oct 14 14:44:41 rocky influxd-systemd-start.sh[1909]: ts=2025-10-14T19:44:41.272623Z lvl=info msg="Open store (start)" log_id=0za3u4i0000 service=storage-engine service=store op_name
=tsdb_open op_event=start
Oct 14 14:44:41 rocky influxd-systemd-start.sh[1909]: ts=2025-10-14T19:44:41.272640Z lvl=info msg="Open store (end)" log_id=0za3u4i0000 service=storage-engine service=store op_name=t
sdb_open op_event=end op_elapsed=0.018ms
Oct 14 14:44:41 rocky influxd-systemd-start.sh[1909]: ts=2025-10-14T19:44:41.272655Z lvl=info msg="Starting retention policy enforcement service" log_id=0za3u4i0000 service=retention
 check_interval=30m
Oct 14 14:44:41 rocky influxd-systemd-start.sh[1909]: ts=2025-10-14T19:44:41.272658Z lvl=info msg="Starting precreation service" log_id=0za3u4i0000 service=shard-precreation check_in
terval=10m advance_period=30m
Oct 14 14:44:41 rocky influxd-systemd-start.sh[1909]: ts=2025-10-14T19:44:41.272918Z lvl=info msg="Starting query controller" log_id=0za3u4i0000 service=storage-reads concurrency_quo
ta=1024 initial_memory_bytes_quota_per_query=9223372036854775807 memory_bytes_quota_per_query=9223372036854775807 max_memory_bytes=0 queue_size=1024
Oct 14 14:44:41 rocky influxd-systemd-start.sh[1909]: ts=2025-10-14T19:44:41.273460Z lvl=info msg="Configuring InfluxQL statement executor (zeros indicate unlimited)." log_id=0za3u4i
0000 max_select_point=0 max_select_series=0 max_select_buckets=0
Oct 14 14:44:41 rocky influxd-systemd-start.sh[1909]: ts=2025-10-14T19:44:41.277439Z lvl=info msg=Starting log_id=0za3u4i0000 service=telemetry interval=8h
Oct 14 14:44:41 rocky influxd-systemd-start.sh[1909]: ts=2025-10-14T19:44:41.277891Z lvl=info msg=Listening log_id=0za3u4i0000 service=tcp-listener transport=http addr=:8086 port=808
6
Oct 14 14:44:42 rocky influxd-systemd-start.sh[1906]: InfluxDB started
Oct 14 14:44:42 rocky systemd[1]: Started influxdb.service - InfluxDB is an open-source, distributed, time series database.
  1. download the artifact from this CI wget https://output.circle-artifacts.com/output/job/d2f16273-f87b-40a2-bfac-702e69130247/artifacts/0/artifacts/influxdb2-2.x_52a7a10e-1.aarch64.rpm
  2. Upgrade to this package
[devan@rocky ~]$ sudo yum localinstall influxdb2-2.x_52a7a10e-1.aarch64.rpm
Last metadata expiration check: 0:08:54 ago on Tue 14 Oct 2025 02:38:56 PM CDT.
Dependencies resolved.
======================================================================================================================================================================================
 Package                                   Architecture                            Version                                         Repository                                    Size
======================================================================================================================================================================================
Downgrading:
 influxdb2                                 aarch64                                 2.x_52a7a10e-1                                  @commandline                                  48 M

Transaction Summary
======================================================================================================================================================================================
Downgrade  1 Package

Total size: 48 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                              1/1
  Running scriptlet: influxdb2-2.x_52a7a10e-1.aarch64                                                                                                                             1/2
  Downgrading      : influxdb2-2.x_52a7a10e-1.aarch64                                                                                                                             1/2
  Running scriptlet: influxdb2-2.x_52a7a10e-1.aarch64                                                                                                                             1/2
Config file /etc/influxdb/config.toml already exists, writing defaults to /etc/influxdb/config.toml.defaults

  Cleanup          : influxdb2-2.7.12-1.aarch64                                                                                                                                   2/2
  Running scriptlet: influxdb2-2.7.12-1.aarch64                                                                                                                                   2/2

Downgraded:
  influxdb2-2.x_52a7a10e-1.aarch64

Complete!
[devan@rocky ~]$ sudo systemctl status influxdb
● influxdb.service - InfluxDB is an open-source, distributed, time series database
     Loaded: loaded (/usr/lib/systemd/system/influxdb.service; enabled; preset: disabled)
    Drop-In: /run/systemd/system/service.d
             └─zzz-lxc-service.conf
     Active: active (running) since Tue 2025-10-14 14:44:42 CDT; 3min 22s ago
 Invocation: 46f7087e88494c3f8bfdb43b9e8b349e
       Docs: https://docs.influxdata.com/influxdb/
   Main PID: 1909 (influxd)
      Tasks: 20 (limit: 102589)
     Memory: 54M (peak: 90.5M)
        CPU: 383ms
     CGroup: /system.slice/influxdb.service
             └─1909 /usr/bin/influxd

Oct 14 14:44:41 rocky influxd-systemd-start.sh[1909]: ts=2025-10-14T19:44:41.272623Z lvl=info msg="Open store (start)" log_id=0za3u4i0000 service=storage-engine service=store op_name
=tsdb_open op_event=start
Oct 14 14:44:41 rocky influxd-systemd-start.sh[1909]: ts=2025-10-14T19:44:41.272640Z lvl=info msg="Open store (end)" log_id=0za3u4i0000 service=storage-engine service=store op_name=t
sdb_open op_event=end op_elapsed=0.018ms
Oct 14 14:44:41 rocky influxd-systemd-start.sh[1909]: ts=2025-10-14T19:44:41.272655Z lvl=info msg="Starting retention policy enforcement service" log_id=0za3u4i0000 service=retention
 check_interval=30m
Oct 14 14:44:41 rocky influxd-systemd-start.sh[1909]: ts=2025-10-14T19:44:41.272658Z lvl=info msg="Starting precreation service" log_id=0za3u4i0000 service=shard-precreation check_in
terval=10m advance_period=30m
Oct 14 14:44:41 rocky influxd-systemd-start.sh[1909]: ts=2025-10-14T19:44:41.272918Z lvl=info msg="Starting query controller" log_id=0za3u4i0000 service=storage-reads concurrency_quo
ta=1024 initial_memory_bytes_quota_per_query=9223372036854775807 memory_bytes_quota_per_query=9223372036854775807 max_memory_bytes=0 queue_size=1024
Oct 14 14:44:41 rocky influxd-systemd-start.sh[1909]: ts=2025-10-14T19:44:41.273460Z lvl=info msg="Configuring InfluxQL statement executor (zeros indicate unlimited)." log_id=0za3u4i
0000 max_select_point=0 max_select_series=0 max_select_buckets=0
Oct 14 14:44:41 rocky influxd-systemd-start.sh[1909]: ts=2025-10-14T19:44:41.277439Z lvl=info msg=Starting log_id=0za3u4i0000 service=telemetry interval=8h
Oct 14 14:44:41 rocky influxd-systemd-start.sh[1909]: ts=2025-10-14T19:44:41.277891Z lvl=info msg=Listening log_id=0za3u4i0000 service=tcp-listener transport=http addr=:8086 port=808
6
Oct 14 14:44:42 rocky influxd-systemd-start.sh[1906]: InfluxDB started
Oct 14 14:44:42 rocky systemd[1]: Started influxdb.service - InfluxDB is an open-source, distributed, time series database.
[devan@rocky ~]$ sudo systemctl daemon-reload
[devan@rocky ~]$ sudo systemctl restart influxdb
[devan@rocky ~]$ sudo systemctl status influxdb
● influxdb.service - InfluxDB is an open-source, distributed, time series database
     Loaded: loaded (/usr/lib/systemd/system/influxdb.service; enabled; preset: disabled)
    Drop-In: /run/systemd/system/service.d
             └─zzz-lxc-service.conf
     Active: active (running) since Tue 2025-10-14 14:48:20 CDT; 2s ago
 Invocation: d55c34de7cad45c19bad6cdf00cc8afb
       Docs: https://docs.influxdata.com/influxdb/
    Process: 2363 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=0/SUCCESS)
   Main PID: 2366 (influxd)
      Tasks: 20 (limit: 102589)
     Memory: 176.6M (peak: 191.6M)
        CPU: 230ms
     CGroup: /system.slice/influxdb.service
             └─2366 /usr/bin/influxd

Oct 14 14:48:20 rocky influxd-systemd-start.sh[2366]: ts=2025-10-14T19:48:20.757933Z lvl=info msg="Open store (end)" log_id=0za46UXl000 service=storage-engine service=store op_name=t
sdb_open op_event=end op_elapsed=0.029ms
Oct 14 14:48:20 rocky influxd-systemd-start.sh[2366]: ts=2025-10-14T19:48:20.757951Z lvl=info msg="Starting retention policy enforcement service" log_id=0za46UXl000 service=retention
 check_interval=30m
Oct 14 14:48:20 rocky influxd-systemd-start.sh[2366]: ts=2025-10-14T19:48:20.757962Z lvl=info msg="Starting precreation service" log_id=0za46UXl000 service=shard-precreation check_in
terval=10m advance_period=30m
Oct 14 14:48:20 rocky influxd-systemd-start.sh[2366]: ts=2025-10-14T19:48:20.758368Z lvl=info msg="Starting query controller" log_id=0za46UXl000 service=storage-reads concurrency_quo
ta=1024 initial_memory_bytes_quota_per_query=9223372036854775807 memory_bytes_quota_per_query=9223372036854775807 max_memory_bytes=0 queue_size=1024
Oct 14 14:48:20 rocky influxd-systemd-start.sh[2366]: ts=2025-10-14T19:48:20.759191Z lvl=info msg="Configuring InfluxQL statement executor (zeros indicate unlimited)." log_id=0za46UX
l000 max_select_point=0 max_select_series=0 max_select_buckets=0
Oct 14 14:48:20 rocky influxd-systemd-start.sh[2366]: ts=2025-10-14T19:48:20.766562Z lvl=info msg=Starting log_id=0za46UXl000 service=telemetry interval=8h
Oct 14 14:48:20 rocky influxd-systemd-start.sh[2366]: ts=2025-10-14T19:48:20.766695Z lvl=info msg=Listening log_id=0za46UXl000 service=tcp-listener transport=http addr=:8086 port=808
6
Oct 14 14:48:20 rocky influxd-systemd-start.sh[2408]: Command "print-config" is deprecated, use the influx-cli command server-config to display the configuration values from the runn
ing server
Oct 14 14:48:20 rocky influxd-systemd-start.sh[2363]: InfluxDB started
Oct 14 14:48:20 rocky systemd[1]: Started influxdb.service - InfluxDB is an open-source, distributed, time series database.

Copy link
Copy Markdown
Contributor

@jdstrand jdstrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@devanbenz devanbenz merged commit 0f4cd4e into main-2.x Oct 14, 2025
25 checks passed
@devanbenz devanbenz deleted the db/cherrypick-2.x-310d97 branch October 14, 2025 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants