-
Notifications
You must be signed in to change notification settings - Fork 33
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
apinf.io dashboard empty #2528
Comments
@bajiat I updated console message, left the only one which is related to the problem. Can you also write what the last version was on apinf.io site? I think problem could appear after unsuccessful migration |
@bajiat It can take about a day or two to fix it. I suggest creating version |
Is this in any way related to the closed issue #2268? |
@marla-singer Once this is fixed, we should make a hotfix release 0.43.1 |
The problem looks the same. But I don't have any ideas why it repeated again |
In
The logic in these two publications seems to mirror one another correctly. However, I am wondering whether a composite publication would be better here:
|
Another thing that might cause this error is if the related API was deleted without deleting the Basically the |
I agree with @marla-singer's intuition. I can write a fix that gives us cleaner publications, but we will probably need to also audit the Apinf.io APIs/ProxyBackends documents. |
I went through the dashboard rendering loop with a debugger active in the @shaliko, can we check whether API ID |
@brylie I searched in miniMongo and found the proxy Backend with specified API ID. The API name is "HSLAPI" and searching in entire site did return any API with this name. Then
|
@brylie With @marla-singer found migration lock in logs:
I did not see that exception in logs, probably missed it. For some reason DB migration was on step #2
Disabled lock and just restart container fixed issue.
@brylie @marla-singer Can we disable lock in case if migration finish with error? Do we have any good practice related to Meteor migration for the handle? |
There is not an 'official' migration practice in Meteor. As you are likely aware, we use percolate:migrations. A good place to discuss the questions you ask would be as one or more issues in the percolate:migrations issue queue. |
@shaliko there is a recent issue about locks that might not answer your questions, but could be interesting to know about: |
@brylie thanks! |
I have tested deleting an API through the UI. When the API is deleted, the corresponding ProxyBackend document is also deleted (in local development environment). I am not sure what scenario left the ProxyBackend document without a related API document on apinf.io. |
@brylie Ok, maybe it is an old issue and now it is not reproduced. When your little fix is okay, just remember about version |
Based on @shaliko's comment, I checked the migrations. Migration number two is called ''Migrate all apiBackends to new structure'. There is a step where a new API is created, which returns an API ID. It could be that step, or a nearby step, that fails, or perhaps the migration was incomplete -- leading to data 'corruption'. Thoughts? |
@marla-singer I will check with @ashakunt regarding how to 'backport' this fix to the 0.43.x series. |
@bajiat There is another error
|
Lets open another issue with that error message, so we can work on it separately. |
Also, I hope this is not a problem with Swagger UI. 😨 |
Opened issue #2598 to follow-up with this second error. |
Steps to reproduce
Result
Console error:
The text was updated successfully, but these errors were encountered: