dyne / reflow-os

Base scripts to run Reflow OS
7 stars 2 forks source link

How to update without clean re-install #11

Closed vcuculo closed 3 years ago

vcuculo commented 3 years ago

How to update the code without the reset of db?

The following

make update && make run

results in

14:54:20.328 [error] Postgrex.Protocol (#PID<0.4486.0>) failed to connect: ** (Postgrex.Error) FATAL 28P01 (invalid_password) password authentication failed for user "postgres"
14:54:20.813 [error] Postgrex.Protocol (#PID<0.4483.0>) failed to connect: ** (Postgrex.Error) FATAL 28P01 (invalid_password) password authentication failed for user "postgres"
14:54:21.304 [error] Postgrex.Protocol (#PID<0.4485.0>) failed to connect: ** (Postgrex.Error) FATAL 28P01 (invalid_password) password authentication failed for user "postgres"
14:54:21.671 [error] Postgrex.Protocol (#PID<0.4475.0>) failed to connect: ** (Postgrex.Error) FATAL 28P01 (invalid_password) password authentication failed for user "postgres"
14:54:22.288 [error] Postgrex.Protocol (#PID<0.4484.0>) failed to connect: ** (Postgrex.Error) FATAL 28P01 (invalid_password) password authentication failed for user "postgres"
14:54:22.932 [error] GenServer {Oban.Registry, {Oban, {:plugin, Oban.Plugins.Stager}}} terminating
** (DBConnection.ConnectionError) connection not available and request was dropped from queue after 1998ms. This means requests are coming in and your connection pool cannot serve them fast enough. You can address this by:

  1. Ensuring your database is available and that you can connect to it
  2. Tracking down slow queries and making sure they are running fast enough
  3. Increasing the pool_size (although this increases resource consumption)
  4. Allowing requests to wait longer by increasing :queue_target and :queue_interval 
densizengin commented 3 years ago

Hi @vcuculo,

Is your current repo of this up-to-date? If not, can you try it with an updated one (fresh setup everything as described in the README).

Cheers, srfsh

vcuculo commented 3 years ago

Ok @srfsh , thank you!

Once done a fresh setup, is the command make update && make run correct to update the repo without losing any data ?

densizengin commented 3 years ago

Ok @srfsh , thank you!

Once done a fresh setup, is the command make update && make run correct to update the repo without losing any data ?

I can't think of a reason why it can't be. If we change anything that make this doesn't work, I'll let you know.

Maybe we should also add something to the README about this. Thanks for your input! ^^

densizengin commented 3 years ago

@vcuculo if you have nothing to add, I'd like to close the issue now. ^^

vcuculo commented 3 years ago

Yes, thank you!