Symfony panter: getting error unknown error: failed to write prefs file from facebook/webdriver

I have build a webcrawler for a client in Laravel. To accomplish this i use the symfony panter package. symfony panter
I finished developing it and have been asked to put it on the server of the client, which is where the errors occur.
It was working perfectly fine on my homestead vagrant box. Ofcourse to accomplish this I installed chrome78 on the vagrant box and used the chromedriver-bin/update.sh from the panter package so it supports chrome78. This worked like a charm.

So as mentioned, I have to install the package on a client’s server, which is running on CentOS 7. I installed chrome on it using this tutorial:
https://www.cyberciti.biz/faq/howto-install-google-chrome-on-redhat-rhel-fedora-centos-linux/
Ofcourse, i again ran the ./update.sh from the panter package. I now expected it to work. But I am getting the following error.

   FacebookWebDriverExceptionUnknownServerException  : unknown error: failed to write prefs file
  (Driver info: chromedriver=78.0.3904.105 (60e2d8774a8151efa6a00b1f358371b1e0e07ee2-refs/branch-heads/[email protected]{#877}),platform=Linux 2.6.32-042stab136.1 x86_64)

  at /home/tsm/domains/thesilvermountain.nl/public_html/laravel-app/vendor/facebook/webdriver/lib/Exception/WebDriverException.php:114
    110|                 throw new ElementNotVisibleException($message, $results);
    111|             case 12:
    112|                 throw new InvalidElementStateException($message, $results);
    113|             case 13:
  > 114|                 throw new UnknownServerException($message, $results);
    115|             case 14:
    116|                 throw new ExpectedException($message, $results);
    117|             case 15:
    118|                 throw new ElementNotSelectableException($message, $results);

  Exception trace:

  1   FacebookWebDriverExceptionWebDriverException::throwException("unknown error: failed to write prefs file
  (Driver info: chromedriver=78.0.3904.105 (60e2d8774a8151efa6a00b1f358371b1e0e07ee2-refs/branch-heads/[email protected]{#877}),platform=Linux 2.6.32-042stab136.1 x86_64)", ["5c7df90c615886c0b1406dd58935e9f4"])
      /home/tsm/domains/thesilvermountain.nl/public_html/laravel-app/vendor/facebook/webdriver/lib/Remote/HttpCommandExecutor.php:331

  2   FacebookWebDriverRemoteHttpCommandExecutor::execute(Object(FacebookWebDriverRemoteWebDriverCommand))
      /home/tsm/domains/thesilvermountain.nl/public_html/laravel-app/vendor/facebook/webdriver/lib/Remote/RemoteWebDriver.php:144

  Please use the argument -v to see more details.

I have seen similar posts regarding different applications. But they do not provide me with the how-to or information to fix this particular issue. If someone has an idea, could they please help me out? I will be checking on this post regularly, so if any follow-up questions need answering I will try to respond quick!

With kind regards

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *