Error exporting users

Hi, I´m trying to export few users from my owncloud instance to be imported in a new one.

When doing (to export admin user):

sudo -u apache ./occ instane:export:user “admin” /data2/admin

 An unhandled exception has been thrown:
 
TypeError: Argument 1 passed to OCA\User_LDAP\Command\ShowConfig::__construct() must implement interface OCP\IConfig, instance of OCA\User_LDAP\Helper given, called in /var/www/owncloud/apps/user_ldap/appinfo/register_command.php on line 39 and defined in /var/www/owncloud/apps/user_ldap/lib/Command/ShowConfig.php:49
 
 Stack trace:
 
#0 /var/www/owncloud/apps/user_ldap/appinfo/register_command.php(39): OCA\User_LDAP\Command\ShowConfig->__construct()
#1 /var/www/owncloud/lib/private/Console/Application.php(118): require('/var/www/ownclo...')
#2 /var/www/owncloud/console.php(115): OC\Console\Application->loadCommands()
#3 /var/www/owncloud/occ(11): require_once('/var/www/ownclo...')

Admin user is not an LDAP one, but LDAP Integration App is installed. Trying with an LDAP user, same error raises.

Any idea?

you have a typo in your command:

sudo -u apache ./occ instane:export:user “admin” /data2/admin

the c in instance is missing.

Does the same error occurs when you type it right?

sudo -u apache ./occ instance:export:user “admin” /data2/admin

2 Likes

I´m sorry! Thank you.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.