Hello @fhermanto96,
I believe the issue is that you might be running in a headless environment. If so, This person on the forum had a similar issue. This posts links to a way to create an offscreen backend that might fix your problem.
I hope this helps