<?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[[1.6.0-beta.5547] Uploading Snapin fails with 500]]></title><description><![CDATA[<p dir="auto">I just started digging in to fog to modernise our fleet management, so bare with me if I made some crucial first mistake.<br />
I am running fog on a baremetal server on a fresh Linux-Mint 22.3.<br />
I access the webinterface using https and the hostname of the component.<br />
I updated the php.ini in /etc/php/8.4 to allow for longer script time (90seconds) and updated the post_max_size to 8000M.<br />
<img src="/assets/uploads/files/1792759905813-c3458ced-f4af-453c-a902-b0aec5d5dbc7-grafik.png" alt="c3458ced-f4af-453c-a902-b0aec5d5dbc7-grafik.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The Upload seems to be running fine. The bar in the webUI fills up. After a while it will get give me a toast that fog-server returned a<br />
<img src="/assets/uploads/files/1792759940652-6cc305a0-e138-4845-93a1-819829d8eff8-grafik.png" alt="6cc305a0-e138-4845-93a1-819829d8eff8-grafik.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1792759956693-7ca182c1-5a5a-4f80-816e-39dfb55ce70b-grafik.png" alt="7ca182c1-5a5a-4f80-816e-39dfb55ce70b-grafik.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">In /var/log/apache2 I can finde the following error:</p>
<pre><code>[Fri Oct 23 14:52:09.786443 2026] [proxy_fcgi:error] [pid 10818:tid 10818] [client 10.10.0.191:62070] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function FOG\\Net\\ssh2_connect() in /var/www/html/fog/src/Net/FOGSSH.php:234\nStack trace:\n#0 /var/www/html/fog/src/Items/Snapin.php(506): FOG\\Net\\FOGSSH-&gt;connect()\n#1 /var/www/html/fog/src/Pages/SnapinManagement.php(663): FOG\\Items\\Snapin::uploadAndCreate()\n#2 /var/www/html/fog/src/Base/FOGPageManager.php(234): FOG\\Pages\\SnapinManagement-&gt;addPost()\n#3 /var/www/html/fog/management/index.php(223): FOG\\Base\\FOGPageManager-&gt;render()\n#4 {main}\n  thrown in /var/www/html/fog/src/Net/FOGSSH.php on line 234', referer: https://lagerlurch/fog/management/index.php?node=snapin&amp;sub=add
</code></pre>
<p dir="auto">I could only find an older thread about php 8 not being supported. Is that an issue of PHP 8 not being supported but used anyway? Is there a way of forcing fog to user another php version? (The /etc/php folder does contain more subfolders with diferent versions so they seem to be available?)</p>
<p dir="auto">Looking forward to feedback.</p>
]]></description><link>http://forums.fogproject.org/topic/18289/1-6-0-beta-5547-uploading-snapin-fails-with-500</link><generator>RSS for Node</generator><lastBuildDate>Fri, 23 Oct 2026 14:59:47 GMT</lastBuildDate><atom:link href="http://forums.fogproject.org/topic/18289.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 Oct 2026 12:55:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [1.6.0-beta.5547] Uploading Snapin fails with 500 on Fri, 23 Oct 2026 14:33:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/49790">@WielandPP1</a> Thanks for the log line. It shows the cause exactly.</p>
<p dir="auto">PHP 8 is supported, so you do not need a different PHP version. The problem is a missing PHP extension. On Linux Mint, the installer adds the ondrej PHP repository. In that repository, <code>php-fpm</code> installs PHP 8.4, but <code>php-ssh2</code> installs the ssh2 extension for PHP 8.5. Your web server runs PHP 8.4, so <code>ssh2_connect()</code> does not exist and the snapin upload fails.</p>
<p dir="auto">To fix your server now, install the ssh2 extension for PHP 8.4 and restart PHP-FPM:</p>
<pre><code>sudo apt-get install php8.4-ssh2
sudo systemctl restart php8.4-fpm
</code></pre>
<p dir="auto">Then try the snapin upload again.</p>
<p dir="auto">We are also fixing the installer in <code>working-1.6</code> and <code>rc-1.6.0</code>:</p>
<ul>
<li>The installer installs the ssh2 extension for the PHP version that PHP-FPM runs.</li>
<li>On Linux Mint, the installer uses the distribution’s own PHP, as it already does on Ubuntu and Debian.</li>
<li>If the extension is missing, the upload shows “SSH Connection has failed” instead of a 500 error.</li>
</ul>
]]></description><link>http://forums.fogproject.org/post/158896</link><guid isPermaLink="true">http://forums.fogproject.org/post/158896</guid><dc:creator><![CDATA[Tom Elliott]]></dc:creator><pubDate>Fri, 23 Oct 2026 14:33:13 GMT</pubDate></item></channel></rss>