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

[BUG] Cannot run salt-master without root #67083

Open
Akm0d opened this issue Dec 3, 2024 · 5 comments
Open

[BUG] Cannot run salt-master without root #67083

Akm0d opened this issue Dec 3, 2024 · 5 comments
Assignees
Labels
Bug broken, incorrect, or confusing behavior debian affects this operating system Grains Regression The issue is a bug that breaks functionality known to work in previous releases. ubuntu affects this operating system

Comments

@Akm0d
Copy link
Contributor

Akm0d commented Dec 3, 2024

Description
Running salt master in Vscode integrated terminal as a non-root user results in:

[Errno 2] No such file or directory: 'dmesg'

Setup
(Please provide relevant configs and/or SLS files (be sure to remove sensitive info. There is no general set-up of Salt.)
Master config:

user: localuser
root_dir: /home/localuser/salt_config/root

Please be as specific as possible and give set-up details.

pip install

Steps to Reproduce the behavior

Expected behavior
Salt Master runs normally

Versions Report

Salt Version:
          Salt: 3007.1+450.g9d10d699f3
 
Python Version:
        Python: 3.12.7 (main, Nov 10 2011, 15:00:00) [GCC 14.2.0]
 
Dependency Versions:
          cffi: 1.17.1
      cherrypy: 18.10.0
  cryptography: 44.0.0
      dateutil: 2.9.0.post0
     docker-py: Not Installed
         gitdb: Not Installed
     gitpython: Not Installed
        Jinja2: 3.1.4
       libgit2: Not Installed
  looseversion: 1.3.0
      M2Crypto: Not Installed
          Mako: Not Installed
       msgpack: 1.1.0
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     packaging: 24.2
     pycparser: 2.22
      pycrypto: Not Installed
  pycryptodome: 3.21.0
        pygit2: Not Installed
  python-gnupg: 0.5.3
        PyYAML: 6.0.2
         PyZMQ: 26.2.0
        relenv: Not Installed
         smmap: Not Installed
       timelib: 0.3.0
       Tornado: 6.4.2
           ZMQ: 4.3.5
 
Salt Package Information:
  Package Type: pip
 
System Versions:
          dist: org.freedesktop.platform 24.08 Flatpak runtime
        locale: utf-8
       machine: x86_64
       release: 6.9.3-76060903-generic
        system: Linux
       version: Freedesktop SDK 24.08 Flatpak runtime
@Akm0d Akm0d added Bug broken, incorrect, or confusing behavior needs-triage labels Dec 3, 2024
@Akm0d Akm0d self-assigned this Dec 3, 2024
@Akm0d Akm0d added Regression The issue is a bug that breaks functionality known to work in previous releases. Grains ubuntu affects this operating system debian affects this operating system and removed needs-triage labels Dec 3, 2024
@dnessett
Copy link

dnessett commented Dec 5, 2024

What version of Ubuntu were you running when you encountered the problem? The system information only specifies the kernel version (which may map to Ubuntu 23.10, but not necessarily).

@OrangeDog
Copy link
Contributor

Freedesktop SDK 24.08 Flatpak runtime

That's not Ubuntu...

@dnessett
Copy link

dnessett commented Dec 5, 2024

Then I guess the person who posted the issue is confused, since the Description says: "Running salt master on Ubuntu as a non-root user results in:" Perhaps the person who created the issue would clear this up.

@Akm0d
Copy link
Contributor Author

Akm0d commented Dec 17, 2024

VScode's integrated terminal gave me that --version-report output even though I am on Ubuntu 22.04.
I'm running the master and minion as non-root through vscode so I can step through with a debugger and the grain trying to run "dmesg" kept getting in the way.

@dnessett
Copy link

Okey Doke. Thanks for clearing that up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior debian affects this operating system Grains Regression The issue is a bug that breaks functionality known to work in previous releases. ubuntu affects this operating system
Projects
None yet
Development

No branches or pull requests

3 participants