gpctl init failing due to not being able to create service directory
search cancel

gpctl init failing due to not being able to create service directory

book

Article ID: 401783

calendar_today

Updated On:

Products

VMware Tanzu Data Suite

Issue/Introduction

 

The following error can be seen when running gpctl on cluster host with non-default gpadmin home directory:

Starting gpctl init with args: [my-config.json]
gpservice is not configured
Initializing gpservice on Hosts: [list of hosts]. Hub port 4242, Agent port: 8000
[WARNING]:-gpservice not yet configured. nothing to be done.
[ERROR]:-could not create service directory /home/gpadmin/.config/systemd/user on host: <coordinator>: failed to execute command 'mkdir -p /home/gpadmin/.config/systemd/user: mkdir: cannot create directory '/home/gpadmin': Permission denied, Process exited with status 1
host: <data node 1>: failed to execute command 'mkdir -p /home/gpadmin/.config/systemd/user: mkdir: cannot create directory '/home/gpadmin': Permission denied, Process exited with status 1
...
host: <data node N>: failed to execute command 'mkdir -p /home/gpadmin/.config/systemd/user: mkdir: cannot create directory '/home/gpadmin': Permission denied, Process exited with status 1

Cause

Problem is caused by a known gpservice defect due to hardcoded home directory

Resolution

Fixed in Greenplum 7.6.0