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

Enqueue DBAL DSN invalid #780

Closed
jean-gui opened this issue Feb 24, 2019 · 2 comments · Fixed by #1015
Closed

Enqueue DBAL DSN invalid #780

jean-gui opened this issue Feb 24, 2019 · 2 comments · Fixed by #1015

Comments

@jean-gui
Copy link

jean-gui commented Feb 24, 2019

Hi,

I am trying to setup the DBAL transport with SQLite in Symfony.
My enqueue.yml is:

enqueue:
    default:
        transport: '%env(resolve:DATABASE_URL)%'
        client: ~

An in my .env I have:

DATABASE_URL=sqlite:///%kernel.project_dir%/var/data.db

If I try to start Symfony console I get Failed to parse DSN "sqlite:////*******/var/data.db"

So I tried to tweak the DSN, but the only way to make it work is by putting a single /, but then if I try the command enqueue:setup-broker, I get Failed to parse DSN "sqlite:////media/perso/PhpstormProjects/downloader/var/data.db"

Am I doing something wrong?

@jean-gui
Copy link
Author

It seems that issue is with PHP's parse_url() function, called in DbalConnectionFactory.php, line 101.

@makasim
Copy link
Member

makasim commented May 15, 2019

Feel free to provide a PR that fixes the issue.

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

Successfully merging a pull request may close this issue.

2 participants