혹시 시놀로지 패키지센터의 mariaDB 위치를 아시는분 계시나요? (feat. NPM 문제원인)
요즘 NPM이 2.10.x로 넘어오면서 퍼미션 에러 이슈가 나오고 있습니다....
현재 압축된 원인은 db의 권한문제로 확인 되었고, db쪽 디렉토리에 777 권한을 줘야 한다고 합니다.
참고로 도커로 db를 설치했을 경우도 binding된 디렉토리에 777 권한을 줘야 한다고 하네요....
제 경우 시놀로지 패키지센터의 db를 사용 중인데 패키지센터에 설치 된 db파일은 어느 위치에 저장되는지 아시는분 계시나요?
NPM 2.10.2에서 PGID를 설정하지 않으면 괜찮긴한데 이 부분을 지정하려면 해당 디렉토리에 777 권한을 줘야 할 것 같습니다.
Ok I think I got it now,
the issue is the permissions on the mysql folder directory
"[insert your path here]:/var/lib/mysql"
for some reason the "Other User" Value needs to be set to read,write,execute
easier wasy to do this is go to the folder where your mysql data is on the host machine (NOT INSIDE THE CONTAINER), and "chmod 777 -R [mysql folder]"
I know there are hard feelings about security and giving a container full read right permissions in a folder, but if you take other precautions this should be fine, and probably best to back up your volume as well. But this fixed the issue for me, even if I tear the container down and build it back up again with terraform.
/volume1/@database/mariadb10/mysql
^C
DSM7 + mariaDB10 기준 저도 윗분과 동일하네용
cmt alert