Too many open files Error

PsychoPy 2026.1.0

I got the following error message:

“Error updating the value of the Boolean record associated with key [“continue_p2”]. unable to query the shelf collection. localhost:27017: [errno 24] too many open files (configured timeouts: socketTimeoutMS: 2000.0ms, connectTimeoutMS: 2000.0ms, Timeout: 30s, topology description :]>”

More details: I am running two experiments simultaneously, each with two participants. the shelf in Pavlovia is used to communicate between the pairs of participants. Each experiment has a unique scope but both use the exact same key names. After the error occurs the key becomes locked in Pavolvia and I need to manually update it to release the lock in order to run the experiment again.

I ran simultaneous experiments before and there were no issues.

This happened 4 times yesterday: twice in one experiment and once on both experiments simultaneously. There seems to be no network issue on my side, so I am suspecting that the problem is with the Pavlovia servers.

The experiment is not one that you can just restart form the beginning, so any system crash results in the loss of two participants.

Any suggestions on how to fix this problem?

Are you using await in your shelf calls?

How often are you querying the shelf? Unfortunately, the Pavlovia shelf is not designed for real-time player interactions and I would be wary of any design that pings the shelf for updates entries every few seconds.

We are looking into PeerJS as a possible solution for this kind of design, but it might require a consultancy project to give it the priority to get it up and running.

Thanks for your response.

Yes, I am using await in the shelf cells, with the JavaScript code: await psychoJS.shelf.setTextValue (or getTextValue).

I set a delay in the code so that the experiment won’t query the shelf on every frame. The specific error code I mentioned in the original post addresses a key that only updates on a button press that is done once per trial.

I am running this experiment for about four years and never encountered this specific problem before. Was there any recent change to the Pavlovia servers that may cause this issue to occur more frequently?

We have had a server move recently, so it’s possible something has been configured differently. This could be accidental, or deliberate to reduce unwanted server load from bots. Please could you PM me the URL of the experiment so I can ask @apitiot if he can take a look?

Dear @shackedavr ,

Following up from @wakecarter 's comment, I can confirm that I indeed tightened up the use of resources during the move to the new server. Perhaps too much. I’ve just relaxed back to previous levels and your experiment should run without issues again.

As always I would encourage you to do a test first, before starting again with your participants.

And with my apologies for the mishap!

Alain

Thanks for the update!

I will leave the ‘solution’ box unchecked for the time being to make sure that the problem is truly solved and checked it in a week or two if everything is running smoothly.