capistrano-rails-db icon indicating copy to clipboard operation
capistrano-rails-db copied to clipboard

Error: database access by other users

Open a-barbieri opened this issue 8 years ago • 0 comments

Hi, I've just installed your gem which is exactly what I was looking for. I wanted to try it against my stage environment (which is on a Ubuntu server). Unfortunately running this command cap stage deploy:db:drop I had this error:

01 PG::ObjectInUse: ERROR:  database "fabricacyclesstage_01" is being accessed by other users
01 DETAIL:  There is 1 other session using the database.
01 : DROP DATABASE IF EXISTS "fabricacyclesstage_01"

What am I supposed to do before running the command?

Many thanks

a-barbieri avatar Jun 09 '16 06:06 a-barbieri