Deployment Problem

I am trying to deploy to a new version from the console following the steps below

  1. Create a new version, clean with no data no tables created.
  2. Select deploy from the version I want
  3. Select all the features from the options on the deploy “from version” “to version” screen
  4. Click deploy

The e-mail I get contains errors, and no data or users are transferred to the new version. The errors I get are the following

Data tables schema: Operation completed with an error. The error code is: version_deployment:6FFCE256-CFF7-EE18-FF64-DA00A143D700Data objects: Deployment has failed due to conflicts between the source and target versions. No table schemas have been deployed. See the error code for the Data Schema deployment section.

Role schema permissions: Operation completed with an error. The error code is: version_deployment:717FACC4-4FBF-3222-FF4E-FEBCB0453C00User Table permissions: Operation completed with an error. The error code is: version_deployment:7C9ACFC8-0F3F-86E3-FFC6-DC8176D75A00

Please let me know how I can resolve this issue.

Regards,

George

Hello, George!
Provide your application id please.

Thank you!
Alex

Hi Alex, my application id is 810E1BD2-99CC-1065-FF51-9DEFFFC14500

Thank you.

George

Hi Alex,

Let me know if this issue is resolved, since I am waiting to deploy a new version for a live project.
Thank you in advance.

Regards,

George Ginis

Hi, George!

I’ve opened an internal ticket for your issue. Its ID is BKNDLSS-13249. We shall notify you about progress.
best regards,
Alex

George,

As a workaround, could you try running export/import for a version of your app and create a new app from it?

Regards,
Mark

Hi Mark,

I will try to do so, my only concern is the permissions I have set on each table and roles of the app. Would I have to re-insert them by hand?

Regards,

George

Yes, you would need to replicate them between the apps manually.

Regards,
Mark

I just tried creating a new version and importing all data from the old version. I did not apply any security rules just for testing. When I try to load picture for the user profile (I include my user token as a header) I get this error:

Internal server error with id 0C0FDE9E-06F6-7C8B-FFD0-0EAF4932C000

Please let me know how to solve this issue.

Regards,

George

Hi Mark and Alex,

Any update on the internal server issue or the deployment issue?
Thank you in advance.

Regards,

George

Hi George,
Please send us data export on support@backendless.com with tag BKNDLSS-13249.
Do you mean upload or download profile image?
Could you share with us code you load images?
Artur

Hi Artur,

I will send you my export in just a little bit as you suggested.

Meanwhile,
Yes my explanation about the images was not very clear, but you are right, that is what I meant.
The code I am executing (which is working fine in the original version is the following)

request.setValue(userToken, forHTTPHeaderField: “user-token”)

    guard session != nil else{

        return

    }

    

    let task = session!.dataTaskWithRequest(request) { (data:NSData?, res:NSURLResponse?,error:NSError?) in

        //let image = UIImage(data: data!)

        dispatch_async(dispatch_get_main_queue(), {

            completion(data,res,error)

        })

        

        

    }

    task.resume()

I just sent the e-mail with the export as instructed.

Regards,

George

Hi Georeg,
Please be more specific, do you upload or download files? What SDK method do you use?
Artur

Hi Arthur,

I am trying to download imags, with the code posted above, I will include it here as well.

let nsUrl = NSURL(string:url)

    let request = NSMutableURLRequest(URL:nsUrl!)

    

    request.setValue(userToken, forHTTPHeaderField: "user-token")

    guard session != nil else{

        return

    }

    

    let task = session!.dataTaskWithRequest(request) { (data:NSData?, res:NSURLResponse?,error:NSError?) in

        //let image = UIImage(data: data!)

        dispatch_async(dispatch_get_main_queue(), {

            completion(data,res,error)

        })

        

        

    }

    task.resume()

Hi George,
Are you sure the file you download exists?
Data export does not export files. To migrate files between applications you need to zip you files on old app and unzip this archive to new app.
Best, Artur.

Hi Arthur,

When I select the new version I made, and I click on the files structure I can see the pictures in the folder. I do not think that for each version you make, you get a new “files storage”, the files seem to be shared across versions.

P.S I am not migrating between applications, but between versions.

Regards,

George

Did you try to migrate to another app as described at http://support.backendless.com/t/deployment-problem#comment-22915

No I have not tried out that solution yet. I was leaving this as my last resort.

George,

Version deployment is prone to errors you’re experiencing. I would strongly recommend going with the “version-to-new-app” model.

Regards,
Mark