Unable to create parent directory /mnt/var/www/html/content | Community
Skip to main content
Level 2
April 1, 2022

Unable to create parent directory /mnt/var/www/html/content

  • April 1, 2022
  • 2 replies
  • 2988 views

We're using AEM cloud and running into the following dispatcher error: Unable to create parent directory /mnt/var/www/html/content.  Since its on cloud I'm not sure how to resolve since we don't have access to adjust any permissions.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

joerghoh
Adobe Employee
Adobe Employee
April 3, 2022

Can you share a bit more context? Does the deployment break because of this?

Level 2
April 7, 2022

The deployment doesn't break.  We turned up the logging in the staging environment and saw this  

 

Found farm ****_farm for staging.****.com
checking [/us/en/tests/****/subscribe.html]
cachefile does not exist: /mnt/var/www/html/content/****/us/en/tests/****/subscribe.html
try to create new cachefile: /mnt/var/www/html/content/****/us/en/tests/****/subscribe.html
cache-action for [/us/en/tests/****/subscribe.html]: CREATE
Connected to backend 0 (localhost:8080)
Sending request body to remote server
Request body sent to remote server
Unable to create parent directory /mnt/var/www/html/content/****/us/en/tests/****: Permission denied
response.status = 200

joerghoh
Adobe Employee
Adobe Employee
April 25, 2022

this means that the unix user used by the Apache httpd cannot create files/directories below there. Not really specific to AEM or the dispatcher. Adjust the permissions below /mnt/var/www/html so that the user used by httpd (in many distributions it is called "httpd") can write there.

Level 2
April 25, 2022

This makes sense for an on prem dispatcher.  Not sure how I can adjust permissions on cloud.