osbuild-composer fails to start with "Error loading configuration: open /etc/osbuild-composer/osbuild-composer.toml: permission denied"

Solution Verified - Updated -

Issue

  • osbuild-composer fails to start, with any following "permission denied"

    • Following in /var/log/syslog or systemd journal log

      osbuild-composer[366376]: level=fatal msg="Error loading configuration: open /etc/osbuild-composer/osbuildcomposer.toml: permission denied"
      
      • The "permission denied" can also be for a sub-directory

        osbuild-composer[1070]: level=fatal msg="Error initializing weldr API: error loading repository definitions: open /etc/osbuild-composer/repositories: permission denied"
        
    • Following from # composer-cli blueprints list

      ERROR: List Error: Get "http://localhost/api/v1/blueprints/list?limit=0": read unix @->/run/weldr/api.socket: read: connection reset by peer
      
    • Following From # composer-cli compose status

      ERROR: List Error: Get "http://localhost/api/v1/compose/queue": dial unix /run/weldr/api.socket: connect: connection refused
      
    • Following from # composer-cli status show

      ERROR: Show Error: Get "http://localhost/api/status": dial unix /run/weldr/api.socket: connect: connection refused

Environment

  • Red Hat Enterprise Linux (RHEL) 8
  • Red Hat Enterprise Linux (RHEL) 9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content