# Unable to create link to PsychoJS library folder

**URL:** <https://discourse.psychopy.org/t/unable-to-create-link-to-psychojs-library-folder/12074>\
**Category:** Online experiments\
**Created:** [April 3, 2020, 6:37pm UTC](https://discourse.psychopy.org/t/unable-to-create-link-to-psychojs-library-folder/12074 "2020-04-03T18:37:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tlan](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@tlan](https://discourse.psychopy.org/u/tlan)\
**Post date:** [April 3, 2020, 6:37pm UTC](https://discourse.psychopy.org/t/unable-to-create-link-to-psychojs-library-folder/12074/1 "2020-04-03T18:37:29Z")

</div>

Description of the problem: I synced my experiment with an online project, and activated it before trying to pilot. It won’t generate the pilot URL, and has the error as below:

**unable to create link to PsychoJS library folder: [Errno 17] File exists: ‘/var/www/pavlovia.org/lib’ -\> '/var/www/pavlovia.org/run/tlan/t4/html/lib’**

Please help me with troubleshooting it. Thank you very much!

---

<div class="post-metadata">

**Author:** ![jon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jon/32/22_2.png) [@jon](https://discourse.psychopy.org/u/jon)\
**Post date:** [April 3, 2020, 6:49pm UTC](https://discourse.psychopy.org/t/unable-to-create-link-to-psychojs-library-folder/12074/2 "2020-04-03T18:49:49Z")

</div>

I think you have a lib folder in your html? Remove it as it’s clashing with the psychojs lib on the server 🙂

---

<div class="post-metadata">

**Author:** ![tlan](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@tlan](https://discourse.psychopy.org/u/tlan)\
**Post date:** [April 3, 2020, 7:01pm UTC](https://discourse.psychopy.org/t/unable-to-create-link-to-psychojs-library-folder/12074/3 "2020-04-03T19:01:14Z")

</div>

@jon Thank you, Jon. It’s piloting properly now…

---

<div class="post-metadata">

**Author:** ![tlan](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@tlan](https://discourse.psychopy.org/u/tlan)\
**Post date:** [April 3, 2020, 7:02pm UTC](https://discourse.psychopy.org/t/unable-to-create-link-to-psychojs-library-folder/12074/4 "2020-04-03T19:02:38Z")

</div>

@jon On another note, the .js files in the html folder don’t seem to be updated on Pavlovia upon syncing. They are updated locally on my PC though.

Any idea why?  
Thanks.

---

<div class="post-metadata">

**Author:** ![tlan](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@tlan](https://discourse.psychopy.org/u/tlan)\
**Post date:** [April 3, 2020, 7:22pm UTC](https://discourse.psychopy.org/t/unable-to-create-link-to-psychojs-library-folder/12074/5 "2020-04-03T19:22:30Z")

</div>

Never mind, I figured out that I made a mistake when syncing.

---

<div class="post-metadata">

**Author:** ![LukasPsy](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/lukaspsy/32/4582_2.png) [@LukasPsy](https://discourse.psychopy.org/u/LukasPsy)\
**Post date:** [June 8, 2020, 4:54pm UTC](https://discourse.psychopy.org/t/unable-to-create-link-to-psychojs-library-folder/12074/6 "2020-06-08T16:54:24Z")

</div>

Could it be that the “Run PsychoJS task in local debug mode” option in the runner creates the html/lib folder, which then causes those problems?

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [June 8, 2020, 5:17pm UTC](https://discourse.psychopy.org/t/unable-to-create-link-to-psychojs-library-folder/12074/7 "2020-06-08T17:17:10Z")

</div>

@LukasPsy, yes if the `html/lib` folder generated from the local debug mode is synced with the Pavlovia repository, this issue will occur. There should be an entry in the `.gitignore` file to prevent this from happening, but this will fail if the `.gitignore` is deleted or modified in some way. It will be interesting to know how the issue has occurred in this instance.

---

<div class="post-metadata">

**Author:** ![LukasPsy](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/lukaspsy/32/4582_2.png) [@LukasPsy](https://discourse.psychopy.org/u/LukasPsy)\
**Post date:** [June 9, 2020, 7:02am UTC](https://discourse.psychopy.org/t/unable-to-create-link-to-psychojs-library-folder/12074/8 "2020-06-09T07:02:38Z")

</div>

Thank you for your answer 🙂  
You are right, I had a custom `.gitignore` file.

For future reference: If you want to restore your gitignore file to the default or if you want to add the critical part about the lib folder to your existing gitignore file, I think this is the file to copy from: [https://github.com/psychopy/psychopy/blob/master/psychopy/projects/gitignore.py](https://github.com/psychopy/psychopy/blob/master/psychopy/projects/gitignore.py)
