Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sudo docker-compose logs -f wouldn't work #26

Open
gmorningman opened this issue Dec 21, 2021 · 3 comments
Open

sudo docker-compose logs -f wouldn't work #26

gmorningman opened this issue Dec 21, 2021 · 3 comments

Comments

@gmorningman
Copy link

I didn't copy paste exactly what the error was but it was something along the lines of [ERROR DEX_PATH /modules/blah/blah/blah]

I edit my docker-compose.yml to just use my full path and its working fine now. however didn't work "out of the box"
/home/username/ergo/ergo-dex-backend/modules/utxo-tracker/target/docker/stage
/home/username/ergo/ergo-dex-backend/modules/amm-executor/target/docker/stage
/home/username/ergo/ergo-dex-backend/modules/pool-resolver/target/docker/stage

Brand new installation of ubuntu server 20.04.3

@FidgetyRat
Copy link

Yes, the environment variable set in the script isn't working even if explicitly exported first (Same for me on Debian). Had to hard code the paths.

@riidatibula
Copy link

Try using the latest version of docker-compose. I had the same error when using the earlier versions (1.29.x)

@jmagan
Copy link

jmagan commented Mar 14, 2022

Go to the folder /home/username/ergo/ergo-dex-backend/ and execute export DEX_SOURCES_PATH=${PWD}. When you set the environment variable to use in the docker-compose.yml, then execute sudo -E docker-compose logs -f . The "-E" option is used to pass all the environment variable of the current session to the sudo command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants