NC12: occ maintenance:singleuser no more available?

Feature or bug?

# sudo -u www-data /var/www/nextcloud/occ maintenance:singleuser --on

                                                                  
  [Symfony\Component\Console\Exception\CommandNotFoundException]  
  Command "maintenance:singleuser" is not defined.                
  Did you mean one of these?                                      
      maintenance:data-fingerprint                                
      maintenance:mimetype:update-db                              
      maintenance:mimetype:update-js                              
      maintenance:mode                                            
      maintenance:update:htaccess                                 
      maintenance:repair
1 Like
  • Added ‘singleuser’ => true,’ to config.php
  • Restart of apache

Does not work. User without admin rights can login …

Problem

  • Have a completely missconfigured NC 12.0.0 with about 20 users.
  • Installed now a fresh VM from techand.me
  • Don’t want to migrate the waste in the old database
  • Calendar and Address book had bugs in the DB. This I want to create new from attached clients (i.e. Android Davdroid, Thunderbird)
  • Calendar and Address book are only used by me, not by the users (I hope). So for me I would get it working I think.

What I want:

  • Creating all users with their passwords and e-mail-addresses
  • Restore their data - they may not have synchronization problems
  • Restore users group memberships

For that I just exported these data with phpMySqladmin:

oc_accounts.sql
oc_groups.sql
oc_users.sql
oc_weather_city.sql

Any table else usable for my migration? Remember: I have shit in the DB which I want to leave behind me … :wink:

Created a new topic for above problems: NC restore without complete database

But this one “maintenance:singleuser” ist still open!

@MorrisJobke wrote four (!) months ago:

it seems that this feature is not used at all so I removed it.

https://github.com/nextcloud/server/commit/9533f4e5edfded577b67d08f7778a8a1704132f2#diff-2f769bc01ffefdf14eb04404218e7582

Thanks for clarification @anon99252149!

But how can I now start the NC without maintenance mode and only login for an Admin?

  • Deactivating all users via occ while in maintenance mode?
1 Like