[BlueOnyx:23350] Re: Import users from a cmuExport

Thomas Petersen thomas at nsd.dk
Thu Oct 17 00:19:25 -05 2019


Just a question "Maximum Allowed Number of Users" under general site settings - is that "25"  ?

/Thomas


Fra: Blueonyx <blueonyx-bounces at mail.blueonyx.it> På vegne af Chuck Tetlow
Sendt: 15. oktober 2019 21:33
Til: BlueOnyx General Mailing List <blueonyx at mail.blueonyx.it>
Emne: [BlueOnyx:23339] Re: Import users from a cmuExport

Hi Michael,

Thanks for the thorough response and suggestions.  I went with the first one - and my first thought when it completed was "Well, that's weird!".

The cmuImport script first asked about conflicting webAliases, which I told all to Discard.  Then it said "Virtual site name http://www.xxxx.com conflicts with current state.  Merge(M), Change(C), Quit(Q), Drop(D):" - to which I chose M to merge.

It next asked about the 25 or so existing users that had conflicts, I choose to Drop each.  And then it took off with a string of "Creating user: xxx".  It claimed to create the 36 or so missing user accounts.  It was great to see that - I thought I was saved!  The script finished up with setting all the disk quotas - and was done. 

But when I look at the users in /home/sites/www.xxx.com/users - its still as it was before.  And the list of users in the GUI still only has the original 25 entries.

So I'm puzzled!  Very weird to have the cmuImport say that it was creating the missing users, but they're not there afterward. 

Anything occur to you on that?  If not, I'll try the second method with the cmu.xml file.  Since these sites on the original server were exported one at a time - I have a cmu.xml file for each site.  I'll just take out everything except the missing users, and try cmuImport again with that modified xml file.

Thanks again for the assist!



Chuck


---------- Original Message ----------- 
From: Michael Stauber <mailto:mstauber at blueonyx.it> 
To: mailto:blueonyx at mail.blueonyx.it 
Sent: Tue, 15 Oct 2019 13:53:15 -0500 
Subject: [BlueOnyx:23337] Re: Import users from a cmuExport 

> Hi Chuck, 
> 
> > When I ran the cmuImport against one of the sites - it only imported 26 
> > of the 62 user accounts.  I don't remember seeing errors when I ran the 
> > cmuImport - but can't swear it didn't throw some that I missed. 
> > 
> > Anyway, I now have 36 missing users on this site on the new server.  I 
> > still have the data from the old cmuExport - and can see the missing 
> > user files in that data.  But I don't know the command that will import 
> > those users with their data. 
> > 
> > Can anyone suggest a command to import /just /these users? 
> Sadly that's one of the glitches that CMU has gathered over the years. 
> I've spent days on trying to debug and fix it, but to little avail, sorry. 
> 
> You can try just to re-import that Vsite (while the Vsite is still 
> present) with this command: 
> 
> cmuImport -n "<name-of-vsite>" -i <new-ip> -d /export-directory/ 
> 
> If you instead use this it'll just import the settings, but no data from 
> the tarballs: 
> 
> cmuImport -n "<name-of-vsite>" -i <new-ip> -c -d /export-directory/ 
> 
> It will complain that the Vsite is already present and will ask you what 
> to do. You can let it continue. When it tries to import a user that 
> already exists, then it again will prompt you what to do. Choose 
> "discard" for each. 
> 
> If all goes well it should import all or at least some of the missing users. 
> 
> Another thing I did when I last had the issue: I made a backup copy of 
> the cmu.xml and edited the original to strip out all Vsites that I 
> didn't want to re-import and also removed all Users from it that already 
> had been imported fine. But that's a bit of work. 
> 
> If you still had the /usr/sausalito/codb/ directory from the old server, 
> then there is yet another way. I once wrote a script to rescue Vsite and 
> User settings from that. It then generated two Perl scripts that could 
> be used to recreate the Vsites and Users with their original settings. 
> 
> -- 
> With best regards 
> 
> Michael Stauber 
> _______________________________________________ 
> Blueonyx mailing list 
> mailto:Blueonyx at mail.blueonyx.it 
> http://mail.blueonyx.it/mailman/listinfo/blueonyx 
------- End of Original Message ------- 




More information about the Blueonyx mailing list