# Error 403 Forbidden nginx when piloting

**URL:** <https://discourse.psychopy.org/t/error-403-forbidden-nginx-when-piloting/19539>\
**Category:** Online experiments\
**Created:** [January 11, 2021, 1:39pm UTC](https://discourse.psychopy.org/t/error-403-forbidden-nginx-when-piloting/19539 "2021-01-11T13:39:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![EDeKorte](https://avatars.discourse-cdn.com/v4/letter/e/ec9cab/32.png) [@EDeKorte](https://discourse.psychopy.org/u/EDeKorte)\
**Post date:** [January 11, 2021, 1:39pm UTC](https://discourse.psychopy.org/t/error-403-forbidden-nginx-when-piloting/19539/1 "2021-01-11T13:39:03Z")

</div>

URL of experiment: [Pavlovia](https://pavlovia.org/EDeKorte/oldnesstry)

MacOS Mojave, PsychoPy standalone v2020.2.10

Description of the problem: I am trying to run my experiment on Pavlovia. My experiment has uploaded successfully and there is an html folder with and index.html file and two .js files in the experiment folder on my computer. However, I get the error “403 Forbidden nginx” when I try to pilot my press the pilot button.

I have looked at other posts: I have tried to clear my browser cache, remove the html folder and the hidden .git folder and text file. I have tried switching to Inactive and back to piloting again. I have also tried typing “/html/” behind the url in my webbrowser, but this gives the error “No information available for this experiment: it may not exist or you may not have access to it.”

I am not sure why this is happening. This is the first time I am trying to get an experiment running online, so I don’t have much experience and I might be doing something wrong.

Any suggestions are welcome. Thanks in advance!

Ellen

---

<div class="post-metadata">

**Author:** ![thomas\_pronk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/thomas_pronk/32/9531_2.png) [@thomas\_pronk](https://discourse.psychopy.org/u/thomas_pronk)\
**Post date:** [January 11, 2021, 5:40pm UTC](https://discourse.psychopy.org/t/error-403-forbidden-nginx-when-piloting/19539/2 "2021-01-11T17:40:04Z")

</div>

Hey!

Could you share the gitlab repo with me so I can take a look? My username is tpronk

---

<div class="post-metadata">

**Author:** ![EDeKorte](https://avatars.discourse-cdn.com/v4/letter/e/ec9cab/32.png) [@EDeKorte](https://discourse.psychopy.org/u/EDeKorte)\
**Post date:** [January 11, 2021, 6:15pm UTC](https://discourse.psychopy.org/t/error-403-forbidden-nginx-when-piloting/19539/3 "2021-01-11T18:15:43Z")

</div>

Dear Thomas,

Thank you for your swift reply. The link to my repo is: [https://gitlab.pavlovia.org/EDeKorte/oldnesstry](https://gitlab.pavlovia.org/EDeKorte/oldnesstry)

Let me know if it works.

Kind regards,

Ellen

---

<div class="post-metadata">

**Author:** ![thomas\_pronk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/thomas_pronk/32/9531_2.png) [@thomas\_pronk](https://discourse.psychopy.org/u/thomas_pronk)\
**Post date:** [January 11, 2021, 9:18pm UTC](https://discourse.psychopy.org/t/error-403-forbidden-nginx-when-piloting/19539/4 "2021-01-11T21:18:27Z")

</div>

I’m afraid you’ll need to add me first (or make your repo public). [This page](https://www.psychopy.org/online/fromBuilder.html#posting-the-issue-on-the-forum) explains how.

---

<div class="post-metadata">

**Author:** ![EDeKorte](https://avatars.discourse-cdn.com/v4/letter/e/ec9cab/32.png) [@EDeKorte](https://discourse.psychopy.org/u/EDeKorte)\
**Post date:** [January 12, 2021, 9:00am UTC](https://discourse.psychopy.org/t/error-403-forbidden-nginx-when-piloting/19539/5 "2021-01-12T09:00:15Z")

</div>

Dear Thomas,

Sorry, for this level of dumminess. I don’t really have experience with gitlab. You should have access to my repo now.

Here is the link again: [https://gitlab.pavlovia.org/EDeKorte/oldnesstry](https://gitlab.pavlovia.org/EDeKorte/oldnesstry)

Thanks in advance.

Kind regards,

Ellen

---

<div class="post-metadata">

**Author:** ![thomas\_pronk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/thomas_pronk/32/9531_2.png) [@thomas\_pronk](https://discourse.psychopy.org/u/thomas_pronk)\
**Post date:** [January 12, 2021, 11:45am UTC](https://discourse.psychopy.org/t/error-403-forbidden-nginx-when-piloting/19539/6 "2021-01-12T11:45:12Z")

</div>

No worries 🙂

I think it has to do with the size of your images; they make up 3.7 GB in total, and that’s a bit (well very) hard on our server. Making things worse is that the experiment is exported using an older method that duplicates all images, which is something we improved on in more recent versions.

I recommend to delete the current repo and upload a new one, using the modifications below:

- Don’t use TIF for images, but JPG or PNG instead (JPG might be best in your case). See [this tutorial](https://staging.psychopy.org/temp/html/online/mediaFormats.html#images-png-or-jpg). NB - that’s a prototype of improved tutorials we’re working on. It will move to [psychopy.org](http://psychopy.org) one of these days.
- In online settings, don’t export to an html folder, but leave this empty.
- Export to the most recent version of psychopy

Best, Thomas

---

<div class="post-metadata">

**Author:** ![EDeKorte](https://avatars.discourse-cdn.com/v4/letter/e/ec9cab/32.png) [@EDeKorte](https://discourse.psychopy.org/u/EDeKorte)\
**Post date:** [January 12, 2021, 12:11pm UTC](https://discourse.psychopy.org/t/error-403-forbidden-nginx-when-piloting/19539/7 "2021-01-12T12:11:22Z")

</div>

Dear Thomas,

Thank you for your tips. They explain why another experiment (same big set of images, but created in a newer version) did not create a html folder (although it didn’t work either).

I will take a look at the tutorial and reduce the file size.

Kind regards,

Ellen

---

<div class="post-metadata">

**Author:** ![EDeKorte](https://avatars.discourse-cdn.com/v4/letter/e/ec9cab/32.png) [@EDeKorte](https://discourse.psychopy.org/u/EDeKorte)\
**Post date:** [January 19, 2021, 9:22am UTC](https://discourse.psychopy.org/t/error-403-forbidden-nginx-when-piloting/19539/8 "2021-01-19T09:22:52Z")

</div>

Dear Thomas,

Thank you for this. I rebuilt the experiment in a newer version of Psychopy and converted the images to jpeg.

This works fine and the experiment now loads properly.

Kind regards,

Ellen
