Skip to content

Detect an unusable .paper cache folder - #221

Merged
pavog merged 2 commits into
masterfrom
paper-cache-dir-invalid
Nov 17, 2026
Merged

pavog merged 2 commits into
masterfrom
paper-cache-dir-invalid

Conversation

@pavog

@pavog pavog commented Nov 17, 2026

Copy link
Copy Markdown
Member
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.RuntimeException: .paper cache dir is not a directory [in thread "Server thread"]
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.RuntimeException: Error creating .paper cache dir [in thread "Server thread"]

Paper keeps a cache folder .paper in the server folder.
When .paper exists as a file, or the folder cannot be created, for example because of missing permissions, the server crashes during startup.
This was not detected before.

This PR adds CacheDirInvalidProblem to the PaperAnalyser, because the cache folder only exists on Paper.
Both causes have the same message, and the variant only decides the solution:

  • .paper is a file, with the existing FileDeleteSolution
  • .paper cannot be created, with the existing PaperCheckPermissionsSolution

The exception appears twice in the log, once as a cause in the stack trace and once further down, but it is reported as one problem with a counter.

Changes

  • add CacheDirInvalidProblem
  • add translation for the problem
  • add paper-cache-dir-not-directory-26-3.log and paper-cache-dir-create-failed-26-3.log

@pavog
pavog merged commit be7c944 into master Nov 17, 2026
3 checks passed
@pavog
pavog deleted the paper-cache-dir-invalid branch November 17, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant