Skip to content
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

Cannot Load Zend OPcache - its already loaded #566

Closed
crossr1 opened this issue Jul 17, 2018 · 12 comments
Closed

Cannot Load Zend OPcache - its already loaded #566

crossr1 opened this issue Jul 17, 2018 · 12 comments

Comments

@crossr1
Copy link

crossr1 commented Jul 17, 2018

I have noticed with the release of v0.57.18 that I am seeing this error in multiple locations:

Cannot load Zend OPcache - it was already loaded

Thanks

@chiyi4488
Copy link
Contributor

I also have this problem when I run occ, but this does not affect my work.

@Iolaum
Copy link
Contributor

Iolaum commented Jul 19, 2018

This is a duplicate of #416
It was then fixed from @nachoparker with this change.

And yes it is harmless - but it does fill /var/mail/www-data mailbox :o

from my ncp:

# pwd
/etc/php/7.0/fpm/conf.d
# ll | grep opcache
lrwxrwxrwx 1 root root   39 Dec  4  2017 10-opcache.ini -> /etc/php/7.0/mods-available/opcache.ini
lrwxrwxrwx 1 root root   39 Jul  8 07:00 20-opcache.ini -> /etc/php/7.0/mods-available/opcache.ini

It looks like an update from ~ 2 weeks ago duplicated the symlink.

@nachoparker
Copy link
Member

I guess that I removed the wrong one lol

@Iolaum
Copy link
Contributor

Iolaum commented Jul 22, 2018

I removed the two relevant files (renamed one to keep as backup) but I am still getting the warning when I run ncp-report:

# pwd
/etc/php/7.0/fpm/conf.d
# ls -la | grep cache
lrwxrwxrwx 1 root root   39 Dec  4  2017 20-opcache.ini.bk -> /etc/php/7.0/mods-available/opcache.ini

Maybe I misunderstood the fix?

@nachoparker
Copy link
Member

maybe restart the service?

@Iolaum
Copy link
Contributor

Iolaum commented Jul 22, 2018

Instead of restarting the services I reboot the ncp - Is that not achieving the same thing (apart from extra wasted computation)?

@nachoparker
Copy link
Member

yes, should be the same thing

@Iolaum
Copy link
Contributor

Iolaum commented Jul 22, 2018

I managed to misconfigure opcache by removing both symlinks (#571) but this warning persisted (e.g. when typing sudo ncp-report)! So maybe there's another cause?

@nachoparker
Copy link
Member

maybe you forgot the /etc/php/7.0/cli/conf.d/ folder?

@Iolaum
Copy link
Contributor

Iolaum commented Jul 22, 2018

Correct!! dumb me :(

After a reboot things check out correct!

@nachoparker
Copy link
Member

awesome! this is an easy fix. Do you want to send a PR to devel?

@Iolaum
Copy link
Contributor

Iolaum commented Jul 22, 2018

Yep, I ll send one. It's basically your code that I referenced earlier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants