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

Can not run locally #18

Open
FZambia opened this issue Jul 6, 2023 · 5 comments
Open

Can not run locally #18

FZambia opened this issue Jul 6, 2023 · 5 comments
Assignees

Comments

@FZambia
Copy link

FZambia commented Jul 6, 2023

Hello,

This seems a very curious and valuable example. Wanted to look closer, tried to run it locally with:

docker compose up

Unfortunately getting different errors like:

container for service "cinema" is unhealthy

or

container for service "payment" is unhealthy
@FZambia
Copy link
Author

FZambia commented Jul 8, 2023

Eventually was able to run by increasing all health-check timeouts in docker compose file.

@sanchesfree
Copy link
Contributor

run.sh a few times and everything will start)))

@davidbuzz
Copy link

./run.sh
[+] Running 15/0
✔ Container spiral-php-ticket-booking-collector-1 Running 0.0s
✔ Container spiral-php-ticket-booking-redis-1 Running 0.0s
✔ Container spiral-php-ticket-booking-zipkin-1 Running 0.0s
✔ Container db Running 0.0s
✔ Container spiral-php-ticket-booking-prometheus-1 Running 0.0s
✔ Container temporal-postgresql Running 0.0s
✔ Container spiral-php-ticket-booking-birddog-1 Running 0.0s
✔ Container spiral-php-ticket-booking-buggregator-1 Running 0.0s
✔ Container spiral-php-ticket-booking-centrifugo-rpc-1 Runn... 0.0s
✔ Container spiral-php-ticket-booking-grafana-1 Running 0.0s
✔ Container spiral-php-ticket-booking-cinema-1 Running 0.0s
✔ Container temporal-ui Running 0.0s
✔ Container spiral-php-ticket-booking-payment-1 Running 0.0s
✔ Container centrifugo Running 0.0s
✔ Container spiral-php-ticket-booking-users-1 Running 0.0s
Attaching to centrifugo, db, birddog-1, buggregator-1, centrifugo-rpc-1, cinema-1, collector-1, frontend-1, grafana-1, payment-1, prometheus-1, redis-1, users-1, web-1, zipkin-1, temporal, temporal-postgresql, temporal-ui
Error response from daemon: configured logging driver does not support reading

@davidbuzz
Copy link

docker compose up -d
[+] Running 16/16
✔ Container spiral-php-ticket-booking-birddog-1 Running 0.0s
✔ Container spiral-php-ticket-booking-zipkin-1 Running 0.0s
✔ Container db Running 0.0s
✔ Container spiral-php-ticket-booking-prometheus-1 Running 0.0s
✔ Container temporal-postgresql Running 0.0s
✔ Container spiral-php-ticket-booking-buggregator-1 Running 0.0s
✔ Container spiral-php-ticket-booking-redis-1 Healthy 0.0s
✔ Container spiral-php-ticket-booking-collector-1 Running 0.0s
✔ Container spiral-php-ticket-booking-grafana-1 Running 0.0s
✔ Container spiral-php-ticket-booking-centrifugo-rpc-1 Heal... 0.0s
✔ Container spiral-php-ticket-booking-users-1 Running 0.0s
✘ Container spiral-php-ticket-booking-payment-1 Error 0.0s
✔ Container temporal-ui Running 0.0s
✘ Container spiral-php-ticket-booking-cinema-1 Error 0.0s
✔ Container centrifugo Running 0.0s
✔ Container temporal Started 0.0s
dependency failed to start: container spiral-php-ticket-booking-payment-1 is unhealthy

@bgsgroupllc
Copy link

bgsgroupllc commented Oct 29, 2024

cinema-1             | [Cycle\Database\Exception\StatementException\ConnectionException]
cinema-1             | SQLSTATE[08006] [7] connection to server at "db" (172.23.0.5), port 5432 failed: FATAL:  the database system is starting up in vendor/cycle/database/src/Driver/Postgres/PostgresDriver.php:244
cinema-1             | [PDOException]
cinema-1             | SQLSTATE[08006] [7] connection to server at "db" (172.23.0.5), port 5432 failed: FATAL:  the database system is starting up in vendor/cycle/database/src/Driver/Driver.php:641
buggregator-1        | 2024-10-29T16:44:19+0000 ERROR   app             Spiral\Goridge\RPC\Exception\ServiceException: Error 'rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:10000: connect: connection refused"' on tcp://127.0.0.1:6001 in /app/vendor/spiral/goridge/src/RPC/AbstractRPC.php at line 72 [] []
buggregator-1        | 
buggregator-1        | 2024-10-29T16:44:19+0000 ERROR   app             Spiral\Goridge\RPC\Exception\ServiceException: Error 'rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:10000: connect: connection refused"' on tcp://127.0.0.1:6001 in /app/vendor/spiral/goridge/src/RPC/AbstractRPC.php at line 72 [] []
**users-1              | [Cycle\Database\Exception\StatementException\ConnectionException]
users-1              | SQLSTATE[08006] [7] connection to server at "db" (172.23.0.5), port 5432 failed: FATAL:  the database system is starting up in vendor/cycle/database/src/Driver/Postgres/PostgresDriver.php:244
users-1              | [PDOException]
users-1              | SQLSTATE[08006] [7] connection to server at "db" (172.23.0.5), port 5432 failed: FATAL:  the database system is starting up in vendor/cycle/database/src/Driver/Driver.php:641**
payment-1            | [Cycle\Database\Exception\StatementException\ConnectionException]
payment-1            | SQLSTATE[08006] [7] connection to server at "db" (172.23.0.5), port 5432 failed: FATAL:  the database system is starting up in vendor/cycle/database/src/Driver/Postgres/PostgresDriver.php:244
payment-1            | [PDOException]
payment-1            | SQLSTATE[08006] [7] connection to server at "db" (172.23.0.5), port 5432 failed: FATAL:  the database system is starting up in vendor/cycle/database/src/Driver/Driver.php:641
buggregator-1        | 2024-10-29T16:44:21+0000 ERROR   app             Spiral\Goridge\RPC\Exception\ServiceException: Error 'rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:10000: connect: connection refused"' on tcp://127.0.0.1:6001 in /app/vendor/spiral/goridge/src/RPC/AbstractRPC.php at line 72 [] []
buggregator-1        | 
buggregator-1        | 2024-10-29T16:44:21+0000 ERROR   app             Spiral\Goridge\RPC\Exception\ServiceException: Error 'rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:10000: connect: connection refused"' on tcp://127.0.0.1:6001 in /app/vendor/spiral/goridge/src/RPC/AbstractRPC.php at line 72 [] []
buggregator-1        | 
buggregator-1        | 2024-10-29T16:44:21+0000 ERROR   app             Spiral\Goridge\RPC\Exception\ServiceException: Error 'rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:10000: connect: connection refused"' on tcp://127.0.0.1:6001 in /app/vendor/spiral/goridge/src/RPC/AbstractRPC.php at line 72 [] []

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

5 participants