GPMT - /tmp/gpmt: Permission denied
search cancel

GPMT - /tmp/gpmt: Permission denied

book

Article ID: 296839

calendar_today

Updated On:

Products

VMware Tanzu Greenplum

Issue/Introduction

- running gpmt fails with
FATAL: error starting workers: MD5 file check failed for one or more hosts
Execution failure on host dbp011xedl: OUTPUT:f66e508ec4ef6d85358644f09de12a8c /tmp/gpmt
bash: /tmp/gpmt: Permission denied
ERROR:exit status 126
Please use valid alternate direcotry by using '-segdir' option


Environment

Product Version: 6.21

Resolution

- gpmt is copying itself to /tmp directory and executes itself form there on each host
- if the /tmp directory is a mountpoint, it can have a noexec flag setup
/dev/mapper/vg00-1vTMP /tmp xfs rw,seclabel,nosuid,nodev,noexec,relatime,attr2,inode64,noquota 0 0
- if this is setup, not even root is able to execute anything on /tmp regardless of the privilages

Workaround:
You can use gpmt with -segdir option as suggested by the error
-segdir /home/gpadmin
or
remove the noexec from the /tmp mountpoint if this is not a security risk