FOGProject / fogproject

An open source computer cloning & management system
https://fogproject.org
GNU General Public License v3.0
1.08k stars 216 forks source link

When trying to domain from fog Authentication error: Could not get security token (version 1.5.10) #556

Open glicks-code opened 1 year ago

glicks-code commented 1 year ago

Hello

We are finding an issue on version 1.5.10 fog and client 0.13 and we tried 0.12.2 client version all of which cause same issue expect legacy which provides another saying Domain error 2692 the issue which is appearing is the following: Authentication No token found at C:\Program files (x86)\Fog\token.bat' Authentication error: Could not get security token Authentication error: Could not find file at C:\Program files (x86)\Fog\token.bat' Communication POST URL: http:/fogserver/fog/management/index.php?sub=requestClientInfo&authorize&newSevice Response Private key failed

Thanks for understanding hope you can fix this issue

Sebastian-Roth commented 1 year ago

@glicks-code said:

Response Private key failed

This is the actual error message we need to look into to get this fixed. I am wondering if you see any error message in the apache or PHP logs?

Did you update from an older version or is this a fresh new install?

Sebastian-Roth commented 1 year ago

@glicks-code Is this topic related to #557?

Sebastian-Roth commented 1 year ago

@glicks-code Let me re-phrase my question. Are #557 and #556 about the exact same problem or is there any difference which I have not noticed so far? If they are both about the same topic I will close this issue report in favor of #557.

Sebastian-Roth commented 1 year ago

@glicks-code Ok, let's look into your particular issue more closely. The error message mentioned stems from this part of the FOG PHP code: https://github.com/FOGProject/fogproject/blob/09ae35cdeee3b26d149bc364b3063d1284cb3f62/packages/web/lib/fog/fogbase.class.php#L1653

So as a first diagnosing step we need to see the file is accessible. Please run the following commands on the FOG server console and post output here:

getenforce
ls -alZ /opt/fog/snapins/ssl/.srvprivate.key

As well let us know which Linux OS and version you use?

glicks-code commented 1 year ago

@Sebastian-Roth getenforce ls -alZ /opt/fog/snapins/ssl/.srvprivate.key the result was " -rwxrwxrwx 1 fog project www-data ? 2324 Mar 5 19:45 /opt/fog/snapins/ssl/.srvprivate.key" As well let us know which Linux OS and version you use? Debian GNU/Linux 11 (bullseye)

Sebastian-Roth commented 1 year ago

@glicks-code We somehow lost track of this issue. Do you still see the same problem happening?