Vaultwarden Update Script Error #3522
Replies: 3 comments 2 replies
-
I ahve the same error when i want to update! |
Beta Was this translation helpful? Give feedback.
-
Hi all, sqlite only and I was able to complete the upgrade. Nicolouts |
Beta Was this translation helpful? Give feedback.
-
Receiving the following error when running the upgrade script.
/ Updating VaultWarden to 1.32.0 (Patience) [ERROR] in line 84: exit code 0: while executing command cargo build --features "sqlite,mysql,postgresql" --release &> /dev/null
I have reviewed previous discussions indicating this error is typically resolved by adding resources. My LXC container has 6vCPU and 4GB RAM.
Also space is not an issue.
When I manually run the cargo build command this is the output. Any ideas?
root@vw1:~/vaultwarden# cargo build --features "sqlite,mysql,postgresql" --release Compiling mysqlclient-sys v0.4.0 Compiling ref-cast v1.0.23 Compiling chrono-tz-build v0.3.0 Compiling devise v0.4.1 Compiling pest_meta v2.7.11 Compiling psm v0.1.21 error: failed to run custom build command for
mysqlclient-sys v0.4.0`Caused by:
process didn't exit successfully:
/root/vaultwarden/target/release/build/mysqlclient-sys-6242426b274fb897/build-script-build
(exit status: 101)--- stdout
cargo::rerun-if-env-changed=MYSQLCLIENT_VERSION
cargo::rerun-if-env-changed=MYSQLCLIENT_INCLUDE_DIR
cargo::rerun-if-env-changed=MYSQLCLIENT_INCLUDE_DIR_X86_64_UNKNOWN_LINUX_GNU
cargo::rerun-if-env-changed=MYSQLCLIENT_LIB
cargo::rerun-if-env-changed=MYSQLCLIENT_LIB_DIR
cargo::rerun-if-env-changed=MYSQLCLIENT_LIB_DIR_X86_64_UNKNOWN_LINUX_GNU
cargo::rerun-if-env-changed=MYSQLCLIENT_LIBNAME
cargo::rerun-if-env-changed=MYSQLCLIENT_LIBNAME_X86_64_UNKNOWN_LINUX_GNU
cargo::rerun-if-env-changed=MYSQLCLIENT_STATIC
cargo::rerun-if-env-changed=MYSQLCLIENT_VERSION_X86_64_UNKNOWN_LINUX_GNU
cargo::rerun-if-env-changed=MYSQLCLIENT_LIB_X86_64_UNKNOWN_LINUX_GNU
cargo::rerun-if-env-changed=MYSQLCLIENT_STATIC_X86_64_UNKNOWN_LINUX_GNU
cargo:rerun-if-env-changed=MYSQLCLIENT_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=MYSQLCLIENT_STATIC
cargo:rerun-if-env-changed=MYSQLCLIENT_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=LIBMARIADB_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=LIBMARIADB_STATIC
cargo:rerun-if-env-changed=LIBMARIADB_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
--- stderr
thread 'main' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mysqlclient-sys-0.4.0/build.rs:89:5:
Did not find a compatible version of libmysqlclient.
Ensure that you installed one and teached mysqlclient-sys how to find it
You have the following options for that:
pkg_config
to automatically detect the right locationYou also need to set
MYSQLCLIENT_VERSION
to specify whichversion of libmysqlclient you are using
MYSQLCLIENT_LIB_DIR
andMYSQLCLIENT_VERSION
environmentvariables to point the compiler to the right directory and specify
which version is used
mysql_config
binary avaible in the environment that invokesthe compiler
note: run with
RUST_BACKTRACE=1
environment variable to display a backtracewarning: build failed, waiting for other jobs to finish...`
Beta Was this translation helpful? Give feedback.
All reactions