Max number of clients reached
Hi, I'm using Plotly Python on Ubuntu. I have a long-running job with many processes using Ray, which we can think of as a scheduler that launches new Python processes as resources free up. Each process will plot a number of graphs and save using Orca, and there are over 30 processes altogether. Seems like after a certain number of processes with plots, it starts failing:
The orca executable is required in order to export figures as static images,
but the executable that was found at '/home/rl/miniconda3/envs/lab/bin/orca'
does not seem to be a valid plotly orca executable. Please refer to the end of
this message for details on what went wrong.
If you haven't installed orca yet, you can do so using conda as follows:
$ conda install -c plotly plotly-orca
Alternatively, see other installation methods in the orca project README at
https://github.com/plotly/orca.
After installation is complete, no further configuration should be needed.
If you have installed orca, then for some reason plotly.py was unable to
locate it. In this case, set the `plotly.io.orca.config.executable`
property to the full path of your orca executable. For example:
>>> plotly.io.orca.config.executable = '/path/to/orca'
After updating this executable property, try the export operation again.
If it is successful then you may want to save this configuration so that it
will be applied automatically in future sessions. You can do this as follows:
>>> plotly.io.orca.config.save()
If you're still having trouble, feel free to ask for help on the forums at
https://community.plot.ly/c/api/python
Here is the error that was returned by the command
$ /home/rl/miniconda3/envs/lab/bin/orca --help
[Return code: 1]
Maximum number of clients reached
(orca:13142): Gtk-WARNING **: 14:40:38.304: cannot open display: :99
Is there a way to kill clients as processes shutdown, or at least set the idle lifetime for each client for the orca server? Thanks.
Having a similar issue with Orca + pyqt5. Used the following command to kill the processes. Use at own risk :sweat_smile:
ps -ef | grep 'orca' | grep -v grep | awk '{print $2}' | xargs -r kill -9