HTTP 500 curl 56 Error Message when synchronizing

Dear all,

URL of experiment: no url yet, because experiment fails to synchronize.

Description of the problem:
When I try to synchronize my experiment, I get the following error message. (This message even occurs when I attempt to synchronize a brand new, almost empty experiment)

Any suggestions?

Best wishes,
Johan
Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\exceptions.py”, line 304, in wrapped_f
return f(*args, **kwargs)
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\mixins.py”, line 112, in get
server_data = self.gitlab.http_get(path, **kwargs)
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\client.py”, line 662, in http_get
result = self.http_request(
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\client.py”, line 628, in http_request
raise gitlab.exceptions.GitlabHttpError(
gitlab.exceptions.GitlabHttpError: 404: 404 Project Not Found

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

Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 663, in project
self._project = self.session.gitlab.projects.get(self.id)
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\v4\objects\projects.py”, line 782, in get
return cast(Project, super().get(id=id, lazy=lazy, **kwargs))
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\exceptions.py”, line 306, in wrapped_f
raise error(e.error_message, e.response_code, e.response_body) from e
gitlab.exceptions.GitlabGetError: 404: 404 Project Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\builder.py”, line 1374, in onPavloviaSync
pavlovia_ui.syncProject(parent=self, file=self.filename, project=self.project)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\pavlovia_ui\project.py”, line 743, in syncProject
if not project.localRoot or not Path(project.localRoot).is_dir():
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 746, in localRoot
if self.project.path_with_namespace in knownProjects:
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 666, in project
raise KeyError(f"Could not find GitLab project with id {self.id}.")
KeyError: ‘Could not find GitLab project with id 268402.’

Having the same issue here. Did you resolve the problem?

Hi,

it some time ago now, but I think I solved it by directly uploading to gitlab.pavlovia.org.

There is a plus sign at the top of the project page that lets you upload files to your project.

Best wishes,
Johan

1 Like

I think this was fixed in psychopy release 2023.1. It was an issue where the name no longer pointed to the expected project ID (e.g. if you’d removed the project then recreated with the same name) but PsychoPy is handling this and a number of similar cases much better now

I am having same problem. What is the solution to fix it? I am using v2023.2.3
URL of experiment:

Description of the problem: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 847, in sync
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 925, in push
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 915, in push
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 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’

Hi,

it some time ago now, but I think I solved it by directly uploading to gitlab.pavlovia.org.

There is a plus sign at the top of the project page that lets you upload files to your project.

Best wishes,
Johan

Hi, when I signed into gitlab and tried to upload the file there, it says it already exists. Does anyone have another idea why this isn’t syncing the uploaded file?

Hi, I am using psychopy version 2023.2.3. When I try to sync the file which has a small change, to the existing project on pavlovia, I get the error message pasted below and it doesn’t sync. I tried someone else’s solution to upload the file to gitlab, but when I tried that, it says the file already exists. Any idea how to sync this change?

Hi,

I think that you need to delete the old file from github before you can upload the new file.

Best wishes,
Johan

Hi again, thanks for your reply. Deleted the old file, uploaded the new file. I still get the same error message that the file is not syncing.

URL of experiment:

Description of the problem: I have two experiments on Pavlovia. I was able to sync an update to the one experiment. The other experiment will not sync. I keep getting an error message. Based on other suggestions, I deleted the original file and uploaded the new file to gitlab. But the update will still not sync. This is Psychopy version 2023.2.3. Any ideas?

I forgot to add the error message:
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 847, in sync
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 925, in push
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 915, in push
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 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’

Try the solution here:

Syncing takes place between Psychopy Builder and Pavlovia. Uploading a different file will not solve that.
But when you run online, the file that is on github is the one that is used. So if you put your new file there, you should be able to run the correct version.

Best wishes,
Johan

I found a lib folder in the experiment folder that will not sync. Can I delete that folder?

lib folders are created locally when you pilot an experiment in a local browser. They should not be uploaded to GitLab. This should be automatic, since they should be specified in the .gitignore file.

I am not explaining this problem very well. I made a few additions to the info dialogue that I want to collect at the start of the experiment. I was able to sync these changes with one experiment but for the second one, I continue to get error messages when I try snycing to Pavlovia from Builder. I have tried:

  1. removing and adding the same (not new) Builder file to Gitlab.
  2. removing files so that there are not large files in the experiment folder.
    I keep getting the same error message.

This is too vague to be helpful. Is your error message identical to the 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 847, in sync
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 925, in push
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 915, in push
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 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’

Yes, I thought I had pasted it above.
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 847, in sync
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 925, in push
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 915, in push
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 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’

If others are having this problem: downloading the latest version of PsychoPy solved the issue. Thanks for everyone’s time.