Git Product home page Git Product logo

vaultwarden-on-azure-container-apps's Introduction

Vaultwarden on Azure Container Apps

This repo contains the bicep files to deploy Vaultwarden on an Azure Container App. It also contains an empty SQLite database required to setup Vaultwarden using an Azure file share.

For more details visit my blog post: https://blog.mwiedemeyer.de/post/2023/Vaultwarden-Bitwarden-on-Azure-Container-Apps/

To run this template you can execute:

az deployment group create --resource-group YOU_RESOURCE_GROUP_NAME --template-file main.bicep

or click this button:

Deploy to Azure

vaultwarden-on-azure-container-apps's People

Contributors

mwiedemeyer avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

vaultwarden-on-azure-container-apps's Issues

Error running migrations: DatabaseError(Unknown, "database is locked")

Hi Marco, I'd really like to run this but I'm getting the "database is locked" error shown in the title. Log is shown below. I have disabled vNet integration, I'm using Gmail for SMTP (configured with the environment vars SMTP_xx), and since we're using Azure Files I tried with WAL enabled and disabled (I'm not very familiar with this, so I tried both) but got the same error both ways. Everything else is as configured in the repo. Any idea what this error is pointing to, and how to get around it?

2024-05-21T21:17:03.03059  Connecting to the container 'vaultwarden'...
2024-05-21T21:17:03.04824  Successfully Connected to container: 'vaultwarden' [Revision: 'vaultwardenvwinfra--b6vp5o7-b5689b4d-54rjg', Replica: 'vaultwardenvwinfra--b6vp5o7']
2024-05-21T21:16:55.265169480Z See: https://github.com/dani-garcia/vaultwarden/wiki/Enabling-admin-page#secure-the-admin_token
2024-05-21T21:16:55.265172986Z 
2024-05-21T21:16:55.431833866Z [2024-05-21 21:16:55.431][panic][ERROR] thread 'main' panicked at 'Error running migrations: DatabaseError(Unknown, "database is locked")': src/db/mod.rs:452
2024-05-21T21:16:55.433522210Z    0: vaultwarden::init_logging::{{closure}}
2024-05-21T21:16:55.433532880Z    1: std::panicking::rust_panic_with_hook
2024-05-21T21:16:55.433537579Z    2: std::panicking::begin_panic_handler::{{closure}}
2024-05-21T21:16:55.433540875Z    3: std::sys_common::backtrace::__rust_end_short_backtrace
2024-05-21T21:16:55.433544101Z    4: rust_begin_unwind
2024-05-21T21:16:55.433547407Z    5: core::panicking::panic_fmt
2024-05-21T21:16:55.433550623Z    6: core::result::unwrap_failed
2024-05-21T21:16:55.433554049Z    7: vaultwarden::db::DbPool::from_config
2024-05-21T21:16:55.433557085Z    8: vaultwarden::main::{{closure}}
2024-05-21T21:16:55.433560201Z    9: vaultwarden::main
2024-05-21T21:16:55.433563307Z   10: std::sys_common::backtrace::__rust_begin_short_backtrace
2024-05-21T21:16:55.433566543Z   11: std::rt::lang_start::{{closure}}
2024-05-21T21:16:55.433581611Z   12: main
2024-05-21T21:16:55.433586691Z   13: <unknown>
2024-05-21T21:16:55.433591329Z   14: __libc_start_main
2024-05-21T21:16:55.433595597Z   15: _start
2024-05-21T21:16:55.433607008Z 

Unified Container

Have you attempted to use the BW Unified container instead of vaultwarden?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.