<?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[env variables missing in cron job]]></title><description><![CDATA[<p dir="auto">Hello!</p>
<p dir="auto">We've migrated our Snipe-IT installation to Cloudron. Everything seems to work fine, but following stack trace keeps coming into the <code>laravel.log</code>.<br />
It seems like the cron job does not resolve the environment variables from the <code>/app/data/env</code> file.<br />
Since we migrated Snipe-IT from another host (DB Dump + uploads directory + some settings in <code>/app/data/env</code>), I'm not sure if we broke something, or if this something happening to others too.<br />
Have you seen this issue elsewhere already?</p>
<pre><code>[2026-09-12 20:46:00] production.ERROR: PDOException: PDO::connect(): php_network_getaddresses: getaddrinfo for ${CLOUDRON_MYSQL_HOST} failed: Name or service not known in /app/code/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:67
Stack trace:
#0 /app/code/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(67): PDO::connect()
#1 /app/code/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(85): Illuminate\Database\Connectors\Connector-&gt;createPdoConnection()
#2 /app/code/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(48): Illuminate\Database\Connectors\Connector-&gt;tryAgainIfCausedByLostConnection()
#3 /app/code/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector-&gt;createConnection()
#4 /app/code/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(186): Illuminate\Database\Connectors\MySqlConnector-&gt;connect()
#5 [internal function]: Illuminate\Database\Connectors\ConnectionFactory-&gt;{closure:Illuminate\Database\Connectors\ConnectionFactory::createPdoResolverWithHosts():181}()
#6 /app/code/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1257): call_user_func()
#7 /app/code/vendor/laravel/framework/src/Illuminate/Database/Connection.php(605): Illuminate\Database\Connection-&gt;getPdo()
#8 /app/code/vendor/laravel/framework/src/Illuminate/Database/Connection.php(827): Illuminate\Database\Connection-&gt;{closure:Illuminate\Database\Connection::affectingStatement():597}()
#9 /app/code/vendor/laravel/framework/src/Illuminate/Database/Connection.php(999): Illuminate\Database\Connection-&gt;runQueryCallback()
#10 /app/code/vendor/laravel/framework/src/Illuminate/Database/Connection.php(978): Illuminate\Database\Connection-&gt;tryAgainIfCausedByLostConnection()
#11 /app/code/vendor/laravel/framework/src/Illuminate/Database/Connection.php(796): Illuminate\Database\Connection-&gt;handleQueryException()
#12 /app/code/vendor/laravel/framework/src/Illuminate/Database/Connection.php(597): Illuminate\Database\Connection-&gt;run()
#13 /app/code/vendor/laravel/framework/src/Illuminate/Database/Connection.php(561): Illuminate\Database\Connection-&gt;affectingStatement()
#14 /app/code/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(4426): Illuminate\Database\Connection-&gt;delete()
#15 /app/code/vendor/laravel/framework/src/Illuminate/Auth/Passwords/DatabaseTokenRepository.php(155): Illuminate\Database\Query\Builder-&gt;delete()
#16 /app/code/vendor/laravel/framework/src/Illuminate/Auth/Console/ClearResetsCommand.php(32): Illuminate\Auth\Passwords\DatabaseTokenRepository-&gt;deleteExpired()
#17 /app/code/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\Auth\Console\ClearResetsCommand-&gt;handle()
#18 /app/code/vendor/laravel/framework/src/Illuminate/Container/Util.php(43): Illuminate\Container\BoundMethod::{closure:Illuminate\Container\BoundMethod::call():35}()
#19 /app/code/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(96): Illuminate\Container\Util::unwrapIfClosure()
#20 /app/code/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\Container\BoundMethod::callBoundMethod()
#21 /app/code/vendor/laravel/framework/src/Illuminate/Container/Container.php(799): Illuminate\Container\BoundMethod::call()
#22 /app/code/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\Container\Container-&gt;call()
#23 /app/code/vendor/symfony/console/Command/Command.php(341): Illuminate\Console\Command-&gt;execute()
#24 /app/code/vendor/laravel/framework/src/Illuminate/Console/Command.php(180): Symfony\Component\Console\Command\Command-&gt;run()
#25 /app/code/vendor/symfony/console/Application.php(1117): Illuminate\Console\Command-&gt;run()
#26 /app/code/vendor/symfony/console/Application.php(356): Symfony\Component\Console\Application-&gt;doRunCommand()
#27 /app/code/vendor/symfony/console/Application.php(195): Symfony\Component\Console\Application-&gt;doRun()
#28 /app/code/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(198): Symfony\Component\Console\Application-&gt;run()
#29 /app/code/artisan(33): Illuminate\Foundation\Console\Kernel-&gt;handle()
#30 {main}

</code></pre>
]]></description><link>https://forum.cloudron.io/topic/15953/env-variables-missing-in-cron-job</link><generator>RSS for Node</generator><lastBuildDate>Mon, 14 Sep 2026 19:55:09 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/15953.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 12 Sep 2026 18:58:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to env variables missing in cron job on Sun, 13 Sep 2026 09:39:44 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/g%C3%BCnter" aria-label="Profile: günter">@<bdi>günter</bdi></a><br />
In the future you can use <a href="https://paste.cloudron.io/" target="_blank" rel="noopener noreferrer nofollow ugc">https://paste.cloudron.io/</a><br />
Thanks for reporting this issue, we will have to look into it.</p>
]]></description><link>https://forum.cloudron.io/post/129377</link><guid isPermaLink="true">https://forum.cloudron.io/post/129377</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Sun, 13 Sep 2026 09:39:44 GMT</pubDate></item><item><title><![CDATA[Reply to env variables missing in cron job on Sun, 13 Sep 2026 09:39:02 GMT]]></title><description><![CDATA[<p dir="auto">I've now checked on a fresh install what the laravel.log will look like. Yesterday - after writing this post - i created a new and fresh Snipe-IT instance on my server. I've not made any changes or edits on that instance what so ever. Today I downloaded the laravel.log and it has the same errors as my original laravel.log.<br />
I'm not allowed to upload the log file (no permissions to do so in this forum). So I pasted a shortened version in a public pastebin (will be removed in 1 month): <a href="https://pastes.io/k3q2pkIG" target="_blank" rel="noopener noreferrer nofollow ugc">https://pastes.io/k3q2pkIG</a></p>
]]></description><link>https://forum.cloudron.io/post/129376</link><guid isPermaLink="true">https://forum.cloudron.io/post/129376</guid><dc:creator><![CDATA[Günter]]></dc:creator><pubDate>Sun, 13 Sep 2026 09:39:02 GMT</pubDate></item></channel></rss>