Article - CS323021

Creation of Postgres Docker container fails with error "could not set permissions on directory "/ThingworxPostgresqlStorage": Operation not permitted"

Modified: 11-Aug-2020   


Applies To

  • ThingWorx Platform 8.5

Description

  • Creation of Postgres Docker container fails with error 
CREATE ROLE
ERROR:  could not set permissions on directory "/ThingworxPostgresqlStorage": Operation not permitted
STATEMENT:  CREATE TABLESPACE "thingworx" OWNER "thingworx" location '/ThingworxPostgresqlStorage';
psql:/tmp/install/thingworx-database-setup.sql:1: ERROR:  could not set permissions on directory "/ThingworxPostgresqlStorage": Operation not permitted
  • Command docker-compose -f docker-compose-postgres.yml up -d fails with error Encountered errors while bringing up the project
  • Facing ownership issue on folder ThingworxPostgresqlStorage when starting a Postgres container on Ubuntu
This is a printer-friendly version of Article 323021 and may be out of date. For the latest version click CS323021