psychopy.org | Reference | Downloads | Github

Data Saving Error Online

Hello all,

A participant reported to me today an error message that I have not encountered before. It is quite long and refers to an issue with gitlab:

“Unfortunately we encountered the following error: when flushing participant’s log for experiment, when uploading participant’s log for experiment, when saving logs from a previously opened session on the server. File exists. Another git process seems to be running in this repository, e.g. an editor opened by git commit’. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repositroy earlier: remove the file manually to continue. Try to run the experiment again. If the error persists, contact the experiment designer.”

Interestingly, the participant’s data seem to have saved with no problem. I have another participant’s data file with the same timestamp. Is it possible this occurred because both files were trying to save simultaneously? Is there any reason to think that the data file should not be trusted? I’d appreciate any help to troubleshoot this and make sure it doesn’t happen again. I’ve run many participants in this study and this is the first I’ve seen this outcome.

Thank you in advance!
Anthony Sali

Just noting the same problem:

Unfortunately we encountered the following error:

  • when flushing participant’s logs for experiment: […]
  • when uploading participant’s logs for experiment: […]
  • when saving logs from a previously opened session on the server
  • unable to push logs file: […].log to GitLab repository: Cmd(‘git’) failed due to: exit code(128) cmdline: git add […].log.gz stderr: ‘fatal: Unable to create ‘[…]/.git/index.lock’: File exists. Another git process seems to be running in this repository, e.g. an editor opened by ‘git commit’. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier: remove the file manually to continue.’

Try to run the experiment again. If the error persists, contact the experiment designer.

About 140 participants completed the experiment, and only 1 reported this error, which suggests an unusual (but not impossible) race condition. Although in this case (like the OP) the data file was saved successfully (only the log failed to save), there are other postings that suggests data may be lost this way: 1 2

Perhaps git should wait a second or so for the lock to free before giving up?

We have separate pavlovia experiments daisy-chained together, and the error message on the screen says

Unfortunately, we encoutered the following error:

  • when uploading the participant’s result for experiment: name of exp

Since the second bullet point is empty, I cannot say anything what exactly caused the error.

The error occurs infrequently, but has now been reported twice on two completely unrelated studies.

Kind regards,
Henning