-
-
Notifications
You must be signed in to change notification settings - Fork 455
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
cron task REBUILD_VHOST loop #1249
Comments
You've enabled let's encrypt and "ssl redirect" for the froxlor vhost. This requires two cron-runs. The first should output |
first run :
run 2 ( the task created by run 1 )
|
well these logs are not for the original cause...You need to recreate the same scenario. Disable Let's encrypt and ssl-redirect and reenable both, then run cron manually twice. Best would be to stop crond for the time testing and manually trigger the cron so you get all the output and can identify potential issues |
that's exactly what i did. ---- an hour passes of looking around --- I looked deeper. it seems like it expected to have the table entry if the files exist ? Maybe consider the table as a source of truth ? |
an entry only exists if there is a let's encrypt certificate already issued (used for renew). |
looking at the code AcmeSh.php / issueFroxlorVhost() If the row is not present and the folder exists and is recent ( which was my case ). Now the question is how did i have the certificate in acme configured without having the row in froxlor ... but somehow it happened. |
issue checks if there is already something and won't issue a new certificate if so. Everything else regarding renew is handled by acme.sh and froxlor will only read-in renewed certifcate files if they are newer than what we know. Again: issueFroxlorVhost() does not do the renewing/updating. If anything exists, there is no need for an
Yes, that's the issue, this state should not occur, can't tell you how it did. Never had any issues with this |
Describe the bug
The rebuild vhost task would run every 5 minutes again and again. When checking in the table panel_tasks i could see the task deleted but a new one added immediately....
System information
To Reproduce
Steps to reproduce the behavior:
Expected behavior
An error message logged about the error, as to have an idea why it's looping.
Something like : Froxlor Host lets encrypt certificate needs to rebuild, forcing another web server config task
Logfiles
Additional context
I know the error is due to a configuration error, but it was hard to find what was responsible for this. ( tracked down the method that inserted a task in db, and added a debug trace).
The text was updated successfully, but these errors were encountered: