Skip to content

julia --version behaves badly in an environment without network access #1227

@Keno

Description

@Keno
$ julia --version
Checking for new Julia versions
Error: Failed to run `run_command_add` from the `run_command_initial_setup_from_launcher` command.
Caused by:
    0: Failed to update versions db.
    1: Failed to download current version db version.
    2: Failed to download from url `https://julialang-s3.julialang.org/juliaup/RELEASECHANNELDBVERSION`.
    3: error sending request for url (https://julialang-s3.julialang.org/juliaup/RELEASECHANNELDBVERSION)
    4: client error (Connect)
    5: dns error: failed to lookup address information: Try again
    6: failed to lookup address information: Try again
Stack backtrace:
   0: juliaup::operations::download_juliaup_version
   1: juliaup::operations::update_version_db
   2: juliaup::command_add::run_command_add
   3: juliaup::main
   4: std::sys::backtrace::__rust_begin_short_backtrace
   5: main
Error: The Julia launcher failed to figure out which juliaup channel to use.
Stack backtrace:
   0: anyhow::error::::msg
   1: julialauncher::run_app
   2: julialauncher::main
   3: std::sys::backtrace::__rust_begin_short_backtrace
   4: main

I don't know that an auto-update failure should ever interfere with julia actually running. FWIW, the prior commands in this session were

juliaup add 1.12
juliaup default 1.12

So I also don't know why it doesn't know which channel to use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions