bihealth / sodar-core

SODAR Core: A Django-based framework for building scientific data management web apps
MIT License
9 stars 1 forks source link

Crash in database setup script #580

Open mikkonie opened 4 years ago

mikkonie commented 4 years ago

@stolpeo reported the following:

$ sudo bash setup_database.sh
***********************************************
Setting up Database and User for PostgreSQL
***********************************************
Database Name: sodar_core
Do you want to use an existing db-user? [y|n] y

Choose an existing user
[0] postgres
[1] ostolpe
> 1
setup_database.sh: line 49:  $choice > ${#user_array[@] - 1} : bad substitution
ln: failed to create symbolic link '/var/lib/postgresql/cubihome': File exists
ERROR:  database "sodar_core" already exists
ln: failed to create symbolic link '/var/lib/postgresql/cubihome': File exists
ERROR:  syntax error at or near ";"
LINE 1: GRANT ALL PRIVILEGES ON DATABASE sodar_core to ;
                                                       ^
ln: failed to create symbolic link '/var/lib/postgresql/cubihome': File exists
ERROR:  role "createdb" does not exist
mikkonie commented 4 years ago

In GitLab by @stolpeo on Sep 21, 2020, 09:12

created merge request !115 to address this issue

mikkonie commented 4 years ago

In GitLab by @stolpeo on Sep 21, 2020, 09:53

mentioned in commit 90213144bc11e3124099781494feac8813a5e8a5

mikkonie commented 4 years ago

This may be related to using Ubuntu 20.