Skip to content

(KeyError) key :database not found on migration run when running blockscout-optimism:latest backend for OP Rollup in AWS ECS #8993

Closed Answered by iTranscend
iTranscend asked this question in Q&A
Discussion options

You must be logged in to vote

Turns out that the blockscout binary didn't have access to the sourced envs.

I needed to export the envs. Updated my entrypoint script and it works like a charm

#!/bin/sh

set -a
source /scripts/common-blockscout.env 
set +a

bin/blockscout eval "Elixir.Explorer.ReleaseTasks.create_and_migrate()"

exec bin/blockscout start

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@iTranscend
Comment options

@iTranscend
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by iTranscend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants