<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Backup restore brocken - wrong file owner &quot;yellowtent&quot; instead of &quot;www-data&quot; in &#x2F;app&#x2F;data Lamp Stack]]></title><description><![CDATA[<h2>Description</h2>
<p dir="auto">I had some no related issues in an application installed in the LAMP stack. When I tried to restore an earlier manual and automatic backup from today, the app failed to start after the restore. I found out, that all restored files are owned by "yellowtent" instead of "www-data". Unfortunately the shell doesn't start so I can't manually fix it recursively.</p>
<h3>Steps to reproduce</h3>
<ul>
<li>restore LAMP App from backup</li>
<li>files are owned by "yellowtent"</li>
</ul>
<h3>Logs</h3>
<pre><code>Jan 22 20:43:48 ==&gt; Do not override existing index file
Jan 22 20:43:48 ==&gt; PHP version set to 8.3
Jan 22 20:43:48 ==&gt; Source custom startup script
Jan 22 20:43:48 touch: cannot touch '/app/data/tmp/.npmrc': Permission denied
</code></pre>
<h3>Troubleshooting Already Performed</h3>
<ul>
<li>tried to enter terminal to change owner of the files</li>
</ul>
<h2>System Details</h2>
<h3>Generate Diagnostics Data</h3>
<h3>Cloudron Version</h3>
<pre><code>Cloudron version - 9.0.17
</code></pre>
<h3>Ubuntu Version</h3>
<pre><code>Ubuntu version - Ubuntu 24.04 LTS Linux 6.8.0-90-generic
</code></pre>
<h3>Cloudron installation method</h3>
<p dir="auto">Options:</p>
<ul>
<li>Manual with <code>./cloudron-setup</code></li>
</ul>
<h3>Output of <code>cloudron-support --troubleshoot</code></h3>
<pre><code>Vendor: Hetzner Product: vServer
Linux: 6.8.0-90-generic
Ubuntu: noble 24.04
Execution environment: kvm
Processor: AMD EPYC-Milan Processor
BIOS NotSpecified  CPU @ 2.0GHz x 8
RAM: 32087112KB
Disk: /dev/sda1        21G
[OK]	node version is correct
[OK]	IPv6 is enabled and public IPv6 address is working
[OK]	docker is running
[OK]	docker version is correct
[OK]	MySQL is running
[OK]	netplan is good
[OK]	DNS is resolving via systemd-resolved
[OK]	unbound is running
[OK]	nginx is running
[OK]	dashboard cert is valid
[OK]	dashboard is reachable via loopback
[OK]	No pending database migrations
[OK]	Service 'mysql' is running and healthy
[OK]	Service 'postgresql' is running and healthy
[OK]	Service 'mongodb' is running and healthy
[OK]	Service 'mail' is running and healthy
[OK]	Service 'graphite' is running and healthy
[OK]	Service 'sftp' is running and healthy
[OK]	box v9.0.17 is running
[OK]	Dashboard is reachable via domain name
</code></pre>
]]></description><link>https://forum.cloudron.io/topic/14933/backup-restore-brocken-wrong-file-owner-yellowtent-instead-of-www-data-in-app-data-lamp-stack</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 02:15:08 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/14933.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 22 Jan 2026 19:52:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Backup restore brocken - wrong file owner &quot;yellowtent&quot; instead of &quot;www-data&quot; in &#x2F;app&#x2F;data Lamp Stack on Sat, 28 Feb 2026 15:00:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/james" aria-label="Profile: james">@<bdi>james</bdi></a> need to test backup and restore again to find out... will do.</p>
]]></description><link>https://forum.cloudron.io/post/120951</link><guid isPermaLink="true">https://forum.cloudron.io/post/120951</guid><dc:creator><![CDATA[dsp76]]></dc:creator><pubDate>Sat, 28 Feb 2026 15:00:11 GMT</pubDate></item><item><title><![CDATA[Reply to Backup restore brocken - wrong file owner &quot;yellowtent&quot; instead of &quot;www-data&quot; in &#x2F;app&#x2F;data Lamp Stack on Tue, 17 Feb 2026 23:49:36 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/dsp76" aria-label="Profile: dsp76">@<bdi>dsp76</bdi></a><br />
Is this still an issue?</p>
]]></description><link>https://forum.cloudron.io/post/120381</link><guid isPermaLink="true">https://forum.cloudron.io/post/120381</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Tue, 17 Feb 2026 23:49:36 GMT</pubDate></item><item><title><![CDATA[Reply to Backup restore brocken - wrong file owner &quot;yellowtent&quot; instead of &quot;www-data&quot; in &#x2F;app&#x2F;data Lamp Stack on Fri, 30 Jan 2026 09:06:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dsp76" aria-label="Profile: dsp76">@<bdi>dsp76</bdi></a> yes, <a href="http://run.sh" target="_blank" rel="noopener noreferrer nofollow ugc">run.sh</a> is called by <a href="http://start.sh" target="_blank" rel="noopener noreferrer nofollow ugc">start.sh</a> .</p>
<ul>
<li>Cloudron downloads the backup. At this point, the users of all files are <code>yellowtent</code>. This is the user which Cloudron code runs as.</li>
<li>Then , <a href="http://start.sh" target="_blank" rel="noopener noreferrer nofollow ugc">start.sh</a> runs as root (from inside container)</li>
<li>Which then calls <a href="http://run.sh" target="_blank" rel="noopener noreferrer nofollow ugc">run.sh</a></li>
</ul>
<p dir="auto">Maybe the above helps debugging further.</p>
]]></description><link>https://forum.cloudron.io/post/119380</link><guid isPermaLink="true">https://forum.cloudron.io/post/119380</guid><dc:creator><![CDATA[joseph]]></dc:creator><pubDate>Fri, 30 Jan 2026 09:06:14 GMT</pubDate></item><item><title><![CDATA[Reply to Backup restore brocken - wrong file owner &quot;yellowtent&quot; instead of &quot;www-data&quot; in &#x2F;app&#x2F;data Lamp Stack on Wed, 28 Jan 2026 14:13:31 GMT]]></title><description><![CDATA[<p dir="auto">I have a <a href="http://run.sh" target="_blank" rel="noopener noreferrer nofollow ugc">run.sh</a> indeed. Which runs invoked by <a href="http://start.sh" target="_blank" rel="noopener noreferrer nofollow ugc">start.sh</a>, right?</p>
<p dir="auto">I don't think there is anything that overrules the <a href="http://start.sh" target="_blank" rel="noopener noreferrer nofollow ugc">start.sh</a> chown command.</p>
<pre><code>#!/bin/bash
set -e
shopt -s expand_aliases

# Alias zur Nutzung innerhalb des Skripts
alias swd='sudo -E -u www-data'

# Pfade
TMPDIR=/app/data/tmp
NPM_CACHE=$TMPDIR/npm_cache
COMPOSER_CACHE=$TMPDIR/composer_cache
NPMRC=$TMPDIR/.npmrc
BASHRC=/app/data/.bashrc

# Verzeichnisse &amp; Dateien vorbereiten
swd mkdir -p "$NPM_CACHE"
swd mkdir -p "$COMPOSER_CACHE"
swd touch "$NPMRC"

# Rechte setzen
chown -R www-data:www-data "$TMPDIR"

# .bashrc ergänzen (idempotent)
ensure_bashrc_entry() {
  local LINE="$1"
  grep -qxF "$LINE" "$BASHRC" || printf "%s\n" "$LINE" &gt;&gt; "$BASHRC"
}

ensure_bashrc_entry "alias swd='sudo -E -u www-data'"
ensure_bashrc_entry "alias php='php -d memory_limit=1G'"
ensure_bashrc_entry "export NPM_CONFIG_CACHE=$NPM_CACHE"
ensure_bashrc_entry "export NPM_CONFIG_USERCONFIG=$NPMRC"
ensure_bashrc_entry "export COMPOSER_CACHE_DIR=$COMPOSER_CACHE"

# App starten (z. B. Apache im LAMP-Stack)
# example: exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
</code></pre>
<p dir="auto">As far as I can see, <a href="http://start.sh" target="_blank" rel="noopener noreferrer nofollow ugc">start.sh</a> has</p>
<pre><code>chown -R www-data:www-data /app/data /run/apache2 /run/app /tmp
</code></pre>
<p dir="auto">But still after restoring backup it all belong to yellowtent.</p>
<p dir="auto">When I find the time, I will test this with a vanilla LAMP App...</p>
]]></description><link>https://forum.cloudron.io/post/119300</link><guid isPermaLink="true">https://forum.cloudron.io/post/119300</guid><dc:creator><![CDATA[dsp76]]></dc:creator><pubDate>Wed, 28 Jan 2026 14:13:31 GMT</pubDate></item><item><title><![CDATA[Reply to Backup restore brocken - wrong file owner &quot;yellowtent&quot; instead of &quot;www-data&quot; in &#x2F;app&#x2F;data Lamp Stack on Fri, 23 Jan 2026 12:58:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dsp76" aria-label="Profile: dsp76">@<bdi>dsp76</bdi></a> said in <a href="/post/118997">Backup restore brocken - wrong file owner "yellowtent" instead of "www-data" in /app/data Lamp Stack</a>:</p>
<blockquote>
<p dir="auto">Jan 22 20:43:48 ==&gt; Source custom startup script<br />
Jan 22 20:43:48 touch: cannot touch '/app/data/tmp/.npmrc': Permission denied</p>
</blockquote>
<p dir="auto">Do you have a custom /app/data/run.sh ? It seems that script is causing this error. That script runs as root though, so I am not sure why it gets permission denied.</p>
]]></description><link>https://forum.cloudron.io/post/119037</link><guid isPermaLink="true">https://forum.cloudron.io/post/119037</guid><dc:creator><![CDATA[joseph]]></dc:creator><pubDate>Fri, 23 Jan 2026 12:58:13 GMT</pubDate></item><item><title><![CDATA[Reply to Backup restore brocken - wrong file owner &quot;yellowtent&quot; instead of &quot;www-data&quot; in &#x2F;app&#x2F;data Lamp Stack on Thu, 22 Jan 2026 20:17:52 GMT]]></title><description><![CDATA[<p dir="auto">OK - managed to enter the terminal with recovery modus and changed ownership of the files. App is now running again. But still - whats the issue with the backup restore?</p>
]]></description><link>https://forum.cloudron.io/post/118998</link><guid isPermaLink="true">https://forum.cloudron.io/post/118998</guid><dc:creator><![CDATA[dsp76]]></dc:creator><pubDate>Thu, 22 Jan 2026 20:17:52 GMT</pubDate></item></channel></rss>