Error when executing code of __staged_file type #173
Labels
No Label
bugfix
cleanup
discussion
documentation
doing
done
feature
improvement
packaging
Stale
testing
TODO
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: ungleich-public/cdist#173
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: carlosotgz
Hello @asteven. I get this output when I execute the following command:
control% cdist config -v 136.243.197.186 INFO: cdist: version 3.1.13-69-g36d6ffb root@136.243.197.186's password: INFO: 136.243.197.186: Running global explorers INFO: 136.243.197.186: Running initial manifest /tmp/tmpacxtbhrf/conf/manifest/init INFO: 136.243.197.186: Running manifest and explorers for __consul/ INFO: 136.243.197.186: Running manifest and explorers for __staged_file/usr/local/bin/consul INFO: 136.243.197.186: Generating code for __staged_file/usr/local/bin/consul INFO: 136.243.197.186: Executing code for __staged_file/usr/local/bin/consul mkdir: cannot create directory ‘/var/tmp/cdist’: Permission denied ERROR: 136.243.197.186: Command failed: /bin/sh -e /tmp/tmpacxtbhrf/object/__staged_file/usr/local/bin/consul/.cdist-8tc9mqm6/code-loca l INFO: cdist: Total processing time for 1 host(s): 11.568004369735718 ERROR: cdist: Failed to configure the following hosts: 136.243.197.186
My init file contains only "__consul --version 0.6.0"
The problem is that it is trying to create an already existing directory which belongs to another user and it has not permissions at all for other users. When it manages to create this directory, it is chmoed to 0700, which will cause this problem to appear to any future user. This is the output for these directories:
I'm mentioning you on this issue @telmich just in case.
closed