Thursday 17 March 2022

TASK [Deploy tomcat config] fatal: [localhost]: FAILED! => {"msg": "an error occurred while trying to read the file '/path/to/file_name': [Errno 13] Permission denied: b'/path/to/file_name'.

 

Issue

TASK [Deploy tomcat config] *****************************************************************************************************************************************************************

fatal: [localhost]: FAILED! => {"msg": "an error occurred while trying to read the file '/path/to/file_name': [Errno 13] Permission denied: b'/path/to/file_name'. [Errno 13] Permission denied: b'/path/to/file_name'"}


Troubleshoot

809755 -rw-r-----  1 root   root   7598 Mar 16 18:33 file_name

sudo chown -R user:user file_name

809755 -rw-r-----  1 user user 7598 Mar 16 18:33 file_name


No comments:

Post a Comment