Error during importing data to a fresh Octopus Server

Cool.
I’m exporting the data now.
This are the steps I’m going to follow to import the data:

  •      Copy whole folder from Source folder to New Octopus Server
    
  •      Remove everything inside of Events folder, but still keep this folder
    
  •      Do Import again.
    

Does this look OK?

Thanks
River

Hi River,

It sounds fine and should run as I expect. I think you should be able to check the channels folder and see if that rogue project is there or not to have an idea how messy it is. If this doesn’t work I will get you to schedule a screenshare and we will go through it together to try and get to the bottom.

Vanessa

Hi Vanessa,

This time still didn’t go well.

I’ve attached the error log & Channel + Project folder.
Can you please help me with this one?

Thanks
River

OctopusMigrator.2016-05-10_13_29_11.0798.zip (1 MB)

Projects.zip (1 MB)

Hi Vanessa,

Is there any update for this?

Thanks
River

From: River Yang (ITaaS)
Sent: Tuesday, 10 May 2016 2:55 PM
To: ‘Vanessa Love’ tender2+d5beecc63a@tenderapp.com
Subject: RE: Error during importing data to a fresh Octopus Server [Problems #45782]

Hi Vanessa,

This time still didn’t go well.

I’ve attached the error log & Channel + Project folder.
Can you please help me with this one?

Thanks
River

Hi River,

I think I have finally gotten to the bottom of this. Your channel for a project has some package steps defined, that no longer exist in the project itself.
The project is Obsolete - CaaS R1.0 - Integration and the channel is Stable

It lists the following steps:

        "Install Aperture R2.0 Powershell module",
        "Deploy core platform event-sources",
        "Deploy platform messaging event-sources",
        "Deploy Identity event-sources",
        "Deploy DMS event-sources",
        "Deploy Provisioning event-sources",
        "Deploy other Platform event-sources",
        "Deploy portal event-sources",
        "Deploy Identity Connector event-sources",
        "Deploy Synchronization event-sources",
        "Deploy Periodic Processor event-sources",
        "Deploy the Identity Web API",
        "Deploy the DMS Web API",
        "Deploy system provisioning provider service",
        "Deploy security templates",
        "Deploy provisioning controller service",
        "Deploy DMS provisioning connector service",
        "Deploy the Cloud STS",
        "Deploy Portal WebSite",
        "Deploy Client Management Plugin",
        "Deploy System API Web Site",
        "Deploy the Synchronization Web API",
        "Deploy the Synchronization Worker Service",
        "Deploy the PeriodicProcessor Service",
        "Deploy the Synchronization Processor"

Some of which I cannot find in your project. Are you able to go into that channel and delete the steps that don’t match and try the export / import again?

Vanessa

Hi Vanessa,

Thanks for your reply.
I’ve deleted that project, and run export & import again…
Looks similar issue again…
Another project needs to be deleted?

Thanks
River

Projects.zip (1 MB)

OctopusMigrator.2016-05-13_14_12_27.0108.zip (1 MB)

Hi River,

That error is the exact same error as previously. Where did you delete the project from, the UI or just a folder from the export? Because the latter won’t work.
Deleting one project folder in the export is not enough - because the channels folder also needs to be deleted, plus other dependencies. If you did delete it from your Octopus instance then you need to export to a new folder or delete the old export and do another. The export doesn’t delete older export folders for missing data. It needs to be done in a fresh location each time.

You also have a much better chance of correcting your data or finding these errors than I do as you have access to the API and maybe access to doing some queries based off IDs to find which project is having an issue.

Vanessa

Hi Vanessa,

That’s exactly what I did:

  •      Delete the project from Octopus web portal
    
  •      Remove previous export folder
    
  •      Export to another folder with different name
    
  •      Import to another instance with the folder specified above.
    

Can you please provide the API and an example how to get the correct (missing) project I should delete from the source region?

Thanks
River