Get internal server error when a user first logs in

I found out that newuser/files/Photos/Nextcloud Community.jpg has a size of zero bytes and it seems therefore he gets an internal server error when he first tries to log in. The second try then succseeds.

OCP\Lock\LockedException: “Photos/Nextcloud Community.jpg” is locked

/var/www/root/ncloud/lib/private/Files/View.php - line 2050:

OC\Files\View->lockPath("/florian/fi ... g", 1, false)

/var/www/root/ncloud/lib/private/Files/View.php - line 1140:

OC\Files\View->lockFile("/florian/fi ... g", 1)

/var/www/root/ncloud/lib/private/Files/View.php - line 595:

OC\Files\View->basicOperation("file_get_contents", "/florian/fi ... g", [ "read"])

/var/www/root/ncloud/lib/private/Files/Node/File.php - line 52:

OC\Files\View->file_get_contents("/florian/fi ... g")

/var/www/root/ncloud/apps/maps/lib/Service/PhotofilesService.php - line 447:

OC\Files\Node\File->getContent()

/var/www/root/ncloud/apps/maps/lib/Service/PhotofilesService.php - line 391:

OCA\Maps\Service\PhotofilesService->getExifPelBackup("*** sensiti ... *")

/var/www/root/ncloud/apps/maps/lib/Service/PhotofilesService.php - line 278:

OCA\Maps\Service\PhotofilesService->getExif("*** sensiti ... *")

/var/www/root/ncloud/apps/maps/lib/Service/PhotofilesService.php - line 83:

OCA\Maps\Service\PhotofilesService->safeAddPhoto("*** sensiti ... *", "*** sensiti ... *")

/var/www/root/ncloud/apps/maps/lib/Hooks/FileHooks.php - line 49:

OCA\Maps\Service\PhotofilesService->safeAddByFile("*** sensiti ... *")

and so on.

Andreas

I’m seeing this as well, but for Photos/Nut.jpg. The file had been copied, but was zero length in size.

This is for an LDAP-backed user, are you also using LDAP?