Plotly.py was unable to communicate ocra

Hi Everyone,

I am using plotly. When I am using plotly 
fig.write_image(img, width=1920, height=1440)

 I am getting error like:

 For some reason plotly.py was unable to communicate with the

local orca server process, even though the server process seems to be running.

Please review the process and connection information below:

orca status

state: running
executable: /usr/bin/xvfb-run --auto-servernum --server-args -screen 0 640x480x24 +extension RANDR +extension GLX /root/.nvm/versions/node/v10.1.0/bin/orca
version: 1.2.1
port: 45043
pid: 2471
command: ['/usr/bin/xvfb-run', '--auto-servernum', '--server-args', '-screen 0 640x480x24 +extension RANDR +extension GLX', '/root/.nvm/versions/node/v10.1.0/bin/orca', 'serve', '-p', '45043', '--plotly', '/root/cuantafy_generator/venv/lib/python3.6/site-packages/plotly/package_data/plotly.min.js', '--graph-only', '--mathjax', 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js', '--mapbox-access-token', 'map-key']

plotly.io.orca.ensure_server()
time.sleep(10)

I am already tested this is there any other solution, I can implement.