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:

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.


lucee.runtime.exp.ApplicationException: Invalid file [/mnt/efs/xx/debug/2022-01-12-15-16-52] at lucee.runtime.tag.FileTag.checkFile( at lucee.runtime.tag.FileTag.actionWrite( at lucee.runtime.tag.FileTag.doEndTag( at writefile2_cfm$cf$ at lucee.runtime.PageContextImpl._doInclude( at lucee.runtime.PageContextImpl._doInclude( at lucee.runtime.listener.ClassicAppListener._onRequest( at lucee.runtime.listener.MixedAppListener.onRequest( at lucee.runtime.PageContextImpl.execute( at lucee.runtime.PageContextImpl._execute( at

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:

Lucee Version: Lucee 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.

Thank you Terry.
smartctl seems not working for aws efs.
I tried to list file info for /test/file.out, it is outside of network file system. I set 777 full access and set tomcat as user and group. fileinfo functions returns write false.


1 Like