Server not responding after Nextcloud upgrade (20.0.0.9 to 21.0.1)

Hi Jos
Sorry posting noob questions in Github! , I did wonder but I posted there due to a comment from someone on the Forum would you believe :slight_smile: They told me I should ask where the real developers reside! Otherwise I would never have posted there.
I apologise and thank you for letting me know so politely :slight_smile:

James

Please note that I am not an expert.

From what I understand the apc.enable_cli = 1 setting is meant to be in
the server’s /etc/php.ini file.

P.V.Anthony

Hi pvanthony,
Well that would explain why I can’t see it in the config.php!
I’ll have a look and report back :slight_smile: Thanks, and, for the record, I’m no expert either

J

Ok, I had a scan of /etc/php/7.4/apache2/php.ini
for the required setting to change and it’s not there either? I did find an entry for CLI-server though:

[CLI Server]
; Whether the CLI web server uses ANSI color coding in its terminal output.
cli_server.color = On
apc.enable_cli = 1

Originally it only had the entry for server.color so I added the famous setting underneath :slight_smile:
This time, when I saved the file, Nextcloud didn’t collapse in a puddle of sweat so already it looks better. WOn’t really know unless I try the upgrade again but, based on the flood of mail on this subject today I feel I should hold off until the powers that be sort this out between them :slight_smile:
J

1 Like

ok so that’s it, neat! I was already told that opcache.enable_cli=1 is something different, I still don’t get then why it worked fine for me as I don’t have apc.enable_cli = 1 in my settings. But glad it works now for you!

Well, I wouldn’t go so far as say it works for me as I am still using NC 20!
I have not been able to update to 21 as yet. I am spending some tie on the issue today and have made a server backup first of course.
The only change is that I have added the above line to to correct file this time! Last time I edited config.php which trashed the server. Now I am editing the php.ini file in my php folder/s ( did the php7.4 one and the fpm one also.
Neither of these changes seem to have affected NC20 in any detrimental way. Today there was an update to 20.0.11 RC1 which went perfectly using the web updater. Following this, all was well so I went on to the offered update 21.0.3 RC1 which, so far, has completely failed to download either using the updater or trying manually so I do not yet know whether this ‘Solution’ has worked :slight_smile:
I’ll keep trying and report back.

J

Hello again,
I finally got the NC21 zip downloaded and installed. Web updater failed so I had to do it manually by editing the step file.
Sadly though, something is badly wrong. NC runs fine but OCC does not. I also have a lot of errors on the security checkup page:

There are some errors regarding your setup.

** Last background job execution ran 1 hour ago. Something seems wrong. Check the background job settings*

** A background job is pending that checks for user imported SSL certificates. Please check back later.*

** Your installation has no default phone region set. This is required to validate phone numbers in the profile settings without a country code. To allow numbers without a country code, please add “default_phone_region” with the respective ISO 3166-1 code :arrow_upper_right: of the region to your config file.*
** The database is missing some indexes. Due to the fact that adding indexes on big tables could take some time they were not added automatically. By running “occ db:add-missing-indices” those missing indexes could be added manually while the instance keeps running. Once the indexes are added queries to those tables are usually much faster.*

    • Missing index “fs_size” in table “oc_filecache”.*

Please double check the installation guides :arrow_upper_right:, and check for any errors or warnings in the log.

Check the security of your Nextcloud over our security scan :arrow_upper_right:.

I tried running occ db:add-missing-indices but I get an error:
OC\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
I have checked the APCu installation and it is definitely present and correct and, since I didn’t change anything else, I’m assuming this is a bug elsewhere in my setup.

I’m going to revert to my backup which works and see if anyone can suggest what might be going wrong here.

J

Hi,
Exactly what’s happened to me.
Cron job is broken since 9 days now and Thunderbird can’t access to calendar app anymore.

Tryed to go to 21.0.3 RC1 but still broken.
Running on Raspberry Pi 4

1 Like

Is anyone willing to help me tackle this problem? Why is my system claiming it cannot find the Memcache when it is clearly installed and running? This has to be an easy fix for someone in the know :slight_smile:
I have fixed the default phone region issue and am assuming that, because occ cannot run, that is the cause of the background job issue.
Nextcloud seems to be running ok but these errors make me nervous.

Help would be appreciated.

James

After some in depth research and poking around I found this solution which worked for me:

Specifically this part:

bruno666 commented 26 days ago

Fix:
If you add apc.enable_cli=1 at the end of your php.ini

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)

So, for now, I am sorted and have my green tick back :slight_smile:

Shouldn’t have taken so long though, all I wanted to do was update to NC21 and we are heading toward 22 now ?

J