{"id":27582,"date":"2020-06-02T08:58:42","date_gmt":"2020-06-02T07:58:42","guid":{"rendered":"https:\/\/home.apeconsulting.co.uk\/adrian\/?p=27582"},"modified":"2020-06-02T08:58:43","modified_gmt":"2020-06-02T07:58:43","slug":"updating-bitwarden","status":"publish","type":"post","link":"https:\/\/home.apeconsulting.co.uk\/adrian\/updating-bitwarden\/","title":{"rendered":"Updating Bitwarden"},"content":{"rendered":"\n<p>I blogged about my switch from using 1Password to a self-hosted version of Bitwarden <a href=\"https:\/\/home.apeconsulting.co.uk\/adrian\/bitwarden\/\">here<\/a>, and its been running perfectly ever since.  That said, I had tried updating Bitwarden a couple of times, all of which have failed and I&#8217;d ended up rolling back a snapshot.  I tried updating Bitwarden again this weekend, with a much more successful outcome!<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>From the <a href=\"https:\/\/bitwarden.com\/help\/article\/updating-on-premise\/\">website<\/a>, updating Bitwarden shouldn&#8217;t be more difficult than running 2 bash commands!<\/p>\n\n\n\n<p>I&#8217;ve tried this a couple of times before and each time it has failed.  I appeared to end up with a clean install which had lost all of my configuration settings and subsequently failed to launch.  I&#8217;d not got to the bottom of why, so ended up rolling back the VM disk snapshot to get everything working again.<\/p>\n\n\n\n<p>This attempt included the start of creating a completely separate VM which I was going to use just for running Bitwarden, but thankfully during this process, I noticed the fairly simple problem, which I resolved allowing me to successfully update Bitwarden.<\/p>\n\n\n\n<p>So what was the problem?  It turns out that when I&#8217;d installed Bitwarden originally it had installed into the \/ system root directory so I had bitwarden.sh and the bwdata folder at the \/ level.  The update routine appears to be looking for this in the \/root home folder, and when it doesn&#8217;t find them effectively creates new files and folders, missing all of the configurations and most importantly the database.<\/p>\n\n\n\n<p>I spotted that this time as I was trying to access the admin panel, and changing the relevant settings in the \/root\/bwdata\/env\/global.override.env file wasn&#8217;t working.  I then noticed that I had things duplicated at the \/ and \/root folders, with all my configuration at the \/ system root level<\/p>\n\n\n\n<p>Deleting everything at \/root, moving the files and folders from \/ to \/root and running the update again worked perfectly and hopefully means that keeping Bitwarden a little more up-to-date should be very easy to do.  From memory (and to help me updating in the future), the commands went something like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rm \/root\/bitwarden.sh<br>rm -rf \/root\/bwdata<br>mv \/bitwarden.sh \/root<br>mv \/bwdata \/root<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">.\/bitwarden.sh updateself\n.\/bitwarden.sh update<\/pre>\n\n\n\n<p>The database migration failed to start initially, but I suspect this was down to it being repaired after being moved, and the permissions probably not being right.   I could see this being fixed in the Docker container log, and once that was complete the migration only took a few seconds.  There was nervousness when I tried to access things remotely and then tried to sync the various clients, but there needn&#8217;t have been as everything worked fine.  <\/p>\n\n\n\n<p>The server version I&#8217;d installed earlier this year was 1.32 and I&#8217;m now running 1.34 as per the release notes <a href=\"https:\/\/github.com\/bitwarden\/server\/releases\">here<\/a>.  The web version also updated from 2.12 to 2.14 (see <a href=\"https:\/\/github.com\/bitwarden\/web\/releases\">here<\/a>).  The clients running on macOS and iOS have been updating themselves, and were still working, although they&#8217;d introduced a trash folder for deleted password, which didn&#8217;t work as the server version didn&#8217;t have this.  The sync functionality had also become a little less reliable, soI&#8217;ll put that down to a lack of updates for a few months, and try and keep things a little more up-to-date moving forward.<\/p>\n\n\n\n<p>The advice from the original blog is still just as relevant though &#8211; <strong>If you\u2019re not using a password manager already, why not? It\u2019s pretty much essential now for anyone but an online hermit, but if you\u2019re not sure which solution to choose\u00a0<a href=\"https:\/\/www.codeinwp.com\/blog\/best-password-manager\/\">here\u2019s a pretty good comparison<\/a>\u00a0of the leading players, including 1Password and Bitwarden. Don\u2019t choose to do nothing! Any password manager would be better than no password manager, so what are you waiting for?<\/strong><\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>I blogged about my switch from using 1Password to a self-hosted version of Bitwarden here, and its been running perfectly ever since. That said, I had tried updating Bitwarden a couple of times, all of which have failed and I&#8217;d ended up rolling back a snapshot. I tried updating Bitwarden again this weekend, with a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[29,19,2,10],"tags":[21],"class_list":["post-27582","post","type-post","status-publish","format-standard","hentry","category-docker","category-freenas","category-it","category-software","tag-spellchecked"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Updating Bitwarden - Adrian&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/home.apeconsulting.co.uk\/adrian\/updating-bitwarden\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Updating Bitwarden - Adrian&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"I blogged about my switch from using 1Password to a self-hosted version of Bitwarden here, and its been running perfectly ever since. That said, I had tried updating Bitwarden a couple of times, all of which have failed and I&#8217;d ended up rolling back a snapshot. I tried updating Bitwarden again this weekend, with a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/home.apeconsulting.co.uk\/adrian\/updating-bitwarden\/\" \/>\n<meta property=\"og:site_name\" content=\"Adrian&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-02T07:58:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-06-02T07:58:43+00:00\" \/>\n<meta name=\"author\" content=\"Adrian\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Adrian\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/updating-bitwarden\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/updating-bitwarden\\\/\"},\"author\":{\"name\":\"Adrian\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#\\\/schema\\\/person\\\/f63f15ff50bb8f956afdd86a816c5d2a\"},\"headline\":\"Updating Bitwarden\",\"datePublished\":\"2020-06-02T07:58:42+00:00\",\"dateModified\":\"2020-06-02T07:58:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/updating-bitwarden\\\/\"},\"wordCount\":615,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#\\\/schema\\\/person\\\/f63f15ff50bb8f956afdd86a816c5d2a\"},\"keywords\":[\"Checked\"],\"articleSection\":[\"Docker\",\"FreeNAS\",\"IT\",\"Software\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/updating-bitwarden\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/updating-bitwarden\\\/\",\"url\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/updating-bitwarden\\\/\",\"name\":\"Updating Bitwarden - Adrian&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#website\"},\"datePublished\":\"2020-06-02T07:58:42+00:00\",\"dateModified\":\"2020-06-02T07:58:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/updating-bitwarden\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/updating-bitwarden\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/updating-bitwarden\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Updating Bitwarden\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#website\",\"url\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/\",\"name\":\"Adrian&#039;s Blog\",\"description\":\"Ramblings of an IT Geek\",\"publisher\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#\\\/schema\\\/person\\\/f63f15ff50bb8f956afdd86a816c5d2a\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#\\\/schema\\\/person\\\/f63f15ff50bb8f956afdd86a816c5d2a\",\"name\":\"Adrian\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g\",\"caption\":\"Adrian\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Updating Bitwarden - Adrian&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/home.apeconsulting.co.uk\/adrian\/updating-bitwarden\/","og_locale":"en_GB","og_type":"article","og_title":"Updating Bitwarden - Adrian&#039;s Blog","og_description":"I blogged about my switch from using 1Password to a self-hosted version of Bitwarden here, and its been running perfectly ever since. That said, I had tried updating Bitwarden a couple of times, all of which have failed and I&#8217;d ended up rolling back a snapshot. I tried updating Bitwarden again this weekend, with a [&hellip;]","og_url":"https:\/\/home.apeconsulting.co.uk\/adrian\/updating-bitwarden\/","og_site_name":"Adrian&#039;s Blog","article_published_time":"2020-06-02T07:58:42+00:00","article_modified_time":"2020-06-02T07:58:43+00:00","author":"Adrian","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Adrian","Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/updating-bitwarden\/#article","isPartOf":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/updating-bitwarden\/"},"author":{"name":"Adrian","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#\/schema\/person\/f63f15ff50bb8f956afdd86a816c5d2a"},"headline":"Updating Bitwarden","datePublished":"2020-06-02T07:58:42+00:00","dateModified":"2020-06-02T07:58:43+00:00","mainEntityOfPage":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/updating-bitwarden\/"},"wordCount":615,"commentCount":1,"publisher":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#\/schema\/person\/f63f15ff50bb8f956afdd86a816c5d2a"},"keywords":["Checked"],"articleSection":["Docker","FreeNAS","IT","Software"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/home.apeconsulting.co.uk\/adrian\/updating-bitwarden\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/updating-bitwarden\/","url":"https:\/\/home.apeconsulting.co.uk\/adrian\/updating-bitwarden\/","name":"Updating Bitwarden - Adrian&#039;s Blog","isPartOf":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#website"},"datePublished":"2020-06-02T07:58:42+00:00","dateModified":"2020-06-02T07:58:43+00:00","breadcrumb":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/updating-bitwarden\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/home.apeconsulting.co.uk\/adrian\/updating-bitwarden\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/updating-bitwarden\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/home.apeconsulting.co.uk\/adrian\/"},{"@type":"ListItem","position":2,"name":"Updating Bitwarden"}]},{"@type":"WebSite","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#website","url":"https:\/\/home.apeconsulting.co.uk\/adrian\/","name":"Adrian&#039;s Blog","description":"Ramblings of an IT Geek","publisher":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#\/schema\/person\/f63f15ff50bb8f956afdd86a816c5d2a"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/home.apeconsulting.co.uk\/adrian\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#\/schema\/person\/f63f15ff50bb8f956afdd86a816c5d2a","name":"Adrian","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g","caption":"Adrian"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g"}}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p90DI4-7aS","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/posts\/27582","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/comments?post=27582"}],"version-history":[{"count":6,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/posts\/27582\/revisions"}],"predecessor-version":[{"id":27613,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/posts\/27582\/revisions\/27613"}],"wp:attachment":[{"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/media?parent=27582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/categories?post=27582"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/tags?post=27582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}