Reply To: server setup queries/issues

PennController for IBEX Forums Support server setup queries/issues Reply To: server setup queries/issues

#8242
Jeremy
Keymaster

You don’t need to run server_conf.py: server.py has this line execfile(SERVER_CONF_PY_FILE, CFG) which takes care of running server_conf.py itself

All you need to do, when things are configured properly, is visit the URL that points to server.py (eg. https://my.domain.xyz/myxp/server.py?withsquare=0) or to experiment.html (eg. https://my.domain.xyz/myxp/experiment.html) — experiment.html itself invokes server.py on several occasions, effectively executing it

To reiterate my point, when running the experiment as a CGI application, you don’t need to run anything yourself: your webserver (if configured properly) will take care of running the script itself upon request (ie by visiting the experiment’s URL). Also, you don’t need to update the PORT variable in server_conf.py, since you are not running your experiment in stand-alone (toy) mode, as per the comments above the PORT line: # The port the server will run on if running in stand-alone mode.

The “site can’t be reached” error is most likely unrelated to IBEX, but rather to some other configuration on the webserver or domain end, for example. Are you able to visit other resources served by your webserver? I’m afraid I can’t really help with that

EDIT: it just occurred to me that Chrome does say “This site can’t be reached” if you try to visit localhost:3000 without spinning up server.py in stand-alone (toy) mode. Do you mean to run your experiment in stand-alone (toy) mode on your machine? If so, you do need to run server.py, but make sure the SERVER_MODE variable in server_conf.py is set to "toy" (and make sure you visit the same port that you set in server_conf.py, which is 3000 by default)

Jeremy

  • This reply was modified 1 year, 11 months ago by Jeremy.