-
Notifications
You must be signed in to change notification settings - Fork 3
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
Import existing surveys #51
Comments
Hmmm, well, it isn't supported currently. If you manage to set up the webinterface, then I think you have two choices:
|
Feel free to drop by IRC/matrix and we might be able to help. I can't promise fast responses right now though unfortunately. And, I also don't know much about the current code base of the web module (I have not gotten demo.sdaps.org up and running again, but that was because I got stuck on avoiding |
Thank you @benzea Approach 2 seems to trick it into thinking that the survey is set up and ready, but things don't work correctly. I'm not sure how much is because of the workaround or because of actual bugs, I'm not familiar with django. Important to note that I'm trying the docker-compose setup, as I would have to use a container approach in our production server. After seeing that sdaps-web consider the survey ready, I went on to add scans, but I get an Internal Server Error after hitting start:
Maybe this is another issue, and I'm forcing sdaps-web out of its current dev state. |
Hmm, I think that would be fixed by the following patch:
i.e. move |
Note that this will only happen if the browser is sending a |
Nice! That worked. However, I get the message
The only thing I see is this in the celery logs:
But I see the tiff hanging under proj/1/uploads. PS: The scan should work, I have tested it in CLI before trying sdaps-web out. |
Stupid question. But could it be that the web server does not have permissions to write the database file? i.e. the |
I also thought of that, but I checked the file owner and permissions, and seems to be the same as in any other project created via web... :( |
And the directory is fine too, right? I assume that would be the case as you are able scans into the directory already. Just thinking sqlite needs temporary files for locking and journalling. |
Unless it needs write permissions for group I would think it is fine
|
Really, there must be some sort of access control issue. Either for the As what user is the celery stuff running? Does that user really has access? Can you run e.g. |
Well, I thought of starting fresh and resetting the whole thing... somehow I broke it :(
I headed to celery, and it looks like it is not receiving the JSON it expects:
|
Wait, that is actually a bug! We can't
That seems rather odd. I think the storage is messed up completely. i.e. we have a json field, but then just store a string into it which again contains json. sigh Thinking something along the lines of:
But, it'll also need database migration and stuff to be committable. |
I suspect you can work around the bug simply be editing the questionnaire. i.e. just adding a question before exiting the editor. |
Sorry for the late response :-/ Feel free to drop by IRC/matrix, or ping again. I do forget these things. |
Hi!
Is there an import mechanism for existing surveys/projects?
We need different people to be able to review the recognition and it is not possible for us to launch the desktop GUI in our environment, so I'm thinking sdaps-web would be a nice solution.
Thanks
The text was updated successfully, but these errors were encountered: