Qnap [ VaultWarden ex: BitWarden_rs ] Password management solution for individuals, team

i dont have such development skills... it would need to create a full wizard in php ou other web framework

something to done on bitwarden dev side i think...
 
updated an intermediate version

now Bitwarden is running in HTTPS (mandatory)
it detect if you installed QnapCloud LetEncrypt and will use it, if not found... it roll back to autosigned cetificated provided by qnap
 
Hello,

J'ai souvent des soucis avec mon instance. Au bout d'un certain moment, impossible de joindre le vault. Service non disponible.

Il faut constamment relancer le Bitwarden via SSH ./BitWarden.sh restart dans opt/BitWarden. Une fois relancer tout est de nouveau OK jusqu'au prochain plantage.

Ne sachant pas dans quelles logs fouiller (ni même ou elles sont) je me permets de poster ici.

Cordialement
 
Par exemple là il est encore planté alors que je l'avais redémarré lors de mon précédent message à 14h30
 
Mémoire recommandée par QNAP. Après je t'avoue ça fait un baille :)

En lançant dmesg j'ai pas mal de log mais à la fin je retrouve ça :
[359206.972448] traps: bitwarden_rs[1695] trap invalid opcode ip:560c6be9285e sp :7f38ec2580f0 error:0 in bitwarden_rs[560c6b3ad000+ec2000]
 
Question bête mais quand je regarde les logs de Bitwarden lors du restart il y a 2h de décalage :
[2020-06-20 19:40:39][request][INFO] GET /api/accounts/revision-date
[2020-06-20 19:40:39][response][INFO] GET /api/accounts/revision-date (revision_date) => 200 OK

Alors qu'il est 21h40. Ca pourrait pas créer un conflit de synchro ou autre ?
 
Nop toujours pas. J'ai essayé d'activer le serveur NTP en sus mais toujours 2h de décalage, ce qui ressemble à GMT+1 et +1 heure d'hiver ou été je sais plus où on en est :)

Est-ce qu'il y a un moyen de mettre en place des logs pour pouvoir tracer ce qui le fait planter ?

Je ne sais pas comment adapter au QNAP ce qui est présent ici https://github.com/dani-garcia/bitwarden_rs/wiki/Logging
 
essaye d'ajouter dans la liste des export de Bitwarden.sh

en fin de liste

export EXTENDED_LOGGING=true
export LOG_LEVEL=debug

et je pense

sans doute un flag dans le fichier de config .yml qui est dans le rep du qpkg
 
J'ai ajouté ça :
export LOG_FILE=/data/bitwarden.log

Sinon je ne vois pas ou il écrit. Mais bon au final aucune log dans ce fichier ...
 
Quelques news. Depuis que j'ai ajouté les lignes de debug je n'ai plus de plantage. :lol:
 
Timezone problem and backup question

Hello Qoolbox.
thanks for this qnap package! it works quite smoothly so far,
but 2 questions remain:

- when using TOTP, the server (qnap) or bitwarden_rs package gives me wrong output of time, so I can't use TOTP
I tried to adjust it manually in the Bitwarden.sh file

#export TZ=$(/sbin/getcfg System 'Time Zone' -f /etc/config/uLinux.conf)
export TZ=America/Buenos_Aires

but this does not work.... server time of bitwarden_rs stays at UTC time

- I was looking into the backup strategy, and found out, that sqlite3 backups can be done on the fly with the .backup command,
but I am struggling with using the resulting backup-file in a worst-case scenario:
for substituting the actual backupfile, one needs to stop bitwarden_rs on the qnap: but if it is stopped, there is no /opt/Bitwarden/data/db.sqlite3,
as there is no /opt/Bitwarden folder at this moment.... what can be done here?

Thanks a lot in advance,
Bernhard Thoni
 
Hi

no idea for TZ ... basically it pick up the setting in uLinux.conf (setted in your QTS WebUI) if you found a bug may be open an issue on bitwraden-rs github...
but read wiki first on the github (in case of a solution)

for DB backup /opt/Bitwarden_rs is just a symlink created on qpkg start pointing to your system volume and .qpkg/Bitwarden_rs

you will find there the .config directory