Fog Snap-In Permissions Issue?
-
Running into some issues with Fog Snap-Ins. Wondering if anyone can help
Through troubleshooting, it seems like Fog can run the snap-in on the client machine, but the snap-in cannot access the powershell script that needs to be run. Seems like a permissions issue, but would like some help.
Thanks All,
-
6/1/2023 11:05:15 AM Middleware::Communication ERROR: Could not download file
6/1/2023 11:05:15 AM Middleware::Communication ERROR: The remote server returned an error: (404) Not Found.
-
@Richarizard504 404 means the file does not exist on the server it’s requesting it from.
-
@Tom-Elliott Okay, that is what I thought, but I looked on the server itself in the /opt/snapins folder and the snap-in is in the folder like it should be. Which is why I was thinking a permissions issue.
I am not sure what else it could be. I think I am just going to rebuild the server and migrate our data over to the new server. Our old server was running on CentOS anyways. I tried as much troubleshooting as I could.
-
@Richarizard504 Is it possible it’s requesting the resource from a different server than the one you know the files are on?
-
@Tom-Elliott said in Fog Snap-In Permissions Issue?:
Is it possible it’s requesting the resource from a different server than the one you know the files are on?
Just along these lines… do you have more than one FOG node in your network?
The remote server returned an error: (404) Not Found.
The snapin files are not requested via HTTP URL directly but through a helper script. See if you have
/var/www/fog/service/snapins.file.php
on your FOG server(s). -
@Sebastian-Roth I do not have more than 1 fog server. There is only one, and yes that file does exits.
Looks like this
<?php
/**- Snapin client file download
- PHP version 5
- @category Snapin_File
- @package FOGProject
- @author Tom Elliott tommygunsster@gmail.com
- @license http://opensource.org/licenses/gpl-3.0 GPLv3
- @link https://fogproject.org
/
/* - Snapin client file download
- @category Snapin_File
- @package FOGProject
- @author Tom Elliott tommygunsster@gmail.com
- @license http://opensource.org/licenses/gpl-3.0 GPLv3
- @link https://fogproject.org
*/
require ‘…/commons/base.inc.php’;
new SnapinClient(
true,
false,
false,
false,
isset($_REQUEST[‘newService’])
);
~
~
-
@Richarizard504 Then I may suggest you provide the full fog.log file from that client having the issue. We might find out what’s wrong with some more context.