User cannot open settings page

Les utilisateurs (LDAP) ne peuvent pas accéder au menu paramètres.
Message d’erreur : Erreur interne du serveur
Le serveur a rencontré une erreur interne et est incapable d’exécuter votre requête.

La log OWncloud reporte l’erreur suivante : {“reqId”:“seEaqUXMraaVZcY1wGFr”,“level”:3,“time”:“2021-01-13T13:24:33+00:00”,“remoteAddr”:“x.x.x.x”,“user”:“D52F4B7C-B999-4C28-96CF-1E7759F66E06”,“app”:“index”,“method”:“GET”,“url”:"/index.php/settings/personal",“message”:“Exception: {“Exception”:“OCA\\User_LDAP\\Exceptions\\DoesNotExistOnLDAPException”,“Message”:“D52F4B7C-B999-4C28-96CF-1E7759F66E06”,“Code”:0,“Trace”:”#0 \/var\/www\/owncloud\/lib\/private\/User\/User.php(361): OCA\\User_LDAP\\User_Proxy->canChangeAvatar(‘D52F4B7C-B999-4…’)\n#1 \/var\/www\/owncloud\/settings\/Panels\/Personal\/Profile.php(101): OC\\User\\User->canChangeAvatar()\n#2 \/var\/www\/owncloud\/settings\/Controller\/SettingsPageController.php(167): OC\\Settings\\Panels\\Personal\\Profile->getPanel()\n#3 \/var\/www\/owncloud\/settings\/Controller\/SettingsPageController.php(85): OC\\Settings\\Controller\\SettingsPageController->getPanelsData(Array)\n#4 \/var\/www\/owncloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php(153): OC\\Settings\\Controller\\SettingsPageController->getPersonal(‘general’)\n#5 \/var\/www\/owncloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php(85): OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OC\\Settings\\Controller\\SettingsPageController), ‘getPersonal’)\n#6 \/var\/www\/owncloud\/lib\/private\/AppFramework\/App.php(100): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OC\\Settings\\Controller\\SettingsPageController), ‘getPersonal’)\n#7 \/var\/www\/owncloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php(47): OC\\AppFramework\\App::main(‘SettingsPageCon…’, ‘getPersonal’, Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\n#8 \/var\/www\/owncloud\/lib\/private\/Route\/Router.php(342): OC\\AppFramework\\Routing\\RouteActionHandler->__invoke(Array)\n#9 \/var\/www\/owncloud\/lib\/base.php(916): OC\\Route\\Router->match(’\/settings\/perso…’)\n#10 \/var\/www\/owncloud\/index.php(54): OC::handleRequest()\n#11 {main}",“File”:"\/var\/www\/owncloud\/apps\/user_ldap\/lib\/User_Proxy.php",“Line”:244}"}

Par contre pas de problèmes pour les administrateurs.

Merci d’avance pour votre aide !

Configuration du serveur

Version d’ownCloud: 10.5.0.10
Debian 10.7
Apache/2.4.38
mariadb-server-10.3
PHP7.3

** Liste des applications activées: **

  • activity: 2.6.0
  • comments: 0.3.0
  • configreport: 0.2.0
  • dav: 0.6.0
  • encryption: 1.4.0
  • federatedfilesharing: 0.5.0
  • federation: 0.1.0
  • files: 1.5.2
  • files_external: 0.7.1
  • files_mediaviewer: 1.0.3
  • files_pdfviewer: 0.11.2
  • files_sharing: 0.13.0
  • files_texteditor: 2.3.0
  • files_trashbin: 0.9.1
  • files_versions: 1.3.0
  • guests: 0.9.0
  • impersonate: 0.5.0
  • market: 0.6.0
  • notifications: 0.5.2
  • provisioning_api: 0.5.0
  • systemtags: 0.3.0
  • theme-dynacite: 1.0.0
  • updatenotification: 0.2.1
  • user_ldap: 0.15.2

** Utilisez-vous le cryptage: ** oui

** Utilisez-vous un backend utilisateur externe, si oui lequel: OUI ActiveDirectory

As far as I can tell from the exception the user with the problem is an LDAP user.
Can you reproduce this issue with any LDAP user, or is it only with this specific user?

In the users page (accessible as admin) you can show the backend of the users, by clicking on the little gear in the bottom left.

As an admin you could install the impersonate app (if it isn’t installed already) and then use it to narrow down how to reproduce this issue.

EDIT: Impersonate doesn’t work with user encryption.

1 Like

Thank you for your reply.
I confirm that this concerns all LDAP users and only them.

Is this a new installation, or has it been upgraded from another version?

In other words, did it used to work and did it stop working with an upgrade, or is it a fresh installation and it never worked.

1 Like

This is an upgrade from a previous version.
I have already had several updates from Owncloud.
It worked a while ago but the previous version of Onwcloud had the same flaw.
I thought a new update would correct the defect. I also upgraded from debian 9 to 10 …

Did you by any chance upgrade the PHP version?
Are you sure you have all the required PHP packages and modules installed?
It seems quite odd, that loading a settings page for an LDAP user is throwing an exception.

1 Like

Yes there was an upgrade of PHP, I went from version 5.2 to version 7.1 and then recently to version 7.3.
Here is the list of installed modules:
[PHP Modules]
apc
apcu
calendar
Core
ctype
curl
dated
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
igbinary
imagick
intl
json
ldap
libsmbclient
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
repeat
Reflection
session
shmop
SimpleXML
smbclient
sockets
sodium
SPL
ssh2
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

The problem has been resolved for some time following successive updates of the OS and Owncloud

1 Like