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

OPcache not properly configured out-of-the-box according to the "occ setupcheck" #4616

Closed
AlphaCraft9658 opened this issue May 3, 2024 · 11 comments
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working

Comments

@AlphaCraft9658
Copy link

Steps to reproduce

This may only work on out-of-the-box setups without direct manual modifications to configuration files.

  1. Enter host shell
  2. Execute the following command: docker exec --user www-data nextcloud-aio-nextcloud php occ setupcheck (running with sudo may be required)
  3. Read the output of the command. It should say that the OPcache is not properly configured.

Expected behavior

All setupchecks should be successfull and opcache should be properly configured out-of-the-box.

Actual behavior

The setupcheck tells that the opcache is not properly configured.

Host OS

Ubuntu Server 20.04 with Docker-CE

Nextcloud AIO version

v8.2.1

Current channel

latest

Other valuable info

The section of the setupcheck command's output telling about the improper OPcache configuration:

✗ PHP opcache: The PHP OPcache module is not properly configured. OPcache is not working as it should, opcache_get_status() returns false, please check configuration.
The maximum number of OPcache keys is nearly exceeded. To assure that all scripts can be kept in the cache, it is recommended to apply "opcache.max_accelerated_files" to your PHP configuration with a value higher than "10000".
The OPcache buffer is nearly full. To assure that all scripts can be hold in cache, it is recommended to apply "opcache.memory_consumption" to your PHP configuration with a value higher than "256".
The OPcache interned strings buffer is nearly full. To assure that repeating strings can be effectively cached, it is recommended to apply "opcache.interned_strings_buffer" to your PHP configuration with a value higher than "64"..
@AlphaCraft9658 AlphaCraft9658 added 0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working labels May 3, 2024
@Procsiab
Copy link

Procsiab commented May 7, 2024

I am experiencing the exact same issue after updating Nextcloud from 28.0.5 to 29.0.0

@AlphaCraft9658
Copy link
Author

I am experiencing the exact same issue after updating Nextcloud from 28.0.5 to 29.0.0

I restored a backup after manually updating to Nextcloud 29, but this still happens on Nextcloud 28.

@Procsiab
Copy link

Procsiab commented May 7, 2024

What did you restore from backup? I am performing a restore right now of both the database volume and the app/data volume

@AlphaCraft9658
Copy link
Author

What did you restore from backup? I am performing a restore right now of both the database volume and the app/data volume

I had a full backup, which should include all containers.

@AlphaCraft9658
Copy link
Author

What did you restore from backup? I am performing a restore right now of both the database volume and the app/data volume

I had a full backup, which should include all containers.

I checked. It does include containers, as my Nextcloud is back on version 28. It should include everything related to Nextcloud AIO, including user data.

@Procsiab
Copy link

Procsiab commented May 7, 2024

I'm on the same boat apparently

I am experiencing the exact same issue after updating Nextcloud from 28.0.5 to 29.0.0

I restored a backup after manually updating to Nextcloud 29, but this still happens on Nextcloud 28.

@Procsiab
Copy link

Procsiab commented May 7, 2024

It seems that this was present before Nextcloud 29 (or Hub 8): after logging in on another server of mine which is running Nextcloud 28.0.4 I can see the exact same error of your first comment; however, in this case the opcache error is not shown from the admin web interface but only from running the setupchecks from CLI, so I did not notice it until in Nextcloud 29 it was signaled over there.

@AlphaCraft9658
Copy link
Author

It seems that this was present before Nextcloud 29 (or Hub 8): after logging in on another server of mine which is running Nextcloud 28.0.4 I can see the exact same error of your first comment; however, in this case the opcache error is not shown from the admin web interface but only from running the setupchecks from CLI, so I did not notice it until in Nextcloud 29 it was signaled over there.

Yes. In Nextcloud 28 you need to run the setupcheck, which shows the error.

@szaimen
Copy link
Collaborator

szaimen commented May 13, 2024

Hi, can you please open an issue about this here?
https://github.com/nextcloud/server
Thanks!

@szaimen szaimen closed this as completed May 13, 2024
@AlphaCraft9658
Copy link
Author

Hi, can you please open an issue about this here?
https://github.com/nextcloud/server
Thanks!

I figured it could be an issue with the default configuration AIO provides. Could also not be the case.

@szaimen
Copy link
Collaborator

szaimen commented May 13, 2024

No, I think the check does not take into account that the web server might be using different php.ini files than the cli...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants