omar-haris / nginx-rtmp-monitoring

real-time monitoring statistics dashboard for nginx rtmp module
MIT License
293 stars 92 forks source link

Error when installing chmod + x setup.sh && ./setup.sh #28

Open v-7-3 opened 3 years ago

v-7-3 commented 3 years ago

./setup.sh: 5: ./setup.sh: Syntax error: "(" unexpected sed: -e expression #1, char 59: unterminated s' command sed: -e expression #1, char 73: unterminateds' command sed: -e expression #1, char 75: unterminated s' command sed: -e expression #1, char 71: unterminateds' command ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the services key, or omit the version key and place your service definitions at the root of the file to use version 1. For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/

v-7-3 commented 3 years ago

ubuntu 18.04

omar-haris commented 3 years ago

upgrade docker and docker-compose. its bug in docker it self. check this maybe helping you.

https://stackoverflow.com/questions/42139982/version-in-docker-compose-yml-is-unsupported-you-might-be-seeing-this-error

a-poluyanov commented 3 years ago

the same problem is observed on ubuntu, I have not found a solution yet UPD: обновление docker-compose до самой последней версии не помогло

smoxed commented 3 years ago

This will fix it!

$ sudo apt-get remove docker-compose $ sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose $ sudo chmod +x /usr/local/bin/docker-compose $ sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

rubengargar commented 2 years ago

This will fix it!

$ sudo apt-get remove docker-compose $ sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose $ sudo chmod +x /usr/local/bin/docker-compose $ sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

Not working on Docker 19.03.12 with Ubuntu 20.04 (Digital Ocean Droplet)