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

You have requested a non-existent parameter "redis_session_dsn" #565

Closed
achristodoulou opened this issue Aug 14, 2015 · 3 comments
Closed
Labels

Comments

@achristodoulou
Copy link

I have installed packagist and did all the configuration and then start php built-in server. When I tried to browse I received the following error.

I find out that instead of setting up this parameter for redis redis_dsn: redis://localhost/1 I set the following and it worked redis_session_dsn: redis://localhost/1


[Fri Aug 14 21:35:50 2015] 127.0.0.1:59212 [500]: /app.php - Uncaught exception 'Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException' with message 'You have requested a non-existent parameter "redis_session_dsn".' in /home/me/Projects/test/packagist/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php:106
Stack trace:
#0 /home/me/Projects/test/packagist/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php(232): Symfony\Component\DependencyInjection\ParameterBag\ParameterBag->get('redis_session_d...')
#1 /home/me/Projects/test/packagist/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php(203): Symfony\Component\DependencyInjection\ParameterBag\ParameterBag->resolveString('%redis_session_...', Array)
#2 /home/me/Projects/test/packagist/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php(193): Symfony\Component\DependencyInjection\Para in /home/me/Projects/test/packagist/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php on line 106
@achristodoulou
Copy link
Author

Parameter redis_dsn is still required and cannot be removed, otherwise you will receive the following error:

21:58 $ app/console assets:install web

  [Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException]                   
  You have requested a non-existent parameter "redis_dsn". Did you mean this: "redis_dsn_test"?

@alcohol alcohol added the Bug label Aug 14, 2015
@alcohol
Copy link
Member

alcohol commented Aug 14, 2015

That is weird, redis_session_dsn is defined in defaults.yml, which is included by config.yml, from which prod and dev (and subsequently test) inherit.

Sorry I misread my own search results :')

It's used in production config only. But not defined anywhere.

@alcohol
Copy link
Member

alcohol commented Aug 14, 2015

I think either a default should be added in defaults.yml, or it should be added to parameters.yml.dist so users will explictly assign it a value when going through this file.

Which solution would you favor, or otherwise what alternative do you suggest, @Seldaek ?

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

No branches or pull requests

2 participants