proophessor-do-symfony icon indicating copy to clipboard operation
proophessor-do-symfony copied to clipboard

Installing with Docker now working

Open adapik opened this issue 7 years ago • 6 comments

I'm following instructions. EventStore and tables were created but seems projections are not.

`An exception occurred while executing 'SELECT * FROM read_user':

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'todo.read_user' doesn't exist`

adapik avatar Oct 11 '17 15:10 adapik

You have to run the projections, did you?

On Oct 11, 2017 11:38 PM, "Adapik" [email protected] wrote:

I'm following instructions. EventStore and tables were created but seems projections are not.

`An exception occurred while executing 'SELECT * FROM read_user':

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'todo.read_user' doesn't exist`

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/prooph/proophessor-do-symfony/issues/16, or mute the thread https://github.com/notifications/unsubscribe-auth/AAYEvKiaRR6raVVC13uqDqxuhFonrEdIks5srODygaJpZM4P1sS_ .

prolic avatar Oct 11 '17 15:10 prolic

Yes, I've finally found commands for running projections in manual installation file and run them mannualy. Now it's working. They are absent in Docker installation instructons.

adapik avatar Oct 11 '17 17:10 adapik

Really? Please provide a PR for the docs. Thanks.

On Oct 12, 2017 1:03 AM, "Adapik" [email protected] wrote:

Yes, I've finally found commands for running projections in Vagrant installation file and run them mannualy. Now it's working. They are absent in Docker installation instructons.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/prooph/proophessor-do-symfony/issues/16#issuecomment-335878299, or mute the thread https://github.com/notifications/unsubscribe-auth/AAYEvKgOoVjAoKg4Khf9GF86xxiO33j7ks5srPTTgaJpZM4P1sS_ .

prolic avatar Oct 11 '17 17:10 prolic

projections should start automatically when using docker: https://github.com/prooph/proophessor-do-symfony/blob/master/docker-compose.yml#L37

But maybe there is a timing problem when running docker-compose up -d for the first time :thinking: I'll check it again with a fresh installation.

codeliner avatar Oct 11 '17 19:10 codeliner

Thanks a lot for your help!

@codeliner , you are right. After docker-compose down and up everything works properly. I suppose when I was trying to run docker-compose up for the first time it was some problem with db (not started, not configured?), but it was no exit code 1 so i didn't noticed.

Probably it's some my local problem and you should close the issue.

adapik avatar Oct 12 '17 07:10 adapik

Ok, cool. Good to know. We should add a hint in the docs that if projections are not running one should look at the containers and try a down and up again

codeliner avatar Oct 12 '17 15:10 codeliner