dawarich icon indicating copy to clipboard operation
dawarich copied to clipboard

Creating with existing database

Open ilijamt opened this issue 8 months ago • 10 comments

Describe the bug I wanted to run it with an existing database. But I get an error. Also, DATABASE_NAME is currently ignored even though I have it set to dawarich it still tries to create a new database called dawarich_production or dawarich_development depending on the RAILS_ENV variable.

Version 0.8.0

To Reproduce Here are my env variables

- name: SECRET_KEY_BASE
   value: ib2ea9quei2asdgoorieghieb7asdgasghphiG2ieghae7Goa8oovaix
- name: RAILS_ENV
   value: production
- name: REDIS_URL
   value: redis://db01:6379/41
- name: DATABASE_HOST
   value: db01.example.com
- name: DATABASE_USERNAME
   value: dawarich
- name: DATABASE_PASSWORD
   value: aiGhah3ahYae
- name: DATABASE_NAME
   value: dawarich
- name: APPLICATION_HOST
   value: dawarich
- name: BACKGROUND_PROCESSING_CONCURRENCY
   value: "10"

Expected behavior Be able to use existing database and populate it.

Logs

RubyGems system software updated
Successfully installed bundler-2.5.9
1 gem installed
Creating database dawarich...
PG::InsufficientPrivilege: ERROR:  permission denied to create database
Couldn't create 'dawarich_production' database. Please check your configuration.
bin/rails aborted!
ActiveRecord::StatementInvalid: PG::InsufficientPrivilege: ERROR:  permission denied to create database (ActiveRecord::StatementInvalid)

ilijamt avatar Jun 26 '24 20:06 ilijamt