Unable to connect and login

Hello,
I have a problem with my NC27.
I had a NC server version 25.
As I changed my hardware to VM, I upgraded it to V26 and next to V27.
I have problems.
First I’m connected as admin with my computer, but when I want to change parameters, NC ask for password, but it doesn’t accept my password.
If I want to connect from another computer, the login page loop, so I can’t connect. Same for any account.
Next, when I want to connect an android with davx, davx says there’s no calendar. But, one time and I don’t know why, My phone was recorded succesfully. So my phone works correctly, but It’s impossible to connect other phone’s users.
and last, when I want to use nextcloud app on android, it says err_too_many_redirect.
But If I want to add a webdav in the phone, there’s no problem.

NC log

Erreur core TypeError: OCA\GroupFolders\ACL\ACLManagerFactory::getACLManager(): Argument #1 ($user) must be of type OCP\IUser, null given, called in /var/www/html/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php on line 206
2023-07-31T17:00:03+0200
Avertissement no app in context Doctrine\DBAL\Exception\DeadlockException: An exception occurred while executing a query: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction
2023-07-31T16:04:36+0200
Erreur core TypeError: OCA\GroupFolders\ACL\ACLManagerFactory::getACLManager(): Argument #1 ($user) must be of type OCP\IUser, null given, called in /var/www/html/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php on line 206
2023-07-31T16:00:02+0200
Erreur core TypeError: OCA\GroupFolders\ACL\ACLManagerFactory::getACLManager(): Argument #1 ($user) must be of type OCP\IUser, null given, called in /var/www/html/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php on line 206
2023-07-31T14:55:03+0200
Erreur core TypeError: OCA\GroupFolders\ACL\ACLManagerFactory::getACLManager(): Argument #1 ($user) must be of type OCP\IUser, null given, called in /var/www/html/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php on line 206
2023-07-31T13:50:02+0200
Erreur core TypeError: OCA\GroupFolders\ACL\ACLManagerFactory::getACLManager(): Argument #1 ($user) must be of type OCP\IUser, null given, called in /var/www/html/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php on line 206
2023-07-31T12:45:02+0200
Erreur core TypeError: OCA\GroupFolders\ACL\ACLManagerFactory::getACLManager(): Argument #1 ($user) must be of type OCP\IUser, null given, called in /var/www/html/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php on line 206
2023-07-31T11:40:02+0200
Erreur core TypeError: OCA\GroupFolders\ACL\ACLManagerFactory::getACLManager(): Argument #1 ($user) must be of type OCP\IUser, null given, called in /var/www/html/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php on line 206
2023-07-31T10:40:01+0200
Erreur core TypeError: OCA\GroupFolders\ACL\ACLManagerFactory::getACLManager(): Argument #1 ($user) must be of type OCP\IUser, null given, called in /var/www/html/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php on line 206
2023-07-31T09:35:02+0200
Erreur core TypeError: OCA\GroupFolders\ACL\ACLManagerFactory::getACLManager(): Argument #1 ($user) must be of type OCP\IUser, null given, called in /var/www/html/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php on line 206
2023-07-31T08:30:02+0200
Erreur webdav Sabre\DAV\Exception\ServiceUnavailable: Impossible d’ouvrir le fichier
2023-07-31T08:09:49+0200
Erreur webdav Sabre\DAV\Exception\ServiceUnavailable: Impossible d’ouvrir le fichier
2023-07-31T08:09:48+0200
Erreur webdav Sabre\DAV\Exception\ServiceUnavailable: Impossible d’ouvrir le fichier
2023-07-31T08:09:47+0200
Erreur webdav Sabre\DAV\Exception\ServiceUnavailable: Impossible d’ouvrir le fichier

apache error log

Mon Jul 31 00:00:03.676787 2023] [mpm_prefork:notice] [pid 824] AH00163: Apache/2.4.57 (Debian) OpenSS
L/3.0.9 configured – resuming normal operations
[Mon Jul 31 00:00:03.676805 2023] [core:notice] [pid 824] AH00094: Command line: ‘/usr/sbin/apache2’
[Mon Jul 31 16:49:37.069268 2023] [access_compat:error] [pid 35566] [client 192.168.4.1:17270] AH01797:
client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Mon Jul 31 17:01:13.778594 2023] [access_compat:error] [pid 35567] [client 192.168.4.1:49612] AH01797:
client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Mon Jul 31 17:07:01.075497 2023] [access_compat:error] [pid 35917] [client 192.168.4.1:40052] AH01797:
client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Mon Jul 31 17:07:20.089813 2023] [access_compat:error] [pid 35867] [client 192.168.4.1:57831] AH01797:
client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Mon Jul 31 17:07:33.126366 2023] [access_compat:error] [pid 36078] [client 192.168.4.1:18139] AH01797:
client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Mon Jul 31 17:25:56.470390 2023] [access_compat:error] [pid 36436] [client 192.168.4.1:32705] AH01797:
client denied by server configuration: /var/www/html/nextcloud/data/.ocdata

My config/.htaccess

Section for Apache 2.4 to 2.6

Require all denied Require all denied # Order Allow,Deny # Deny from all # Satisfy All

Section for Apache 2.2

<IfModule !mod_authz_core.c>
<IfModule !mod_access_compat.c>

Order Allow,Deny
Deny from all

Satisfy All

Section for Apache 2.2 to 2.6

IndexIgnore *

my apache nextcloud.conf

File Edit Options Buffers Tools Conf Help
<VirtualHost *:80>
DocumentRoot /var/www/html/nextcloud/
ServerName “Mydnsname”

<Directory /var/www/html/nextcloud/>
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews

<IfModule mod_dav.c>
  Dav off
</IfModule>

Satisfy Any
</Directory>

RewriteEngine on
RewriteCond %{SERVER_NAME} =“Mydnsname”
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

my apache nextcloud-le-ssl.conf

File Edit Options Buffers Tools Conf Help

<VirtualHost *:443>
DocumentRoot /var/www/html/nextcloud/
ServerName “mydnsname”

<Directory /var/www/html/nextcloud/>
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews

<IfModule mod_dav.c>
  Dav off
</IfModule>

<IfModule mod_headers.c>
  Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
</IfModule>

Satisfy Any
</Directory>

SSLCertificateFile /etc/letsencrypt/live/"mydnsname’/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/"mydnsname"privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf

Thanks for ideas.
Benoit

I would ignore all other issues and focus on this one first. This eliminates client nuances/etc. Just get the web UI working.

To clarify, were you prompted for the same password to login or do you think you’re currently only able to access the UI because your session is cached? I suspect the latter because there’s basically no reason your login password (if working to login) shouldn’t work for any admin actions that require providing a password.

Switching gears a bit - despite what I said about focusing on one area to eliminate variable - going on what you posted from your logs… All those are from the groupfolders app. Are you using it? Is it something you can temporarily disable to test? (You can use the occ command to disable it - check the docs for specifics).

Lastly, what method did you use to deploy (update) and trigger the upgrades? And, when, specifically did you lose proper access?

Hi,
Thanks for reply,
OK to focu on my first problem, I think that will solve others.
I think I’m able to connect because of cache. On another computer, a user who clear cookies every day has problem to connect (sometimes, he has to try 3 or 4 times). And strange thing, sometimes it works for me on my laptop.

For groupfolder app, yes I use it. I’ll disable it this evening and try.

To upgrade, I used manual upgrade Upgrade manually — Nextcloud latest Administration Manual latest documentation
I losed my proper access after upgrade.

Thanks for ideas.
Benoit

Hello jtr,
I disabled groupfolders app but there’s no change.
Thanks.
Benoit