The pfSense Store

Author Topic: How to Migrate 1.2.3 CP users to 2.01 ?  (Read 3108 times)

0 Members and 1 Guest are viewing this topic.

Offline thafener

  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
How to Migrate 1.2.3 CP users to 2.01 ?
« on: June 20, 2012, 07:02:07 am »
Hi @ll

Is there a smooth way to migrate the users of my old 1.2.3 system to the new 2.01 box ?
Backed up CP info on the 1.2.3 side and to import it on 2.01 which worked for the CP
config but not for the users database.
I'd be glad if there was a way, entering 500 accounts by hand would be painful  :o

Thanks in advance

thafener

Offline cmb

  • Administrator
  • Hero Member
  • *****
  • Posts: 6333
  • Karma: +0/-0
    • LinkedIn
    • Twitter
    • View Profile
    • Chris Buechler
Re: How to Migrate 1.2.3 CP users to 2.01 ?
« Reply #1 on: June 20, 2012, 08:42:30 am »
The only way items in the config get converted to the new format (such as CP users) is if the full 1.2.3 config is restored on 2.0.1. Could just restore it to a VM and pull the user manager part out of the backup afterwards and manually merge it if you don't want to restore the full config.

Offline thafener

  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
Re: How to Migrate 1.2.3 CP users to 2.01 ?
« Reply #2 on: June 20, 2012, 08:49:38 am »
Ok this could of course do the trick. I will try the VM workround...however once I have tried to upgrade my box
to 2.01 but the CP users could not login after...
We'll see if it works..

Offline thafener

  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
Re: How to Migrate 1.2.3 CP users to 2.01 ?
« Reply #3 on: July 03, 2012, 03:09:05 am »
Hi @ll

Installed 1.2.3 in a VM, restored my old system there and updated it to 2.01 after which went fine.
Now however I cannot find a way to backup the user section in order to restore it to my new
system.
Would a manual adaption of the backup file do the trick ?

Thanks thafener

Offline Nachtfalke

  • Hero Member
  • *****
  • Posts: 2753
  • Karma: +0/-0
    • View Profile
Re: How to Migrate 1.2.3 CP users to 2.01 ?
« Reply #4 on: July 03, 2012, 04:40:05 am »
Perhaps try to create one user on pfsense 2.01, backup this config and take a look where the users must be placed and if syntax changed.
And then you can just add all your users in the new file - restore this config - pfsense will reboot and then it should work.

I know that it is working - I used it when I had a package installed - deleted this package and wanted all the config entries be deleted, too.
But don't break the config (syntax) or you will get problems ;)

Offline thafener

  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
Re: How to Migrate 1.2.3 CP users to 2.01 ?
« Reply #5 on: July 10, 2012, 04:56:00 am »
Thank you Nachtfalke but all my attempts have failed so far, problem is that format between 1.2.3 and 2.01 is completely different...it is
going to be painful to migrate some 400 accounts...

Offline ZAC

  • Sr. Member
  • ****
  • Posts: 391
  • Karma: +0/-0
    • View Profile
Re: How to Migrate 1.2.3 CP users to 2.01 ?
« Reply #6 on: July 23, 2012, 09:49:31 pm »
Thank you Nachtfalke but all my attempts have failed so far, problem is that format between 1.2.3 and 2.01 is completely different...it is
going to be painful to migrate some 400 accounts...

Sorry for my English, I'm using the google translator.

How can do that even if it painful?

But I need to migrate about 200 users, and in the Spanish forum nobody knows, if you told me like, I would greatly appreciate.

Offline cmb

  • Administrator
  • Hero Member
  • *****
  • Posts: 6333
  • Karma: +0/-0
    • LinkedIn
    • Twitter
    • View Profile
    • Chris Buechler
Re: How to Migrate 1.2.3 CP users to 2.01 ?
« Reply #7 on: August 07, 2012, 04:37:52 pm »
You'll have to restore the full 1.2.3 config onto 2.0.1 for it to be converted. If you already have a 2.0.1 system in place and only want to add the users, restore the entire 1.2.3 config into a 2.0.1 VM, back up the resulting config, and merge the user portion into the other config.

Offline ZAC

  • Sr. Member
  • ****
  • Posts: 391
  • Karma: +0/-0
    • View Profile
Re: How to Migrate 1.2.3 CP users to 2.01 ?
« Reply #8 on: August 13, 2012, 06:59:10 pm »
You'll have to restore the full 1.2.3 config onto 2.0.1 for it to be converted. If you already have a 2.0.1 system in place and only want to add the users, restore the entire 1.2.3 config into a 2.0.1 VM, back up the resulting config, and merge the user portion into the other config.


Look, display me this, I get it wrong?

Offline ZAC

  • Sr. Member
  • ****
  • Posts: 391
  • Karma: +0/-0
    • View Profile
Re: How to Migrate 1.2.3 CP users to 2.01 ?
« Reply #9 on: August 14, 2012, 05:26:14 pm »
I've tried updating from 1.2.3 to 2.0.1 directly, and I got an error message. Video the error: http://www.youtube.com/watch?v=OwQU2moCmHE

I've also tried restoring the full configuration from 1.2.3 into 2.0.1 and I also got an error message. See screenshots above.

Both things I've tried on both a physical and on a virtual machine, and in both cases I get an error message.

What am I getting wrong?
« Last Edit: August 14, 2012, 05:28:16 pm by ZAC »

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 14990
  • Karma: +4/-0
    • View Profile
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline ZAC

  • Sr. Member
  • ****
  • Posts: 391
  • Karma: +0/-0
    • View Profile
Re: How to Migrate 1.2.3 CP users to 2.01 ?
« Reply #11 on: August 22, 2012, 12:54:21 am »
It worked! It's funny! All of this trouble just because of a single ''.

Thank you!! thank you very much , seriosly!!!



It's upgraded now, but I can't enter webconfiguration. Why?, it doesn't even respond to ping, even though the IP address for LAN is assigned perfectly, and it connects the WAN perfectly, too