<?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[Debugging mode is automatically switched off]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I added the line <code>'debug' =&gt; true,</code> to my <code>config.php</code> file. After saving and restarting the app, the line is kept but it is changed to false instead of true. According to the docs and according to <a href="https://docs.nextcloud.com/server/latest/developer_manual/getting_started/debugging.html?highlight=debug%20mode#debug-mode" target="_blank" rel="noopener noreferrer nofollow ugc">Nextcloud docs</a>, this should work. I'm on NextCloud 27.0.2. Is this some bug in Cloudron? I need this to debug an issue with the <code>Recognize</code> app. For some reason the download of the trained models is broken.</p>
<p dir="auto">Best Regards,</p>
]]></description><link>https://forum.cloudron.io/topic/9839/debugging-mode-is-automatically-switched-off</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 04:01:55 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/9839.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Aug 2023 20:20:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Debugging mode is automatically switched off on Sun, 03 Sep 2023 19:23:38 GMT]]></title><description><![CDATA[<p dir="auto">Whatever caused this, either a Cloudron update or some self-solving stuck/bug in NextCloud fixed it. It works now.</p>
]]></description><link>https://forum.cloudron.io/post/73034</link><guid isPermaLink="true">https://forum.cloudron.io/post/73034</guid><dc:creator><![CDATA[warg]]></dc:creator><pubDate>Sun, 03 Sep 2023 19:23:38 GMT</pubDate></item><item><title><![CDATA[Reply to Debugging mode is automatically switched off on Tue, 22 Aug 2023 14:31:50 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the feedback although it's still open why there's a 4 month old logfile if logging was ever done to /dev/stderr.</p>
<p dir="auto">Anyway, in the meantime I opened a GitHub issue at their repository and we found <a href="https://github.com/nextcloud/recognize/issues/956#issuecomment-1685372919" target="_blank" rel="noopener noreferrer nofollow ugc">further indications</a> what is wrong. I'm awaiting feedback from the dev to see why this should be a general write issue with my NextCloud instance when uploading and editing files works.</p>
]]></description><link>https://forum.cloudron.io/post/72258</link><guid isPermaLink="true">https://forum.cloudron.io/post/72258</guid><dc:creator><![CDATA[warg]]></dc:creator><pubDate>Tue, 22 Aug 2023 14:31:50 GMT</pubDate></item><item><title><![CDATA[Reply to Debugging mode is automatically switched off on Sun, 20 Aug 2023 15:42:48 GMT]]></title><description><![CDATA[<p dir="auto">If you really want to debug with logging to file:</p>
<ul>
<li>Place app in repair mode</li>
<li>Open web terminal and then start the app using <code>/app/pkg/start.sh</code></li>
<li>Feel free to edit the config file as you see fit</li>
</ul>
<p dir="auto">Note that this is only debugging mode. So, if you close the web terminal, the app is not running anymore.</p>
]]></description><link>https://forum.cloudron.io/post/72142</link><guid isPermaLink="true">https://forum.cloudron.io/post/72142</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Sun, 20 Aug 2023 15:42:48 GMT</pubDate></item><item><title><![CDATA[Reply to Debugging mode is automatically switched off on Sun, 20 Aug 2023 15:41:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/warg" aria-label="Profile: warg">@<bdi>warg</bdi></a> said in <a href="/post/72098">Debugging mode is automatically switched off</a>:</p>
<blockquote>
<p dir="auto">didn't change much, so I also changed 'logfile' =&gt; '/dev/stderr', to //'logfile' =&gt; '/dev/stderr', (but it looks like it got reverted?! -&gt; maybe this is the cause why the file /data/nextcloud.log doesn't get updated; last update is 4 month ago; was this changed?)</p>
</blockquote>
<p dir="auto">yes, correct, we always configure log to stdout/stderr whenever possible. This is one thing we picked form 12 factor app design - <a href="https://12factor.net/logs" target="_blank" rel="noopener noreferrer nofollow ugc">https://12factor.net/logs</a></p>
]]></description><link>https://forum.cloudron.io/post/72141</link><guid isPermaLink="true">https://forum.cloudron.io/post/72141</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Sun, 20 Aug 2023 15:41:30 GMT</pubDate></item><item><title><![CDATA[Reply to Debugging mode is automatically switched off on Sat, 19 Aug 2023 17:44:09 GMT]]></title><description><![CDATA[<p dir="auto">Could it be that the logging of Nextcloud is just broken within Cloudron? I just noticed and tried a few things but at the end, I don't get any PHP warnings or errors; neither in the container's log nor in the <code>/data/nextcloud.log</code> file. Even what I try might not throw any critical errors or warnings, I bet other stuff would throw some as Nextcloud is quite complex.</p>
<p dir="auto">What I tried to make debugging work:</p>
<ul>
<li>add <code>'debug' =&gt; true,</code> as third line of config (first line of the array)</li>
<li>changed <code>'loglevel' =&gt; '3',</code> to zero (should be documented that Cloudron has a different default value for it than the standard NextCloud documentation mentions)</li>
<li>didn't change much, so I also changed <code>'logfile' =&gt; '/dev/stderr',</code> to <code>//'logfile' =&gt; '/dev/stderr',</code> (but it looks like it got reverted?! -&gt; maybe this is the cause why the file <code>/data/nextcloud.log</code> doesn't get updated; last update is 4 month ago; was this changed?)</li>
</ul>
<p dir="auto">So basically I don't get the issue debugged because the debugging is not working.</p>
<p dir="auto">EDIT: For some reason I get <code>Aug 19 19:25:31 {"reqId":"Wg5Sh91vaYVjy6qvqFIW","level":3,"time":"2023-08-19T17:25:31+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fopen(/dev/stderr): Failed to open stream: No such file or directory at /app/code/lib/private/Log/File.php#84","userAgent":"--","version":"27.0.2.1","data":{"app":"PHP"}}</code> errors now (I had protocol view of NextCloud open but not at that moment so either it comes from elsewhere or the log is quite delayed). I will have to check this later.</p>
]]></description><link>https://forum.cloudron.io/post/72098</link><guid isPermaLink="true">https://forum.cloudron.io/post/72098</guid><dc:creator><![CDATA[warg]]></dc:creator><pubDate>Sat, 19 Aug 2023 17:44:09 GMT</pubDate></item><item><title><![CDATA[Reply to Debugging mode is automatically switched off on Sat, 19 Aug 2023 16:34:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/warg" aria-label="Profile: warg">@<bdi>warg</bdi></a> published</p>
]]></description><link>https://forum.cloudron.io/post/72091</link><guid isPermaLink="true">https://forum.cloudron.io/post/72091</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Sat, 19 Aug 2023 16:34:40 GMT</pubDate></item><item><title><![CDATA[Reply to Debugging mode is automatically switched off on Sat, 19 Aug 2023 09:27:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Can you publish the new version of the app please? Then I can check why the download of the models for the Recognize app doesn't work. I think it might be related to some path being read-only.</p>
]]></description><link>https://forum.cloudron.io/post/72068</link><guid isPermaLink="true">https://forum.cloudron.io/post/72068</guid><dc:creator><![CDATA[warg]]></dc:creator><pubDate>Sat, 19 Aug 2023 09:27:40 GMT</pubDate></item><item><title><![CDATA[Reply to Debugging mode is automatically switched off on Thu, 17 Aug 2023 08:38:46 GMT]]></title><description><![CDATA[<p dir="auto">Right, on package restart the debug value is overwritten to false. I have removed this from the package. Next release should fix it.</p>
]]></description><link>https://forum.cloudron.io/post/71995</link><guid isPermaLink="true">https://forum.cloudron.io/post/71995</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 17 Aug 2023 08:38:46 GMT</pubDate></item></channel></rss>