Skip to content

On helm-chart 7.0.0 with value mendRnvLogHistoryDir unset logs are going to /tmp/renovate/logs #489

@pippitt

Description

@pippitt

After updating from chart version 6.10.0 to 7.0.0 we noticed the renovate attached PVC was filling with logs.
Previous image with no logs: ghcr.io/mend/renovate-ce:6.11.0
Current image with logs: ghcr.io/mend/renovate-ce:7.0.0
The previous deployment logged nothing to /tmp/renovate/logs as expected with mendRnvLogHistoryDir unset.
As a work around we set these values:

  mendRnvLogHistoryCleanupCron: "\"0 0 * * *\""
  mendRnvLogHistoryTTLDays: "1"

There is the output of env|grep LOG on the 7.0.0 version container:

MEND_RNV_LOG_HISTORY_TTL_DAYS=1
LOG_FORMAT=json
LOG_LEVEL=debug
MEND_RNV_LOG_HISTORY_CLEANUP_CRON=0 0 * * *

and the same on the 6.11.0 container:

LOG_FORMAT=json
LOG_LEVEL=debug

From the logs on the new version I do see config.log being set, example with redactions:

  "name": "mend-renovate",
  "hostname": "renovate-5cf9c7947b-cr7vg",
  "pid": 9,
  "level": 20,
  "logContext": "DqbRGZIt-avPOyWj11lRf",
  "job": {
    "jobId": 481636,
    "repository": "REDACTED",
    "organizationName": "REDACTED",
    "installationId": REDACTED,
    "reason": "hourly",
    "priority": 10,
    "addedAt": "2024-04-16 17:00:01",
    "startedAt": "2024-04-16 17:47:07",
    "lastAlive": "2024-04-16 17:47:07",
    "attempts": 1
  },
  "config": {
    "endpoint": "https://api.github.com/",
    "gitAuthor": "REDACTED",
    "logContext": "723482411a",
    "platform": "github",
    "repositories": [
      "REDACTED"
    ],
    "username": "REDACTED",
    "token": "***********",
    "dependencyDashboardFooter": "\n- [ ] <!-- manual job -->Check this box to trigger a request for Renovate to run again on this repository\n",
    "logFile": "/tmp/renovate/logs/REDACTED/REDACTED/20240416_174707_723482411a.log"
  },
  "msg": "Running Renovate job",
  "time": "2024-04-16T17:47:07.589Z",
  "v": 0

vs logs from the 6.11.0 for a "msg": "Running Renovate job":

  "name": "renovate",
  "hostname": "renovate-64f6c4c9bc-4cj69",
  "pid": 8,
  "level": 20,
  "logContext": "sxC1fMe05dXst_42Tihzj",
  "job": {
    "jobId": 451485,
    "repository": "REDACTED",
    "organizationName": "REDACTED",
    "installationId": REDACTED,
    "reason": "hourly",
    "priority": 10,
    "addedAt": "2024-04-16 16:00:04",
    "startedAt": "2024-04-16 17:45:11",
    "lastAlive": "2024-04-16 17:45:11",
    "attempts": 1
  },
  "config": {
    "dependencyDashboardFooter": "\n- [ ] <!-- manual job -->Check this box to trigger a request for Renovate to run again on this repository\n",
    "endpoint": "https://api.github.com/",
    "gitAuthor": "REDACTED",
    "logContext": "60bd86b0bc",
    "platform": "github",
    "repositories": [
      "REDACTED"
    ],
    "token": "***********",
    "username": "REDACTED"
  },
  "msg": "Running Renovate job",
  "time": "2024-04-16T17:45:11.380Z",
  "v": 0

Let me know if I can provide further information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions