Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

influxdb 3 core/enterprise Windows tar.gz files are missing dlls in top-level directory #26113

Closed
jdstrand opened this issue Mar 10, 2025 · 1 comment · Fixed by #26137
Closed
Assignees
Labels

Comments

@jdstrand
Copy link
Contributor

jdstrand commented Mar 10, 2025

https://docs.influxdata.com/influxdb3/core/?t=Windows and https://docs.influxdata.com/influxdb3/enterprise/?t=Windows list the download URLs as: https://dl.influxdata.com/influxdb/snapshots/influxdb3-core_x86_64-pc-windows-gnu.tar.gz and https://dl.influxdata.com/influxdb/snapshots/influxdb3-enterprise_x86_64-pc-windows-gnu.tar.gz respectively. Unlike the .zip files generated in CircleCI (eg, https://app.circleci.com/pipelines/github/influxdata/influxdb/44610/workflows/24b15716-e774-49dd-9a86-85eb840226d6/jobs/422207/artifacts), the .tar.gz don't have the .dll files from python/*.dll copied next to the influxdb3 binary, so simply unpacking the .tar.gz and running influxdb3 causes it not run (since it can't find python311.dll, etc). Unfortunately, ACLs seem to be preventing the uploaded .zip files from being downloaded.

The fix is to adjust the influxdb3-core_x86_64-pc-windows-gnu.tar.gz and influxdb3-enterprise_x86_64-pc-windows-gnu.tar.gz files published to s3 to ship the python/*.dll alongside influxdb3 in the unpack directory.

WORKAROUND: after unpacking the .tar.gz, copy (not move!) /path/to/unpack/dir/python/*.dll to /path/to/unpack/dir such that /path/to/unpack/dir has: influxdb3.exe, python3.dll, python311.dll, vcruntime140.dll, vcruntime140_1.dll and the python directory.

Here are the steps for the Microsoft command prompt for Core (assumes https://dl.influxdata.com/influxdb/snapshots/influxdb3-core_x86_64-pc-windows-gnu.tar.gz is downloaded to the current directory):

> mkdir influxdb-core\install
> tar -zxf influxdb3-core_x86_64-pc-windows-gnu.tar.gz -C influxdb-core\install

# this doesn't work due to https://github.com/influxdata/influxdb/issues/26113
> influxdb-core\install\influxdb3.exe -V
>

# workaround
> copy influxdb-core\install\python\*.dll influxdb-core\install
influxdb-core\install\python\python3.dll
influxdb-core\install\python\python311.dll
influxdb-core\install\python\vcruntime140.dll
influxdb-core\install\python\vcruntime140_1.dll
        4 file(s) copied.

# now it works
> influxdb-core\install\influxdb3.exe -V
influxdb3 0.1.0, revision v2.5.0-14368-g5fa417c3f0afde4003ffc3a27e384439a2621b81

>

and for Enterprise (assumes https://dl.influxdata.com/influxdb/snapshots/influxdb3-enterprise_x86_64-pc-windows-gnu.tar.gz is downloaded to the current directory):

> mkdir influxdb-enterprise\install
> tar -zxf influxdb3-enterprise_x86_64-pc-windows-gnu.tar.gz -C influxdb-enterprise\install

# this doesn't work due to https://github.com/influxdata/influxdb/issues/26113
> influxdb-enterprise\install\influxdb3.exe -V
>

# workaround
> copy influxdb-enterprise\install\python\*.dll influxdb-enterprise\install
influxdb-enterprise\install\python\python3.dll
influxdb-enterprise\install\python\python311.dll
influxdb-enterprise\install\python\vcruntime140.dll
influxdb-enterprise\install\python\vcruntime140_1.dll
        4 file(s) copied.

# now it works
> influxdb-enterprise\install\influxdb3.exe -V
influxdb3 0.1.0, revision 1ee2be689ff9963db665ec257092682cbc546c9a

>

Reference: https://discord.com/channels/1325200757427015701/1325241973468168268/threads/1348007920734048268

@jdstrand jdstrand added the v3 label Mar 10, 2025
@jdstrand jdstrand self-assigned this Mar 10, 2025
@jdstrand
Copy link
Contributor Author

I'll take this since I didn't account for this when updating the builds for python build standalone (I was thinking the zip file was used in the docs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant