Second component stuck on 'Building experiment structure' (OSweb experiments)
Hi everyone,
I am running into trouble with linking two OSweb experiments in JATOS and I was hoping someone could help me. Specifically, the second component of my JATOS experiment won't launch and will stay in the first screen stating 'Building experiment structure'.
I have tried uploading the second component as an individual study. It has no trouble booting up then. This makes me think that something has gone wrong with merging the two OSweb directories. What I did was:
- Exported both experiments in OS as a JATOS file.
- Merged the two .zip directories by renaming the .html file of the second component and copy pasting it in the .zip file of the first component together with the Open Sesame file. I left the css, img and js folders untouched.
- Uploaded the combined folder (containing two .html files and two OS files) in JATOS
- In the JATOS environment: Added in a new, second component and linked the .html file belonging to the second component.
Anyone has an idea what could have gone wrong? I have worked with it last year and it worked like a charm then!
PS: I have also tried linking two mock experiments (the standard that OS opens with) with the above procedure. Same problem.
Comments
If you did the same thing before and it worked there might be something wrong with JATOS. Two questions:
Best
Elisa
Thanks for your reply! Regarding your points:
Looks like something in the CSS or JS folders bricks the experiment? If it helps, I'm using version 3.5.4 of JATOS and the newest OS build (3.3.11).
Best,
Tom
Hi Tom,
Did you copy the component's JSON input into the new study? OSWeb studies need it to run.
Apart from this I can't see any error in how you merged both OSWeb studies - I would have done the same.
Best,
Kristian
Hi Kristian,
Thanks for your reply! Are you saying I should copy paste the same JSON input from my first component into the same field in the second component? Looking at my working experiment from last year (which even had three components!), I left those fields blank at the time.
In the mean time I've found a workaround: two seperate JATOS studies and using a jatos.endStudyAndRedirect call to move to the next one.
I've done some further digging for this response and it looks like the problem is some interaction between my server's version and the OSweb version. When I revert back to an older version of OS and export the experiments in that version, it works again like it should.. I wish that crossed my mind before coding the workaround, oh well!
Best,
Tom
Hi Tom,
In the mean time I've found a workaround: two seperate JATOS studies and using a jatos.endStudyAndRedirect call to move to the next one.
That's another possibility, not the most elegant but if it works it works.
Are you saying I should copy paste the same JSON input from my first component into the same field in the second component?
From the original component from the original OSWeb study. I tried it on my local JATOS with two random OSWeb studies: merged them like you described. I got a similar error message as you got, but after I added the JSON input it vanished.
I've done some further digging for this response and it looks like the problem is some interaction between my server's version and the OSweb version. When I revert back to an older version of OS and export the experiments in that version, it works again like it should.
Maybe older OSWeb versions don't use the JSON input. I don't know that much about OSWeb ;)
Best,
Kristian
Hi All,
I know this is an old post but I am facing the same issue and I would like to get some insight on how to solve it.
I am making an experiment which will be comprised of 3 experiments created in Open sesame. It is easy for me to import a study and select the zip file for one study, but I am having some trouble adding the other elements.
What I did is I exported the experiment as a JATOS study, and the add component in JATOS is asking me for the html. So, I copied the html file form the folder fo the new experiment (renamed it) along with the osexp file in the folder fo my initial experiment, the one that was uploaded first. I then inserted the name of the html file fo the new experiment in the add component section.
Unfortunately, the added experiment does not run. I check the html file, and it refers to the osexp file that is present in the folder. Is that something else that needs to be copied. Because I thought since both experiments were osexp it would be able to run with just the new component.
If I import it as a separate study, the experiment runs fine. Is there any way to copy components from one JATSO experiment to another. I have only found the clone option, but that only does it within the same experiment.
After reading this, I added the JSON in my additional component, still no luck.
I then tried what was initially described here, inserting the html and osexp before upload and them importing the experiment again. The problem is, I cannot upload it in such a format, so I made a zip file of the bulk of 3 experiments, with two of their htmls renamed. The upload fails.
So my question is, how did TIJ upload a file containing more than one experiment?
I also tried redirecting from one experiment to another, but it simply did not happen. I did this by going into the Properties of my first component in the End Redirect URL and simply put the link that I see in my browser when looking at my second component. Is this not the way to fo it? the three elements run fine independently. I am not keen on this solution because I would like to randomise my components.
Thank you.