Skip to content

Conversation

@ethunk
Copy link
Contributor

@ethunk ethunk commented Jan 9, 2025

I ran into issues with installing vector and in order to debug it I needed to see the output of the install script. This will by default print the output of the vector install script for help with debugging.

One idea is to check first for MIX_DEBUG environment variable and only log if MIX_DEBUG=true | 1

I tested this locally by running on jetstream and updating the vector install file in the deps folder

mix deps.compile vector_agent --force  

Example of error state:

mix deps.compile vector_agent --force                       [6:30:20]
==> vector_agent
06:30:21.479 [debug] Vector binary downloading...
                                   __   __  __
                                   \ \ / / / /
                                    \ V / / /
                                     \_/  \/

                                   V E C T O R
                                    Installer


--------------------------------------------------------------------------------
Website: https://vector.dev
Docs: https://vector.dev/docs/
Community: https://vector.dev/community/
--------------------------------------------------------------------------------

>>> Downloading Vector via https://packages.timber.io/vector/0.42.0/vector-0.42.0-arm64-apple-darwin.tar.gzcurl: (56) The requested URL returned error: 404
vector: installer for platform 'aarch64-apple-darwin' not found, this may be unsupported


== Compilation error in file lib/vector/installer.ex ==
** (RuntimeError) Vector binary failed to install.
    lib/vector/installer.ex:78: Vector.Installer.validate!/1
    (stdlib 6.2) lists.erl:2146: :lists.foldl/3

Example of a successful install:

mix deps.compile vector_agent --force
==> vector_agent
Compiling 8 files (.ex)

06:35:32.243 [debug] Vector binary downloading...

06:35:37.269 [debug] Vector 0.44.0 installed.
Generated vector_agent app

@ethunk ethunk force-pushed the feature/add-debug-log-for-install branch from c50da09 to bf1b4c7 Compare January 9, 2025 22:30
@ethunk ethunk force-pushed the feature/add-debug-log-for-install branch from bf1b4c7 to c72e739 Compare January 10, 2025 21:40
@nsweeting nsweeting merged commit 17a14d2 into main Jan 15, 2025
1 check passed
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.

3 participants