Exception "Call to a member function inGroup() on null" after upgrade NC from 17 to 18

Hello,

I performed the upgrade of my NC 17 to 18 as Zimbra Drive is now compatible with NC 18.
My zimbra drive version in NC 17 is 0.8.25 ; so it is the latest and is comptible with NC 18.

After upgrade, I cannot anymore log in NC 18 with my Zimbra (LDAP) credentials…

Here is the log I get (from admin)
Call to a member function inGroup() on null

/usr/share/nginx/nextcloud/lib/private/AppFramework/App.php - line 125:

OC\AppFramework\Http\Dispatcher->dispatch(OC\Core\Cont … {}, “tryLogin”)

/usr/share/nginx/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:

OC\AppFramework\App::main(“OC\Core\C … r”, “tryLogin”, OC\AppFramew … {}, { _route: "c … "})

<>

OC\AppFramework\Routing\RouteActionHandler->__invoke({ _route: "c … "})

/usr/share/nginx/nextcloud/lib/private/Route/Router.php - line 299:

call_user_func(OC\AppFramew … {}, { _route: "c … "})

/usr/share/nginx/nextcloud/lib/base.php - line 1012:

OC\Route\Router->match("/login")

/usr/share/nginx/nextcloud/index.php - line 38:

OC::handleRequest()

Causé parError: Call to a member function inGroup() on null

/usr/share/nginx/nextcloud/apps/zimbradrive/lib/auth/abstractzimbrausersbackend.php - line 131:

OCA\ZimbraDrive\Auth\AbstractZimbraUsersBackend->insertUserInGroup(OC\User\User {}, false)

/usr/share/nginx/nextcloud/apps/zimbradrive/lib/auth/abstractzimbrausersbackend.php - line 119:

OCA\ZimbraDrive\Auth\AbstractZimbraUsersBackend->setDefaultGroups(OC\User\User {})

/usr/share/nginx/nextcloud/apps/zimbradrive/lib/auth/abstractzimbrausersbackend.php - line 103:

OCA\ZimbraDrive\Auth\AbstractZimbraUsersBackend->setDefaultUserAttributes(OCA\ZimbraDr … {})

/usr/share/nginx/nextcloud/apps/zimbradrive/lib/auth/zimbrausersbackend.php - line 61:

OCA\ZimbraDrive\Auth\AbstractZimbraUsersBackend->checkPassword("*** sensiti … *")

/usr/share/nginx/nextcloud/lib/private/User/Manager.php - line 225:

OCA\ZimbraDrive\Auth\ZimbraUsersBackend->checkPassword("*** sensiti … *")

/usr/share/nginx/nextcloud/lib/private/Authentication/Login/UidLoginCommand.php - line 49:

OC\User\Manager->checkPasswordNoLogging("*** sensiti … *")

/usr/share/nginx/nextcloud/lib/private/Authentication/Login/ALoginCommand.php - line 40:

OC\Authentication\Login\UidLoginCommand->process(OC\Authentic … {})

/usr/share/nginx/nextcloud/lib/private/Authentication/Login/UserDisabledCheckCommand.php - line 57:

OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully(OC\Authentic … {})

/usr/share/nginx/nextcloud/lib/private/Authentication/Login/ALoginCommand.php - line 40:

OC\Authentication\Login\UserDisabledCheckCommand->process(OC\Authentic … {})

/usr/share/nginx/nextcloud/lib/private/Authentication/Login/PreLoginHookCommand.php - line 53:

OC\Authentication\Login\ALoginCommand->processNextOrFinishSuccessfully(OC\Authentic … {})

/usr/share/nginx/nextcloud/lib/private/Authentication/Login/Chain.php - line 108:

OC\Authentication\Login\PreLoginHookCommand->process(OC\Authentic … {})

/usr/share/nginx/nextcloud/core/Controller/LoginController.php - line 300:

OC\Authentication\Login\Chain->process(OC\Authentic … {})

/usr/share/nginx/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 170:

OC\Core\Controller\LoginController->tryLogin("*** sensiti … *")

/usr/share/nginx/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 99:

OC\AppFramework\Http\Dispatcher->executeController(OC\Core\Cont … {}, “tryLogin”)

/usr/share/nginx/nextcloud/lib/private/AppFramework/App.php - line 125:

OC\AppFramework\Http\Dispatcher->dispatch(OC\Core\Cont … {}, “tryLogin”)

/usr/share/nginx/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:

OC\AppFramework\App::main(“OC\Core\C … r”, “tryLogin”, OC\AppFramew … {}, { _route: "c … "})

<>

OC\AppFramework\Routing\RouteActionHandler->__invoke({ _route: "c … "})

/usr/share/nginx/nextcloud/lib/private/Route/Router.php - line 299:

call_user_func(OC\AppFramew … {}, { _route: "c … "})

/usr/share/nginx/nextcloud/lib/base.php - line 1012:

OC\Route\Router->match("/login")

/usr/share/nginx/nextcloud/index.php - line 38:

OC::handleRequest()

May you help to save this issue ?
I starting a restore of my NC 17 with veeam backup ; so I will be able to restart the upgrade process (maybe from a vm clone this time).

Best Regards,
Ed

There is no need to post the same issue several times in this forum, because it only wastes the limited resources of the volunteers who try to answer your questions.

It seems that you waited to upgrade your installation until the Zimbra Drive app support for NC 18 has been added, but I have the impression that you haven’t checked for any know issues of the app in advance :wink: I cannot tell you if the problem has been solved in the app itself, but at least a work around has been posted here:

Hello,
I restored my NC server in version 17 (with veeam).
Before to restart the upgrade, I would like to be sure about the solution

“I get the same error and a quick fix is to set an e-mail manually to the user.”
Does it mean to send email to users from the nextcloud admin interface ?

Best Regards

I would assume that you need to set an email address in the users profile.