<?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[FOG 1.6 working branch - fog-agent 0.1.6 enrollment returns 308 redirect]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I am running the FOG 1.6 working branch on Ubuntu with Apache.</p>
<p dir="auto">Current server details:</p>
<ul>
<li>FOG branch: working-1.6</li>
<li>Commit: 47ea627c9</li>
<li>Database schema: 436</li>
<li>Apache: 2.4.66</li>
<li>New client: fog-agent 0.1.6 x64</li>
<li>Windows 11 clients</li>
</ul>
<p dir="auto">The new agent is installed with this server address:</p>
<p dir="auto"><a href="https://192.168.1.100/fog" target="_blank" rel="noopener noreferrer nofollow ugc">https://192.168.1.100/fog</a></p>
<p dir="auto">fog-agent status shows:</p>
<p dir="auto">{<br />
“enrolled”: false,<br />
“has_key”: true,<br />
“host_id”: 0,<br />
“server”: “<a href="https://192.168.1.100/fog" target="_blank" rel="noopener noreferrer nofollow ugc">https://192.168.1.100/fog</a>”<br />
}</p>
<p dir="auto">The Windows client is definitely reaching the server.</p>
<p dir="auto">Apache access log:</p>
<p dir="auto">192.168.102.20<br />
POST /fog/agent/v1/enroll HTTP/1.1<br />
308<br />
Go-http-client/1.1</p>
<p dir="auto">A manual test from the FOG server gives the same result:</p>
<p dir="auto">POST <a href="https://192.168.1.100/fog/agent/v1/enroll" target="_blank" rel="noopener noreferrer nofollow ugc">https://192.168.1.100/fog/agent/v1/enroll</a></p>
<p dir="auto">Response:</p>
<p dir="auto">HTTP/1.1 308 Permanent Redirect<br />
Location: <a href="https://192.168.1.100/fog/management/index.php" target="_blank" rel="noopener noreferrer nofollow ugc">https://192.168.1.100/fog/management/index.php</a></p>
<p dir="auto">I already re-ran <a href="http://installfog.sh" target="_blank" rel="noopener noreferrer nofollow ugc">installfog.sh</a> successfully.</p>
<p dir="auto">The active Apache vhost contains:</p>
<p dir="auto">&lt;Location /fog/agent/&gt;<br />
SSLOptions +StdEnvVars +ExportCertData<br />
&lt;/Location&gt;</p>
<p dir="auto">and:</p>
<p dir="auto">RewriteRule ^/fog/(.*)$ /fog/api/index.php [QSA,L]</p>
<p dir="auto">Apache is listening on 443 and apache2ctl -S shows:</p>
<p dir="auto">*:443 fog (/etc/apache2/sites-enabled/001-fog.conf:38)</p>
<p dir="auto">The issue remains after re-running the installer.</p>
<p dir="auto">Additional information:<br />
The legacy FOG Client 0.13.0 clients on the same server also recently stopped authenticating properly. They repeatedly call:</p>
<p dir="auto">/fog/management/index.php?sub=requestClientInfo&amp;authorize&amp;newService</p>
<p dir="auto">but do not continue normally.</p>
<p dir="auto">Before the recent working-1.6 updates, the legacy clients were communicating normally.</p>
<p dir="auto">I would prefer an upstream fix rather than manually modifying Apache or PHP files.</p>
<p dir="auto">Is this a known regression in the current working-1.6 branch affecting the fog-agent /agent/v1/enroll route or the API router?</p>
<p dir="auto">Thank you.</p>
]]></description><link>http://forums.fogproject.org/topic/18241/fog-1-6-working-branch-fog-agent-0-1-6-enrollment-returns-308-redirect</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 16:47:43 GMT</lastBuildDate><atom:link href="http://forums.fogproject.org/topic/18241.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 10 Sep 2026 15:05:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to FOG 1.6 working branch - fog-agent 0.1.6 enrollment returns 308 redirect on Thu, 10 Sep 2026 15:45:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/49755">@Balage80</a> This is fixed in working-1.6 (PR #1755).</p>
<p dir="auto">The agent routes were being blocked by the FOG_API_ENABLED setting. With the API turned off, every /fog/agent/v1/ request got a 308 redirect to the login page, so the agent could never enroll. Now the agent routes work whether that setting is on or off.</p>
<p dir="auto">To update: pull working-1.6 and re-run <a href="http://installfog.sh" target="_blank" rel="noopener noreferrer nofollow ugc">installfog.sh</a>. After that, you can turn FOG_API_ENABLED back off if you want. Enrollment still needs an approval in the UI.</p>
<p dir="auto">The legacy FOG Client 0.13.0 problem has a different cause. If those clients still loop on requestClientInfo after the update, please post the fog.log from one of them.</p>
]]></description><link>http://forums.fogproject.org/post/158687</link><guid isPermaLink="true">http://forums.fogproject.org/post/158687</guid><dc:creator><![CDATA[Tom Elliott]]></dc:creator><pubDate>Thu, 10 Sep 2026 15:45:48 GMT</pubDate></item><item><title><![CDATA[Reply to FOG 1.6 working branch - fog-agent 0.1.6 enrollment returns 308 redirect on Thu, 10 Sep 2026 15:15:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/49755">@Balage80</a> Can you please make sure FOG_API_ENABLED is set/ticked in your FOG UI:</p>
<p dir="auto">FOG Configuration -&gt; FOG Settings -&gt; API System -&gt; FOG_API_ENABLED</p>
]]></description><link>http://forums.fogproject.org/post/158686</link><guid isPermaLink="true">http://forums.fogproject.org/post/158686</guid><dc:creator><![CDATA[Tom Elliott]]></dc:creator><pubDate>Thu, 10 Sep 2026 15:15:12 GMT</pubDate></item></channel></rss>