Author Topic: (Solved)migrating users from 2.2 to 3.0 errors  (Read 2300 times)

kenamb

  • Zen Apprentice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
(Solved)migrating users from 2.2 to 3.0 errors
« on: January 30, 2013, 12:16:14 pm »
Keep getting this error every time i run  the sudo perl dump-users-from-backup > users.csv


Can't locate EBox/Util/Random.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at dump-users-from-backup.1 line 27, <DATA> line 134.
BEGIN failed--compilation aborted at dump-users-from-backup.1 line 27, <DATA> line 134.
« Last Edit: February 08, 2013, 05:22:34 pm by kenamb »

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 867
  • Karma: +59/-0
    • View Profile
Re: migrating users from 2.2 to 3.0 errors
« Reply #1 on: January 30, 2013, 10:28:36 pm »
Two things, 
1) linux uses white spaces to decide how to parse a command .  There is a space between each part  ie
Code: [Select]
sudu perl dump-users-from-backup my_backup_file  > users.csv2) You didn't include the "my_backup_file" in your command so I just want to make sure that you know to include it.  This is the file that you generate from the Zentyal web interface.


kenamb

  • Zen Apprentice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: migrating users from 2.2 to 3.0 errors
« Reply #2 on: January 31, 2013, 09:34:37 am »
that's what i have being doing and still same problem.

sudo perl dump-users-from-backup SERV-KENYA_2013-01-29-125943.tar > users.csv
[sudo] password for administrateur:
Can't locate EBox/Util/Random.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at dump-users-from-backup line 27, <DATA> line 134.
BEGIN failed--compilation aborted at dump-users-from-backup line 27, <DATA> line 134.

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 867
  • Karma: +59/-0
    • View Profile
Re: migrating users from 2.2 to 3.0 errors
« Reply #3 on: February 01, 2013, 05:27:58 am »
Are you doing this process on the 3.0 machine, or the 2.2 machine?

kenamb

  • Zen Apprentice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: migrating users from 2.2 to 3.0 errors
« Reply #4 on: February 01, 2013, 09:12:40 am »
on the 2.2.

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 867
  • Karma: +59/-0
    • View Profile
Re: migrating users from 2.2 to 3.0 errors
« Reply #5 on: February 01, 2013, 02:09:43 pm »
go to 3.0.  That is where I ran mine.

kenamb

  • Zen Apprentice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: migrating users from 2.2 to 3.0 errors
« Reply #6 on: February 01, 2013, 04:12:43 pm »
it worked thanks!!!!! i was getting ready to start adding the users manually...

kenamb

  • Zen Apprentice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: migrating users from 2.2 to 3.0 errors
« Reply #7 on: February 01, 2013, 05:20:23 pm »
spoke too soon. now the restore = Line of unknown type: Usage:
Line of unknown type:   dump-users-from-backup BACKUP_FILE [OUTPUT_FILE]

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 867
  • Karma: +59/-0
    • View Profile
Re: migrating users from 2.2 to 3.0 errors
« Reply #8 on: February 01, 2013, 09:59:05 pm »
Re run it without the >users.csv  and see if it dumps a list of users on the command line.  If it doesn't,  remove the ">" from the command and try again.

expertgeeks

  • Forum Moderator
  • Zen Warrior
  • *****
  • Posts: 124
  • Karma: +11/-0
    • View Profile
Re: (Solved)migrating users from 2.2 to 3.0 errors
« Reply #9 on: March 21, 2014, 01:03:23 pm »
Apologies for necroposting.. but does anyone have the import scripts to migrate 2.2 > 3.0 ?

This post https://forum.zentyal.org/index.php?topic=13862.0 and others refer to
http://trac.zentyal.org/wiki/Documentation/Community/Migrate_2.2_to_3.0 but the wiki that replaces it just returns to the main page https://wiki.zentyal.org/wiki/Zentyal_Wiki...

I managed to find the instructions in the archive.org archives http://web.archive.org/web/20121231065511/http://trac.zentyal.org/wiki/Documentation/Community/Migrate_2.2_to_3.0? but all the githubs links fail. Can someone please repost the scripts to pastebin or similar ?

Thanks !


expertgeeks

  • Forum Moderator
  • Zen Warrior
  • *****
  • Posts: 124
  • Karma: +11/-0
    • View Profile
Re: (Solved)migrating users from 2.2 to 3.0 errors
« Reply #11 on: March 27, 2014, 04:31:44 pm »
That's great ! Thanks very much :D