ticket-booking icon indicating copy to clipboard operation
ticket-booking copied to clipboard

instructions dont work in readme for local docker compose up

Open davidbuzz opened this issue 1 year ago • 0 comments

what didnt work for me was some combination of: [ first disable my local postgres ] [ edit both docker .yaml files and extend all '2s' timeouts and '5s' timeouts to '10s' ] service postgresql stop docker compose down docker compose up docker compose down docker compose up sleep 60 ./run ./run docker ps

things i saw go wrong in the logs at different stages:

buggregator-1        | panic: runtime error: invalid memory address or nil pointer dereference
buggregator-1        | [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xc61bb2]
buggregator-1        | 
buggregator-1        | goroutine 40 [running]:
buggregator-1        | github.com/roadrunner-server/centrifuge/v4.(*rpc).Broadcast(0xc00094bfb0, 0xc00050e528?, 0xc000919100)
buggregator-1        | 	github.com/roadrunner-server/centrifuge/[email protected]/rpc.go:81 +0x52
buggregator-1        | reflect.Value.call({0xc00096de60?, 0xc00009bf08?, 0x13?}, {0x1f315f7, 0x4}, {0xc000a08ef8, 0x3, 0x3?})
buggregator-1        | 	reflect/value.go:596 +0xce7
buggregator-1        | reflect.Value.Call({0xc00096de60?, 0xc00009bf08?, 0x443f6e?}, {0xc00049aef8?, 0x411845?, 0x10?})
buggregator-1        | 	reflect/value.go:380 +0xb9
buggregator-1        | net/rpc.(*service).call(0xc000919ac0, 0xc00055bd38?, 0xc00055baa0?, 0xc00050e030, 0xc000796c80, 0xc00049afd0?, {0x1e015e0?, 0xc00098e080?, 0x24b7cc0?}, {0x1d96be0, ...}, ...)
buggregator-1        | 	net/rpc/server.go:382 +0x214
buggregator-1        | created by net/rpc.(*Server).ServeCodec in goroutine 39
buggregator-1        | 	net/rpc/server.go:479 +0x410

docker logs -f spiral-php-ticket-booking-cinema-1

[Cycle\Database\Exception\StatementException\ConnectionException]
SQLSTATE[08006] [7] connection to server at "db" (172.101.8.7), port 5432 failed: Connection refused
	Is the server running on that host and accepting TCP/IP connections? in vendor/cycle/database/src/Driver/Postgres/PostgresDriver.php:244
[PDOException]
SQLSTATE[08006] [7] connection to server at "db" (172.101.8.7), port 5432 failed: Connection refused
	Is the server running on that host and accepting TCP/IP connections? in vendor/cycle/database/src/Driver/Driver.php:641
[ErrorException]
fsockopen(): Unable to connect to buggregator:9913:-1 (Connection refused) in vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php:260
[Cycle\Database\Exception\StatementException\ConnectionException]
SQLSTATE[08006] [7] connection to server at "db" (172.101.8.7), port 5432 failed: timeout expired in vendor/cycle/database/src/Driver/Postgres/PostgresDriver.php:244
[PDOException]
SQLSTATE[08006] [7] connection to server at "db" (172.101.8.7), port 5432 failed: timeout expired in vendor/cycle/database/src/Driver/Driver.php:641

docker logs -f db

Error response from daemon: configured logging driver does not support reading

[ snipett from ./run.sh output ]

cinema-1             | [Cycle\Database\Exception\StatementException\ConnectionException]
cinema-1             | SQLSTATE[08006] [7] connection to server at "db" (172.101.9.4), port 5432 failed: Connection refused
cinema-1             | 	Is the server running on that host and accepting TCP/IP connections? in vendor/cycle/database/src/Driver/Postgres/PostgresDriver.php:244
cinema-1             | [PDOException]
cinema-1             | SQLSTATE[08006] [7] connection to server at "db" (172.101.9.4), port 5432 failed: Connection refused
cinema-1             | 	Is the server running on that host and accepting TCP/IP connections? in vendor/cycle/database/src/Driver/Driver.php:641
cinema-1             | [ErrorException]
cinema-1             | fsockopen(): Unable to connect to buggregator:9913:-1 (Connection refused) in vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php:260

docker logs -f spiral-php-ticket-booking-buggregator-1

2024-10-03T23:48:59+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 [] []

2024-10-03T23:48:59+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 [] []

2024-10-03T23:48:59+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 [] []

2024-10-03T23:48:59+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 [] []

[INFO] RoadRunner server started; version: 2023.3.7, buildtime: 2023-11-30T19:15:58+0000
[INFO] sdnotify: not notified

[ since some of the above documented url/s seem to work, i found this one in the http://127.0.0.1:8003/ Buggregator url ]

Cycle\Database\Exception\StatementException\ConnectionException: SQLSTATE[08006] [7] connection to server at "db" (172.101.11.6), port 5432 failed: Connection refused
	Is the server running on that host and accepting TCP/IP connections? in /app/users/vendor/cycle/database/src/Driver/Postgres/PostgresDriver.php at line 244

... and I checked that docker DID start its postgres:

docker ps | grep postgres

d5875e879b03   postgres                                          "docker-entrypoint.s…"   17 minutes ago   Up 17 minutes (healthy)         0.0.0.0:5432->5432/tcp             db
cbf484f7b392   postgres                                          "docker-entrypoint.s…"   17 minutes ago   Up 17 minutes                   5432/tcp                           temporal-postgresql

diagnosed what I can from here, cant figure out what to try next..

P.S. at this url: http://127.0.0.1:8088/ for Temporal i get just an error page:

500

Uh oh. There's an error.

Internal Error

or[ jump on our Slack Channel](https://temporal.io/slack).

davidbuzz avatar Oct 04 '24 00:10 davidbuzz