CrushMFT Documentation

CrushMFT's own Java#

CrushMFT can bring its own Java and keep it up to date by itself. You do not have to install Java before CrushMFT, and you do not have to remember to update it.

The Java is Eclipse Temurin, the JRE, downloaded from Adoptium, the project that builds it. It lives in a folder named Java inside the CrushMFT folder.

Which Java is CrushMFT's#

Only one kind: a Java folder in the CrushMFT folder that CrushMFT put there itself. It carries a small file, crushftp-java.txt, that says so.

Everything else is yours, and CrushMFT never changes it:

What the server runs on Kept up to date by CrushMFT
the Java folder CrushMFT downloaded yes
a Java folder you put there yourself (no crushftp-java.txt in it) no
a Java installed on the computer no
a Java named in the start settings (java= on Windows and macOS, JAVA= in the Linux script) no

A Java installed on the computer is updated by the system, or by you.

The first start#

When the computer has no Java 21 or later, the first start downloads one:

System What you see
Windows a small window: "CrushMFT needs Java 21 or later, and this computer has none", with the progress of the download. The control panel opens when it is done. The service does the same without a window and writes it to its log.
macOS a message that Java is being downloaded; the app opens when it is done. Apple Silicon only: on an Intel Mac you put a Java into the Java folder yourself.
Linux the start script says so and downloads it. It needs curl or wget.

The download is about 50 MB. It is checked against the SHA-256 that Adoptium publishes before it is unpacked.

When the computer does have Java 21 or later, CrushMFT uses that one and downloads nothing, unless you ask for its own: see the settings below.

If the download fails, the message says why. On Windows the details are in CrushMFT_launcher.log in the CrushMFT folder (the service: service\wrapper.log), on macOS in CrushMFT_launcher.log. You can always install Java yourself instead.

How an update happens#

  1. Check. Twice a day the server asks Adoptium for the newest Temurin of the line you chose.
  2. Download. A newer one is downloaded into a folder Java.new beside the one in use, and checked against Adoptium's SHA-256. The server keeps running on its Java meanwhile.
  3. Your changes are kept. Three files of the Java in use are carried over when you changed them: the trusted certificates (cacerts), java.security and krb5.conf. For the certificates that means: Temurin's new list, plus every certificate you added, minus every one you removed.
  4. Test. The new Java is started once on the side. Only one that starts is used.
  5. Restart. In the update window the server restarts once: at the first moment with no transfer and no job running, or at the end of the window. With no update window set, that is between 03:00 and 05:00. At the restart the new Java is put in place.
  6. Confirm. When the server is up on the new Java, the old one is deleted.

A move to a newer Java version (25 to 29, say) happens the same way, by itself.

What the restart costs#

Open connections end: a transfer in progress stops and the client resumes it. Everything else carries over: people logged in to the web pages stay logged in, and the temporary bans, the counters that guard against password guessing, the login history and the server's caches are handed to the new start.

A restart you ask for yourself is different on purpose: it clears temporary bans, as it always has.

When the new Java does not start#

The Java before it is put back by itself, and the server starts on it. The release that failed is not tried again. You are told three ways: the server's log, the status under Preferences › Updates › Java, and the alert CrushMFT Java Update Failed if you set one up (Alerts).

To let a failed release be tried again, use the API operation server.java.run with the action clear_bad.

The settings#

Preferences › Updates › Java:

Setting Meaning As delivered
Keep CrushMFT's own Java up to date The whole of this page, on or off. Off, the server stays on the Java it has. on
Java line Newest LTS: the long-term support line, which gets fixes for years and moves to the next LTS when it comes out. Newest release: every new Java version, twice a year. Newest LTS
Install CrushMFT's own Java even when this computer has Java 21 or later On, CrushMFT downloads its own Java and moves to it at the next restart in the update window, although the computer has a usable one. off

Below them the page shows the Java in use and whether CrushMFT keeps it up to date (and if not, why), the state of a download, and two buttons:

Button Does
Check now asks Adoptium now, and downloads a newer Java if there is one
Install now (restarts the server) puts a downloaded Java in place at once. It asks first: every connection ends.

The update window, its days and the proxy for updates are the ones of CrushMFT's own updates, on the same section.

What the server must reach#

api.adoptium.net and github.com (with the address GitHub sends downloads to), over HTTPS. Through the proxy set under Preferences › Updates › Proxy Settings, when one is set.

A DMZ server reaches them through its internal server. A server that can reach neither stays on the Java it has, and the status says that the check failed.

The files#

In the CrushMFT folder:

Name What
Java the Java in use
Java\crushftp-java.txt the mark: which Temurin release, and what its three files looked like when they came
Java.new the next Java, while it is downloaded and until the restart
Java.old the Java before, from the restart until the server is up
backup/updates/java_bad releases that did not start here

Do not edit inside Java.new. Changes to cacerts, java.security and krb5.conf belong in Java: they are carried over.

Turning it off#

Clear Keep CrushMFT's own Java up to date. Or use your own Java: install one on the computer and remove the Java folder while the server is stopped, or name one in the start settings. Then keeping Java current is yours again. Java's updates are security updates.

Docker#

The images do not update Java inside a container. A newer Java comes with a newer image.

Not tried for this page#

The Linux start script, the server's part and the settings page were run on a test server against a stand-in for Adoptium. The Windows window and the macOS message were not seen, and no download from Adoptium itself was made for this page.