cachethq / Docker

A Dockerized version of Cachet.
https://cachethq.io
BSD 3-Clause "New" or "Revised" License
415 stars 280 forks source link

CONNECT_CR_CERT:certificate verify failed #333

Closed arnydo closed 5 years ago

arnydo commented 5 years ago

Downloaded fresh copy via Git and attempted to build with docker-compose build. Running into the following error:

  [Composer\Downloader\TransportException]
  The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
  error:14007086:SSL routines:CONNECT_CR_CERT:certificate verify failed
  Failed to enable crypto
  failed to open stream: operation failed

Any ideas on how to troubleshoot this? I can get to https://packagist.org/packages.json just fine from the host machine.

Thank you.

welcome[bot] commented 5 years ago

:wave: Thank you for opening your first issue. I'm just an automated bot that's here to help you get the information you need quicker, so please ignore this message if it doesn't apply to your issue. If you're looking for support, you should try the Slack group by registering your email address at https://cachethq-slack.herokuapp.com. Alternatively, email support@alt-three.com for our Professional support service (please note, this a paid service.) If you're issue is with documentation, you can suggest edits by clicking the Suggest Edits link on any page, or open an issue at https://github.com/CachetHQ/Docs

arnydo commented 5 years ago

I split the RUN command into multiple RUN's to see which one was throwing the error.

It ended up being /bin/sh -c php /bin/composer.phar global require "hirak/prestissimo:^0.3"

Looks like even though packagist.org was allowed by our filter Docker didn't like that it was proxied...

It is working now.