-
-
Notifications
You must be signed in to change notification settings - Fork 297
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
PhP warning - Cannot load Zend OPcache - it was already loaded #416
Comments
(edited, wrong tab) |
I think I found it. Some update duplicated the symlink for the opcache configuration
Can you replicate this finding? It is just a harmless warning. |
Yes I can replicate that:
Is the solution to just delete the second symlink? |
yes, I fixed it in the update, please reopen if it still happens after thanks! |
It looks like this bug reappeared as we moved to php7.2:
|
Strange, it only happens on my rpi3B+ , not on my Debian9 install |
I think this bug creeped in after @nachoparker enabled the buster sources, not php7.2 but I am not 100% sure |
probably with the jump to PHP7.2. Thanks for the PR! |
Back again ;-( 2 simlinks in /etc/php/7.2/cli/conf.d/ (10- and 20-) both pointing to /etc/php/7.2/mods-available/opcache.ini |
I have that error, too! |
should be fixed now again. Note that this is a harmless warning, that appears with updates. Not much we can do about it. |
Hi, In amazon Ami2 solved to rename opcache.ini to 10-opcache.ini. Cheers |
This still happens in v1.11.2 on ODROID XU4. |
Had the same problem in v1.17.1 (after an update on Sep 30th) and removing one of the symlink solved it |
@miri64 which symlink? I noticed in my ncp gives that warning again. Would ve interested in testing your solution. |
See #416 (comment). I just deleted the older of the two to silence the warnings. |
Hm, so it's the same issue again. Thought that the upgrade to buster would have solved that. |
Returned again,
|
Hi there, with the updates to
fixed it. |
yep, same here. |
It appears a PR similar to this one is needed for this re-appearing in php7.3 series. If no-one is up for it I 'll try to find some time and pick it up. |
seems to me the problem is back, i just restored my nextcloud onto a fresh installation of ncp after apt-get upgrade (raspberrypi) and see this during most operations. |
for me, this came up with a webuzo update to php. the extra.ini file at /usr/local/apps/php74/etc/php.d/extra.ini had two lines duplicated:
removing the duplicated lines solved the warnings. |
@thatgeek What's a webuzo update? 🤔 |
Seems to have reappeared (Version is 1.51.0): I just had an update to php. |
Yes, same with me. Update to PHP 8.1 seems to have generated new entries again. It does seem an regular recurring issue as that happened a week ago already with an update. Ev ery single PHP update recreates the lines. So I did
NCP Panel reports everything is up and running, but so far I could not reach the NC login screen. And then
That worked. |
Manual fix.
And then remove oldest duplicates. In my case those that was dated 2020.
|
Or if
shows you a list like this:
rename the opcache.ini from Apache and restart Apache ` |
This showed up again after updating the PHP packages to 8.1.29-1+0 $ ls -l /etc/php/8.1/*/conf.d/*opcache*.ini
lrwxrwxrwx 1 root root 39 May 2 03:15 /etc/php/8.1/cli/conf.d/10-opcache.ini -> /etc/php/8.1/mods-available/opcache.ini
lrwxrwxrwx 1 root root 39 Jun 8 20:44 /etc/php/8.1/cli/conf.d/20-opcache.ini -> /etc/php/8.1/mods-available/opcache.ini
lrwxrwxrwx 1 root root 39 May 2 03:15 /etc/php/8.1/fpm/conf.d/10-opcache.ini -> /etc/php/8.1/mods-available/opcache.ini
lrwxrwxrwx 1 root root 39 Jun 8 20:44 /etc/php/8.1/fpm/conf.d/20-opcache.ini -> /etc/php/8.1/mods-available/opcache.ini The usual workaround fixed it again: $ sudo rm /etc/php/8.1/*/conf.d/20-opcache.ini |
PROBLEMS
I am not sure if this is a problem with ncp, php/raspbian or not a problem at all. Simply running
php -v
gives an error:Looking into some other log files as well, the error gets thrown at sys log every 30 min:
Paste the output of
sudo ncp-report
:NextCloudPi diagnostics
Nextcloud configuration
HTTPd logs
Database logs
Nextcloud logs
The text was updated successfully, but these errors were encountered: