Skip to content
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

The "https://pr16.contrib.flex.symfony.com/m/makasim/temp-file/0.2.0" file could not be downloaded. #74

Closed
makasim opened this issue May 8, 2017 · 3 comments

Comments

@makasim
Copy link

makasim commented May 8, 2017

I am playing with the recipe I created. Got the next error:

The dependency is next: enqueue/fs-pack -> enqueue/fs -> makasim/temp-file

 [Composer\Downloader\TransportException]                                                                                                                                                         
  The "https://pr16.contrib.flex.symfony.com/m/makasim/temp-file/0.2.0" file could not be downloaded: Peer certificate CN=`symfony.com' did not match expected CN=`pr16.contrib.flex.symfony.com'  
  Failed to enable crypto                                                                                                                                                                          
  failed to open stream: operation failed  

Steps to reproduce:

  1. Create project
$ composer create-project symfony/skeleton:3.3.x-dev enqueue-demo-bug; 
$ cd enqueue-demo-bug;
  1. Require pack
$ SYMFONY_ENDPOINT=https://pr16.contrib.flex.symfony.com/ composer req enqueue/fs-pack -vv

Here's the composer output:

$SYMFONY_ENDPOINT=https://pr16.contrib.flex.symfony.com/ composer req enqueue/fs-pack -vv
Using version ^0.3.0@dev for enqueue/fs-pack
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Dependency resolution completed in 0.143 seconds
Analyzed 6862 packages to resolve dependencies
Analyzed 176258 rules to resolve dependencies
Dependency resolution completed in 0.000 seconds
Package operations: 8 installs, 0 updates, 0 removals
Installs: makasim/temp-file:0.2.0, enqueue/psr-queue:dev-master 05bb674, enqueue/fs:dev-master 598cbba, enqueue/null:dev-master f971acf, ramsey/uuid:dev-master 446df35, enqueue/enqueue:dev-master a758bfc, enqueue/enqueue-bundle:dev-master 88a0957, enqueue/fs-pack:dev-master 8e277b5
  - Installing makasim/temp-file (0.2.0): Loading from cache Extracting archive
    REASON: enqueue/fs-pack 0.3.x-dev requires makasim/temp-file ^0.2 -> satisfiable by makasim/temp-file[0.2.0].


Installation failed, reverting ./composer.json to its original content.

                                                                                                                                                                                                   
  [Composer\Downloader\TransportException]                                                                                                                                                         
  The "https://pr16.contrib.flex.symfony.com/m/makasim/temp-file/0.2.0" file could not be downloaded: Peer certificate CN=`symfony.com' did not match expected CN=`pr16.contrib.flex.symfony.com'  
  Failed to enable crypto                                                                                                                                                                          
  failed to open stream: operation failed                                                                                                                                                          
                                                                                                                                                                                                   

Exception trace:
 () at phar:///usr/local/bin/composer/src/Composer/Util/RemoteFilesystem.php:482
 Composer\Util\RemoteFilesystem->get() at phar:///usr/local/bin/composer/src/Composer/Util/RemoteFilesystem.php:101
 Composer\Util\RemoteFilesystem->getContents() at /Users/makasim/projects/symfony/enqueue-demo-bug/vendor/symfony/flex/src/Downloader.php:107
 Symfony\Flex\Downloader->fetchFile() at /Users/makasim/projects/symfony/enqueue-demo-bug/vendor/symfony/flex/src/Downloader.php:91
 Symfony\Flex\Downloader->get() at phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php(195) : eval()'d code:257
 Symfony\Flex\Flex_composer_tmp0->getPackageRecipe() at phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php(195) : eval()'d code:205
 Symfony\Flex\Flex_composer_tmp0->filterPackageNames() at phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php(195) : eval()'d code:127
 Symfony\Flex\Flex_composer_tmp0->configurePackage() at n/a:n/a
 call_user_func() at phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:171
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:116
 Composer\EventDispatcher\EventDispatcher->dispatchPackageEvent() at phar:///usr/local/bin/composer/src/Composer/Installer.php:605
 Composer\Installer->doInstall() at phar:///usr/local/bin/composer/src/Composer/Installer.php:223
 Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/RequireCommand.php:180
 Composer\Command\RequireCommand->execute() at /Users/makasim/projects/symfony/enqueue-demo-bug/vendor/symfony/flex/src/Command/RequireCommand.php:35
 Symfony\Flex\Command\RequireCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:267
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:846
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:191
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:227
 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:122
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:100
 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:54
 require() at /usr/local/bin/composer:24
@sstok
Copy link

sstok commented May 8, 2017

The endpoint has changed to symfony.sh Please check the deploy status https://symfony.sh/r/contrib/16

@makasim
Copy link
Author

makasim commented May 8, 2017

@sstok thanks, it solved my issue.

@makasim makasim closed this as completed May 8, 2017
@makasim
Copy link
Author

makasim commented May 8, 2017

I took the link from the @fabpot 's article http://fabien.potencier.org/symfony4-contributing-recipes.html

It would be good to update links there as others may run into the same problem.

tgalopin pushed a commit to tgalopin/flex that referenced this issue Dec 3, 2020
…ue (chalasr)

This PR was merged into the master branch.

Discussion
----------

[doctrine/doctrine-bundle] Escape DATABASE_URL env value

When requiring `doctrine/doctrine-bundle` (more often `orm-pack`), the following is added to the project `.env`:

```
DATABASE_URL=mysql://root@127.0.0.1:3306/symfony?charset=utf8mb4&serverVersion=5.7
```
The makefile seems to parse that properly (tested on OSX and debian).
But running `source .env` from the cli (for debugging the .env vars, as shown in [dotenv docs](http://symfony.com/doc/master/components/dotenv.html)) gives

> .env:15: parse error near `&'

This fixes it by adding quotes around the value.

Commits
-------

1e60b1f [doctrine/doctrine-bundle] Escape DATABASE_URL env value
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