Back

[Solved] Cannot initiate migration due to credential errors

  • 0
  • Self Hosted
DennisLBC
3 Jan, 2024, 20:01

Hey, I did an initial transfer from cloud to a self-host recently and although most of it worked, there was a failure on my buckets. So I am trying to repeat the process to get the rest of my buckets.

But before I can initiate the migration I keep getting this error: Request failed Please check if your credentials are filled in correctly in the previous step

I've copied the credentials several times without success. Endpoint: https://cloud.appwrite.io/v1 ProjectID: 65186600c6335ac63973 API Key: (I've tried generating a new one, and using the old one that I had used prior successfully).

It just fails everytime. Am I missing something obvious here?

TL;DR
User is having trouble initiating a migration due to credential errors. They have checked and confirmed that the credentials are correct. Another user suggests checking the logs and flags for storage access in the API key. The original user then explains that they are trying to repeat the migration process after a previous failure. They provide the endpoint, project ID, and API key they are using. Other users discuss the possibility of an /report API call and the presence of a blocking issue with an ad blocker. The issue is eventually resolved when the original user discovers that their ad blocker was indeed blocking the connection. The user expresses gratitude for the help and confirms that the migration
D5
3 Jan, 2024, 20:38

Do you have set all flags for storage access in the API key?

DennisLBC
3 Jan, 2024, 20:42

yes both keys I gave all scopes to

D5
3 Jan, 2024, 20:43

What are the logs for the migration regarding this?

DennisLBC
3 Jan, 2024, 20:43

Where can I see the logs

DennisLBC
7 Jan, 2024, 03:29

I want to use them eventually but I have not yet

Drake
7 Jan, 2024, 03:29

No, set it to something but not the same as your other domain env vars

DennisLBC
7 Jan, 2024, 03:34

Trigger the credential error doesnt appear to write any logs in appwrite or worker-migrations

Drake
7 Jan, 2024, 03:36

Can you try opening the browser dev tools and then reproduce the error? Then check the console and network logs

DennisLBC
7 Jan, 2024, 06:23

I cant ever get near that part, this is what I am trying to say. I can never actually start a migration because it says credentials error. That error was just what made my first migration fail (when it would accept my credentials). Everything transfered on that migration except a couple buckets.

DennisLBC
7 Jan, 2024, 17:08

Cannot initiate migration due to credential errors

Drake
7 Jan, 2024, 19:47

There's some API call that's started and the result returned an error. That's why you see that error message. I'm curious what the error message from that API call is

DennisLBC
7 Jan, 2024, 20:00

Ya but I cannot repro because I cannot initiate a migration

Drake
7 Jan, 2024, 21:24

I meant reproduce the error you're seeing now

DennisLBC
7 Jan, 2024, 21:53

Solved. Ad blocker was blocking the connection. I don't know why it didnt block my first migration as nothing has changed on my browser, but regardless it was definitive when I looked at the network in the browser that it was being blocked by Ad Blocker. I knew it was gonna be something small and stupid. Thanks for all your patience and help Steven and D5

DennisLBC
7 Jan, 2024, 21:53

[Solved] Cannot initiate migration due to credential errors

Drake
7 Jan, 2024, 21:55

Whoa... interesting revelation...any idea why your ad blocker was blocking it?

DennisLBC
7 Jan, 2024, 22:05

This is what is blocked, I dunno what plausible.io is but adblocker ultimate doesn't like it.

DennisLBC
7 Jan, 2024, 22:06

This is what it looks like when the call is successful. Maybe analytics of some sort?

D5
7 Jan, 2024, 22:27

That's stats/analytics, so it should not be related to appwrite functionality or affect it

D5
7 Jan, 2024, 22:29

No idea what's growth.appwrite.io, but maybe it's for analytics too?

D5
7 Jan, 2024, 22:33

Anyways it should not affect the request 🤔

DennisLBC
7 Jan, 2024, 22:38

I have no idea, but its very easy to reproduce

Drake
7 Jan, 2024, 23:05

There should be a /report API call

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more