{"id":900,"date":"2023-06-18T23:45:29","date_gmt":"2023-06-19T06:45:29","guid":{"rendered":"https:\/\/porkrind.org\/missives\/?p=900"},"modified":"2023-06-18T23:45:29","modified_gmt":"2023-06-19T06:45:29","slug":"fixing-element-search","status":"publish","type":"post","link":"https:\/\/porkrind.org\/missives\/fixing-element-search\/","title":{"rendered":"Fixing Element Search"},"content":{"rendered":"<p>My MacOS Element Matrix client (Electron based) started getting errors when I searched. My Windows Matrix client worked just fine, so I was pretty sure it wasn&#8217;t a server issue. When I typed anything into the message search I&#8217;d get this error right underneath:<\/p>\n<blockquote><p>\n  &#8220;Message search initialisation failed, check your settings for more information&#8221;\n<\/p><\/blockquote>\n<p>And when I clicked the &#8220;settings&#8221; link I&#8217;d see this:<br \/>\n<a href=\"https:\/\/porkrind.org\/wp-uploads\/2023\/06\/element-error.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"901\" data-permalink=\"https:\/\/porkrind.org\/missives\/fixing-element-search\/element-error\/\" data-orig-file=\"https:\/\/porkrind.org\/wp-uploads\/2023\/06\/element-error.png\" data-orig-size=\"461,154\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"element-error\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/porkrind.org\/wp-uploads\/2023\/06\/element-error-300x100.png\" data-large-file=\"https:\/\/porkrind.org\/wp-uploads\/2023\/06\/element-error.png\" src=\"https:\/\/porkrind.org\/wp-uploads\/2023\/06\/element-error.png\" alt=\"\" width=\"461\" height=\"154\" class=\"aligncenter size-full wp-image-901\" srcset=\"https:\/\/porkrind.org\/wp-uploads\/2023\/06\/element-error.png 461w, https:\/\/porkrind.org\/wp-uploads\/2023\/06\/element-error-300x100.png 300w\" sizes=\"auto, (max-width: 461px) 100vw, 461px\" \/><\/a><\/p>\n<blockquote><p>\n  Error opening the database: DatabaseUnlockError(&#8220;Invalid passphrase&#8221;)\n<\/p><\/blockquote>\n<p>Clicking on the &#8220;Reset&#8221; button brought a scary warning dialog (&#8220;you probably don&#8217;t need to do this&#8221;\u2014yeah, I kinda think I do) but clicking through it didn&#8217;t actually seem to do anything.<\/p>\n<p>Searching for those terms got me to a <a href=\"https:\/\/github.com\/vector-im\/element-desktop\/issues\/904\">github issue<\/a>. Nothing seemed resolved but I found a message in the middle that helped me fix the problem.<\/p>\n<p>Here&#8217;s what I did:<\/p>\n<ol>\n<li>Close the app<\/li>\n<li><code>cd ~\/Library\/Application Support\/Riot<\/code>. I had to poke around till I found that. There was <em>also<\/em> a <code>~\/Library\/Application Support\/Element<\/code> but it seemed older and out of date, oddly.<\/li>\n<li><code>tar cjf EventStore-bad-2023-06-18.tar.bzr EventStore<\/code>. This made a backup copy of the EventStore directory just in case I needed it (I didn&#8217;t).<\/li>\n<li><code>rm -rf EventStore<\/code>. Kill it with fire.<\/li>\n<li>Restart the app<\/li>\n<\/ol>\n<p>Viola! Working search again!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My MacOS Element Matrix client (Electron based) started getting errors when I searched. My Windows Matrix client worked just fine, so I was pretty sure it wasn&#8217;t a server issue. When I typed anything into the message search I&#8217;d get this error right underneath: &#8220;Message search initialisation failed, check your settings for more information&#8221; And &hellip; <a href=\"https:\/\/porkrind.org\/missives\/fixing-element-search\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Fixing Element Search<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-900","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/posts\/900","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/comments?post=900"}],"version-history":[{"count":1,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/posts\/900\/revisions"}],"predecessor-version":[{"id":902,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/posts\/900\/revisions\/902"}],"wp:attachment":[{"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/media?parent=900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/categories?post=900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/tags?post=900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}