Erreur installation bitwarden

Mon serveur YunoHost

Matériel: VPS acheté en ligne (PulseHeberge EDU-1 PulseHeberg - VPS Linux Student (VPS KVM))
Version de YunoHost: 4.1.6
J’ai accès à mon serveur : En SSH
Êtes-vous dans un contexte particulier ou avez-vous effectué des modifications particulières sur votre instance ? : non

Description du problème

Bonjour à tous,
Je viens d’installer YUNOHOST sur un vps acheté en ligne (pas très puissant mais suffisant selon la doc (1Go de Ram et 1 coeur à 2.6 GHz) )

J’ai tout configuré dans le diagnostique tout fonctionne (quelques warning et un problème au niveau des mails mais ça ne devrait pas jouer sur mon problème)

J’ai essayé d’installer Bitwarden plusieurs fois mais j’ai toujours des erreurs au bout d’un moment que je ne comprends vraiment pas comment régler.

voici les logs : https://paste.yunohost.org/raw/aqigetufaj

j’avais aussi eu une erreur lors de mon essai précédent :

Warning:    Compiling rand_isaac v0.1.1
Warning: The following warnings were emitted during compilation:
Warning: warning: virtual memory exhausted: Cannot allocate memory
Warning: error: failed to run custom build command for `libsqlite3-sys v0.18.0`
Warning: Caused by:
Warning:   process didn't exit successfully: `/var/www/bitwarden/build/target/release/build/libsqlite3-sys-3215fc188981b3b1/build-script-build` (exit code: 1)
Warning:   --- stdout
Warning:   cargo:rerun-if-env-changed=SQLITE_MAX_VARIABLE_NUMBER
Warning:   cargo:rerun-if-env-changed=SQLITE_MAX_EXPR_DEPTH
Warning:   TARGET = Some("x86_64-unknown-linux-gnu")
Warning:   OPT_LEVEL = Some("3")
Warning:   HOST = Some("x86_64-unknown-linux-gnu")
Warning:   CC_x86_64-unknown-linux-gnu = None
Warning:   CC_x86_64_unknown_linux_gnu = None
Warning:   HOST_CC = None
Warning:   CC = None
Warning:   CFLAGS_x86_64-unknown-linux-gnu = None
Warning:   CFLAGS_x86_64_unknown_linux_gnu = None
Warning:   HOST_CFLAGS = None
Warning:   CFLAGS = None
Warning:   CRATE_CC_NO_DEFAULTS = None
Warning:   DEBUG = Some("false")
Warning:   CARGO_CFG_TARGET_FEATURE = Some("fxsr,mmx,sse,sse2")
Warning:   running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-DSQLITE_CORE" "-DSQLITE_DEFAULT_FOREIGN_KEYS=1" "-DSQLITE_ENABLE_API_ARMOR" "-DSQLITE_ENABLE_COLUMN_METADATA" "-DSQLITE_ENABLE_DBSTAT_VTAB" "-DSQLITE_ENABLE_FTS3" "-DSQLITE_ENABLE_FTS3_PARENTHESIS" "-DSQLITE_ENABLE_FTS5" "-DSQLITE_ENABLE_JSON1" "-DSQLITE_ENABLE_LOAD_EXTENSION=1" "-DSQLITE_ENABLE_MEMORY_MANAGEMENT" "-DSQLITE_ENABLE_RTREE" "-DSQLITE_ENABLE_STAT2" "-DSQLITE_ENABLE_STAT4" "-DSQLITE_SOUNDEX" "-DSQLITE_THREADSAFE=1" "-DSQLITE_USE_URI" "-DHAVE_USLEEP=1" "-DSQLITE_HAVE_ISNAN" "-o" "/var/www/bitwarden/build/target/release/build/libsqlite3-sys-5acddb7c189b35f9/out/sqlite3/sqlite3.o" "-c" "sqlite3/sqlite3.c"
Warning:   cargo:warning=virtual memory exhausted: Cannot allocate memory
Warning:   exit code: 1
Warning:   --- stderr
Warning:   error occurred: Command "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-DSQLITE_CORE" "-DSQLITE_DEFAULT_FOREIGN_KEYS=1" "-DSQLITE_ENABLE_API_ARMOR" "-DSQLITE_ENABLE_COLUMN_METADATA" "-DSQLITE_ENABLE_DBSTAT_VTAB" "-DSQLITE_ENABLE_FTS3" "-DSQLITE_ENABLE_FTS3_PARENTHESIS" "-DSQLITE_ENABLE_FTS5" "-DSQLITE_ENABLE_JSON1" "-DSQLITE_ENABLE_LOAD_EXTENSION=1" "-DSQLITE_ENABLE_MEMORY_MANAGEMENT" "-DSQLITE_ENABLE_RTREE" "-DSQLITE_ENABLE_STAT2" "-DSQLITE_ENABLE_STAT4" "-DSQLITE_SOUNDEX" "-DSQLITE_THREADSAFE=1" "-DSQLITE_USE_URI" "-DHAVE_USLEEP=1" "-DSQLITE_HAVE_ISNAN" "-o" "/var/www/bitwarden/build/target/release/build/libsqlite3-sys-5acddb7c189b35f9/out/sqlite3/sqlite3.o" "-c" "sqlite3/sqlite3.c" with args "cc" did not execute successfully (status code exit code: 1).
Error: Unable to install bitwarden: An error occurred inside the app installation script
Info: The operation 'Install the 'bitwarden' app' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20210201-164026-app_install-bitwarden --share' to get help
Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: WARNING -   CC_x86_64_unknown_linux_gnu = None
Info: WARNING -   HOST_CC = None
Info: WARNING -   CC = None
Info: WARNING -   CFLAGS_x86_64-unknown-linux-gnu = None
Info: WARNING -   CFLAGS_x86_64_unknown_linux_gnu = None
Info: WARNING -   HOST_CFLAGS = None
Info: WARNING -   CFLAGS = None
Info: WARNING -   CRATE_CC_NO_DEFAULTS = None
Info: WARNING -   DEBUG = Some("false")
Info: WARNING -   CARGO_CFG_TARGET_FEATURE = Some("fxsr,mmx,sse,sse2")
Info: WARNING -   running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-DSQLITE_CORE" "-DSQLITE_DEFAULT_FOREIGN_KEYS=1" "-DSQLITE_ENABLE_API_ARMOR" "-DSQLITE_ENABLE_COLUMN_METADATA" "-DSQLITE_ENABLE_DBSTAT_VTAB" "-DSQLITE_ENABLE_FTS3" "-DSQLITE_ENABLE_FTS3_PARENTHESIS" "-DSQLITE_ENABLE_FTS5" "-DSQLITE_ENABLE_JSON1" "-DSQLITE_ENABLE_LOAD_EXTENSION=1" "-DSQLITE_ENABLE_MEMORY_MANAGEMENT" "-DSQLITE_ENABLE_RTREE" "-DSQLITE_ENABLE_STAT2" "-DSQLITE_ENABLE_STAT4" "-DSQLITE_SOUNDEX" "-DSQLITE_THREADSAFE=1" "-DSQLITE_USE_URI" "-DHAVE_USLEEP=1" "-DSQLITE_HAVE_ISNAN" "-o" "/var/www/bitwarden/build/target/release/build/libsqlite3-sys-5acddb7c189b35f9/out/sqlite3/sqlite3.o" "-c" "sqlite3/sqlite3.c"
Info: WARNING -   cargo:warning=virtual memory exhausted: Cannot allocate memory
Info: WARNING -   exit code: 1
Info: DEBUG -
Info: WARNING -   --- stderr
Info: DEBUG -
Info: DEBUG -
Info: WARNING -   error occurred: Command "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-DSQLITE_CORE" "-DSQLITE_DEFAULT_FOREIGN_KEYS=1" "-DSQLITE_ENABLE_API_ARMOR" "-DSQLITE_ENABLE_COLUMN_METADATA" "-DSQLITE_ENABLE_DBSTAT_VTAB" "-DSQLITE_ENABLE_FTS3" "-DSQLITE_ENABLE_FTS3_PARENTHESIS" "-DSQLITE_ENABLE_FTS5" "-DSQLITE_ENABLE_JSON1" "-DSQLITE_ENABLE_LOAD_EXTENSION=1" "-DSQLITE_ENABLE_MEMORY_MANAGEMENT" "-DSQLITE_ENABLE_RTREE" "-DSQLITE_ENABLE_STAT2" "-DSQLITE_ENABLE_STAT4" "-DSQLITE_SOUNDEX" "-DSQLITE_THREADSAFE=1" "-DSQLITE_USE_URI" "-DHAVE_USLEEP=1" "-DSQLITE_HAVE_ISNAN" "-o" "/var/www/bitwarden/build/target/release/build/libsqlite3-sys-5acddb7c189b35f9/out/sqlite3/sqlite3.o" "-c" "sqlite3/sqlite3.c" with args "cc" did not execute successfully (status code exit code: 1).
Info: DEBUG -
Info: DEBUG -
Info: DEBUG - + ynh_exit_properly
Warning: Removing the app following the installation failure...
Info: [+...................] > Loading installation settings...
Info: [#++.................] > Stopping and removing the systemd service...
Info: [###++...............] > Removing dependencies...
Info: [#####++.............] > Removing app main directory...
Info: [#######++...........] > Removing NGINX web server configuration...
Info: [#########+..........] > Removing logrotate configuration...
Info: [##########++........] > Removing Fail2Ban configuration...
Info: '/etc/fail2ban/jail.d/bitwarden.conf' wasn't deleted because it doesn't exist.
Info: '/etc/fail2ban/filter.d/bitwarden.conf' wasn't deleted because it doesn't exist.
Info: [############++......] > Removing various files...
Info: '/var/log/bitwarden' wasn't deleted because it doesn't exist.
Info: [##############++....] > Removing the dedicated system user...
Error: The operation 'Install the 'bitwarden' app' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20210201-164026-app_install-bitwarden --share' to get help

Après quelques recherches j’ai vu des choses autour d’un SWAP trop faible j’ai donc créé un fichier SWAP de 512 Mo et en effet quand je fais un htop en même temps que l’installation je vois que le processeur est à 100% et la RAM est elle aussi très utilisée (le swap aussi)

Voilà je suis un novice donc je n’y connais pas grand chose mais si vous pouvez m’aider j’en serais ravi !

Merci d’avance !

warning: virtual memory exhausted: Cannot allocate memory

C’est clairement un manque de RAM oui, je sais que ce genre d’app qui build en local ont tendance à nécessité une quantité de RAM complètement déraisonnable … Je ne serais pas supris qu’il faille ~2GB ou plus (donc au moins 1GB RAM + 1 GB swap, tu peux vérifier avec free -h)

Ok c’est bien ce que je me disais du coup. Mais il serait donc bon pour les app concernées de l’écrire dans la page de l’app non ?

Merci en tout cas pour la réponse, je vais essayer de mettre 1Go de swap au lieu de 512Mo pour voir ce que ça donne

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.