Migration - The master key does not match the encryption used in the database

shawn's Avatar

shawn

15 Feb, 2017 11:09 PM

I create an isolated deployment server instance using a database restore of the non-isolated server. I have done a couple migrations and they worked fine. Migrations recently started failing with "The master key does not match the encryption used in the database" I did not change the master key, and when i look at the master key in the manager, they match. I am hesitant to do another database restore as i do not want to have to do this on a regular basis.

also, when a migration did complete... the release state was inconsistent. I pushed a release to non-isolated, verified it went to an environment, did migration, at the destination the release had not completed in that phase so i was unable to promote.

Thanks,
Shawn

  1. Support Staff 1 Posted by Michael Richard... on 17 Feb, 2017 02:02 AM

    Michael Richardson's Avatar

    Hi Shawn,

    I believe that error message may be inaccurate in this case.

    The migrator doesn't actually use the master-key. What it does use is the password supplied during Import\Export. Is it possible you are supplying the incorrect password when importing?

    Regarding your second issue (inconsistent release state), can I ask how you are importing\exporting? i.e. are you running it via the Octopus Manager UI, or via the command line? If via the command line, could you please supply the commands you are executing?

    Regards,
    Michael

  2. 2 Posted by shawn on 17 Feb, 2017 03:59 PM

    shawn's Avatar

    I was able to get a functioning import/export yesterday. I was using command line and i scrapped it and built another one from the gui. I have tested my import/export scripts a few times now and they appear to be working correctly. I think it might not have been the command. I did not actually look through the data when it was broken, but I was zipping the export on one end and unzipping on the other and i think it was flattening the folder structure. I must not have made that mistake in my complete rewrite. The master key thing just threw me off for a while.

    Thanks!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

25 Apr, 2017 04:28 PM
25 Apr, 2017 04:08 PM
25 Apr, 2017 04:04 PM
25 Apr, 2017 03:43 PM
25 Apr, 2017 03:39 PM

 

25 Apr, 2017 03:31 PM
25 Apr, 2017 03:28 PM
25 Apr, 2017 03:11 PM
25 Apr, 2017 02:54 PM
25 Apr, 2017 02:27 PM
25 Apr, 2017 01:17 PM