Error: ✗ Could not create /var/lib/grafana/plugins/grafana-piechart-panel/.gitignore. Permission denied. Make sure you have write access to plugindir

2018. 10. 23. 15:51CM/ansible

반응형


ansible + grafana환경에서 아래와 같은 오류가 발생하였다.

Error: ✗ Could not create /var/lib/grafana/plugins/grafana-piechart-panel/.gitignore. Permission denied. Make sure you have write access to plugindir


NAME:

   Grafana cli plugins install - install <plugin id> <plugin version (optional)>


USAGE:

   Grafana cli plugins install [arguments...]



첫번째 해결책으로 아래와 같이 user: root를 통해 해결하였다.

- name: run grafana 
  docker_container: 
     name: grafana 
     user: root   
     .....


하지만 user: root 특히 root권한을 사용하는것이 review통해 지적이 나왔다.

그래서 테스트를 하다 원인을 알게 되었다. 원인은 바로 기존에 사용되어진 볼륨 이였다.

docker volume rm 볼륨이름 을 통하여 삭제 한 뒤 해보니 잘되었다.

아쉽게 재현을 다시 해보려고 하는데 잘되지 않았다..ㅠㅠ

(하도 개발서버에서 이것저것 했더니..) 정확한 원인을 찾아내기가 여간 어려운 일이 아니다..




반응형

'CM > ansible' 카테고리의 다른 글

SBT + ANSIBLE  (0) 2019.01.23
ansible error - may be elsewhere in the file depending on the exact syntax problem.  (0) 2018.10.23
ansible 주요 역할 정리  (0) 2018.07.31