Skip to content

[Bug]: salt-ssh source instrictions does not work, source file salt:// not found error #68421

@syn4ps

Description

@syn4ps

What happened?

A bug happened!

Then running salt-ssh test state.apply test7 , that will just copy static jinja template to tmp on target host, always got error Source file salt://test7.txt.jinja not found in saltenv 'base'.

salt-master file roots config is:

file_roots:
   base:
     - /opt/saltstack/conf

file test7.txt.jinja exist in /opt/saltstack/conf

test7.sls code

test7:
  file.managed:
    - name: /tmp/test.txt
    - source: salt://test7.txt.jinja
    - template: jinja
    - user: root
    - group: root
    - mode: 644

test7.txt.jinja just static text file.
for test i've tried salt-ssh test cp.get_template salt://test7.txt.jinja /tmp/test.txt and it copied file succefully.
i've also tried contents instead source and with contents everything worked.

debug file attached to post, i've looked on target host , and i've seed this file test7.txt.jinja exist inside tar archive, but was not unpacked to path that expected no files folder totally

[DEBUG   ] In saltenv 'base', ** considering ** path '/var/tmp/.root_3d5835_salt/running_data/var/cache/salt/minion/salt-ssh/test/files/base/test7.txt.jinja' to resolve 'salt://test7.txt.jinja'
[DEBUG   ] Fetching file from saltenv 'base', ** attempting ** 'salt://test7.txt.jinja'
[DEBUG   ] No dest file found

on target host errors in salt-call.log

2025-10-23 07:06:58,919 [salt.loader      :1270][ERROR   ][209679] Unable to write to grains cache file /var/tmp/.root_3d5835_salt/running_data/var/cache/salt/minion/grains.cache.p: [Errno 2] No such file or directory: '/var/tmp/.root_3d5835_salt/running_data/var/cache/salt/minion/grains.cache.p'
2025-10-23 07:07:00,658 [salt.state       :320 ][ERROR   ][209749] Source file salt://test7.txt.jinja not found in saltenv 'base'

saltstack onedir installed via bootstrap.sh script, started at version 3007.1 , update to 3007.8 does not solve issue.

salt-ssh-debug.txt

Type of salt install

other (please specify in bug details)

Major version

3007.x

What supported OS are you seeing the problem on? Can select multiple. (If bug appears on an unsupported OS, please open a GitHub Discussion instead)

debian-12

salt --versions-report output

Salt Version:
          Salt: 3007.8

Python Version:
        Python: 3.10.18 (main, Sep  5 2025, 22:48:51) [GCC 11.2.0]

Dependency Versions:
          cffi: 1.16.0
      cherrypy: unknown
  cryptography: 42.0.5
      dateutil: 2.8.2
     docker-py: Not Installed
         gitdb: Not Installed
     gitpython: Not Installed
        Jinja2: 3.1.6
       libgit2: 1.7.2
  looseversion: 1.3.0
      M2Crypto: Not Installed
          Mako: Not Installed
       msgpack: 1.0.7
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     packaging: 24.0
     pycparser: 2.21
      pycrypto: Not Installed
  pycryptodome: 3.19.1
        pygit2: 1.14.1
  python-gnupg: 0.5.2
        PyYAML: 6.0.1
         PyZMQ: 25.1.2
        relenv: 0.20.6
         smmap: Not Installed
       timelib: 0.3.0
       Tornado: 6.4.2
           ZMQ: 4.3.4

Salt Package Information:
  Package Type: onedir

System Versions:
          dist: debian 12.12 bookworm
        locale: utf-8
       machine: x86_64
       release: 6.8.12-15-pve
        system: Linux
       version: Debian GNU/Linux 12.12 bookworm

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbroken, incorrect, or confusing behaviorneeds-triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions