Migrate OC to new server

ldap
hosting

#1

Hi there,

i moved Ubuntu OC 9 to ---> CentOS OC 10

All worked fine, i used the migration documentation and i'd copied user data, database and so on, after upgrading new user worked fine.

even on occ scanfiles -all old users from ldap and non-ldap are not shown.

on mysql tables the users are there,
so what final step i forgot to read user config from mysql so users are available in OC?

Thank you!


#2

Hi,

Have you tried the user:sync occ command yet?


#3

sudo -u apache ./occ user:sync "OCA\User_LDAP\User_Proxy"
worked for me, thank you.

now i have another problem. additionally to ldap users i have "local" users in the database
but only admin is still existing, otheres are not mentioned.

thank you.


#4

yeah, you can set a flag "-l" and then choose the backend


#5

sudo -u apache ./occ user:sync "OCA\User_LDAP\User_Proxy"
worked for me, thank you.

now i have another problem. additionally to ldap users i have "local" users in the database
but only admin is still existing, otheres are not mentioned.

thank you.


#6

have you tried syncing with the database?

$:/# cd /var/www/owncloud/
$:/var/www/owncloud# sudo -u www-data user:sync -l
sudo: user:sync: command not found
$:/var/www/owncloud# sudo -u www-data php occ user:sync -l
OC\User\Database
$:/var/www/owncloud# sudo -u www-data php occ user:sync "OC\User\Database"
If unknown users are found, what do you want to do with their accounts? (removing the account will also remove its data)
  [0] disable
  [1] remove
  [2] ask later
 > 1
Analyse unknown users ...
    1 [============================]

No unknown users have been detected.
Insert new and update existing users ...
 1/1 [============================] 100%

$:/var/www/owncloud#

#7

looks good:

sudo -u www-data php occ user:sync "OC\User\Database"

thank you very much!


#8

No Problem, glad that it worked out for you