Hi, I was migrating the data from cloud to a self-hosted instance. Almost all the data does migrate successfully except for a few attributes. Those two attributes are of type double (if that helps).
The same issue occurs when migrating from one self-hosted instance to other. But this time only one attribute error and that to it is of type double (float).
interesting...any other logs?
maybe in the appwrite-worker-migrations container?
This is the error I get in the migration details popup: "Failed to transfer resource ':attribute' with message 'Attribute creation timeout'"
How can I get their logs? Not much familiar with Docker
What exactly is the attribute? The databases worker might also have some helpful logs too
The attribute is a float with default value 0 and no min and max values defined (since they aren't mandatory while creating the attribute)
what's the key?
The key is "rating"
ya that seems normal..
there should be some logs about why the attribute failed to create. another thing you check is the JSON response from the list collections API. there should be a log attribute on the attribute object
{
"databaseInternalId":"1",
"databaseId":"65265b9d65617f5e0e9c",
"collectionInternalId":"5",
"collectionId":"ServiceProviders",
"key":"rating",
"type":"double",
"status":"failed",
"error":"Default value 0 does not match given type double",
"size":0,
"required":false,
"default":0,
"signed":true,
"array":false,
"format":"floatRange",
"formatOptions":{
"min":-1.7976931348623157e+308,
"max":1.7976931348623157e+308
},
I went through the database container logs and this is what I found
I think it was expecting "0.0" as the value but instead it got "0". Hence it failed
interesting...
i thought it was going to fail on max/min 😆
Initially I too thought the same because when I tried editing the failed attribute from the console, it was saying that the min and max value is invalid
Another thing to note is that it fails only when the value is 0 or single digit and not some other double
thanks for the insight
Recommended threads
- Got message for auto payment of 15usd fo...
how did this happen? 1. i claimed my 50usd credits via jsm hackathon - https://hackathon.jsmastery.pro/ 2. it asked me which org. to apply the credits on, i se...
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...