Forum

Can I switch a BS instance to a new network?

I have a BS instance running nicely, thanks to valuable help from @viktorbaranov !

Now I would like to retire the private network it is tracking, and start a new one. How would I go about pointing the existing BS instance to the new network?

The old network is going to be gone, so I would not mind resetting the database in whatever way might be required.

Source: Manual Deployment - BlockScout

Hello, again,

That didn’t work for me,

mix do ecto.drop, ecto.create, ecto.migrate
** (Mix) The task “ecto.drop” could not be found
Note no mix.exs was found in the current directory

So, I tried following the manual-deploy instructions from the beginning.

git clone https://github.com/poanetwork/blockscout
cd blockscout/
export DATABASE_URL=…

mix phx.digest.clean
mix do deps.get, local.rebar --force, deps.compile, compile
gave errors
mix deps.compile ecto

gave errors, including:
== Compilation error in file lib/ecto/changeset.ex ==
** (Ecto.Query.CompileError) true is not a valid query expression, :select expects a query expression or a list of fields

expanding macro: Ecto.Query.select/2
lib/ecto/changeset.ex:1856: Ecto.Changeset.unsafe_validate_unique/4
expanding macro: Ecto.Query.limit/2
lib/ecto/changeset.ex:1857: Ecto.Changeset.unsafe_validate_unique/4
(elixir 1.10.3) expanding macro: Kernel.|>/2
lib/ecto/changeset.ex:1857: Ecto.Changeset.unsafe_validate_unique/4
(elixir 1.10.3) expanding macro: Kernel.if/2
lib/ecto/changeset.ex:1849: Ecto.Changeset.unsafe_validate_unique/4

could not compile dependency :ecto, “mix compile” failed. You can recompile this dependency with “mix deps.compile ecto”, update it with “mix deps.update ecto” or clean it with “mix deps.clean ecto”

From which directory did you run mix do ecto.drop, ecto.create, ecto.migrate. You should run it from the root directory where the application files exist.

Originally, I think I tried it form the ec2-user home directory.

On another try, I cloned the repository and ran it from the working copy directory.

What is the “the root directory where the application files exist”? Is it in /opt somewhere?

What is the “the root directory where the application files exist”? Is it in /opt somewhere?

/opt/app/