Fail to write to network file system

Hi Team,

I have read only file system error when write to network file system like AWS EFS or Windows share drive using tag. I have to umount and mount again to recover from this. The remount can make it working for a few hours. The file system is writable via shell script with the same user. Please kindly review and advise.

sample code:

diagnostics:
Invalid file [/mnt/efs/xx/debug/2022-01-12-15-16-52] Read-only file system
The error occurred on line 2 in file writefile.cfm.

Exception:

lucee.runtime.exp.ApplicationException: Invalid file [/mnt/efs/xx/debug/2022-01-12-15-16-52] at lucee.runtime.tag.FileTag.checkFile(FileTag.java:1205) at lucee.runtime.tag.FileTag.actionWrite(FileTag.java:714) at lucee.runtime.tag.FileTag.doEndTag(FileTag.java:476) at writefile2_cfm$cf$3.call(/cfm/writefile.cfm:2) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1003) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:926) at lucee.runtime.listener.ClassicAppListener._onRequest(ClassicAppListener.java:65) at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:45) at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2460) at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2450) at

OS:
Linux xx 5.11.0-1025-aws #27~20.04.1-Ubuntu SMP Fri Jan 7 13:09:56 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Java Version:
openjdk version “11.0.13” 2021-10-19
OpenJDK Runtime Environment (build 11.0.13+8-Ubuntu-0ubuntu1.20.04)
OpenJDK 64-Bit Server VM (build 11.0.13+8-Ubuntu-0ubuntu1.20.04, mixed mode, sharing)

Tomcat Version:
Server version: Apache Tomcat/9.0.31 (Ubuntu)
Server built: Oct 20 2020 12:27:39 UTC
Server number: 9.0.31.0

Lucee Version: Lucee 5.3.8.206 Gelert

This is not a Lucee issue, this is an OS issue.
Ubuntu builds off the debian testing ring, its known for its instability. Sure, its “Bleeding edge” but its “unstable” by design.

backup everything then pray (as you only hope its a bad inode, which I doubt)
smartctl -t long /dev/path/to/your/mount/point

I strongly encourage you to move everything over to debian, RHEL, centos(Or one of the varients) or openSuSe (or full SLES) as they are far more stable than Ubuntu.