Web content disappears after 10 days (of inactivity?)

Description

Openfire uses an embedded Jetty web server (version 9.2.14 at the time of writing). In its operation, Jetty places some files in the designated 'tmp' folder of the operating system. Expanded war files appear to go here, for example.

Some operating systems periodically purge their 'tmp' folder, which can remove the files needed by Jetty.

We've observed that an Openfire Meetings instance becomes unreachable after 10 days on a specific Amazon AMI based server (which used tmpwatch to remove files after 10 days of inactivity).

A way should be found in which resources served by Jetty remain available indefinitely.

Environment

None

is related to

Activity

Show:

Guus der Kinderen October 5, 2018 at 8:50 AM

This issue was tracked down to a Linux utility called tmpwatch, that is active by default in some Linux distributions. In its default configuration, it deletes content from the temporary directory 10 days after it was accessed last.

We've discussed two solutions:

  1. Configure Jetty to use a different directory to store its temporary files.

  2. Periodically iterate over all Jetty-generated temporary files, and reset they last modification date (mimicking the 'touch' command).

Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created April 17, 2018 at 12:14 PM
Updated October 5, 2018 at 1:10 PM
Resolved October 5, 2018 at 1:10 PM