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

Compose version Unknown + Minor Typo #2

Closed
hirenshah opened this issue Jun 11, 2020 · 3 comments · Fixed by #8
Closed

Compose version Unknown + Minor Typo #2

hirenshah opened this issue Jun 11, 2020 · 3 comments · Fixed by #8
Assignees
Labels
bug Something isn't working

Comments

@hirenshah
Copy link

hirenshah commented Jun 11, 2020

Current DSM version: 6.2.3
Current Docker version: 18.09.8
Current Docker Compose version: 1.24.0
Target Docker version: 19.03.11
Target Docker Compose version: Unknown
Step 1 from 6: Stopping Docker service
pkgctl-Docker stoped.

Should there be a Docker Compose version displayed, rather than "Unknown"?

Also, "stopped" is spelt incorrectly :p

@markdumay
Copy link
Owner

Strange, the script should indeed detect the latest compose version automatically. Can you try running below command from your Synology command line? It should return '1.26.0'.

curl -s "https://github.com/docker/compose/tags" | egrep "a href=\"/docker/compose/releases/tag/[0-9]+.[0-9]+.[0-9]+\"" | head -1 | cut -c 45- | sed "s/\">//g"

The message pkgctl-Docker stoped. is generated by synoservicectl, so unfortunately not a message I can change myself.

@hirenshah
Copy link
Author

Yep, it returned:
1.26.0

Haha, that makes the typo even funnier :D

@markdumay
Copy link
Owner

My guess is that the web scraping call sometimes times out, perhaps GitHub has some kind of rate limiting in place. I encountered a similar issue in another repository. My suggestion is to include a default value for the Docker engine and Docker Compose binary to revert back to in case curl fails.

@markdumay markdumay self-assigned this Jun 12, 2020
@markdumay markdumay added the bug Something isn't working label Jun 12, 2020
@markdumay markdumay mentioned this issue Jun 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants