-
-
Notifications
You must be signed in to change notification settings - Fork 663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An unhandled exception deleting "ncadmin" #1684
Comments
@enoch85 I think this is an issue from the Deck app. vm/nextcloud-startup-script.sh Line 416 in c6ab30e
another idea would be deinstalling the deck app if it is installed before deleting the user... |
This is actually a big problem because the startup script fails because of this... @enoch85 what do you think about my ideas how to solve this? |
Precisely. For now I can try w/o Deck but it seems like a rather important issue. |
the deck issue seems to be already fixed nextcloud/deck#2569 but as long as there is no new deck release, we have to workaround since the startup script will fail if deck is installed |
There was a new deck release. https://github.com/nextcloud/deck/releases/tag/v1.2.1 |
Thanks for debugging @szaimen |
Steps to reproduce
ncadmin
Expected behaviour
The user should be created successfully and added to the admin group. No attempt to delete non-existent user
ncadmin
should be performedActual behaviour
Configuring Webmin...
Starting webmin...
The user "silverdr" was created successfully
User "silverdr" added to group "admin"
Deleting ncadmin...
An unhandled exception has been thrown:
Error: Call to undefined method OCA\Deck\Db\AssignmentMapper::findByUserId() in /var/www/nextcloud/apps/deck/lib/AppInfo/Application20.php:136
Stack trace:
#0 [internal function]: OCA\Deck\AppInfo\Application20::OCA\Deck\AppInfo{closure}()
#1 /var/www/nextcloud/lib/private/Hooks/EmitterTrait.php(101): call_user_func_array()
#2 /var/www/nextcloud/lib/private/Hooks/PublicEmitter.php(40): OC\Hooks\BasicEmitter->emit()
#3 /var/www/nextcloud/lib/private/User/User.php(266): OC\Hooks\PublicEmitter->emit()
#4 /var/www/nextcloud/core/Command/User/Delete.php(65): OC\User\User->delete()
#5 /var/www/nextcloud/apps/mail/vendor/symfony/console/Command/Command.php(258): OC\Core\Command\User\Delete->execute()
#6 /var/www/nextcloud/apps/mail/vendor/symfony/console/Application.php(920): Symfony\Component\Console\Command\Command->run()
#7 /var/www/nextcloud/apps/mail/vendor/symfony/console/Application.php(266): Symfony\Component\Console\Application->doRunCommand()
#8 /var/www/nextcloud/apps/mail/vendor/symfony/console/Application.php(142): Symfony\Component\Console\Application->doRun()
#9 /var/www/nextcloud/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->run()
#10 /var/www/nextcloud/console.php(100): OC\Console\Application->run()
#11 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
#12 {main}Sorry but something went wrong. Please report this issue to https://github.com/nextcloud/vm/issues and include the output of the error message. Thank you!
sudo -u www-data php /var/www/nextcloud/occ user:delete ncadmin failed
Server configuration
Nextcloud server version: (see your admin page)
20.x
Server OS (Ubuntu server is default)
Ubuntu 20.04.x
How did you install the VM? (Scripted install from master OR Released version)
Scripted install - don't know whether master or released version
Network
Do you use DHCP?
No
Is port 80 and/or 443 open?
Yes
Logs / Screenshots
Log file (/var/log/nextcloud/nextcloud.log)
Installation log (command output)
Screenshoots
The text was updated successfully, but these errors were encountered: