Troubleshooting#
Find the symptom, then the cause and the fix. The log is the first place to look: docker logs crushmft27 (or kubectl logs crushmft27-0).
The container stops right after it starts#
| Log says | Cause | Fix |
|---|---|---|
CrushContainer: Error: the working folder /app/CrushMFT27 can not be written |
the volume belongs to another user | Data and volumes: chown 65532:0 the host folder, or fsGroup: 65532 in Kubernetes. With --user of another id, use a host folder that user can write. |
CRUSHFTP_ADMIN_PASSWORD_FILE names ..., which the server's user (uid 65532) can not read (or PASSFILE names ...) |
the password file belongs to another user and is not readable by others, e.g. a host file with mode 600 | chmod 644 the file, or give it to uid 65532 |
CRUSHFTP_ADMIN_PASSWORD_FILE names ..., which does not exist, which is not a file or which has no password in it |
the secret file is missing, is a folder, or is empty at that path | check the mount and the path |
failed its check or could not be started from the launcher |
the program at the top of the volume is damaged (a file changed or missing) and there is no kept version to fall back to | start the image again: the image puts its own version back at the top. A file you changed in WebInterface/ other than favicon.ico, expired.html and mime_types.txt is replaced too. |
exit code 78, FIPS mode can not start: ... |
-fips images only: a part FIPS mode needs is missing or changed |
the reason is the line before it; see FIPS 140-3 mode |
nothing special; the container ended with exit code 64 (docker inspect crushmft27 --format '{{.State.ExitCode}}') |
a restart was asked for in the admin pages | start the container with --restart unless-stopped; Kubernetes restarts by itself (Operations) |
| nothing, exit code 137 | the container was killed: out of memory (docker inspect shows OOMKilled), or a stop that took longer than its time |
raise the memory limit; stop with -t 120 |
It runs, but I can't reach it#
| Symptom | Cause | Fix |
|---|---|---|
| no answer on 8080 for a while after the first start | the first start puts the program into the volume and creates the settings; on some networks it also waits for its address lookup | wait (the startup probe allows five minutes); GET /WebInterface/api/readyz says when it is ready |
| no answer at all | the port is not published | -p 8080:8080 (and each port you use); docker port crushmft27 lists them |
| a port you added in IP / Servers doesn't answer | it is not published, or (Kubernetes) not in the Service | add it with -p, or to service.ports |
| FTP connects but listings or transfers hang | passive ports not set, not published, or the server announces the container's address | Ports and networking |
| a port below 1024 doesn't start in Kubernetes | the runtime does not let a non-root process open it | the sysctl, or a port above 1024: Ports and networking |
the health check stays starting or turns unhealthy |
port 8080 is not an HTTP port of your server, or the start period is too short | -health http://127.0.0.1:<port>/WebInterface/api/readyz, and a start period of 180 s |
| the pod never gets ready in Kubernetes | see its events and log | kubectl -n crushftp describe pod crushmft27-0, kubectl -n crushftp logs crushmft27-0 |
Signing in#
| Symptom | Cause | Fix |
|---|---|---|
| I don't know the admin password | it was made at random on the first start | the log line with first admin in it (docker logs crushmft27), or the file passfile in the volume; Kubernetes: the Secret crushmft27-initial-password. Otherwise reset it: Operations. |
a new CRUSHFTP_ADMIN_PASSWORD doesn't work |
the variables are used only when the admin is first created | reset it |
password doesn't work |
there is no default password in CrushMFT 27's image | see the first line |
| everyone is shown with the same address, bans hit everyone | the server sees the proxy's or the gateway's address | trust the proxy headers, or publish the ports so the client's address arrives (Ports and networking) |
Versions#
| Symptom | Cause | Fix |
|---|---|---|
| I started a newer image, but the old version runs | it isn't newer: the volume runs a newer version (an in-app update) | the About page shows what runs; see Updates and versions |
| I started an older image to go back, but the newer version runs | the newer version in the volume wins | switch on the About page (Going back a version) |
The image's version ... is marked bad on this volume |
that version failed to start on this volume once | allow it again on the About page, or look at why it failed (the log before it) |
Settings#
| Symptom | Cause | Fix |
|---|---|---|
| a change in the admin pages is gone after a restart | the setting comes from a split_prefs file, which wins at every start |
change it in the file (Configuration) |
a split_prefs file has no effect |
the name doesn't match a setting in prefs.XML (the log has a SPLIT_PREFS:Using ... line for each file used) |
use the exact element name from prefs.XML; .txt for one value, .xml for a list |
Read-only file system lines about split_prefs |
CrushMFT tries to write a changed setting back into a read-only file (a ConfigMap) | harmless; the file wins at the next start |
file names with accents come out as ? |
LANG/LC_ALL were overridden |
leave them at C.UTF-8 |
| times in the log are an hour or more off | the time zone | -e TZ=Europe/Berlin (your zone) |
Messages at the first start that are not errors#
A first start on a new volume logs a few lines that look like errors and are not:
| Line | Means |
|---|---|
java.lang.NullPointerException: prefs.XML is missing or unreadable |
a new server has no settings file yet; it writes one with the defaults |
Update check: fetch: the update server could not be read (https://www.crushftp.com/updates/27/...) |
the update server did not answer the update check (no internet access, or no update published there for this channel). The server runs normally; new versions also come as new images. |
NOTE: Picked up JDK_JAVA_OPTIONS: ... |
you set JDK_JAVA_OPTIONS; Java says it uses it |
Still stuck#
Collect the image tag, the first 100 lines of the log and how you start the container, and contact CrushMFT support (Operations).