-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
encountering " protocol Enumerable not implemented for nil of type Atom" while running the docker-compose with external database #10007
Comments
@SorrawitRUNGRUJEE you should put the db name at the end of the URI. So the full URI should look like your_uri +
|
@vbaranov Thank you for your advice I've changed the database URL as you have suggested as follow postgresql://postgres:************@test-explorer.crnrz7sdkd7c.ap-southeast-1.rds.amazonaws.com:5432/blockscout but there are still error that is showing up I have test the connection with DBeaver and pg_isready command line, both connection test were normal |
Cerco una collaborazione. |
hey @vbaranov, I am running postgres db on the same vm (not external) using the docker setup. Get the same error on
this is my DATABASE_URL =
using scram-sha-256 |
@SorrawitRUNGRUJEE please check your DB URL to follow this regexp pattern (see comment #10047 (comment)). Most likely it doesn't follow this pattern. |
Description
I am trying to run blockscout with docker-compose -f external-db.yml up and then the following error shows up from the attached console
stats | 2024-05-02T06:30:23.959183Z ERROR stats_server: service failed with error: Connection Error: error communicating with database: failed to lookup address information: Name or service not known
stats | Error: Connection Error: error communicating with database: failed to lookup address information: Name or service not known
stats |
stats | Caused by:
stats | error communicating with database: failed to lookup address information: Name or service not known
backend | Starting dependencies..
backend | Starting repos..
backend | ** (EXIT from #PID<0.132.0>) an exception was raised:
backend | ** (Protocol.UndefinedError) protocol Enumerable not implemented for nil of type Atom. This protocol is implemented for the following type(s): Cldr.Unit.Range, DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Floki.HTMLTree, Flow, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, Indexer.BoundQueue, Jason.OrderedObject, List, Map, MapSet, Postgrex.Stream, Range, Stream, Timex.Interval
Type of the installation
Docker-compose
Type of the JSON RPC archive node
Geth
Type of the chain
No response
Link to the page
No response
Steps to reproduce
DATABASE_URL
postgresql://postgres:@test-explorer.crnrz7sdkd7c.ap-southeast-1.rds.amazonaws.com:5432
ETHEREUM_JSONRPC_HTTP_URL=http://188.166.205.207
ETHEREUM_JSONRPC_TRACE_URL=http://188.166.205.207
Backend version
latest
Frontend version
latest
Elixir & Erlang/OTP versions
Elixir 1.14.5 (compiled with Erlang/OTP 25)
Operating system
Linux
Additional information
No response
The text was updated successfully, but these errors were encountered: