I also faced this error. In my case this error was due to errors while configuring redis cache. So I have let the cache in config.php as APUc only and restarted Apache24 and I was able to access NextcloudExact same problem here. Any help would be appeciated.