__consul fails if consul is already running #132

Closed
opened 2021-11-20 13:24:27 +00:00 by ungleich-gitea · 4 comments

Created by: telmich

ERROR: [10578]: server2.place5.ungleich.ch: Command failed: 'ssh -o User=root -o ControlPath=/tmp/tmp_ni15m4t/s -o ControlMaster=auto -o ControlPersist=2h server2.place5.ungleich.ch /bin/sh -c ' export __object=/var/lib/cdist/object/__consul/.cdist-kx2yfbz9; export __object_id=;/bin/sh -e /var/lib/cdist/object/__consul/.cdist-kx2yfbz9/code-remote''
return code: 2
---- BEGIN stdout ----
---- END stdout ----

Error processing object '__consul/'

name: __consul/
path: /tmp/tmphy8if0ky/c18ea743fd3f0c25cdfc65f0a5d996b9/data/object/__consul/.cdist-kx2yfbz9
source: /tmp/tmphy8if0ky/c18ea743fd3f0c25cdfc65f0a5d996b9/data/conf/type/__dcl_consul_agent/manifest
type: /tmp/tmphy8if0ky/c18ea743fd3f0c25cdfc65f0a5d996b9/data/conf/type/__consul

---- BEGIN code-remote:stderr ----
/var/lib/cdist/object/__consul/.cdist-kx2yfbz9/code-remote: 3: /var/lib/cdist/object/__consul/.cdist-kx2yfbz9/code-remote: cannot create /usr/local/bin/consul: Text file busy

---- END code-remote:stderr ----

VERBOSE: cdist: Total processing time for 1 host(s): 29.880240201950073
[16:30] manager:ungleich-dot-cdist%

*Created by: telmich* ERROR: [10578]: server2.place5.ungleich.ch: Command failed: 'ssh -o User=root -o ControlPath=/tmp/tmp_ni15m4t/s -o ControlMaster=auto -o ControlPersist=2h server2.place5.ungleich.ch /bin/sh -c ' export __object=/var/lib/cdist/object/__consul/.cdist-kx2yfbz9; export __object_id=;/bin/sh -e /var/lib/cdist/object/__consul/.cdist-kx2yfbz9/code-remote'' return code: 2 ---- BEGIN stdout ---- ---- END stdout ---- Error processing object '__consul/' ==================================== name: __consul/ path: /tmp/tmphy8if0ky/c18ea743fd3f0c25cdfc65f0a5d996b9/data/object/__consul/.cdist-kx2yfbz9 source: /tmp/tmphy8if0ky/c18ea743fd3f0c25cdfc65f0a5d996b9/data/conf/type/__dcl_consul_agent/manifest type: /tmp/tmphy8if0ky/c18ea743fd3f0c25cdfc65f0a5d996b9/data/conf/type/__consul ---- BEGIN code-remote:stderr ---- /var/lib/cdist/object/__consul/.cdist-kx2yfbz9/code-remote: 3: /var/lib/cdist/object/__consul/.cdist-kx2yfbz9/code-remote: cannot create /usr/local/bin/consul: Text file busy ---- END code-remote:stderr ---- VERBOSE: cdist: Total processing time for 1 host(s): 29.880240201950073 [16:30] manager:ungleich-dot-cdist%
ungleich-gitea added the
bugfix
label 2021-11-20 13:24:27 +00:00
Author
Owner

Created by: darko-poljak

Tested with consul agent running.

*Created by: darko-poljak* Tested with consul agent running.
Author
Owner

Created by: darko-poljak

@telmich Can you test b870b6e43a ?
Thanks!

*Created by: darko-poljak* @telmich Can you test https://github.com/darko-poljak/cdist/commit/b870b6e43a0b83c2a3a192cff6846b9248e23e1c ? Thanks!
Author
Owner

Created by: darko-poljak

Ah, unzip should be rewritten to unzip to temp then rm orig then mv temp to orig. It is the way unix/linux kernel and inodes work.

*Created by: darko-poljak* Ah, unzip should be rewritten to unzip to temp then rm orig then mv temp to orig. It is the way unix/linux kernel and inodes work.
Author
Owner

Created by: darko-poljak

@telmich Does this happen when using default non-direct, staged file method, too?

*Created by: darko-poljak* @telmich Does this happen when using default non-direct, staged file method, too?
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#132
No description provided.