InternalServer Error

Nextcloud version (eg, 21.1.1.0):
Operating system and version (eg, Ubuntu 22.04.2):
Apache or nginx version (eg, Apache 2.4.52):
PHP version (eg, 8.1):

Hello everyone,
I am asking for advice today because I am encountering an Internal Server Error.
I tried to search on my side but I found nothing to help me, I specify that I am a beginner and I probably missed valuable information.
I understood that I had to look in the nextcloud.log file but then I don’t know what to do.
I’m sorry if I’m probably double posting but I’m really lost…
Thank you in advance for the people who will take their time to help me.

Yes, you will need to look at your nextcloud.log. By default it’s located in your configured datadirectory. So typically you’ll find it in something like /var/www/html/data/ on your underlying server’s filesystem.

Alternatively, depending on when you’re getting the internal server error and if you’re still able to log into your NC instance, you can access logging in the web UI via Admin->Logging.

I open my file from /var/www/html/nextcloud/data because I no longer have access to my Web instance.
I use the command “tail -f /var/www/html/nextcloud/data/nextcloud.log | jq” to open nextcloud.log
I get this

“reqId”: “FdSwY2lyALT8tl5qROkT”,
“level”: 3,
“time”: “2023-10-03T14:58:24+00:00”,
“remoteAddr”: “192.168.1.1”,
“user”: “–”,
“app”: “core”,
“method”: “GET”,
“url”: “/index.php/204”,
“message”: “Redis server went away”,
“userAgent”: “Mozilla/5.0 (Windows) mirall/3.10.0stable-Win64 (build 20230915) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)”,
“version”: “27.1.1.0”,
“exception”: {
“Exception”: “RedisException”,
“Message”: “Redis server went away”,
“Code”: 0,
“Trace”: [
{
“file”: “/var/www/html/nextcloud/lib/private/Memcache/Redis.php”,
“line”: 72,
“function”: “get”,
“class”: “Redis”,
“type”: “->”
},
{
“file”: “/var/www/html/nextcloud/lib/private/L10N/Factory.php”,
“line”: 346,
“function”: “get”,
“class”: “OC\Memcache\Redis”,
“type”: “->”
},
{
“file”: “/var/www/html/nextcloud/lib/private/L10N/Factory.php”,
“line”: 483,
“function”: “findAvailableLanguages”,
“class”: “OC\L10N\Factory”,
“type”: “->”
},
{
“file”: “/var/www/html/nextcloud/lib/private/L10N/Factory.php”,
“line”: 219,
“function”: “getLanguageFromRequest”,
“class”: “OC\L10N\Factory”,
“type”: “->”
},
{
“file”: “/var/www/html/nextcloud/lib/public/Util.php”,
“line”: 227,
“function”: “findLanguage”,
“class”: “OC\L10N\Factory”,
“type”: “->”
},
{
“file”: “/var/www/html/nextcloud/lib/private/legacy/OC_Template.php”,
“line”: 111,
“function”: “addTranslations”,
“class”: “OCP\Util”,
“type”: “::”
},
{
“file”: “/var/www/html/nextcloud/lib/private/legacy/OC_Template.php”,
“line”: 77,
“function”: “initTemplateEngine”,
“class”: “OC_Template”,
“type”: “::”
},
{
“file”: “/var/www/html/nextcloud/lib/private/legacy/OC_Template.php”,
“line”: 321,
“function”: “__construct”,
“class”: “OC_Template”,
“type”: “->”
},
{
“file”: “/var/www/html/nextcloud/index.php”,
“line”: 74,
“function”: “printExceptionErrorPage”,
“class”: “OC_Template”,
“type”: “::”
}
],
“File”: “/var/www/html/nextcloud/lib/private/Memcache/Redis.php”,
“Line”: 72,
“CustomMessage”: “–”

And then I don’t know what to do

According to that your Redis server/service is off-line. You might try restarting it.

When I try to start Redis I get an error and when running “systemctl status redis-server”, I get this message:

oct. 02 14:30:28 nextcloud systemd[1]: redis-server.service: Main process exited, code=exited, status=1/FAILURE
oct. 02 14:30:28 nextcloud systemd[1]: redis-server.service: Failed with result ‘exit-code’.
oct. 02 14:30:28 nextcloud systemd[1]: Failed to start Advanced key-value store.
oct. 02 14:30:28 nextcloud systemd[1]: redis-server.service: Scheduled restart job, restart counter is at 5.
oct. 02 14:30:28 nextcloud systemd[1]: Stopped Advanced key-value store.
oct. 02 14:30:28 nextcloud systemd[1]: redis-server.service: Start request repeated too quickly.
oct. 02 14:30:28 nextcloud systemd[1]: redis-server.service: Failed with result ‘exit-code’.
oct. 02 14:30:28 nextcloud systemd[1]: Failed to start Advanced key-value store.

Was this working previously? Or is this a new installation?

You’ll have to provide more context - you didn’t fill out the support template in your original post.

It’s an installation that already works without problems, one day I did a reboot and since then I’ve had this problem.

I solved my problem! I simply did :

sudo apt-get --purge remove redis-server
sudo rm -rf /etc/redis/dump.rdb
sudo apt-get update
sudo apt-get install redis-server

Thank you for putting me on the right path, I am very grateful to you. :slight_smile: