-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
sporadic opcache clear fails, file not found. But the file is present inside the release folder #722
Comments
I consider this a duplicate to #221 |
jep, seems so. on our stage where mittwald "performance plus" is not active (so OPcache seems to be not active) we have no trouble. PHP is running over fpm. We have now also tested the cachetool (https://gist.github.com/jonaseberle/9bfc29b3af726c41b3cd9cec088fc722), but here too access to the file via the domain is not (always) possible. |
@Xippo You can use a static file shipped with the same identifier in every release. That´s how i fix this issue for myself. Use a very long and obscure identifier name. In that case security by obscurity is the way to go. |
The static file was my first attempt to fix the error, unfortunately without success. For some reason, the server needs some time until the symlink change is really there, or it almost seems as if a call has to be made in the frontend first so that the new link is active. However, this may be due to Mittwald and its "Performance Plus", although this should actually only be the extra OPcache, as I always understand it. We have now installed a smoke test after the switch, which takes 2-3 seconds, but then it works with the call of the static opcache clear file.
|
Expected Behavior
successful opcache clear over the specific php file
Actual Behavior
Sometimes and sometimes we got the follow error during the deployment:
sometimes it works fine and the file is executed, when not and we see this inside the log we can call the url and the file is there and the cache is flushed.
I was wondering if the tasks are all in sync, because if they are not and, for example, the copy process from the server from transfer to the release folder is not yet complete, then it could of course happen that at that moment the file is not yet there.
Perhaps there will also be a delay due to the updating of the labels. In order to cause less traffic, we will probably transfer this to the shared data anyway.
Maybe some one of you has some idea.
I have also seen approaches that would probably also solve the problem:
https://gist.github.com/jonaseberle/9bfc29b3af726c41b3cd9cec088fc722
Specifications
Thx for your awesome work 👍
//edit we have removed the InstallLanguagesTask but the error shows up anyway
The text was updated successfully, but these errors were encountered: