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

facing errors with docker-compose up #9

Closed
helloworldkr opened this issue Nov 24, 2019 · 5 comments
Closed

facing errors with docker-compose up #9

helloworldkr opened this issue Nov 24, 2019 · 5 comments

Comments

@helloworldkr
Copy link

error:

WARNING: The PATH_MODEL variable is not set. Defaulting to a blank string.
Starting bertsearch-master_elasticsearch_1 ...
Creating bertsearch-master_bertserving_1 ... error

ERROR: for bertsearch-master_bertserving_1 Cannot create container for service Starting bertsearch-master_elasticsearch_1 ... done
phanumeric characters

ERROR: for bertserving Cannot create container for service bertserving: create .: volume name is too short, names should be at least two alphanumeric characters
ERROR: Encountered errors while bringing up the project.

@Hironsan
Copy link
Owner

Please specify PATH_MODEL as an environment variable.

@helloworldkr
Copy link
Author

@Hironsan I have added as the path model as instructed, still getting the error

Selection_002

@Hironsan
Copy link
Owner

You should not use sudo.

export PATH_MODEL=./cased_L-12_H-768_A-12
❯ printenv | grep PATH_MODEL
PATH_MODEL=./cased_L-12_H-768_A-12
❯ sudo printenv | grep PATH_MODEL

@helloworldkr
Copy link
Author

thanks @Hironsan

@codeAshu
Copy link

The problem is that you are running sudo docker-compose and the PATH_MODEL env variable doesn't exists for sudoers. you need to add environment variables to sudoers file via
run command sudo visudo
add a line Defaults env_keep += PATH_MODEL
Now if you issue
sudo printenv | grep PATH_MODEL
It will show the env 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

3 participants