Cannot sign into Pavlovia OR GitLab at all - please help!

OS (e.g. Win10): Sequoia 15.2
PsychoPy version (e.g. 1.84.x): v2023.2.3
What are you trying to achieve?: Push my experiment to Pavlovia

What did you try to make it work?: Synced my project before deleting the “.git” folder – this appears to have entirely broken and severed my access to both Pavlovia and GitLab.

What specifically went wrong when you tried that?:
I receive the following error when I try to log into my Pavlovia.org account:

Access to gitlab.pavlovia.org was denied

You don’t have authorization to view this page.

HTTP ERROR 403

I also receive the following error when I open PsychoPy:

Traceback (most recent call last):
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/gitlab/exceptions.py”, line 337, in wrapped_f
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/gitlab/mixins.py”, line 154, in get
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/gitlab/client.py”, line 830, in http_get
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/gitlab/client.py”, line 796, in http_request
gitlab.exceptions.GitlabHttpError: 403: 403 Forbidden

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/_psychopyApp.py”, line 1206, in onIdle
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/idle.py”, line 102, in doIdleTasks
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/idle.py”, line 139, in _doTask
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/pavlovia_ui/menu.py”, line 101, in setUser
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 399, in setToken
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 425, in startSession
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/gitlab/client.py”, line 375, in auth
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/gitlab/v4/objects/users.py”, line 143, in get
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/gitlab/exceptions.py”, line 339, in wrapped_f
gitlab.exceptions.GitlabGetError: 403: 403 Forbidden

I’m desperate especially since I can’t create another account (I only have the one university-linked email account) – any advice would be greatly appreciated!!!

Both of these threads seem related though I don’t entirely understand what the solution is here…

https://github.com/psychopy/psychopy/issues/5382
https://discourse.psychopy.org/t/error-when-i-click-the-log-in-to-pavlovia-button/28627

Can you log into Emma Laurent · GitLab or https://pavlovia.org/ via the website? If not, try again in a private browser tab or on a different device.

If that works, then the solution for PsychoPy would probably be to delete the user config file.

1 Like

Hi Carter,

Thank you so much for your quick response! I’m not sure what happened but all of a sudden (~2 hours after I posted this threat) I was able to access Pavlovia. Now, unfortunately, I’m receiving a new error when trying to sync a new project.

Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/builder/builder.py”, line 1452, in onPavloviaSync
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/pavlovia_ui/project.py”, line 854, in syncProject
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/pavlovia_ui/sync.py”, line 47, in sync
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 844, in sync
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 1031, in firstPush
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/git/cmd.py”, line 542, in
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/git/cmd.py”, line 1005, in _call_process
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/git/cmd.py”, line 822, in execute
git.exc.GitCommandError: Cmd(‘/Applications/PsychoPy.app/Contents/Resources/git-core/git’) failed due to: exit code(1)
cmdline: /Applications/PsychoPy.app/Contents/Resources/git-core/git push -u Sign in · GitLab master
stderr: ‘warning: redirecting to Sign in · GitLab
error: RPC failed; HTTP 500 curl 56 The requested URL returned error: 500
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date’

I tried deleting the e ‘user’ and ‘projects’ files in “.psychopy3/pavlovia/”, restarting PsychoPy, and retrying over again. Unfortunately this was not the solution and gave me the same error message.

Upon looking at the “projects.json” files, I’m noticing that the paths appear to be incorrect. The text is as follows:

{
  "emmalaurent/aaa_0b": {
    "id": "emmalaurent/aaa_0b",
    "idNumber": 396177,
    "localRoot": "/Users/elaurent/Desktop/grad/projects/replay_int/3. Feature Focus (v3) \u2013 online/experiments /0-back/AAA_0B",
    "remoteHTTPS": "https://gitlab.pavlovia.org/emmalaurent/aaa_0b.git",
    "remoteSSH": "git@gitlab.pavlovia.org:emmalaurent/aaa_0b.git"
  }
}

whereas this path is incorrectly referencing an old project and instead should be referencing:

{
  "emmalaurent/task1_enc1_A": {
    "id": "emmalaurent/task1_enc1_A",
    "idNumber": [?],
    "localRoot": "/Users/elaurent/Desktop/grad/projects/replay_int/3. Feature Focus (v3) \u2013 online/experiments /within/intentional-intentional/task1_enc1_A",
    "remoteHTTPS": "https://gitlab.pavlovia.org/emmalaurent/task1_enc1_A.git",
    "remoteSSH": "git@gitlab.pavlovia.org:emmalaurent/task1_enc1_A.git"
  }
}

Update: I created an entirely new PsychoPy file in an separate folder and was able to sync THIS project successfully (no idea why, there must be some .cfg files hiding in the repo of the other project). However, on Pavlovia I cannot pilot the task – instead, the browser hangs on the “initialising…” screen… grrrr

Again, any feedback would be greatly appreciated as I’m on a VERY tight deadline and was really hoping to get this project launched on Prolific by yesterday :frowning:

Adding that I have had an almost identical experiment piloting just fine right now (it was pushed to Pavlovia in 2024).

Upon opening the Developer Tools, I have identified the following errors:

task2_0B_X.js:1 
Failed to load resource: the server responded with a status of 404 ()

and then multiple attempts of the following:

debug.js:92
(3)(+0000114): Error: HTTP request to http://127.0.0.1:23119/connector/ping rejected with status 0

I noticed that the .js file it’s attempting to pull does NOT match the name of that in by GitLab repo:

The error indicates that Pavlovia is trying to pull from emmalaurent/task2_0b_x-test/task2_0B_X.js, while the correct .js filepath is emmalaurent/task2_0b_x-test/task2_0B_X-test.js

I deleted all hidden folder, the Pavlovia folder, and resynced the project and the project persisted. It seems that there’s some memory of past syncs even when I try to start anew. Is there something I’m missing?

Sorry for all the recursive comments, but again I’m really on a time crunch and this problem appears to be persisting. I’m starting to worry that it’s a residual server connection issue after the problems I had connecting yesterday.

I, once again, created an entirely new experiment folder with my .psyexp project. The initial sync failed, much like the first attempt. Posting the full PsychoPy3 Error below:

Traceback (most recent call last):
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/builder/builder.py”, line 1452, in onPavloviaSync
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/pavlovia_ui/project.py”, line 854, in syncProject
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/pavlovia_ui/sync.py”, line 47, in sync
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 844, in sync
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 1031, in firstPush
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/git/cmd.py”, line 542, in <lambda>
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/git/cmd.py”, line 1005, in _call_process
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/git/cmd.py”, line 822, in execute
git.exc.GitCommandError: Cmd(‘/Applications/PsychoPy.app/Contents/Resources/git-core/git’) failed due to: exit code(1)
  cmdline: /Applications/PsychoPy.app/Contents/Resources/git-core/git push -u https://oauth2:7e971c650a5ba1cd1994c1f316912ea2b67f1e962b54ec566eb0e685a51f3cde@gitlab.pavlovia.org/emmalaurent/test master
  stderr: ‘warning: redirecting to https://gitlab.pavlovia.org/emmalaurent/test.git/
error: RPC failed; HTTP 500 curl 56 The requested URL returned error: 500
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date’

Git seems to be the problem here. I’m wondering if there’s a hidden .git folder that I’m not able to find? I checked my /pavlovia/projects.json file, and once again, it is incorrectly referencing a random old project (as mentioned in my prior posts):

Finally, I tried moving the entire experiment folder (after deleting the local .git folder) to my “/Documents” folder, per a suggestion I saw that you had made on another thread. Again, I received an error :frowning:

Traceback (most recent call last):
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/builder/builder.py”, line 1452, in onPavloviaSync
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/pavlovia_ui/project.py”, line 854, in syncProject
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/pavlovia_ui/sync.py”, line 47, in sync
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 844, in sync
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 1031, in firstPush
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/git/cmd.py”, line 542, in <lambda>
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/git/cmd.py”, line 1005, in _call_process
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/git/cmd.py”, line 822, in execute
git.exc.GitCommandError: Cmd(‘/Applications/PsychoPy.app/Contents/Resources/git-core/git’) failed due to: exit code(1)
  cmdline: /Applications/PsychoPy.app/Contents/Resources/git-core/git push -u https://oauth2:7e971c650a5ba1cd1994c1f316912ea2b67f1e962b54ec566eb0e685a51f3cde@gitlab.pavlovia.org/emmalaurent/test master
  stderr: ‘warning: redirecting to https://gitlab.pavlovia.org/emmalaurent/test.git/
error: RPC failed; HTTP 500 curl 56 The requested URL returned error: 500
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date’

Really struggling to pinpoint the issue here and feeling incredibly exasperated. For context, a nearly identical version of this experiment is currently on Pavlovia and piloting successfully. This version was pushed to Git in October, 2024.

Thank you in advance for your guidance!

I figured it out after following the suggestions from the following post:

https://discourse.psychopy.org/t/500-error-synching-with-pavlovia/41435/4