<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>fail &amp;mdash; Build stuff; Break stuff; Have fun!</title>
    <link>https://barfooz.xyz/tag:fail</link>
    <description>barfooz.xyz</description>
    <pubDate>Mon, 01 Jun 2026 17:18:21 +0000</pubDate>
    <image>
      <url>https://i.snap.as/btoNrLSF.png</url>
      <title>fail &amp;mdash; Build stuff; Break stuff; Have fun!</title>
      <link>https://barfooz.xyz/tag:fail</link>
    </image>
    <item>
      <title>Paperless-ngx Update</title>
      <link>https://barfooz.xyz/paperless-ngx-update?pk_campaign=rss-feed</link>
      <description>&lt;![CDATA[Today I did an update of my paperless-ngx installation. Unplanned. 😅&#xA;&#xA;I logged into my Synology DSM and saw that there was an update for the Redis image. Like always, I started the update and went on. Later that Day, I wanted to upload some files, but I got an 500: Error. I&#39;ve searched the web and found that there could be an error with Redis. &#xA;&#xA;First, I thought that this could be an issue with file permissions. Because I tried, for the first time, uploading an PDF via the share button on my Phone. But then it also failed while uploading a normal image of a Document. So I started my investigation.&#xA;&#xA;First, I found this error message in the Redis logs: WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition.. Did a small search and found some shell command for sysctl which didn&#39;t help. Because in this Redis image, there is no sysctl installed.&#xA;This was one of the commands:&#xA;sudo sysctl -w vm.overcommitmemory=1&#xA;&#xA;If set to 1, it is enabled. Mine was set to 0. Without sysctl installed, it looked that there was no way to set it. So I searched again. With no luck.&#xA;&#xA;Then I thought maybe I could just restart the Redis container, but this also leaded into nothing.&#xA;&#xA;So maybe I just could re-use the instructions (Link to a German Synology Forum), I&#39;ve used to install paperless-ngx.&#xA;&#xA;There were 4 commands I simply run again.&#xA;cd /volume1/docker/paperlessngx/config&#xA;sudo docker-compose pull&#xA;sudo docker-compose run --rm webserver createsuperuser&#xA;sudo docker-compose up -d&#xA;&#xA;This helped. In some way. The downside was, that it reinstalled everything and also deleted the database. Luckily, I could restore all my files from the File system. The only thing I needed to add again were tags. For the next time, I should make a real backup with the documentexporter from paperless-ngx. (Second time I need to do this. https://bruegge.dev/paperless-ngx, maybe I should not postpone it for too long. 😅)&#xA;&#xA;In the End, I have no solution to the initial problem. Just solved it accidentally by updating my installation and lost my database.&#xA;&#xA;This post is also more or less a documentation for future-me, if I come to this point again. 👍&#xA;&#xA;---&#xA;&#xA;7/100 of #100DaysToOffload&#xA;&#xA;#log #toFutureMe #paperless #fail&#xA;&#xA;a href=&#34;https://remark.as/p/barfooz.xyz/paperless-ngx-update&#34;Discuss.../a]]&gt;</description>
      <content:encoded><![CDATA[<p>Today I did an update of my paperless-ngx installation. Unplanned. 😅</p>

<p>I logged into my Synology DSM and saw that there was an update for the Redis image. Like always, I started the update and went on. Later that Day, I wanted to upload some files, but I got an <code>500: Error</code>. I&#39;ve searched the web and found that there could be an error with Redis.</p>

<p>First, I thought that this could be an issue with file permissions. Because I tried, for the first time, uploading an PDF via the share button on my Phone. But then it also failed while uploading a normal image of a Document. So I started my investigation.</p>

<p>First, I found this error message in the Redis logs: <code>WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition.</code>. Did a small search and found some shell command for <code>sysctl</code> which didn&#39;t help. Because in this Redis image, there is no <code>sysctl</code> installed.
This was one of the commands:</p>

<pre><code>sudo sysctl -w vm.overcommit_memory=1
</code></pre>

<p>If set to 1, it is enabled. Mine was set to 0. Without <code>sysctl</code> installed, it looked that there was no way to set it. So I searched again. With no luck.</p>

<p>Then I thought maybe I could just restart the Redis container, but this also leaded into nothing.</p>

<p>So maybe I just could re-use the <a href="https://www.synology-forum.de/threads/paperless-ngx-dms-via-docker-auf-dem-nas.124614/">instructions</a> (Link to a German Synology Forum), I&#39;ve used to install paperless-ngx.</p>

<p>There were 4 commands I simply run again.</p>

<pre><code>cd /volume1/docker/paperlessngx/config
sudo docker-compose pull
sudo docker-compose run --rm webserver createsuperuser
sudo docker-compose up -d
</code></pre>

<p>This helped. In some way. The downside was, that it reinstalled everything and also deleted the database. Luckily, I could restore all my files from the File system. The only thing I needed to add again were tags. For the next time, I should make a real backup with the <code>document_exporter</code> from paperless-ngx. (Second time I need to do this. <a href="https://bruegge.dev/paperless-ngx">https://bruegge.dev/paperless-ngx</a>, maybe I should not postpone it for too long. 😅)</p>

<p>In the End, I have no solution to the initial problem. Just solved it accidentally by updating my installation and lost my database.</p>

<p>This post is also more or less a documentation for future-me, if I come to this point again. 👍</p>

<hr/>

<p>7/100 of <a href="https://barfooz.xyz/tag:100DaysToOffload" class="hashtag"><span>#</span><span class="p-category">100DaysToOffload</span></a></p>

<p><a href="https://barfooz.xyz/tag:log" class="hashtag"><span>#</span><span class="p-category">log</span></a> <a href="https://barfooz.xyz/tag:toFutureMe" class="hashtag"><span>#</span><span class="p-category">toFutureMe</span></a> <a href="https://barfooz.xyz/tag:paperless" class="hashtag"><span>#</span><span class="p-category">paperless</span></a> <a href="https://barfooz.xyz/tag:fail" class="hashtag"><span>#</span><span class="p-category">fail</span></a></p>

<p><a href="https://remark.as/p/barfooz.xyz/paperless-ngx-update">Discuss...</a></p>
]]></content:encoded>
      <guid>https://barfooz.xyz/paperless-ngx-update</guid>
      <pubDate>Thu, 08 Feb 2024 20:41:38 +0000</pubDate>
    </item>
  </channel>
</rss>