Cannot create temp directory: /.jmix/temp

Hello,

I created an ubuntu ec2 instance and added tomcat 9. Deployed the war by placing in the webapps directory. When I checkin a file, I get the following error.
Caused by: io.jmix.core.FileStorageException: I/O error: Cannot create temp directory: /.jmix/temp
I manually created .jmix directory, still same exception. This works in my local windows machine. Please suggest.

Also if I specify jmix.localfs.storage-dir = /home/ubuntu/files. Will it work?

Regards,
Prashanth

@prashanthballal To specify the temporary files directory the property jmix.core.temp-dir is your friend.

If your are deploying a war into a pre-installed tomcat instance, do your start it as a systemd service? This might be a security feature of systemd and is not related to Jmix.

1 Like