Skip to content

Migration DB Stuck #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
talkaboutdesign opened this issue Jan 29, 2016 · 41 comments
Closed

Migration DB Stuck #42

talkaboutdesign opened this issue Jan 29, 2016 · 41 comments
Labels
type:question Support or code-level question

Comments

@talkaboutdesign
Copy link

Was trying to migrate data to MongoLabs and pressed cancel during the process. Typed in wrong url.

Now I am stuck on this screen and can't retry the process.
screenshot 2016-01-29 12 35 08

@gfosco
Copy link
Contributor

gfosco commented Jan 29, 2016

cc @drew-gross

@jamesyu
Copy link

jamesyu commented Jan 29, 2016

yep this is a bug, we're working on it

@francocorreasosa
Copy link

+1

@jamiechapman
Copy link

+1, the UI allowed me to retry today — after about 20 minutes of migrationState=1 (with a 4 month secondsRemainingStr) the export eventually failed to state 7 and showed up as cancelled in the web UI.

We're using a mongolab M1 instance with failIndexKeyToLong set as suggested in the guide with SSL too. We have roughly have about 40 million objects stored on Parse, so I'm wondering if the process which 'snapshots' the data is somehow timing out and thus causing the migration to prematurely cancel itself?

screen shot 2016-01-30 at 14 23 01

![migra](https://cloud.githubusercontent.com/assets/688026/12696290/54ac2374-c75e-11e5-9b39-f9278ccf3b49.png)

screen shot 2016-01-30 at 14 36 09

@JcMinarro
Copy link

+1

@talkaboutdesign
Copy link
Author

FYI, mine is stuck on this screen for a day.

screenshot 2016-01-29 21 13 22

@JcMinarro
Copy link

It is broken. I have done a new proyect with only 2 installations and 2 users and it does not work.
I am on the smae screen @talkaboutdesign

@gfosco
Copy link
Contributor

gfosco commented Jan 30, 2016

Ok, sorry about this delay... Checking on the status of this tool internally.

@aaronrau
Copy link

Hi, I was trying to migrate data to MongoLabs as well but to their Shared Plan unfortunately it failed and is stuck.

Turns out that from their support team, the Shared Plan failedIndexKeyToLong is set to true.

Is it possible to get an error log from the migration tool to show that my migration is failing due to this setting? MongoLabs is willing to change that parameter.

@talkaboutdesign
Copy link
Author

Still same after 36 hours.

@hafizapp
Copy link

How can I re-initiate the migration process?

Now I am stuck on this page. Please help

screen shot 2016-01-31 at 12 06 02 pm

@jamesyu

@francocorreasosa
Copy link

@hafizapp Go to App Settings and start the migration again. It works fine.

@hafizapp
Copy link

hafizapp commented Feb 1, 2016

@francocorreasosa I am really sorry, still it showing this for me. And it don't allow me to start the migration process again.

Thanks
screen shot 2016-02-01 at 10 49 42 am

@gloos
Copy link

gloos commented Feb 1, 2016

same here, it just gets stuck

@hafizapp
Copy link

hafizapp commented Feb 1, 2016

@francocorreasosa Thank You.

Just noticed. Instead of going migration. You have to go -

App Settings -> Migrate

@RafaRuiz
Copy link

RafaRuiz commented Feb 1, 2016

I'm experiencing something different:

My database got migrated 100% with green ticks to say it was OK.
image

But now my app doesn't work. These are some logs, which are not taken anymore:
image

This morning I tried to load the old dashboard, but can't load the database. Now I see an error 500:
image

and if I see the collections:
image

This is when I load the new dashboard:
image

@tredman
Copy link

tredman commented Feb 1, 2016

@RafaRuiz - in your case there appears to be an authentication error. We are unable to connect to mongo using the credentials that you provided. Can you check the username/password you provided and your mongodb connection string? You can force-change your mongodb connection string under "App Settings" in the Parse dashboard.

@skinp skinp added the migration label Feb 1, 2016
@jamiechapman
Copy link

@tredman could you possible check why our db export is failing too? https://dashboard.parse.com/apps/minecraft-explorer-pro ([email protected]), I asked the nice folk over at mongolab to make sure all my settings are correct and everything seems fine. Is it a Parse bug or am I doing something wrong? Thanks!

@skinp
Copy link
Contributor

skinp commented Feb 1, 2016

@jamiechapman your particular issue seems to be a known bug with the migration (source replicaset not found). We're working on a fix for this.

@jamiechapman
Copy link

@skinp — thanks so much for the clarification, we've been a bit worried that it was something our end that was at fault. We'll wait for a fix in that case. Cheers.

@tredman
Copy link

tredman commented Feb 1, 2016

@jamiechapman - the fix is live, please try again at your convenience.

@jamiechapman
Copy link

Perfect, thanks @tredman — started the migration again and I can see collections being made into the database as we speak.

@jamiechapman
Copy link

@tredman — it started to go horribly wrong, each object had this error:-

"Skin": {
        "Name": "Skin",
        "State": 7,
        "StateReason": "EnsureEmpty issue: not authorized on skinstudio to execute command { count: \"Skin\", query: {} }",
        "BatchSize": 1000,
        "ExpectedDocumentsApprox": 1221975
      },

I've cancelled the migration and setup a new connection string using the root user instead, but the UI now says Migration already in progress. (even though it isn't?).

@tredman
Copy link

tredman commented Feb 1, 2016

@jamiechapman - the job automatically retried a number of times before it was finally stopped. At the moment, it doesn't appear to be in an in-progress state. Can you please try again? Note that if a previous migration failed, you will need to drop any documents on the destination before beginning a new migration, or it will return an error.

@jamiechapman
Copy link

Hmm, thats a bit weird @tredman.

  1. I've dropped all collections in the database using mongolab.
  2. The "Migrate" button is clickable in App Settings.
    migr_0
  3. I entered the connection string again (+ verified it works via another tool), but it says Migration already in progress.
    migr_1
  4. I checked the /migrations REST endpoint to see what the deal was and its in state 9, does that mean anything? It's weird how the migration still appears to be running but the Web UI is trying to let me start again.
    migr_2

@gloos
Copy link

gloos commented Feb 1, 2016

I confirm I was stuck and I've just tried migrating again but I get a Migration already in progress error.

edit: there are no collections on my server.

@tredman
Copy link

tredman commented Feb 2, 2016

We've identified a UI bug with certain job states. A fix is coming shortly.

@RafaRuiz
Copy link

RafaRuiz commented Feb 2, 2016

@tredman I can't modify the connection string under App Settings, there's no field to change it. I just can click on Migration and it shows the success of migration. What else can I do?

image

image

My apps are still down since almost 2 days ago, please guys I'd need a solution.

@RafaRuiz - in your case there appears to be an authentication error. We are unable to connect to mongo using the credentials that you provided. Can you check the username/password you provided and your mongodb connection string? You can force-change your mongodb connection string under "App Settings" in the Parse dashboard.

@gfosco
Copy link
Contributor

gfosco commented Feb 3, 2016

We discussed this here and basically in order to deal with migration issues, we need you to individually report a bug through parse.com/help. This allows each of you to get individual support, from a team who can escalate issues, and for us to be able to ask up front for specific information which will help us handle your issue. We're exposing the 'job id' for the migration in the UI, and that is something you should provide if you're having a problem.

Going to close this issue. For problems involving migration, or any issues not specific to parse-server, please visit https://parse.com/help and find the bug icon / "Something wrong?" section to start the bug reporting flow.

@gfosco gfosco closed this as completed Feb 3, 2016
@taijizhu
Copy link

taijizhu commented Mar 9, 2016

any updates on this?

@francocorreasosa
Copy link

@taijizhu This was resolved on Feb 3.

@IbrahimDisouki
Copy link

Also i have the same issue but the migration stuck on "Sync" and i can't finalize the migration.
screenshot from 2016-04-20 15-12-15

@hramos
Copy link
Contributor

hramos commented Apr 20, 2016

A migration job stuck in sync usually points to insufficient hardware or high latency between api.parse.com and your target database.

Please report any migration issues at https://parse.com/help. We'd like to keep the discussion here centered around Parse Server itself.

@zyg-github
Copy link

I have the same issue(in the sync state above 12 hours), and is there any log that we can know what's the real problem is?
image

@hramos
Copy link
Contributor

hramos commented Apr 21, 2016

@zyg-github see my answer above.

@zyg-github
Copy link

@hramos If the problem points to insufficient hardware or high latency between api.parse.com. But why can i get the sync speed so high. 416rows/s befor and 1.71krows/s now?
image

@hramos
Copy link
Contributor

hramos commented Apr 22, 2016

@zyg-github you inquired about a log with additional information. Contacting us via https://parse.com/help#report with your job id is the best way to get more details on what is wrong with a specific migration.

@zyg-github
Copy link

@hramos
image

@Treybro
Copy link

Treybro commented May 10, 2016

I'm currently in the process of migrating a live production mobile application from Parse to Azure using the Migration Tool provided by the good folk at Parse, however I'm getting stuck on the "Sync Phase".

I'm getting all green lines indicating a successful transfer of the data, however when the migration tool is checking for any new writes, it fails with the following error:

"There was a problem with the migration."

Parse documentation doesn't have any information on the above, so I would appreciate your help!

I'm running my Azure server and Document DB instances on the S3 (Standard: Large) with Auto scaling, and the Document DB implementation is on Pricing Tier S3 (THROUGHPUT (RU/s) 2500)

@hramos
Copy link
Contributor

hramos commented May 10, 2016

@Treybro see my last three posts in this issue - you'll want to use the Parse bug reporting tool.

@zyg-github
Copy link

@Treybro
I also encountered the same problem. You solve the problem yet?

@parse-community parse-community locked and limited conversation to collaborators Jun 24, 2016
@mtrezza mtrezza added type:question Support or code-level question and removed 🔧 troubleshooting labels Jul 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type:question Support or code-level question
Projects
None yet
Development

No branches or pull requests