-
-
Notifications
You must be signed in to change notification settings - Fork 673
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
Memcache \OC\Memcache\APCu not available for local cache #2039
Comments
For the fun of it, I restored from backup and then ran this command Restoring from backup once more. |
@enoch85 I thought we fixed this already in Lines 375 to 400 in 0ce7f6a
|
@ozinfotech could you please post your config.php file here and the output of the three commands |
I got the same error yesterday, so there's something off with APCu... I don't know if it's Nextcloud or if it's APCu itself. Workaround: change to |
Made this commit for now: 2378716 |
I am not sure what this shall solve? |
The reason for the issue is probably nextcloud/server#25770 but I don't know how to solve it. |
Honestly it looks like those lines should fix it Lines 395 to 400 in 0ce7f6a
|
OK, so we should revert to Redis for cache: nextcloud/server#25770 (comment) |
Just tested on an old Nextcloud installation, and as long as APCu isn't updated it still works. |
okay |
@szaimen Can you prep a PR to remove APCu in the update script, and change to Redis in config.php? I can do it n like 30 minutes if you don't have time right now. |
Please do it yourself. I am busy currently. |
Fix: |
@MacLemon Thanks, we did that before, but it didn't work: https://github.com/nextcloud/vm/pull/2040/files#diff-b7160473976322a0318d460923cfed06da7b9612b80727132360613492d369b2L668 |
Thanks a lot. It works fine on my Debian buster by adding this in /etc/php/7.3/mods-available/apcu.ini (global setting for both php-fpm and php-cli) |
You bet. I wasn't sure if this was fixed or not so I tried to run the script again and still got the same error.
|
Which script? |
@enoch85 |
@ozinfotech Run |
@enoch85 I'll be doing this in about an hour. Is that the script I want to run in the future as well? (As in, I need to forget about the menu.sh script?) |
Either one works. The |
Yes, the issue is now fixed: #2040 |
@enoch85 I just ran it again after I saw your message from a few minutes ago. Still getting the same errors. I'm not seeing any changes from the screenshot above. Maybe I need to pay for a one-on-one session? |
Just upgraded to the latest "stable" release and got the same error. Now stuck in the maintenance mode :( |
I used to upgrade using web UI, but it started timing out on me about 6 months ago, and I switched to using
|
@ozinfotech Do as you please. :) |
@enoch85 30 minutes or 1 hour? I'm not sure how long it will take. Hopefully mine is an edge case, but if you get it figured out you'll be able to merge it into this fix for any other edge cases out there. |
For those who run NC on a shared hosting provider (that isn't installed through Softiculous or other auto-install/update program): This is how I configured it to work in NC's config/config.php:
Hope this helps people who faced the same problem. |
The mentioned fix also works great on PHP 8.0, i.e., by adding |
Also worked for me after an upgrade from NC 21.0.2.1 to 21.0.3.1 which caused occ and cron to fail, now working again. |
I ran yesterday into this issue, and could not fix it. There is also a forum topic describing this problem: |
Did you restart PHP or the server? That was required for me. |
Yes, I did. |
This worked like a charm on Ubuntu server 20.04 running |
Well, I tried again using some of the previous suggestions from a backup and ended up with this error now. It's gone all circular. These are the steps I had taken. I determined my php version: I had version 7.4 so I then installed apcu. I had to modify the following files that were created from the php apcu install:
/etc/php/7.4/mods-available/apcu.ini
I restarted apache. I ran the update script again. Boom, got the new error message: |
Strange. We actually purge APCu from the system since it's unreliable. Please post the contents of
Thanks! |
Finally, I managed to finalize the upgrade. This is what I did:
And then I added to the file |
The issue here is that you're not on the current version of PHP. I will fix that in another PR. |
No need to make another PR for that since the first thing that happens in the update script is that it's changed to Redis: https://github.com/nextcloud/vm/blob/master/nextcloud_update.sh#L58-L69 So even if APCu is installed, it won't be activated in Nextcloud. Run |
@enoch85 here you go! dpkg -l | grep apc pecl list
config.php
php.ini
|
@ozinfotech Thanks! Just run |
Steps to reproduce
sudo bash /var/scripts/menu.sh
Expected behavior
The update usually completes without any hiccups.
Actual behavior
The script errors out with the following message:
Server configuration
Nextcloud server version: 21.0.2
Server OS 20.04.2 LTS
PHP Version 7.4
How did you install the VM? (Scripted install from master OR Released version)
Purchased from TechAndMe.se
Network
Do you use DHCP?
No
Is port 80 and/or 443 open?
Yes to both
Logs / Screenshots
Log file (/var/log/nextcloud/nextcloud.log)
Installation log (command output)
The text was updated successfully, but these errors were encountered: