-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Found a pointer column not in the schema, dropping it. #1691
Comments
Check the _Schema collection for your CircleProfile class. Is there a _p_circle entry? |
It looks like this:
The original app was on parse.com - I haven't made any changes to the schema of this class since migration. Nick |
That appears to be incorrect. Update those keys to |
Ok... as long as that's not going to break my production app. I don't really understand what's going on here as in that query it appears that sometimes the circle and profile values are populated and sometimes they're not even when values do exist - and it appears to be down to this 'Found a pointer column not in the schema, dropping it. CircleProfile circle' issue. |
I don't think that editing the schema is the way to go. I've just tried adding a column with the latest version of Parse dashboard. I added a pointer to Profile for another test class with the key 'testy'. In the resulting mongodb scheme it's listed as:
Any more ideas? Nick |
I haven't seen this problem occurring before Parse Server 2.2.7 - would one of the changes in 2.2.7 have caused it? |
If the dashboard is not making a |
@gfosco so, I've been running some local tests with the scheme based on your suggestion: CircleProfile schema before:
And here's an example of a CircleProfile document in mongodb:
So you can see that p does exist for the pointers in the actual instances of CircleProfile. You suggested that I change the scheme for CircleProfile. So I did so as follows:
Is that what you meant? What happens is my app just starts failing with:
Could you confirm if I've followed your instructions correctly? For now I've reverted my app to use 2.2.6 and the issue is currently no longer occurring. Are there other scenarios where the Parse server app might fail to load the scheme and this kind of issue would occur? I'm keen to use 2.2.7 as it fixes a number of other issues but it seems unstable at the moment. Thanks for your help Nick |
On a Parse.com app our _Schema looks like the original schema posted, e.g. a schema with a pointer looks like:
parse-server should also follow this convention. |
@gfosco - any idea if this issue got resolved in 2.2.8? |
If this is in a migrated app that is old, then the issue could be caused by legacy data formats still in your database. Are you seeing an actual bug in your app, or only the warning? |
Yes, it's a migrated app.
I'm not seeing the bug now as I've reverted my Parse Server to 2.2.6 It started happening in Parse Server 2.2.7
Ok - is there some documentation on what the format should be now? I'd prefer to use the latest Parse Server (but only if this issue's resolved). |
The format looks correct. I'm not sure what would cause this, but without there being an actual bug I don't think we'll prioritize this. You can run multiple Parse Servers with different versions connected to the same database to search for an actual bug, or use a snapshot of your database. |
@nickkuh could you test with 2.2.9 or even better create a test in a PR? Would need to be able to reproduce 100% in the test however. |
I've migrated to AWS and running Parse-Server 2.2.10, but the server's health went to "severe" and every requests failed with error code 499. I saw about 5000 lines in a short time of
in nodejs.log at that moment. Is there anything I can do to solve this issue? Please let me know if I can provide any useful information. Thanks. |
If you can consistently reproduce the error that would be very helpful. If you can provide a database snapshot, or a series of SDK or cURL calls that create data that exhibits the issue, then an SDK call or cURL that causes that line to be logged, then we should be able to debug the issue. |
I can't reproduce it consistently. The server went to "severe" about 3 ~ 4 times a day, but I'm not sure what kinds of queries cause the problem. I'm not familiar with AWS, Node.js and Parse-Server now, so please tell me if I can add something into my code, therefore I can get useful information when the server go to "severe" next time. Thanks. |
We're getting this error too (Still on 2.2.7). It happens very infrequently (~1 in 1 million queries). I'll try and add more debugging to the error message to try and determine why but may not have an answer until next week. |
Yep - it's not an easy one to reproduce as it doesn't seem to occur when the server first starts but only after it's been online for a while. It doesn't happen on 2.2.6 so it must have been introduced in 2.2.7 |
I added the following debug to MongoTransform.js
When the bug occurs, schema.data is not set:
There may be a mistake with the logging as would expect schema.data to at least be an empty object whereas here it seems undefined. |
yes that may be an issue with the schema being not loaded when this function is called. The stuff I'm working on now should also fix this bug. |
@drew-gross is this issue resolved in 2.2.11? Thanks! |
It should be, yes. |
I am running parse server 2.3.1 and seeing this error.
The material schema is defined as :
|
Any idea what might cause this kind of Parse Server debug message?
CircleProfile has both circle and profile pointers so I don't know why this wouldn't be found in the scheme.
The issue also only happens periodically. The query that triggers it looks like this:
Any ideas?
The text was updated successfully, but these errors were encountered: