Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

404 Error on OSWeb Load

Hey All,

I recently had some help setting up JATOS on my university's server, however, I'm running into a 404 error when I try to run my OpenSesame Experiment, and just get a blank screen. Every other part of JATOS runs fine; I can even run jPsych experiments without issue. I also know there isn't a problem with the OpenSesame experiment, because it runs perfectly on JATOS' test server and a local JATOS instance.

I really can't tell if this is a JATOS issue or a server issue, but if someone could point me in the right direction I'd be grateful. All I can tell is I'm missing the JATOS JavaScript (jatos.js) library for some reason. Here is what my web sources looked like. The running version appears first and the broken version is second.


I'm sorry if this discussion is irrelevant, I'm just not sure where else to look or what to do.

Regards,

Rissa

Comments

  • Hi Rissa,

    it seems like JATOS is not properly installed on your server or your server has some configuration issues. What is the output of JATOS' test page? For your server it should be similar to linguistics.arts.sfu.ca/jatos/test (for cortex it's cortex.jatos.org/jatos/test). And do you use a URL base path (http://www.jatos.org/Configure-JATOS-on-a-Server.html#url-base-path-jatos--v331)?

    Best,

    Kristian

  • Hey Kristian,

    The test server runs fine and all the tests come out okay. And yes, we do use a URL base path for my lab, it's /phono/.

    Regards,

    Rissa

  • Hi Rissa, sorry for answering so late. Have a lot to do lately.

    Since you are using a base path ('phono'). Did you configure JATOS' production.conf correctly? There should be the following line:

    play.http.context = "/phono/"
    

    And a second thing with base paths is that all paths in your JavaScript should use the base path or no path at all. So, e.g. to load circle.png, you can use either the old JATOS path style with 'study_assets':

    <img src="/phono/study_assets/your_study_name/circle.png">

    or just

    <img src="circle.png">

    . But the latter one works only with newer versions of JATOS > 3.3.1.

  • Hey Kri,

    Thanks for the reply. I just took a look through our configuration and everything seems fine. Remember, I've not programmed the experiment in Javascript, but in OpenSesame. Javascript programs run just fine.

    I suspect though, that because I used a basepath, my OSWeb experiment is facing some issues. Maybe I need to add a Javascript component as a workaround.

    I'll try that, and if you have any other ideas, please let me know.

    Regards,

    Rissa

  • Ah, I forgot that it's an OSWeb study. Anyway, you could try to replicate the issue by using a base path on your local JATOS too. Then you can better narrow it down.

    Best,

    Kristian

  • Hey Kri,

    I managed to solve the issue by diving into the index.html file in my OSWeb .zip experiment file and changing line 15 to reflect my basepath. It looks like <script src="/yourbasepath/assets/javascripts/jatos.js">. Afterwards, I imported the .zip file into JATOS, and the experiment ran perfectly.

    I might be nice in the future for OSWeb users to be able to input their basepath to solve this issue, but its a fairly easy fix for now.

    Thanks for the help!

    Regards,

    Rissa

  • Nice! You solved it.

    You could open an issue with OSWeb https://github.com/shyras/osweb.

    Best,

    Kristian

Sign In or Register to comment.