Skip to content
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

Make the importer more stable #21

Closed
christian-bernet opened this issue Aug 15, 2019 · 14 comments
Closed

Make the importer more stable #21

christian-bernet opened this issue Aug 15, 2019 · 14 comments
Assignees
Labels
bug Something isn't working reopenable Closed because there's nothing to do right now, but there may be in future

Comments

@christian-bernet
Copy link
Contributor

No description provided.

@christian-bernet christian-bernet added the medium medium priority label Aug 15, 2019
@christian-bernet
Copy link
Contributor Author

christian-bernet commented Aug 28, 2019

Estimate 4 hours

@christian-bernet
Copy link
Contributor Author

christian-bernet commented Sep 2, 2019

add a clean up process if the state is inconsistence & validate json files!

@interrogator
Copy link
Collaborator

As part of this issue, let me know if there is something I can add to the JSON validator, which basically checks that JSON is valid, and that mandatory keys are there, containing values of correct type.

@christian-bernet
Copy link
Contributor Author

should be better now.
We changed the importer to a simple concept.
@pim can you please build the new images for the importer, so that we have the new code place? many thanks.

@christian-bernet
Copy link
Contributor Author

containers where updated by pim right now.

@martindusinberre martindusinberre added question Further information is requested high high priority and removed medium medium priority labels Oct 28, 2019
@martindusinberre
Copy link
Collaborator

@christian-bernet Can you please give us a bit of help on something that happened on Friday afternoon? I was in OurTestTopic and I wanted to see if a functionality worked in checkboxExercise. So I changed one value ("minimum" to "maximum") and pushed a change. The log told me that the import hadn't worked so I concluded that it's not possible to have a "maximum" value. (That's fine--I just wanted to know.) So I then changed the json files back to what they had been and pushed another change.
By my understanding, this should then import fine (all the json values were correct). But instead of importing properly, the whole OurTestTopic crashed and dropped from the Topic Selection page.
According to @witlox , he couldn't resolve the issue by following the documentation you provided for Danny a couple of weeks ago. Given that it was urgent (I had three colleagues needing to look at OurTestTopic over the weekend), Pim effectively made a new folder, one which doesn't automatically update. This is a good work-around but not a great solution because it means that I have to ask Danny or Pim to do a manual import whenever I want to introduce new material.
So the question is: do you happen to know why this happened? And what we can do about it in the future? Is it a bug in the system, so that if the import is rejected once, it continues to be rejected (even if the new change is correct)? Or is this a problem with the logic?
Any comments much appreciated... :)

@christian-bernet
Copy link
Contributor Author

@martindusinberre
I think the importer was broken and after the steps in the wiki it should run again.
https://github.com/uzh/marugoto/wiki/Infrastructure
This does not happens on a specific situation. It has nothing to do with your changes.

As I see, the import is still broken for the test topic.
I think it would be best, that Pim and or Daniel can have a look of how we can clean it up, so that the importer will run again.

If it's ok for you like that, they should come to me and I can show them.

@martindusinberre
Copy link
Collaborator

@christian-bernet That would be perfect, great. Can you please amend this issue to a "bug" and assign also to Danny? Many thanks, Martin
(PS: if you are all working on the importer / testtopic, could you at the same time create a new testtopic environment for Lena to start directly importing her own storyline content?)

@christian-bernet christian-bernet added bug Something isn't working and removed enhancement Extending an existing feature question Further information is requested labels Oct 28, 2019
@christian-bernet
Copy link
Contributor Author

For me this Wednesday would work best, to do that.

@christian-bernet
Copy link
Contributor Author

christian-bernet commented Oct 30, 2019

done with: e433c9c

@christian-bernet
Copy link
Contributor Author

Let us see if there will be some problem in the next weeks with this simplified version of the importer. I will leave this issue open until we know more.

@martindusinberre
Copy link
Collaborator

@interrogator could you give a quick narrative of what you discussed with Christian last Wednesday for this, just for documentation purposes? Then I would close it (possibly as reopenable, depending on how good you think the fixes are).

@interrogator
Copy link
Collaborator

I got a set of instructions that aren't much use here:

2000 ./shell
2002 cd /content/
2007 sudo rm .OnlyTest/ -r
2008 cd
2010 rm test.checkpoint
2022 tail -f /var/www/html/log/importer_test.log
in the ./shell (command 2000)
I ran these commands:
1. list-topics
2. set-topic-state false 16464401
and quit with "exit"

And as Christian said, the updated code is diffed here: e433c9c . Soon I bet we'll be importing more often, and will see if it truly is more stable. Anecdotal evidence so far is that the importer has been OK lately.

@martindusinberre martindusinberre added reopenable Closed because there's nothing to do right now, but there may be in future and removed high high priority labels Nov 6, 2019
@martindusinberre
Copy link
Collaborator

Yes, I agree--anecdotally it seems to be working better (famous last words!). So I'll close this but mark as reopenable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working reopenable Closed because there's nothing to do right now, but there may be in future
Projects
None yet
Development

No branches or pull requests

4 participants