dotCMS / dotCMS/core

Glowroot tmp dir does not exist

Open
#32,183 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

OKR : Cloud Engineering Team : Cloud Eng Team : Platform Type : Defect
Dominant language
Java
Stars
970
Forks
486
Avg merge
3d 33m
Merged PRs (30d)
170

Description

Problem Statement

Running with glowroot enabled against the central collector throws ongoing errors in the central collector that glowroot cannot find its tmp directory.

You can make those errors go away by setting the environmental variable GLOWROOT_TMP_DIR=/tmp but this takes another config. We should make this our default.

glowroot-central  | 2025-05-15 17:32:36.600 ERROR o.g.central.CollectorServiceImpl - corpsites::prod - 2025-05-15 17:32:36.598 ERROR org.glowroot.agent.impl.PreloadSomeSuperTypesCache - /srv/dotserver/tomcat/temp/corpsites--prod/preload-some-super-types-cache (No such file or directory)
glowroot-central  | java.io.FileNotFoundException: /srv/dotserver/tomcat/temp/corpsites--prod/preload-some-super-types-cache (No such file or directory)
glowroot-central  | 2025-05-15 17:32:41.600 ERROR o.g.central.CollectorServiceImpl - corpsites::prod - 2025-05-15 17:32:41.599 ERROR org.glowroot.agent.impl.PreloadSomeSuperTypesCache - /srv/dotserver/tomcat/temp/corpsites--prod/preload-some-super-types-cache (No such file or directory)
glowroot-central  | java.io.FileNotFoundException: /srv/dotserver/tomcat/temp/corpsites--prod/preload-some-super-types-cache (No such file or directory)
glowroot-central  | 2025-05-15 17:32:46.600 ERROR o.g.central.CollectorServiceImpl - corpsites::prod - 2025-05-15 17:32:46.599 ERROR org.glowroot.agent.impl.PreloadSomeSuperTypesCache - /srv/dotserver/tomcat/temp/corpsites--prod/preload-some-super-types-cache (No such file or directory)
glowroot-central  | java.io.FileNotFoundException: /srv/dotserver/tomcat/temp/corpsites--prod/preload-some-super-types-cache (No such file or directory)
glowroot-central  | 2025-05-15 17:32:51.601 ERROR o.g.central.CollectorServiceImpl - corpsites::prod - 2025-05-15 17:32:51.599 ERROR org.glowroot.agent.impl.PreloadSomeSuperTypesCache - /srv/dotserver/tomcat/temp/corpsites--prod/preload-some-super-types-cache (No such file or directory)
glowroot-central  | java.io.FileNotFoundException: /srv/dotserver/tomcat/temp/corpsites--prod/preload-some-super-types-cache (No such file or directory)
glowroot-central  | 2025-05-15 17:32:56.601 ERROR o.g.central.CollectorServiceImpl - corpsites::prod - 2025-05-15 17:32:56.599 ERROR org.glowroot.agent.impl.PreloadSomeSuperTypesCache - /srv/dotserver/tomcat/temp/corpsites--prod/preload-some-super-types-cache (No such file or directory)
glowroot-central  | java.io.FileNotFoundException: /srv/dotserver/tomcat/temp/corpsites--prod/preload-some-super-types-cache (No such file or directory)
glowroot-central  | 2025-05-15 17:33:01.601 ERROR o.g.central.CollectorServiceImpl - corpsites::prod - 2025-05-15 17:33:01.600 ERROR org.glowroot.agent.impl.PreloadSomeSuperTypesCache - /srv/dotserver/tomcat/temp/corpsites--prod/preload-some-super-types-cache (No such file or directory)
glowroot-central  | java.io.FileNotFoundException: /srv/dotserver/tomcat/temp/corpsites--prod/preload-some-super-types-cache (No such file or directory)
glowroot-central  | 2025-05-15 17:33:06.601 ERROR o.g.central.CollectorServiceImpl - corpsites::prod - 2025-05-15 17:33:06.600 ERROR org.glowroot.agent.impl.PreloadSomeSuperTypesCache - /srv/dotserver/tomcat/temp/corpsites--prod/preload-some-super-types-cache (No such file or directory)
glowroot-central  | java.io.FileNotFoundException: /srv/dotserver/tomcat/temp/corpsites--prod/preload-some-super-types-cache (No such file or directory)
glowroot-central  | 2025-05-15 17:33:11.601 ERROR o.g.central.CollectorServiceImpl - corpsites::prod - 2025-05-15 17:33:11.600 ERROR org.glowroot.agent.impl.PreloadSomeSuperTypesCache - /srv/dotserver/tomcat/temp/corpsites--prod/preload-some-super-types-cache (No such file or directory)
glowroot-central  | java.io.FileNotFoundException: /srv/dotserver/tomcat/temp/corpsites--prod/preload-some-super-types-cache (No such file or directory)

Steps to Reproduce

Start dotcms image against a central collector. The central collector will throw errors that the client cannot find its /tmp directory.

Acceptance Criteria

Need to stop those errors.

dotCMS Version

latest

Proposed Objective

Cloud Engineering

Proposed Priority

Priority 2 - Important

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

No response

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the central collector and the configuration that handles GLOWROOT_TMP_DIR, then reproduce the problem by starting the dotCMS image against a central collector without that variable. Done means the collector no longer reports missing temporary-directory errors when Glowroot is enabled and no extra environment configuration is required.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.