Grails Web Application Saving file permission Denied

366 Views Asked by At

I am using the web application to write a file on server. It has working fine till we changed the directory.

we had directory /data/files/JSON previously We changed it to /data/test/JSON and now we are not able to write files in the directory.

Following is the output from log file

Cannot store JSON file for test fvHvjVvYvd: /data/test/JSON/fvHvjVvYvd.json (Permission denied) java.io.FileNotFoundException: /data/test/JSON/fvHvjVvYvd.json (Permission denied)

Why it is happening

1

There are 1 best solutions below

0
On

Most probably your user had the rights to write on path /data/files/JSON and since you have changed the path verify if the user has rights to write in new directory.