logs/Catalina.out: Read Only file system

I am implementing Tomcat snap.
After installation, while trying to running the server by startup.sh, I am getting the error.

xyz @xyz-pc :/snap/tomcat/x1/bin$ ./startup.sh
Using CATALINA_BASE:   /snap/tomcat/x1
Using CATALINA_HOME:   /snap/tomcat/x1
Using CATALINA_TMPDIR: /snap/tomcat/x1/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /snap/tomcat/x1/bin/bootstrap.jar:/snap/tomcat/x1/bin/tomcat-juli.jar
touch: cannot touch '/snap/tomcat/x1/logs/catalina.out': Read-only file system
./catalina.sh: 456: ./catalina.sh: cannot create /snap/tomcat/x1/logs/catalina.out: Read-only file system

I tried changing the permissions. It is not helping.
Can you help me please.

You should set CATALINA_BASE to $SNAP_DATA or $SNAP_USER_DATA. Note that $SNAP_DATA is writable by root only.