<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>tofutureme &amp;mdash; Build stuff; Break stuff; Have fun!</title>
    <link>https://barfooz.xyz/tag:tofutureme</link>
    <description>barfooz.xyz</description>
    <pubDate>Wed, 20 May 2026 17:07:30 +0000</pubDate>
    <image>
      <url>https://i.snap.as/btoNrLSF.png</url>
      <title>tofutureme &amp;mdash; Build stuff; Break stuff; Have fun!</title>
      <link>https://barfooz.xyz/tag:tofutureme</link>
    </image>
    <item>
      <title>Setup Paperless-NGX on Synology NAS: the CLI way</title>
      <link>https://barfooz.xyz/setup-paperless-ngx-on-synology-nas-the-cli-way?pk_campaign=rss-feed</link>
      <description>&lt;![CDATA[After procrastinating this for far too long, I sat down and did a new setup of Paperless-NGX on my NAS.&#xA;&#xA;For this, I followed the setup guide for docker-compose: https://docs.paperless-ngx.com/setup/#docker&#xA;&#xA;This guide requires you to have Container Manager installed on your NAS. Under /volume1 I have created a folder called docker which has another folder called paperless in it. So the path will be /volume1/docker/paperless.&#xA;&#xA;My adjustments to the docker-compose.yml file:&#xA;    volumes:&#xA;      /volume1/docker/paperless/data:/usr/src/paperless/data&#xA;      /volume1/docker/paperless/media:/usr/src/paperless/media&#xA;      /volume1/docker/paperless/export:/usr/src/paperless/export&#xA;      /volume1/docker/paperless/consume:/usr/src/paperless/consume&#xA;&#xA;And a different port: someportnumber:8000.&#xA;&#xA;My changes to the docker-compose.env:&#xA;PAPERLESSTIMEZONE=Europe/Berlin&#xA;PAPERLESSOCRLANGUAGE=deu&#xA;And the correct IDs for USERMAPUID= and USERMAPGID= which you can get from id -u and id -g. The guide will tell you this as well. &#xA;&#xA;Notes&#xA;&#xA;The guide uses docker compose ... to run docker-compose, without the dash. Synology uses docker-compose ... with dash, to run it. I was searching, why this was not working on my side. So, this could be one reason. 😅&#xA;&#xA;Database Error&#xA;&#xA;I&#39;ve got this error: PostgreSQL Database directory appears to contain a database; Skipping initialization. Which resulted from an old installation. Because I wanted to a fresh start, I needed to remove the old data and found this command: 🚨 docker-compose down --volumes 🚨 Be careful, this will erase all related data.&#xA;&#xA;Webserver Error&#xA;&#xA;Because I&#39;m stupid, I used the wrong timezone and got an error. ValueError: Incorrect timezone setting: Germany/Berlin The correct timezone I needed to set in docker-compose.env was:  PAPERLESSTIMEZONE=Europe/Berlin.&#xA;&#xA;Conclusion?&#xA;&#xA;I&#39;ve used docker-compose because I broke my installation for too often with the Container Manager. And in the end, it&#39;s just a UI wrapper which confuses me. So I go with docker-compose, which I&#39;m used in the past for client projects. The setup was straightforward, excluding the errors I had, which were self-made in the end.&#xA;---  &#xA;17 of #100DaysToOffload  &#xA;#log #toFutureMe #paperless  &#xA;Thoughts? a href=&#34;https://remark.as/p/barfooz.xyz/setup-paperless-ngx-on-synology-nas-the-cli-way&#34;Discuss.../a]]&gt;</description>
      <content:encoded><![CDATA[<p>After procrastinating this for far too long, I sat down and did a new setup of Paperless-NGX on my NAS.</p>

<p>For this, I followed the setup guide for docker-compose: <a href="https://docs.paperless-ngx.com/setup/#docker">https://docs.paperless-ngx.com/setup/#docker</a></p>

<p>This guide requires you to have <code>Container Manager</code> installed on your NAS. Under <code>/volume1</code> I have created a folder called <code>docker</code> which has another folder called <code>paperless</code> in it. So the path will be <code>/volume1/docker/paperless</code>.</p>

<p>My adjustments to the <code>docker-compose.yml</code> file:</p>

<pre><code>    volumes:
      - /volume1/docker/paperless/data:/usr/src/paperless/data
      - /volume1/docker/paperless/media:/usr/src/paperless/media
      - /volume1/docker/paperless/export:/usr/src/paperless/export
      - /volume1/docker/paperless/consume:/usr/src/paperless/consume
</code></pre>

<p>And a different port: <code>someportnumber:8000</code>.</p>

<p>My changes to the <code>docker-compose.env</code>:</p>

<pre><code>PAPERLESS_TIME_ZONE=Europe/Berlin
PAPERLESS_OCR_LANGUAGE=deu
</code></pre>

<p>And the correct IDs for <code>USERMAP_UID=</code> and <code>USERMAP_GID=</code> which you can get from <code>id -u</code> and <code>id -g</code>. The guide will tell you this as well.</p>

<h2 id="notes" id="notes">Notes</h2>

<p>The guide uses <code>docker compose ...</code> to run docker-compose, without the dash. Synology uses <code>docker-compose ...</code> with dash, to run it. I was searching, why this was not working on my side. So, this could be one reason. 😅</p>

<h3 id="database-error" id="database-error">Database Error</h3>

<p>I&#39;ve got this error: <code>PostgreSQL Database directory appears to contain a database; Skipping initialization</code>. Which resulted from an old installation. Because I wanted to a fresh start, I needed to remove the old data and found this command: 🚨 <code>docker-compose down --volumes</code> 🚨 Be careful, this will erase all related data.</p>

<h3 id="webserver-error" id="webserver-error">Webserver Error</h3>

<p>Because I&#39;m stupid, I used the wrong timezone and got an error. <code>ValueError: Incorrect timezone setting: Germany/Berlin</code> The correct timezone I needed to set in <code>docker-compose.env</code> was: <code>PAPERLESS_TIME_ZONE=Europe/Berlin</code>.</p>

<h2 id="conclusion" id="conclusion">Conclusion?</h2>

<p>I&#39;ve used docker-compose because I broke my installation for too often with the Container Manager. And in the end, it&#39;s just a UI wrapper which confuses me. So I go with docker-compose, which I&#39;m used in the past for client projects. The setup was straightforward, excluding the errors I had, which were self-made in the end.</p>

<hr/>

<p><strong>17</strong> of <a href="https://barfooz.xyz/tag:100DaysToOffload" class="hashtag"><span>#</span><span class="p-category">100DaysToOffload</span></a><br/>
<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><br/>
<em>Thoughts? <a href="https://remark.as/p/barfooz.xyz/setup-paperless-ngx-on-synology-nas-the-cli-way">Discuss...</a></em></p>
]]></content:encoded>
      <guid>https://barfooz.xyz/setup-paperless-ngx-on-synology-nas-the-cli-way</guid>
      <pubDate>Sun, 25 May 2025 10:56:46 +0000</pubDate>
    </item>
    <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>