Hello I have a problem with Meltano on my ubuntu m...
# troubleshooting
c
Hello I have a problem with Meltano on my ubuntu machine. I have installed airflow but when I want to execute this command sudo docker run -v $(pwd):/projects -w /projects meltano/meltano invoke airflow db init I have this error  [Errno 2] No such file or directory: '/projects/.meltano/run/airflow/airflow.cfg' yet on the EC2 instance I do not have this error how could I solve it ?
a
On the local machine where you are running docker, can you confirm if you see the file
/projects/.meltano/run/airflow/airflow.cfg
before invoking docker?
c
the file is not there
a
Okay, that’s helpful. It looks like the install is perhaps not complete within the image. I’m curious if running
meltano install
will heal the missing files. Can you try two things for me? First, can you try running
meltano install
within the container to see if that resolves it? (You will need to get into an interactive prompt first, so that you can run multiple commands inside the container.) Second, can you try rerunning
meltano install
on your local machine before running via docker? My hope and expectation if you have a successful install locally, that those files should be able to be mounted to the container.
c
@aaronsteers Here is the result of the execution of the command
a
@corneille_ombang - Thanks for sharing this log. It looks like after running, you exited the container and the next
docker run
command kicks off an entirely new container. Without running
exit
, can you try directly kicking off your following command
meltano invoke airflow db init
? Alternatively, you can name the container when launching it and then use
docker exec
to send subsequent commands to the same container. By default
docker run
will just keep creating new containers based on the original image.