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

Template file (may be deleted) change to folder when job restart #24106

Open
khinhvuphiduong opened this issue Oct 2, 2024 · 0 comments
Open
Labels

Comments

@khinhvuphiduong
Copy link

Nomad version

Output from 1.3.2

Operating system and Environment details

Ubuntu server Ubuntu 20.04.6 LTS

Issue

Template file change to folder when job restart

Reproduction steps

Template output mount to container, after app restart, it looks like the mount file is deleted but it happens very rarely.

Expected Result

Mount file isn't deleted

Actual Result

Mount file is deleted

Job file (if appropriate)

...
"Tasks": [
        {
          "Name": "job_name",
          "Driver": "docker",
          "User": "",
          "Config": {
            "force_pull": false,
            "image": "private_repo",
            "ports": [
              "http"
            ],
            "volumes": [
              "/etc/localtime:/etc/localtime:ro",
              "local/log:/app/Logging/",
              "local/config/appsettings.json:/app/appsettings.json:ro"
            ],
            "auth": [
              {
                "username": "user private",
                "password": "password private"
              }
            ],
            "cap_add": [
              "SYS_PTRACE"
            ]
          },
          "Env": {
            "CONSUL_PREFIX": "nomad-"
          },
          "Services": null,
          "Vault": null,
          "Templates": [
            {
              "SourcePath": "local/configtpl/template_file.tpl",
              "DestPath": "local/config/appsettings.json",
              "EmbeddedTmpl": "",
              "ChangeMode": "noop",
              "ChangeSignal": "",
              "Splay": 5000000000,
              "Perms": "0644",
              "LeftDelim": "{{",
              "RightDelim": "}}",
              "Envvars": false,
              "VaultGrace": 0,
              "Wait": null
            }
          ],
...

Nomad Server logs (if appropriate)

nothing special

Nomad Client logs (if appropriate)

nothing special

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

No branches or pull requests

1 participant