-
Notifications
You must be signed in to change notification settings - Fork 709
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
issues with facility import functionality #7127
Comments
I believe we'll need to make the sync an operation that can't be canceled. We've started seeing messages like this when it's been cancelled before. |
I'm hoping that getting learningequality/morango#84 merged and released will help resolve this. @jamalex added some improvements to deserialization, but through an issue we were getting the same warnings shown here. Now that we've resolved those with changes in morango, I'm hoping that too will resolve these issues. |
I believe the issue noted in this PR is because you're syncing auto-generated data (from The other models (UserSessionLog and ContentSummaryLog) are not deserializing because they depend on the FacilityUsers that failed to deserialize. |
So I'd make a couple of recommendations here:
|
@jamalex Ah, I didn't notice that! Thanks! I'm still planning on making my changes to some caching stuff related to facilities, which I think is a good improvement overall.
Perhaps I should add more granular progress signals for that? I had thought of that, but didn't end up doing it because I didn't think it would be comparable to network durations. |
I don't think it needs to be internally granular, but maybe allocating... 5% or something to that stage in the overall progression... which I guess just means it would hang at 95% vs 99%. :P |
Actually, looking back to the design spec, not sure on why it would stop at 99% while deserializing: https://www.figma.com/file/LM0YUkbWAOIerZ3EEg0FN6bS/0.14-P2P-Sync?node-id=712%3A0 |
Ah okay, @jonboiser I'm going to update the UI to make the progress indeterminate for those states unless you have already. |
Nope, I have not changed it. According to this kolibri/kolibri/plugins/device/assets/src/views/FacilitiesPage/FacilityTaskPanel.vue Lines 74 to 77 in 6ae1c0a
It's always a 'determinate' loader, so you can change it to 'indeterminate' for the appropriate conditions. |
The loader should now be indeterminate when it's in the queue/dequeuing stages. Unfortunately, a large sync can cause those stages to take a while. I've updated the password deserialization in another PR. |
This should now be resolved with merge of above PR. |
great! |
Observed behavior
The import process has been stuck on 99% for about 10 minutes:
During that time I got a few dozen warnings like this:
A few dozen like this:
And about 100,000 entries like this:
Then, it hung at 100% for a couple minutes, while strangely saying step "4 of 7":
Waited longer and it did eventually finish:
After this, I tried logging out and then back in using an admin from the newly-imported facility. This seemed to work, but when I went to the Coach page, I saw this:
Expected behavior
User-facing consequences
significant frustration using data syncing
Errors and logs
none apart from those shown above
Steps to reproduce
import
kolibri-beta
demo facility to a local Kolibri instanceContext
0.14.0 beta 3
The text was updated successfully, but these errors were encountered: