From ee9cec707ba17d7dbb25c715df0268daf703929d Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Fri, 19 Nov 2021 10:10:22 -0800 Subject: [PATCH] Partial revert of matrix-gerritbot user change It complains about not being able to get or create the default cache directory (but doesn't tell us what that directory is). We'll have to sort this out later. Change-Id: I5ce7a875ede77c6203d1b5d06da97f8c52ee48e1 --- .../matrix-gerritbot/templates/docker-compose.yaml.j2 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/playbooks/roles/matrix-gerritbot/templates/docker-compose.yaml.j2 b/playbooks/roles/matrix-gerritbot/templates/docker-compose.yaml.j2 index 9148c9d4ae..eaeb87deb9 100644 --- a/playbooks/roles/matrix-gerritbot/templates/docker-compose.yaml.j2 +++ b/playbooks/roles/matrix-gerritbot/templates/docker-compose.yaml.j2 @@ -6,7 +6,14 @@ services: gerritbot-matrix: image: {{ gerritbot_matrix_image }} network_mode: host - user: "{{ gerritbot_uid }}:{{ gerritbot_gid }}" + # Temporarily (I hope) undo the gerritbot user override as the process + # complains with: + # 2021-11-19 17:50:14.995 [ThreadId 4]: Session created for: UserID "@gerrit:opendev.org" + # + # Warning: Could not get or create the default cache directory: + # + # gerritbot-matrix: : hPutChar: invalid argument (invalid character) + #user: "{{ gerritbot_uid }}:{{ gerritbot_gid }}" restart: always logging: driver: syslog