question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FileSystemException on Docker container

See original GitHub issue

Hello. I caught following FileSystemException on Docker container.

$ docker exec 6dd java -jar /usr/local/bin/digdag run /mydag.dig
2017-06-23 06:54:52 +0000: Digdag v0.9.12
error: java.nio.file.FileSystemException: /proc/self/task/178/fd/24/proc/self/task/178/fd/24/proc/self/task/178/fd/24/proc/self/task/178/fd/24/proc/self/task/178/fd/24/proc/self/task/178/fd/24/proc/self/task/178/fd/24/proc/self/task/178/fd/24/proc/self/task/178/fd/24/proc/self/task/178/fd/24/proc/self/task/178/fd/24/proc/self/task/178/fd/24/proc/self/task/178/fd/24/proc/self/task/178/fd/24/proc/self/task/178/fd/24/proc/self/task/178/fd/24/proc/self/task/178/fd/24/proc/self/task/178/fd/24/proc/self/task/178/fd/24/proc/self/task/178/fd/24/proc/1/map_files: Operation not permitted (directory iterator)

my environment: https://github.com/koooge/docker-recipes/tree/digdag/digdag-embulk It seems that it also does’nt work digdag schedular

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
frsyukicommented, Aug 12, 2017

digdag run command lists files on the current directory and it traverses subdirectories recursively. When you run digdag run in docker container, probably it ran on /. /proc is a subdirectory of / and apparently it includes recursive symbolic link: /proc/self/task/178/fd/24 -> /. So listing up files recursively caused infinite loop.

You should be able to avoid this problem by using another working directory.

0reactions
kooogecommented, Sep 1, 2017

Okay, it became to work correctly. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FileSystemException when runnning a Dart Shelf Docker ...
I think since you didn't set the WORKDIR for the new image that you started building FROM scratch . You can fix this...
Read more >
FileSystemException when runnning a Dart Shelf Docker ...
Coding example for the question FileSystemException when runnning a Dart Shelf Docker Container-docker.
Read more >
Read-only filesystems in Docker and Kubernetes
Learn how to make your filesystems in containers read-only to minimize the attack surface and create controlled exceptions using tmpfs and ...
Read more >
No space left on device error - Docker Desktop for Mac
I'm using the Docker for Mac Beta 10 and trying to pull a very large image from our Docker trusted registry. The final...
Read more >
Install Elasticsearch with Docker | Elasticsearch Guide [7.17]
To get a three-node Elasticsearch cluster up and running in Docker, you can use Docker Compose: Create a docker-compose.yml file: ... FileSystemException: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found