Question

Rexray + DOBS + docker swarm "error while waiting for storage action to finish"

Hi, I have followed the instructions here: https://www.digitalocean.com/community/questions/how-to-attach-digitalocean-block-storage-to-docker-container to attach a volume to a container in docker swarm.

docker plugin ls
ID             NAME                 DESCRIPTION                               ENABLED
a8a1bd9be729   rexray/dobs:latest   REX-Ray for Digital Ocean Block Storage   true
docker volume ls
DRIVER               VOLUME NAME
rexray/dobs:latest   grafana
rexray/dobs:latest   volume-dbs
rexray/dobs:latest   volume-fra1-01

I attach the volume to the container:

    volumes:
      - grafana:/etc/grafana
      - grafana:/var/lib/grafana
      - grafana:/var/log/grafana

I get the following error:

May 11 07:22:13 ubuntu-s-1vcpu-512mb-10gb-fra1-01 dockerd[845]: time=“2023-05-11T07:22:13Z” level=error msg="time=“2023-05-11T07:22:13Z” level=error msg=“Error while waiting for storage action to finish” host=“unix:///var/run/rexray/615785418.sock” inner=“GET https://api.digitalocean.com/v2/volumes/75af638b-eb41-11ed-9cb7-0a58ac14d288/actions/1784988059: 404 (request "2cad82aa-f39b-44ba-ad48-84b8df24e263") could not get volume action: no volume event found” instanceID=“dobs=353500070,name=ubuntu-s-1vcpu-512mb-10gb-fra1-01&region=fra1” route=volumeAttach server=daisy-duke-fr service=dobs storageDriver=dobs task=1 time=1683789733896 tls=false txCR=1683789731 txID=dd156507-4fa4-4ace-6573-1016a82eacf2 volumeID=75af638b-eb41-11ed-9cb7-0a58ac14d288 " plugin=a8a1bd9be72924325ed78c2c9fc39a50b85ae4a2320be306d8b36d620e7d453f May 11 07:22:13 ubuntu-s-1vcpu-512mb-10gb-fra1-01 dockerd[845]: time=“2023-05-11T07:22:13Z” level=error msg="time=“2023-05-11T07:22:13Z” level=error msg=“error: api call failed” error.volumeID=75af638b-eb41-11ed-9cb7-0a58ac14d288 host=“unix:///var/run/rexray/615785418.sock” route=volumeAttach server=daisy-duke-fr time=1683789733897 tls=false txCR=1683789731 txID=dd156507-4fa4-4ace-6573-1016a82eacf2 " plugin=a8a1bd9be72924325ed78c2c9fc39a50b85ae4a2320be306d8b36d620e7d453f May 11 07:22:13 ubuntu-s-1vcpu-512mb-10gb-fra1-01 dockerd[845]: time=“2023-05-11T07:22:13Z” level=error msg="time=“2023-05-11T07:22:13Z” level=error msg=“docker-legacy: Mount: loki: failed: Error while waiting for storage action to finish” host=“unix:///var/run/rexray/615785418.sock” integrationDriver=linux osDriver=linux service=dobs storageDriver=libstorage time=1683789733909 " plugin=a8a1bd9be72924325ed78c2c9fc39a50b85ae4a2320be306d8b36d620e7d453f May 11 07:22:14 ubuntu-s-1vcpu-512mb-10gb-fra1-01 dockerd[845]: time=“2023-05-11T07:22:14.005272906Z” level=error msg=“Handler for POST /v1.42/containers/create returned error: VolumeDriver.Mount: docker-legacy: Mount: loki: failed: Error while waiting for storage action to finish”


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
May 17, 2023

Hi there,

Keep in mind that the DigitalOcean Block storage volumes can only be attached to a single Droplet, and if you are deploying multiple Droplets with Docker Swarm, the tutorial that you’ve shared will not work.

Can you confirm if this is the case?

Another thing to keep in mind is that your Block Storage needs to be in the same region as the Droplet that you are attaching the volume to.

I’ve just tested this on a single Droplet and it still seems to be working as expected, but one thing to keep in mind is that the project does not seem to be actively maintained any more unfortunately.

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel