Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

The /tmp directory gets flooded by "auth-agent*" folders #1464

Open
fikovnik opened this issue Dec 9, 2024 · 2 comments
Open

The /tmp directory gets flooded by "auth-agent*" folders #1464

fikovnik opened this issue Dec 9, 2024 · 2 comments
Labels

Comments

@fikovnik
Copy link

fikovnik commented Dec 9, 2024

What happened?

I use devpod to create a devcontainer that I connect from both Intellij IDEA (for the Java part of the project) and ssh where I start tmux and neovim (for the C++ part of the project). Today I realized that the /tmp directory gets flooded by auth-agent* directories. A new directory is created about every second:

drwx------ 1 vscode vscode        0 Dec  9 10:34 auth-agent1008629510
drwx------ 1 vscode vscode        0 Dec  9 10:37 auth-agent1027115269
drwx------ 1 vscode vscode        0 Dec  9 10:36 auth-agent1040715800
drwx------ 1 vscode vscode        0 Dec  9 10:32 auth-agent107829153
drwx------ 1 vscode vscode        0 Dec  9 10:34 auth-agent1096869530
drwx------ 1 vscode vscode        0 Dec  9 10:34 auth-agent1100131597
drwx------ 1 vscode vscode        0 Dec  9 10:34 auth-agent1104985039
drwx------ 1 vscode vscode        0 Dec  9 10:34 auth-agent1147654851
drwx------ 1 vscode vscode        0 Dec  9 10:33 auth-agent117922636
drwx------ 1 vscode vscode        0 Dec  9 10:31 auth-agent1198594084
drwx------ 1 vscode vscode        0 Dec  9 10:31 auth-agent1202486330

The main issue that my app does generate some temp files in /tmp and because there are quickly too many auth-agent* directories, all file system operations become too slow.

How can we reproduce the bug? (as minimally and precisely as possible)

My devcontainer.json:

 "name": "r-compile-server",
  "build": {
    "dockerfile": "./Dockerfile",
    "context": "."
  },
  "workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached",
  "workspaceFolder": "/workspace",
  "postCreateCommand": "make setup",
  "customizations": {
    "vscode": {
      "extensions": [
        "vscjava.vscode-java-pack",
        "llvm-vs-code-extensions.vscode-clangd",
        "vadimcn.vscode-lldb"
      ]
    }
  },
  "runArgs": [
    "--cap-add=SYS_PTRACE",
    "--security-opt",
    "seccomp=unconfined"
  ],
  "updateRemoteUserUID": true,
  "features": {
    "ghcr.io/devcontainers/features/common-utils:2": {
      "configureZshAsDefaultShell": true
    }
  }

I start it using:

devpod up --ide intellij --dotfiles https://github.com/fikovnik/dotfiles --id r-compile-server .

Local Environment:

  • DevPod Version: 0.6.4
  • Operating System: mac
  • ARCH of the OS: ARM64

DevPod Provider:

  • Local provider: docker (via OrbStack)
@pascalbreuninger
Copy link
Member

pascalbreuninger commented Dec 13, 2024

Hey @fikovnik, thanks for reporting this issue. Is the amount of folders growing constantly or is it one burst during startup?
We currently create one of those folders per ssh connection and IntelliJ seems to be running a couple of commands during initialization

@fikovnik
Copy link
Author

No, they are constantly created ~ 3K/hour.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants