Skip to content

Chromedriver install fails with SSL operation failed with code 1. OpenSSL Error messages: error:0A000126:SSL routines::unexpected eof while reading #979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
euperia opened this issue May 27, 2022 · 3 comments

Comments

@euperia
Copy link

euperia commented May 27, 2022

I'm submitting this in the hope it will save others from trawling the internet for answers 😃 :

  • Dusk Version: 6.24.0
  • Laravel Version: 9.11.0
  • PHP Version: 8.1.6
  • Database Driver & Version: n/a
  • OS & Version: Ubuntu 22.04

Description:

Installing dusk and/or chrome-driver throws an SSL exception.

NOTE: THE PROBLEM IS WITH PHP AND NOT DUSK!!

This issue is caused by a compatibility issue between PHP and OpenSSL 3.0. A fix has been added to PHP and will be available in PHP 8.1.7 (currently on PHP 8.1.6 at time of writing).

See:

Steps To Reproduce:

/var/www/web$ php artisan dusk:install
Dusk scaffolding installed successfully.
Downloading ChromeDriver binaries...

   ErrorException 

  file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:0A000126:SSL routines::unexpected eof while reading

  at vendor/laravel/dusk/src/Console/ChromeDriverCommand.php:217
    213▕         if ($this->option('proxy')) {
    214▕             $streamOptions['http'] = ['proxy' => $this->option('proxy'), 'request_fulluri' => true];
    215▕         }
    216▕ 
  ➜ 217▕         return trim(file_get_contents($this->latestVersionUrl, false, stream_context_create($streamOptions)));
    218▕     }
    219▕ 
    220▕     /**
    221▕      * Detect the installed Chrome / Chromium major version.

      +27 vendor frames 
  28  artisan:37
      Illuminate\Foundation\Console\Kernel::handle()
@euperia euperia closed this as completed May 27, 2022
@ethanclevenger91
Copy link

@euperia temporary workaround? downgrade to PHP 8.0?

@euperia
Copy link
Author

euperia commented Jun 10, 2022

@ethanclevenger91 I guess so if you're not using and 8.1 specific features.

PHP 8.1.7 was officially released yesterday. Hopefully it will find its way into Ubuntu 22.04 soon, even if it is only in the Ondřej Surý PPA.

@euperia
Copy link
Author

euperia commented Jun 21, 2022

Update: PHP is now at version 8.1.7 using the ondrej:ppa repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants