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

Can't enable plugin on server on Ubuntu 18.05 #2147

Closed
TryToCa7ch opened this issue May 29, 2020 · 7 comments · Fixed by #2295
Closed

Can't enable plugin on server on Ubuntu 18.05 #2147

TryToCa7ch opened this issue May 29, 2020 · 7 comments · Fixed by #2295
Assignees
Labels
stale A stale issue or PR that will automatically be closed.

Comments

@TryToCa7ch
Copy link

TryToCa7ch commented May 29, 2020

Can't run loki docker plugin

To Reproduce
Steps to reproduce the behavior:

  1. docker plugin install grafana/loki-docker-driver:latest --alias loki --grant-all-permissions

expects that plugin enabling but got this error

Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused "rootfs_linux.go:58: mounting \"\" to rootfs \"/var/lib/docker/plugins/cae5c01a8057d45dccac67b5d67f78b9ac77d02461f814b897172945cb913fc5/rootfs\" at \"/var/lib/docker/plugins/cae5c01a8057d45dccac67b5d67f78b9ac77d02461f814b897172945cb913fc5/rootfs/data\" caused \"invalid argument\""": unknown

docker plugin enable loki do same error

@rubycut
Copy link

rubycut commented Jun 2, 2020

I have same issue.

@cdreier
Copy link

cdreier commented Jun 2, 2020

i had the same issue, but i got around it when i just updated the plugin

docker plugin disable loki
docker plugin upgrade loki grafana/loki-docker-driver:master
docker plugin enable loki

@cyriltovena
Copy link
Contributor

seems like there is an issue with latest and empty mount. #2054 is probably why.

@cyriltovena cyriltovena self-assigned this Jun 2, 2020
@cyriltovena
Copy link
Contributor

In the meantime you can do this:

docker plugin set loki:latest data.source=/tmp
docker plugin enable loki:latest

If you want to use latest. I'm thinking about what should be the final solution.

@cyriltovena
Copy link
Contributor

@bkmit #2054 seems to cause problem with some version of docker and/or OS. I feel like we have a new way to include pipeline via log-opt and we should advertise this instead. https://github.com/grafana/loki/tree/master/cmd/docker-driver#pipeline-stages

I'm going to remove the mount in the spec and document how to reproduce it locally. If you still want to use the old image you can use this tag master-5e0fe09 which support the mount.

@rubycut
Copy link

rubycut commented Jun 3, 2020

In the meantime you can do this:

docker plugin set loki:latest data.source=/tmp
docker plugin enable loki:latest

If you want to use latest. I'm thinking about what should be the final solution.

Yes, this works.

@stale
Copy link

stale bot commented Jul 3, 2020

This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale A stale issue or PR that will automatically be closed. label Jul 3, 2020
@stale stale bot closed this as completed Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale A stale issue or PR that will automatically be closed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants