Internal Server Error - jc

Hello,

I am new with nextcloud debugging. I run Nextcloud from snap under ubuntu server LTS. I got this error at web authentication :slight_smile:

Erreur interne du serveur

Le serveur est incapable d’exĂ©cuter votre requĂȘte.

Si cela se reproduit, veuillez envoyer les dĂ©tails techniques ci-dessous Ă  l’administrateur du serveur.

Le fichier journal du serveur peut fournir plus de renseignements.

Renseignements techniques

  • Adresse distante : XX.XX.XX.168
  • ID de la demande : Mf3fY1KKq40Y9zPNIV1y

Calendar and contacts seems to work properly on my phone with app token but I can’t admin my server anymore. I didn’t found any relevent logs in /var/snap/nextcloud/current/logs

Thanks you so much for help

Bonjour!

First thing : you should hide your IP if you haven’t changed it :slight_smile: .
Could you take a look at the logs located here :
var/snap/nextcloud/current/apache/logs ? Seems to be an apache issue more than a nextcloud one :).

Thanks asdrip, i found this errors :slight_smile: :

root@sd-XXXXX:/var/snap/nextcloud/current/logs# tail apache_errors.log
[Mon May 24 00:00:16.835747 2021] [lbmethod_heartbeat:notice] [pid 4815:tid 140576883369856] AH02282: No slotmem from mod_heartmonitor
[Mon May 24 00:00:16.836088 2021] [mpm_event:notice] [pid 4815:tid 140576883369856] AH00489: Apache/2.4.46 (Unix) OpenSSL/1.1.1 configured – resuming normal operations
[Mon May 24 00:00:16.836119 2021] [core:notice] [pid 4815:tid 140576883369856] AH00094: Command line: ‘httpd -d /snap/nextcloud/27920 -D EnableHTTPS -D EnableHSTS -D FOREGROUND’
[Mon May 24 00:00:16.841572 2021] [unixd:alert] [pid 200057:tid 140576883369856] AH02155: getpwuid: couldn’t determine user name from uid 4294967295, you probably need to modify the User directive
[Mon May 24 00:00:17.840808 2021] [unixd:alert] [pid 200092:tid 140576883369856] AH02155: getpwuid: couldn’t determine user name from uid 4294967295, you probably need to modify the User directive
[Mon May 24 00:00:17.840850 2021] [unixd:alert] [pid 200093:tid 140576883369856] AH02155: getpwuid: couldn’t determine user name from uid 4294967295, you probably need to modify the User directive
[Mon May 24 00:00:22.880264 2021] [unixd:alert] [pid 200272:tid 140576883369856] AH02155: getpwuid: couldn’t determine user name from uid 4294967295, you probably need to modify the User directive
[Mon May 24 10:50:31.971542 2021] [unixd:alert] [pid 272187:tid 140576883369856] AH02155: getpwuid: couldn’t determine user name from uid 4294967295, you probably need to modify the User directive
[Mon May 24 11:11:35.148116 2021] [proxy_fcgi:error] [pid 272187:tid 140576670304000] (70008)Partial results are valid but processing is incomplete: [client XX.XX.XX.168:49847] AH01075: Error dispatching request to : (reading input brigade)
[Mon May 24 22:06:15.248712 2021] [unixd:alert] [pid 360527:tid 140576883369856] AH02155: getpwuid: couldn’t determine user name from uid 4294967295, you probably need to modify the User directive

Stupid question but have you tried in private mode/other browser ?

Yes same results 


okay, so can you please post the permission of /var/snap/nextcloud/current/ and /var/snap/nextcloud/current/nextcloud/ (ls -la /var/snap/nextcloud/current/ for exemple).
Thank you :slight_smile:

nextcloud@sd-XXXXXX:~$ ls -la /var/snap/nextcloud/current/
total 32
drwxr-xr-x 8 root root 4096 Oct 15 2020 .
drwxr-xr-x 5 root root 4096 May 23 00:07 

drwx------ 3 root root 4096 May 25 11:24 certs
drwxr-x— 2 root root 4096 May 26 00:00 logrotate
drwxr-x— 2 root root 4096 May 24 00:00 logs
drwxr-x— 7 root root 4096 May 25 11:23 mysql
drwxr-xr-x 4 root root 4096 Mar 5 2019 nextcloud
drwxr-x— 2 root root 4096 May 26 12:14 redis
nextcloud@sd-XXXXXX:~$ ls -la /var/snap/nextcloud/current/nextcloud/
total 16
drwxr-xr-x 4 root root 4096 Mar 5 2019 .
drwxr-xr-x 8 root root 4096 Oct 15 2020 

drwxr-xr-x 2 root root 4096 May 25 11:23 config
drwxr-x— 28 root root 4096 May 23 00:18 extra-apps
nextcloud@sd-XXXXXX:~$

Thanks again :slight_smile:

I think it could be related to geoip of 2nd factor app. Is there a way to deinstall apps from CLI (ssh) since I have no admin GUI anymore ?

The error code changed recentlty : Erreur

  • Your attempt to login from country “AA” is blocked by the Nextcloud GeoBlocker App. If this is a problem for you, please contact your administrator.

Issue solve with OCC comannd from SSH CLI :

nextcloud@sd:~$ sudo nextcloud.occ app:disable geoblocker
geoblocker 0.5.0 disabled

Thanks for you support !!