{"id":27913,"date":"2020-08-12T19:39:57","date_gmt":"2020-08-12T18:39:57","guid":{"rendered":"https:\/\/home.apeconsulting.co.uk\/adrian\/?p=27913"},"modified":"2020-08-12T19:40:00","modified_gmt":"2020-08-12T18:40:00","slug":"lost-blogs","status":"publish","type":"post","link":"https:\/\/home.apeconsulting.co.uk\/adrian\/lost-blogs\/","title":{"rendered":"Lost Blogs"},"content":{"rendered":"\n<p>I&#8217;d drafted 2 blogs yesterday &#8211; one about a portable monitor and another about Firesticks.  This morning I decided to be brave and update <a href=\"https:\/\/wordpress.org\/news\/2020\/08\/eckstine\/\">WordPress to 5.5<\/a> (I&#8217;d tested two other sites yesterday which both worked perfectly) but it failed and I&#8217;ve lost (the) blogs.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>To be fair, it&#8217;s my own fault for (a) not taking snapshots before running the update (I&#8217;d assumed the overnight ones worked) and (b) not checking the said snapshots before I decided to roll back.  Especially as I woke to a non-running FreeNAS server this morning!<\/p>\n\n\n\n<p>We had some pretty big electrical storms during the night, and I&#8217;m not sure if that caused things to power down, but my office was eerily quiet when I went in this morning as everything connected to the UPS was off.  It all started back OK, although I needed to delete some iThemes config from the WordPress jail nginx.conf file as the NGINX service didn&#8217;t restart.  Having fixed that, and checked everything was running fine, I thought I&#8217;d upgrade to 5.5.<\/p>\n\n\n\n<p>The following error stopped the update and meant that I couldn&#8217;t get back into my WordPress site from the browser:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Could not create directory.: wp-admin\/css\/colors\/modern<\/pre>\n\n\n\n<p>A short Google search suggested it was a permissions issue, but I&#8217;d jumped the gun and tried to roll back the previous nights snapshots.  I have the database stored in a dataset outside the jail for backup and performance reasons, and while the jail snapshot had completed, the database snapshot was scheduled to run at 05:00 and my machine went down around 03:00.<\/p>\n\n\n\n<p>A real &#8216;school-boy error&#8217; as after I&#8217;d rolled back the database a day further than I really wanted too, I fixed the error straight away by resetting the permissions on the wp-admin folder.  I needn&#8217;t have rolled back the database at all, or probably the jail, but you live and learn.<\/p>\n\n\n\n<p>Having snapshots are great and have saved my ass so many times, but sometimes it&#8217;s too easy to simply roll them back without spending a little more time trying to diagnose the problem.  This is one such case which resulted in the lost blogs.<\/p>\n\n\n\n<p>I&#8217;ll try and remember what I&#8217;d written at some point over the next few days as I thought they were quite interesting, but I start a new job next week so time will be somewhat precious.<\/p>\n\n\n\n<p>Anyway, the moral of the story?  Check you have a snapshot before running an upgrade, or even better make a new one at the point just before you do.  It takes seconds, and can save hours or days of work!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;d drafted 2 blogs yesterday &#8211; one about a portable monitor and another about Firesticks. This morning I decided to be brave and update WordPress to 5.5 (I&#8217;d tested two other sites yesterday which both worked perfectly) but it failed and I&#8217;ve lost (the) blogs.<\/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":[19,2,14],"tags":[21],"class_list":["post-27913","post","type-post","status-publish","format-standard","hentry","category-freenas","category-it","category-wordpress","tag-spellchecked"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Lost Blogs - Adrian&#039;s Blog<\/title>\n<meta name=\"description\" content=\"I&#039;d drafted 2 blogs yesterday. This morning I decided to be brave and update WordPress to 5.5 but it failed and I&#039;ve lost (the) blogs.\" \/>\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\/lost-blogs\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Lost Blogs - Adrian&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"I&#039;d drafted 2 blogs yesterday. This morning I decided to be brave and update WordPress to 5.5 but it failed and I&#039;ve lost (the) blogs.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/home.apeconsulting.co.uk\/adrian\/lost-blogs\/\" \/>\n<meta property=\"og:site_name\" content=\"Adrian&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-12T18:39:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-12T18:40:00+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=\"2 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\\\/lost-blogs\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/lost-blogs\\\/\"},\"author\":{\"name\":\"Adrian\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#\\\/schema\\\/person\\\/f63f15ff50bb8f956afdd86a816c5d2a\"},\"headline\":\"Lost Blogs\",\"datePublished\":\"2020-08-12T18:39:57+00:00\",\"dateModified\":\"2020-08-12T18:40:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/lost-blogs\\\/\"},\"wordCount\":439,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#\\\/schema\\\/person\\\/f63f15ff50bb8f956afdd86a816c5d2a\"},\"keywords\":[\"Checked\"],\"articleSection\":[\"FreeNAS\",\"IT\",\"WordPress\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/lost-blogs\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/lost-blogs\\\/\",\"url\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/lost-blogs\\\/\",\"name\":\"Lost Blogs - Adrian&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#website\"},\"datePublished\":\"2020-08-12T18:39:57+00:00\",\"dateModified\":\"2020-08-12T18:40:00+00:00\",\"description\":\"I'd drafted 2 blogs yesterday. This morning I decided to be brave and update WordPress to 5.5 but it failed and I've lost (the) blogs.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/lost-blogs\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/lost-blogs\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/lost-blogs\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lost Blogs\"}]},{\"@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":"Lost Blogs - Adrian&#039;s Blog","description":"I'd drafted 2 blogs yesterday. This morning I decided to be brave and update WordPress to 5.5 but it failed and I've lost (the) blogs.","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\/lost-blogs\/","og_locale":"en_GB","og_type":"article","og_title":"Lost Blogs - Adrian&#039;s Blog","og_description":"I'd drafted 2 blogs yesterday. This morning I decided to be brave and update WordPress to 5.5 but it failed and I've lost (the) blogs.","og_url":"https:\/\/home.apeconsulting.co.uk\/adrian\/lost-blogs\/","og_site_name":"Adrian&#039;s Blog","article_published_time":"2020-08-12T18:39:57+00:00","article_modified_time":"2020-08-12T18:40:00+00:00","author":"Adrian","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Adrian","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/lost-blogs\/#article","isPartOf":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/lost-blogs\/"},"author":{"name":"Adrian","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#\/schema\/person\/f63f15ff50bb8f956afdd86a816c5d2a"},"headline":"Lost Blogs","datePublished":"2020-08-12T18:39:57+00:00","dateModified":"2020-08-12T18:40:00+00:00","mainEntityOfPage":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/lost-blogs\/"},"wordCount":439,"commentCount":4,"publisher":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#\/schema\/person\/f63f15ff50bb8f956afdd86a816c5d2a"},"keywords":["Checked"],"articleSection":["FreeNAS","IT","WordPress"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/home.apeconsulting.co.uk\/adrian\/lost-blogs\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/lost-blogs\/","url":"https:\/\/home.apeconsulting.co.uk\/adrian\/lost-blogs\/","name":"Lost Blogs - Adrian&#039;s Blog","isPartOf":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#website"},"datePublished":"2020-08-12T18:39:57+00:00","dateModified":"2020-08-12T18:40:00+00:00","description":"I'd drafted 2 blogs yesterday. This morning I decided to be brave and update WordPress to 5.5 but it failed and I've lost (the) blogs.","breadcrumb":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/lost-blogs\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/home.apeconsulting.co.uk\/adrian\/lost-blogs\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/lost-blogs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/home.apeconsulting.co.uk\/adrian\/"},{"@type":"ListItem","position":2,"name":"Lost Blogs"}]},{"@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-7gd","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/posts\/27913","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=27913"}],"version-history":[{"count":2,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/posts\/27913\/revisions"}],"predecessor-version":[{"id":27925,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/posts\/27913\/revisions\/27925"}],"wp:attachment":[{"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/media?parent=27913"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/categories?post=27913"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/tags?post=27913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}