Template upload failed due to permission denied error

Sravya Bandari
Sravya Bandari
  • Updated

Author:  Sravya Bandari

Date: September 8, 2025

Audience: Everyone

Environmental details: Self hosted, Replicated - KOTS

Summary

Users may face errors related to permissions when uploading templates. This article outlines solutions for resolving these issues by adjusting file permissions and ownership with specific commands, ensuring a successful upload process.

Solution

Run the following commands on the application terminal:

  • Change the access mode of the assets:
kubectl exec --tty -c core pods/core-0 -- chmod -R 755 /home/contour
  • Change the ownership of the assets:
kubectl exec --tty -c core pods/core-0 -- chown -R tomcat:tomcat /home/contour
  • Verify if the document upload functionality has been restored.

Cause

The issue occurred due to incorrect file permissions, which may have resulted from improper file copying during system re-installation or changes made to the permissions. This prevented the upload of template documents.

Prevention

To avoid similar issues in the future, ensure that file permissions and ownership are correctly configured during server installations and updates.

Additional References

Please feel free to leave feedback in the comments below.


 

 

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.