Hello! Sorry if this is a duplicate or known issue - I couldn't find anything in search matching the stack trace, though.
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Steps to reproduce
- Attempt to set a password for an existing user via CLI, or web UI
Expected behaviour
User's password should be changed
Actual behaviour
A 500 is thrown, or from the console:
www-data@79bee1554090:~/html$ ./occ user:resetpassword <redacted>
Enter a new password:
Confirm the new password:
An unhandled exception has been thrown:
Error: Call to undefined method OCP\User\Events\PasswordUpdatedEvent::getLoginName() in /var/www/html/apps/files_external/lib/Listener/StorePasswordListener.php:61
Stack trace:
#0 /var/www/html/lib/private/EventDispatcher/ServiceEventListener.php(76): OCA\Files_External\Listener\StorePasswordListener->handle(Object(OCP\User\Events\PasswordUpdatedEvent))
#1 /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php(251): OC\EventDispatcher\ServiceEventListener->__invoke(Object(OCP\User\Events\PasswordUpdatedEvent), 'OCP\\User\\Events...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#2 /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php(73): Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'OCP\\User\\Events...', Object(OCP\User\Events\PasswordUpdatedEvent))
#3 /var/www/html/lib/private/EventDispatcher/EventDispatcher.php(86): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object(OCP\User\Events\PasswordUpdatedEvent), 'OCP\\User\\Events...')
#4 /var/www/html/lib/private/EventDispatcher/EventDispatcher.php(98): OC\EventDispatcher\EventDispatcher->dispatch('OCP\\User\\Events...', Object(OCP\User\Events\PasswordUpdatedEvent))
#5 /var/www/html/lib/private/Server.php(566): OC\EventDispatcher\EventDispatcher->dispatchTyped(Object(OCP\User\Events\PasswordUpdatedEvent))
#6 [internal function]: OC\Server->OC\{closure}(Object(OC\User\User), '<redacted>', NULL)
#7 /var/www/html/lib/private/Hooks/EmitterTrait.php(107): call_user_func_array(Object(Closure), Array)
#8 /var/www/html/lib/private/Hooks/PublicEmitter.php(41): OC\Hooks\BasicEmitter->emit('\\OC\\User', 'postSetPassword', Array)
#9 /var/www/html/lib/private/User/User.php(302): OC\Hooks\PublicEmitter->emit('\\OC\\User', 'postSetPassword', Array)
#10 /var/www/html/core/Command/User/ResetPassword.php(124): OC\User\User->setPassword('<redacted>')
#11 /var/www/html/3rdparty/symfony/console/Command/Command.php(255): OC\Core\Command\User\ResetPassword->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/html/3rdparty/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /var/www/html/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\User\ResetPassword), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /var/www/html/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /var/www/html/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /var/www/html/console.php(100): OC\Console\Application->run()
#17 /var/www/html/occ(11): require_once('/var/www/html/c...')
Server configuration
Nextcloud version: (see Nextcloud admin page)
21.0.0
Updated from an older Nextcloud/ownCloud or fresh install:
Yes, updated from 20.0.7 just now trying to resolve this - bug is also present in 20.0.7
Where did you install Nextcloud from:
Docker hub, official nextcloud:latest image
Apologies for truncating the rest of the issue template here, I don't think the other requested information necessarily pertains as this happens from the CLI? Let me know if you need any additional information and I'll gather it!
Hello! Sorry if this is a duplicate or known issue - I couldn't find anything in search matching the stack trace, though.
How to use GitHub
Steps to reproduce
Expected behaviour
User's password should be changed
Actual behaviour
A 500 is thrown, or from the console:
Server configuration
Nextcloud version: (see Nextcloud admin page)
21.0.0
Updated from an older Nextcloud/ownCloud or fresh install:
Yes, updated from 20.0.7 just now trying to resolve this - bug is also present in 20.0.7
Where did you install Nextcloud from:
Docker hub, official
nextcloud:latestimageApologies for truncating the rest of the issue template here, I don't think the other requested information necessarily pertains as this happens from the CLI? Let me know if you need any additional information and I'll gather it!