psychopy.org | Reference | Downloads | Github

Synchronizing to Pavlovia: 'Fingerprint has already been taken'


#1

Mac OS 10.13.6 High Sierra
PsychoPy v3.0.0b3

Hi all,

when trying to upload my experiment to Pavlovia.org (I have an account, am logged in in PsychoPy, and have created a project), a small window tells me PsychoPy is ‘synchronizing’. No files are uploaded though, and the window stays open indefinitely.

Here’s what the console reads:

Traceback (most recent call last):
  File "/Applications/PsychoPy3.app/Contents/Resources/lib/python2.7/psychopy/app/pavlovia_ui/toolbar.py", line 47, in onPavloviaUser
    userDlg = UserEditor()
  File "/Applications/PsychoPy3.app/Contents/Resources/lib/python2.7/psychopy/app/pavlovia_ui/user.py", line 43, in __init__
    self.user = pavlovia.User(gitlabData=self.user)
  File "/Applications/PsychoPy3.app/Contents/Resources/lib/python2.7/psychopy/projects/pavlovia.py", line 162, in __init__
    'key': self.publicSSH})
  File "/Applications/PsychoPy3.app/Contents/Resources/lib/python2.7/gitlab/exceptions.py", line 253, in wrapped_f
    raise error(e.error_message, e.response_code, e.response_body)
gitlab.exceptions.GitlabCreateError: 400: {u'fingerprint': [u'has already been taken']}

Does anyone else experience this error? Anyone with a clue as to what I might be missing here?

Much appreciated.

Felix


#2

Update: I tried synchronizing the experiment to Pavlovia from a different wifi, now the Console reads as follows (creating a new project called “fr”, the only project in my account):

"/Applications/PsychoPy3.app/Contents/Resources/lib/python2.7/git/cmd.py", line 825, in execute
    raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git remote add origin https://gitlab.pavlovia.org/Felix/fr.git
  stderr: 'fatal: remote origin already exists.'

#3

Thanks for the reports Felix. The root cause of the first error is that PsychoPy creates an SSH key with which to identify you and, somehow, it’s tried to upload a key that it had already created for you. Gitlab is telling PsychoPy not to add a second copy of the key. I’ll need to look into why PsychoPy tried to do that.

The error is that the step of creating the repository had succeeded but uploading the files had failed. Now when you tried a second time it complained that the project already existed. it’s more clear to me how this occurred and what we need to do to fix it (detect that the project exists but is currently empty and just perform the file sync or, maybe, we should have deleted the created project previously when the sync step failed so as not to leave an empty project at all).


#4

Hi Jon,

thanks a lot for getting back to me. Of course, it’s still a beta version, but I am very excited about the new online platform and features you’re adding.

Thank you so much for your effort! Much appreciated.

Cheers,
Felix


#5

Update: Have been able to solve the problem which results in this error:

"/Applications/PsychoPy3.app/Contents/Resources/lib/python2.7/git/cmd.py", line 825, in execute
    raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git remote add origin https://gitlab.pavlovia.org/Felix/fr.git
  stderr: 'fatal: remote origin already exists.'

The experiment needs to be in a ‘fresh’ local directory, i.e. a directory from which I haven’t tried pushing an experiment to pavlovia.

After installing Psychopy 3.0.0b4, I have been able to walk a bit further down the path to successfully pushing my experiment to pavlovia. I can’t use my uni’s wifi, else I get the SSH fingerprint error. If I connect at home (or via my phone), this error does not occur.

Following these steps, the little window displays “Pushing files to Pavlovia”, but the console reads a new error:

git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git push -u origin master
  stderr: 'fatal: could not read Username for 'https://gitlab.pavlovia.org': Device not configured'

Have double-checked that I am logged into pavlovia in psychopy, using the correct Username/Password.
Does anyone else experience this error?


#6

I’m having the same issue. I opened a thread here: Problems pushing updates/commits to pavlovia

To summarize, I am able to create a new project (and I can see it in pavlovia), but I am not able to upload my files.