WebDriverException: Message: 'The browser appears to have exited before we could connect. The output was: Error: no display specified
Your error says that you didn't specify a display. This is a good qay to specify one.
$ export DISPLAY =<<name of server where viewer is configured>>:<<port associated>> $ xhost +