Hello! Is there another way to instantiate the `.m...
# best-practices
t
Hello! Is there another way to instantiate the
.meltano
directory besides running
meltano init
? I would like to clone a git tracked Meltano project and just run
mletano install
to install everything I need, but since the
.meltano
directory isn't tracked by git, I get an error about not being able to connect to the DB. when I run
meltano install
Thanks!
e
Hi @tim_brunk!
meltano install
should (re)create the
.meltano/
directory and the default
.meltano/meltano.db
database if it doesn't exist. So, a couple of questions: 1. Are you using the default (SQLite) db? 2. If not, are you running a CI pipeline to build a Meltano docker image in an environment without access to the database?
t
I'm using the default SQLite (as far as I know, I didn't configure anything differently). The repository where I'm cloning from; however, does have a CI pipeline setup to build and publish Docker images.
e
Thanks! Can you share the exact error you're getting? I got the feeling it may be an OS permissions issue (i.e. can't create the directory or can't write the sqlite file)
t
Thanks for your help! Here is a screen shot. This is after I cloned a Meltano repository and tried to run
meltano install
first. My workaround currently is to
meltano init
first, then add the
git remote
second and pull down the code.