-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Fog 1.5.9 to 1.5.10 / Update in general #639
Comments
This doesn't happen to everybody and as such is an edge case though easily fixed: Please set the webdirdest and tftpdirdest variables in your webdirdest is usually, on Debian at least: Thank you |
Oh no I am a fool. Sorry and thanks for your quick reply. I looked again on my .fogsettings and my Chris |
okay, thank you Tom. we can revert this issue. all of this was my fault because of my .fogsettings. But i have to reinstall the fog-client on all of the clients.
is this normal? Chris |
If you're still on the same server and your cert is all the same and what not, then you may be able to just reset the host encryption on all hosts and they'll connect after a service restart. |
Okay thanks for explaining. |
They might have been as part of 1.5.9->1.5.10 but I'm not sure. They typically aren't recreated every time you run the installer unless you use the arguments to enforce that
(see also https://docs.fogproject.org/en/latest/command-line-options) |
okay i have some more information. I looked in the foginstall.log and checked the Certificates creation date on the hdd. here some parts of the foginstall.log
the CA certificate isnt recreated. you can see above the date. Only the ca.cnf and .fogCA.srl are recreated. i had to reinstall the fog-client on all the host. i could not getting back to service. edit: the puplic certificate from the apache server is recreated. Chris |
@ChrisChoke Yes that would be the problem and pretty much requires a reinstall of the fogservice, at least that's the easiest answer in that case. That forum post is also an old post with an older version of the client, that issue is fixed, the client works fine with http or https. |
@darksidemilk thank you for your really detailed explanation. If that could be the problem, then i think this problem will be touched on every execution of the foginstall.sh script or not? fogproject/lib/common/functions.sh Line 1965 in 3527eca
the signing of the public certificate is not wrapped by any 'if condition' like it is with the CA key and cert. So it looks like we creating new public certificate on every run of the script. i already reinstalled the fog-client on all clients manually. Just 4 clients left, at the moment. that is not a really big thing for me, because i have just 30 clients or something around. But it was really annoying to walk throught the offices 😊 Chris |
It for sure doesn't happen on every run of this installer so I could be mistaken. If I can I'll try to test installing 1.5.9 on a test server and upgrading to try and recreate the issue. Just have to make some time to do that |
Describe the bug
Upgrade from 1.5.9 on Debian 10 to 1.5.10 on Debian 12
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No exited script run.
Screenshots
If applicable, add screenshots to help explain your problem.
Software (please complete the following information):
Additional context
fogproject/lib/common/functions.sh
Lines 1043 to 1051 in 24bb5a6
The script exited here because if i run the script the variables $webdirdest and $tftpdirdst are empty.
So in my opinion the case condition pattern will be like this:
i think because of this, the bash interpreter means it is the default conditions pattern to catch everthing.
I havent looked deeper why the variables are empty. what i can say is the variables are not empty if i have not a .fogsettings file.
so on "fresh" install it works and on upgrade it do not.
Don't know why i am the only one who have trouble with it.
i dont know what the asterisks beside the $webdirdest and $tftpdirdst means in the case pattern, but i very often prefixes variables in conditions with an underscore to prevent a condition check to an empty variable which ends in an syntax error.
the second problem on upgrade is the packagelist in the .fogsettings file. If i do an OS update as well, the fog installer will use this list again. that do not work as well, because on debian 12 there are no php7.3 packages and it hangs on "mariadb" package after the "m4" package. Then yo have to quit manually with ctrl-C.
i think we should update the packagelist always we run the script based on the OS Version.
hope this information is useful for us. i could try to figure out what the problem is. But i dont know how much time i need to dig through the bash code :-)
best regards
Chris
The text was updated successfully, but these errors were encountered: