Page MenuHomePhabricator

[jobs-cli] emits a warning to re-create valid jobs
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • toolforge jobs flush
  • toolforge components deployment create
  • wait for deployment to finish
  • toolforge jobs list

What happens?:

All jobs are reported as differing from configured and should be re-created

tools.cluebotng-staging@tools-bastion-15:~$ toolforge jobs list
Warning: The running version of job 'core' is different from what was configured, please recreate or redeploy.
Warning: The running version of job 'grafana-alloy' is different from what was configured, please recreate or redeploy.
Warning: The running version of job 'monitoring-toolforge' is different from what was configured, please recreate or redeploy.
Warning: The running version of job 'redis' is different from what was configured, please recreate or redeploy.
Warning: The running version of job 'report-interface' is different from what was configured, please recreate or redeploy.
+----------------------+------------+---------+
|      Job name:       | Job type:  | Status: |
+----------------------+------------+---------+
|         core         | continuous | Running |
|    grafana-alloy     | continuous | Running |
| monitoring-toolforge | continuous | Running |
|        redis         | continuous | Running |
|   report-interface   | continuous | Running |
+----------------------+------------+---------+

What should have happened instead?:

All jobs are configured exactly as expected and should not be warning

tools.cluebotng-staging@tools-bastion-15:~$ toolforge components deployment show
Deployment ID: 20260615-155355-gdjs7m8u98
Created: 20260615-155355
Status: successful
Long status: 
  Finished at 2026-06-15 15:54:10.418480

Builds:
  core(skipped): id:cluebotng-staging-buildpacks-pipelinerun-qfgrf Reusing existing build
  grafana-alloy(skipped): id:cluebotng-staging-buildpacks-pipelinerun-9gq8v Reusing existing build
  monitoring-toolforge(skipped): id:cluebotng-staging-buildpacks-pipelinerun-w9ts8 Reusing existing build
  redis(skipped): id:cluebotng-staging-buildpacks-pipelinerun-srhnj Reusing existing build
  report-interface(skipped): id:cluebotng-staging-buildpacks-pipelinerun-wztsh Reusing existing build

Runs:
  core(successful): created or updated job core, [info](Job core created in storage and runtime)
  grafana-alloy(successful): created or updated job grafana-alloy, [info](Job grafana-alloy created in storage and runtime)
  monitoring-toolforge(successful): created or updated job monitoring-toolforge, [info](Job monitoring-toolforge created in storage and runtime)
  redis(successful): created or updated job redis, [info](Job redis created in storage and runtime)
  report-interface(successful): created or updated job report-interface, [info](Job report-interface created in storage and runtime)

Tool config:
  components:
    core:
      build:
        ref: refs/tags/v1.5.0
        repository: https://github.com/cluebotng/external-core.git
      run:
        command: ./cluebotng -l -m live_run
        health_check_script: bash -c 'nc localhost 3565 <<< "<WPEditSet />"'
        port: 3565
        replicas: 1
    grafana-alloy:
      build:
        ref: refs/tags/v0.5.1
        repository: https://github.com/cluebotng/external-grafana-alloy.git
      run:
        command: run-alloy
        health_check_http: /health
        mount: all
        port: 8118
    monitoring-toolforge:
      build:
        ref: refs/tags/v1.1.1
        repository: https://github.com/cluebotng/monitoring-toolforge.git
      run:
        command: run
        health_check_http: /health
        mount: all
        port: 8000
    redis:
      build:
        ref: refs/tags/v1.1.0
        repository: https://github.com/cluebotng/external-redis.git
      run:
        command: redis-server
        port: 6379
    report-interface:
      build:
        ref: refs/tags/v1.9.4
        repository: https://github.com/cluebotng/report.git
      run:
        command: web
        health_check_http: /api/?action=health.check
        port: 8000
        replicas: 2
tools.cluebotng-staging@tools-bastion-15:~$ toolforge build list
build_id                                        status    start_time            end_time              source_url                                               ref               envvars    use_latest_versions    use_deprecated_versions    destination_image
cluebotng-staging-buildpacks-pipelinerun-wztsh  ok        2026-06-15T15:51:58Z  2026-06-15T15:52:37Z  https://github.com/cluebotng/report.git                  refs/tags/v1.9.4  N/A        False                  False                      tools-harbor.wmcloud.org/tool-cluebotng-staging/report-interface:latest@sha256:0d8bb132c8aba2bb509c5d1ff406cd129c0a23f9459fd519bbfbac6deb5845ce
cluebotng-staging-buildpacks-pipelinerun-srhnj  ok        2026-06-15T15:51:17Z  2026-06-15T15:52:13Z  https://github.com/cluebotng/external-redis.git          refs/tags/v1.1.0  N/A        False                  False                      tools-harbor.wmcloud.org/tool-cluebotng-staging/redis:latest@sha256:9e0b99d70bea076cbb6b07858419fc7c461b4ae5ab8cc3d7fc2cf33c8894c01b
cluebotng-staging-buildpacks-pipelinerun-w9ts8  ok        2026-06-15T15:51:12Z  2026-06-15T15:52:16Z  https://github.com/cluebotng/monitoring-toolforge.git    refs/tags/v1.1.1  N/A        False                  False                      tools-harbor.wmcloud.org/tool-cluebotng-staging/monitoring-toolforge:latest@sha256:55517af765ac229d7f0690f68a0a96381f1cbf478f320d8f54db83ba624bbd26
cluebotng-staging-buildpacks-pipelinerun-9gq8v  ok        2026-06-15T15:51:08Z  2026-06-15T15:52:14Z  https://github.com/cluebotng/external-grafana-alloy.git  refs/tags/v0.5.1  N/A        False                  False                      tools-harbor.wmcloud.org/tool-cluebotng-staging/grafana-alloy:latest@sha256:6d2ab343f9e0766db46f8fd1fd660b3bbfc6dde2f9c512acba8cfa4724293ae8
cluebotng-staging-buildpacks-pipelinerun-qfgrf  ok        2026-06-15T15:51:03Z  2026-06-15T15:51:50Z  https://github.com/cluebotng/external-core.git           refs/tags/v1.5.0  N/A        False                  False                      tools-harbor.wmcloud.org/tool-cluebotng-staging/core:latest@sha256:c8f29192935e583a75213a0f98dbad6027b65ca1a0c15078d027a958bc0a1b2b
tools.cluebotng-staging@tools-bastion-15:~$ toolforge jobs dump
Warning: The running version of job 'core' is different from what was configured, please recreate or redeploy.
Warning: The running version of job 'grafana-alloy' is different from what was configured, please recreate or redeploy.
Warning: The running version of job 'monitoring-toolforge' is different from what was configured, please recreate or redeploy.
Warning: The running version of job 'redis' is different from what was configured, please recreate or redeploy.
Warning: The running version of job 'report-interface' is different from what was configured, please recreate or redeploy.
- command: ./cluebotng -l -m live_run
  continuous: true
  health-check-script: bash -c 'nc localhost 3565 <<< "<WPEditSet />"'
  image: tool-cluebotng-staging/core:latest@sha256:c8f29192935e583a75213a0f98dbad6027b65ca1a0c15078d027a958bc0a1b2b
  name: core
  port: '3565'
  replicas: 1
- command: run-alloy
  continuous: true
  health-check-http: /health
  image: tool-cluebotng-staging/grafana-alloy:latest@sha256:6d2ab343f9e0766db46f8fd1fd660b3bbfc6dde2f9c512acba8cfa4724293ae8
  mount: all
  name: grafana-alloy
  port: '8118'
- command: run
  continuous: true
  health-check-http: /health
  image: tool-cluebotng-staging/monitoring-toolforge:latest@sha256:55517af765ac229d7f0690f68a0a96381f1cbf478f320d8f54db83ba624bbd26
  mount: all
  name: monitoring-toolforge
  port: '8000'
- command: redis-server
  continuous: true
  image: tool-cluebotng-staging/redis:latest@sha256:9e0b99d70bea076cbb6b07858419fc7c461b4ae5ab8cc3d7fc2cf33c8894c01b
  name: redis
  port: '6379'
- command: web
  continuous: true
  health-check-http: /api/?action=health.check
  image: tool-cluebotng-staging/report-interface:latest@sha256:0d8bb132c8aba2bb509c5d1ff406cd129c0a23f9459fd519bbfbac6deb5845ce
  name: report-interface
  port: '8000'
  replicas: 2

Related Objects

StatusSubtypeAssignedTask
ResolvedLucasWerkmeister
Resolvedmatmarex
ResolvedLegoktm
ResolvedLegoktm
In Progressdcaro
Resolveddcaro
Resolvedkomla
Resolveddcaro
Resolveddcaro
ResolvedRaymond_Ndibe
ResolvedRaymond_Ndibe
OpenNone
OpenNone
In ProgressFeatureRaymond_Ndibe
ResolvedFeatureRaymond_Ndibe
Resolveddcaro
ResolvedRaymond_Ndibe
Resolveddcaro
ResolvedBUG REPORTdcaro

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
dcaro triaged this task as High priority.Jun 15 2026, 4:02 PM

I have been able to reproduce, but not with a simple job (probably related to some of the options there):

local.tf-test@toolslocal:~$ toolforge components deployment create 
Deployment for tf-test created successfully.
Deployment ID: 20260616-120610-ow7f9t42e3
Created: 20260616-120610

Builds:
  core(pending): no-id-yet

Runs:
  core(pending): 
local.tf-test@toolslocal:~$ toolforge components deployment show
Deployment ID: 20260616-120610-ow7f9t42e3
Created: 20260616-120610
Status: running
Long status: 
  Started at 2026-06-16 12:06:10.452420

Builds:
  core(running): id:tf-test-buildpacks-pipelinerun-kbvvq You can see the logs with `toolforge build logs tf-test-buildpacks-pipelinerun-kbvvq`

Runs:
  core(pending): 

Tool config:
  components:
    core:
      build:
        ref: refs/tags/v1.5.0
        repository: https://github.com/cluebotng/external-core.git
      run:
        command: while date; do sleep 10; done
        health_check_script: bash -c 'nc localhost 3565 <<< "<WPEditSet />"'
        port: 3565
        replicas: 1

local.tf-test@toolslocal:~$ toolforge jobs list
+------------+-------------------+----------------------------+
| Job name:  |     Job type:     |          Status:           |
+------------+-------------------+----------------------------+
|   cron1    | scheduled: @daily | Waiting for scheduled time |
| component1 |    continuous     |          Running           |
+------------+-------------------+----------------------------+
local.tf-test@toolslocal:~$ toolforge jobs flush
local.tf-test@toolslocal:~$ toolforge jobs list
Warning: The running version of job 'core' is different from what was configured, please recreate or redeploy.
+-----------+------------+--------------------------------+
| Job name: | Job type:  |            Status:             |
+-----------+------------+--------------------------------+
|   core    | continuous | Specified command fails to run |
+-----------+------------+--------------------------------+

Yes, I also noticed that with another account yesterday that doesn't emit the warning.

One way to trigger it appears to be setting replicas to 1 (the default), removing that setting or increasing it appears to remove the warning.

dcaro changed the task status from Open to In Progress.Jun 16 2026, 1:04 PM
dcaro claimed this task.
dcaro moved this task from Backlog to In progress on the tools-platform-team board.

It stopped happening locally :/, looking

It comes and goes it seems :/, no deployments in between?

tools.cluebotng-staging@tools-bastion-15:~$ toolforge jobs list
+----------------------+------------+---------+
|      Job name:       | Job type:  | Status: |
+----------------------+------------+---------+
|         core         | continuous | Running |
|    grafana-alloy     | continuous | Running |
| monitoring-toolforge | continuous | Running |
|        redis         | continuous | Running |
|   report-interface   | continuous | Running |
+----------------------+------------+---------+
tools.cluebotng-staging@tools-bastion-15:~$ toolforge jobs list
Warning: The running version of job 'core' is different from what was configured, please recreate or redeploy.
+----------------------+------------+---------+
|      Job name:       | Job type:  | Status: |
+----------------------+------------+---------+
|         core         | continuous | Running |
|    grafana-alloy     | continuous | Running |
| monitoring-toolforge | continuous | Running |
|        redis         | continuous | Running |
|   report-interface   | continuous | Running |
+----------------------+------------+---------+

It seems that only happens when it hits a specific jobs-api pod?

And after restarting the jobs-api pod that was getting hit when the warning happened, made it not happen anymore :/, maybe there's some caching going on somewhere?

And after restarting the jobs-api pod that was getting hit when the warning happened, made it not happen anymore :/, maybe there's some caching going on somewhere?

Dang it, I rebooted the lima-kilo env because I was having issues with max open files, and now it's gone, maybe jobs-api was failing silently to fetch the runtime or storage info?

Finally got in in lima-kilo :), and this time was able to fetch the logs:

...
[2026-06-16 15:47:14,711] p17:t140338572805824 /app/tjf/core/core.py:50:_update_storage_job_status_from_runtime DEBUG - Found a different running version than in storage:
STORAGE: {'cmd': 'web', 'filelog': False, 'filelog_stderr': None, 'filelog_stdout': None, 'image': {'short_name': 'tool-tf-test/report-interface:latest@sha256:f36454bf3041042113050f4bfe192a3f5d93db3340db5d94da02921943437611', 'type': <ImageType.BUILDPACK: 'buildpack'>, 'aliases': ['tool-tf-test/report-interface:latest@sha256:f36454bf3041042113050f4bfe192a3f5d93db3340db5d94da02921943437611'], 'state': 'stable', 'digest': 'sha256:f36454bf3041042113050f4bfe192a3f5d93db3340db5d94da02921943437611', 'host': 'harbor.local', 'path': 'tool-tf-test/report-interface', 'tag': 'latest', 'exists': True}, 'job_name': 'report-interface', 'tool_name': 'tf-test', 'memory': '0.5Gi', 'cpu': '0.1', 'emails': <EmailOption.none: 'none'>, 'mount': <MountOption.NONE: 'none'>, 'status_short': 'Not running', 'status_long': "Last run at 2026-06-16T15:45:34Z. Pod in 'Running' phase. State 'running'. Started at '2026-06-16T15:45:48Z'.", 'job_type': <JobType.CONTINUOUS: 'continuous'>, 'port': 8000, 'port_protocol': <PortProtocol.TCP: 'tcp'>, 'replicas': 2, 'health_check': {'path': '/api/?action=health.check', 'type': <HealthCheckType.HTTP: 'http'>}}
RUNTIME: {'cmd': 'web', 'filelog': False, 'filelog_stderr': None, 'filelog_stdout': None, 'image': {'short_name': 'tool-tf-test/report-interface:latest@sha256:f36454bf3041042113050f4bfe192a3f5d93db3340db5d94da02921943437611', 'type': <ImageType.BUILDPACK: 'buildpack'>, 'aliases': [], 'state': 'stable', 'digest': 'sha256:f36454bf3041042113050f4bfe192a3f5d93db3340db5d94da02921943437611', 'host': 'harbor.local', 'path': 'tool-tf-test/report-interface', 'tag': 'latest', 'exists': False}, 'job_name': 'report-interface', 'tool_name': 'tf-test', 'memory': '0.5Gi', 'cpu': '0.1', 'emails': <EmailOption.none: 'none'>, 'mount': <MountOption.NONE: 'none'>, 'status_short': 'Not running', 'status_long': "Last run at 2026-06-16T15:45:34Z. Pod in 'Running' phase. State 'running'. Started at '2026-06-16T15:45:48Z'.", 'job_type': <JobType.CONTINUOUS: 'continuous'>, 'port': 8000, 'port_protocol': <PortProtocol.TCP: 'tcp'>, 'replicas': 2, 'health_check': {'path': '/api/?action=health.check', 'type': <HealthCheckType.HTTP: 'http'>}}
--
[2026-06-16 15:49:37,136] p16:t140512767293120 /app/tjf/core/core.py:50:_update_storage_job_status_from_runtime DEBUG - Found a different running version than in storage:
STORAGE: {'cmd': 'run-alloy', 'filelog': False, 'filelog_stderr': None, 'filelog_stdout': None, 'image': {'short_name': 'tool-tf-test/grafana-alloy:latest@sha256:c2503f1221b290ddfd588dcd4798afef5894c9e7e8e00f7d7efa941dcf760b7d', 'type': <ImageType.BUILDPACK: 'buildpack'>, 'aliases': ['tool-tf-test/grafana-alloy:latest@sha256:c2503f1221b290ddfd588dcd4798afef5894c9e7e8e00f7d7efa941dcf760b7d'], 'state': 'stable', 'digest': 'sha256:c2503f1221b290ddfd588dcd4798afef5894c9e7e8e00f7d7efa941dcf760b7d', 'host': 'harbor.local', 'path': 'tool-tf-test/grafana-alloy', 'tag': 'latest', 'exists': True}, 'job_name': 'grafana-alloy', 'tool_name': 'tf-test', 'memory': '0.5Gi', 'cpu': '0.1', 'emails': <EmailOption.none: 'none'>, 'mount': <MountOption.ALL: 'all'>, 'status_short': 'Running', 'status_long': "Last run at 2026-06-16T15:45:31Z. Pod in 'Running' phase. State 'running'. Started at '2026-06-16T15:45:39Z'.", 'job_type': <JobType.CONTINUOUS: 'continuous'>, 'port': 8118, 'port_protocol': <PortProtocol.TCP: 'tcp'>, 'replicas': 1, 'health_check': {'path': '/health', 'type': <HealthCheckType.HTTP: 'http'>}}
RUNTIME: {'cmd': 'run-alloy', 'filelog': False, 'filelog_stderr': None, 'filelog_stdout': None, 'image': {'short_name': 'tool-tf-test/grafana-alloy:latest@sha256:c2503f1221b290ddfd588dcd4798afef5894c9e7e8e00f7d7efa941dcf760b7d', 'type': <ImageType.BUILDPACK: 'buildpack'>, 'aliases': [], 'state': 'stable', 'digest': 'sha256:c2503f1221b290ddfd588dcd4798afef5894c9e7e8e00f7d7efa941dcf760b7d', 'host': 'harbor.local', 'path': 'tool-tf-test/grafana-alloy', 'tag': 'latest', 'exists': False}, 'job_name': 'grafana-alloy', 'tool_name': 'tf-test', 'memory': '0.5Gi', 'cpu': '0.1', 'emails': <EmailOption.none: 'none'>, 'mount': <MountOption.ALL: 'all'>, 'status_short': 'Running', 'status_long': "Last run at 2026-06-16T15:45:31Z. Pod in 'Running' phase. State 'running'. Started at '2026-06-16T15:45:39Z'.", 'job_type': <JobType.CONTINUOUS: 'continuous'>, 'port': 8118, 'port_protocol': <PortProtocol.TCP: 'tcp'>, 'replicas': 1, 'health_check': {'path': '/health', 'type': <HealthCheckType.HTTP: 'http'>}}
--
[2026-06-16 15:49:37,137] p16:t140512767293120 /app/tjf/core/core.py:50:_update_storage_job_status_from_runtime DEBUG - Found a different running version than in storage:
STORAGE: {'cmd': 'run', 'filelog': False, 'filelog_stderr': None, 'filelog_stdout': None, 'image': {'short_name': 'tool-tf-test/monitoring-toolforge:latest@sha256:61baa48a799ac6958522bec53d2d7a22b35c2d45ffc53a1978296c903788901f', 'type': <ImageType.BUILDPACK: 'buildpack'>, 'aliases': ['tool-tf-test/monitoring-toolforge:latest@sha256:61baa48a799ac6958522bec53d2d7a22b35c2d45ffc53a1978296c903788901f'], 'state': 'stable', 'digest': 'sha256:61baa48a799ac6958522bec53d2d7a22b35c2d45ffc53a1978296c903788901f', 'host': 'harbor.local', 'path': 'tool-tf-test/monitoring-toolforge', 'tag': 'latest', 'exists': True}, 'job_name': 'monitoring-toolforge', 'tool_name': 'tf-test', 'memory': '0.5Gi', 'cpu': '0.1', 'emails': <EmailOption.none: 'none'>, 'mount': <MountOption.ALL: 'all'>, 'status_short': 'Running', 'status_long': "Last run at 2026-06-16T15:45:32Z. Pod in 'Running' phase. State 'running'. Started at '2026-06-16T15:45:41Z'.", 'job_type': <JobType.CONTINUOUS: 'continuous'>, 'port': 8000, 'port_protocol': <PortProtocol.TCP: 'tcp'>, 'replicas': 1, 'health_check': {'path': '/health', 'type': <HealthCheckType.HTTP: 'http'>}}
RUNTIME: {'cmd': 'run', 'filelog': False, 'filelog_stderr': None, 'filelog_stdout': None, 'image': {'short_name': 'tool-tf-test/monitoring-toolforge:latest@sha256:61baa48a799ac6958522bec53d2d7a22b35c2d45ffc53a1978296c903788901f', 'type': <ImageType.BUILDPACK: 'buildpack'>, 'aliases': [], 'state': 'stable', 'digest': 'sha256:61baa48a799ac6958522bec53d2d7a22b35c2d45ffc53a1978296c903788901f', 'host': 'harbor.local', 'path': 'tool-tf-test/monitoring-toolforge', 'tag': 'latest', 'exists': False}, 'job_name': 'monitoring-toolforge', 'tool_name': 'tf-test', 'memory': '0.5Gi', 'cpu': '0.1', 'emails': <EmailOption.none: 'none'>, 'mount': <MountOption.ALL: 'all'>, 'status_short': 'Running', 'status_long': "Last run at 2026-06-16T15:45:32Z. Pod in 'Running' phase. State 'running'. Started at '2026-06-16T15:45:41Z'.", 'job_type': <JobType.CONTINUOUS: 'continuous'>, 'port': 8000, 'port_protocol': <PortProtocol.TCP: 'tcp'>, 'replicas': 1, 'health_check': {'path': '/health', 'type': <HealthCheckType.HTTP: 'http'>}}
--
[2026-06-16 15:49:37,137] p16:t140512767293120 /app/tjf/core/core.py:50:_update_storage_job_status_from_runtime DEBUG - Found a different running version than in storage:
STORAGE: {'cmd': 'redis-server', 'filelog': False, 'filelog_stderr': None, 'filelog_stdout': None, 'image': {'short_name': 'tool-tf-test/redis:latest@sha256:bd4db109b0f96e126d77ed09d767bc2c4939f192531675b63afd4d6371d3ce3b', 'type': <ImageType.BUILDPACK: 'buildpack'>, 'aliases': ['tool-tf-test/redis:latest@sha256:bd4db109b0f96e126d77ed09d767bc2c4939f192531675b63afd4d6371d3ce3b'], 'state': 'stable', 'digest': 'sha256:bd4db109b0f96e126d77ed09d767bc2c4939f192531675b63afd4d6371d3ce3b', 'host': 'harbor.local', 'path': 'tool-tf-test/redis', 'tag': 'latest', 'exists': True}, 'job_name': 'redis', 'tool_name': 'tf-test', 'memory': '0.5Gi', 'cpu': '0.1', 'emails': <EmailOption.none: 'none'>, 'mount': <MountOption.NONE: 'none'>, 'status_short': 'Specified command fails to run', 'status_long': "Last run at 2026-06-16T15:45:33Z. Pod in 'Running' phase. Pod has been restarted 5 times. State 'waiting'. Reason 'CrashLoopBackOff'. Additional message:'back-off 2m40s restarting failed container=job pod=redis-75b8c46c6d-fdx5x_tool-tf-test(464dfbb8-bcfa-4120-9997-4c096df1a023)'.", 'job_type': <JobType.CONTINUOUS: 'continuous'>, 'port': 6379, 'port_protocol': <PortProtocol.TCP: 'tcp'>, 'replicas': 1, 'health_check': None}
RUNTIME: {'cmd': 'redis-server', 'filelog': False, 'filelog_stderr': None, 'filelog_stdout': None, 'image': {'short_name': 'tool-tf-test/redis:latest@sha256:bd4db109b0f96e126d77ed09d767bc2c4939f192531675b63afd4d6371d3ce3b', 'type': <ImageType.BUILDPACK: 'buildpack'>, 'aliases': [], 'state': 'stable', 'digest': 'sha256:bd4db109b0f96e126d77ed09d767bc2c4939f192531675b63afd4d6371d3ce3b', 'host': 'harbor.local', 'path': 'tool-tf-test/redis', 'tag': 'latest', 'exists': False}, 'job_name': 'redis', 'tool_name': 'tf-test', 'memory': '0.5Gi', 'cpu': '0.1', 'emails': <EmailOption.none: 'none'>, 'mount': <MountOption.NONE: 'none'>, 'status_short': 'Specified command fails to run', 'status_long': "Last run at 2026-06-16T15:45:33Z. Pod in 'Running' phase. Pod has been restarted 5 times. State 'waiting'. Reason 'CrashLoopBackOff'. Additional message:'back-off 2m40s restarting failed container=job pod=redis-75b8c46c6d-fdx5x_tool-tf-test(464dfbb8-bcfa-4120-9997-4c096df1a023)'.", 'job_type': <JobType.CONTINUOUS: 'continuous'>, 'port': 6379, 'port_protocol': <PortProtocol.TCP: 'tcp'>, 'replicas': 1, 'health_check': None}
--
...

This looks very very suspicious:

except requests.exceptions.HTTPError as e:
    if (not e.response) or e.response.status_code != 401:
        # You seem to get a 401 when the project does not exist for whatever reason
        # don't log those, they are usually typos
        LOGGER.warning(
            "Failed to load Harbor images for project %s", harbor_project, exc_info=True
        )
    return []

Found a couple issues (not sure this is the same exact case though):

  • If the harbor images are deleted, then the storage still has the aliases, but the resolved job from k8s does not, as it was not able to fetch the image data from harbor (I think this might be partially what is happening)
  • The harbor cache expiring check is wrong xd (reversed the now() - cached_time), this makes it so different pods might reply different things depending on what's cached on them until the cache refresh is forced (ex. if the image did not exist but the project is cached, it will still not find it)

Fixing...

This might also explain why some deployments are restarting jobs that have no changes e.g.

Deployment ID: 20260616-165737-i4ix4154s0

Builds:
  cluebotng-reviewer(skipped): id:cluebotng-review-buildpacks-pipelinerun-48l98 Reusing existing build

Runs:
  cluebotng-reviewer(successful): created or updated job cluebotng-reviewer, [info](Job cluebotng-reviewer was updated in storage and runtime)

cluebotng-reviewer-568875774c-dqqtm   1/1     Running             0             37s
cluebotng-reviewer-568875774c-sp6px   1/1     Running             0             17s
cluebotng-reviewer-56b57c4984-gzfvd   1/1     Terminating         0             23h

Which isn't a big problem for things running with multiple replicas, but interrupt the single instances regularly (noticed on ClueBot NG). I'll wait for this to be resolved and see if it's still happening before opening yet another ticket.

group_203_bot_3c0afd0d9fd9529f3b7bc7e69a4a3bce opened https://gitlab.wikimedia.org/repos/cloud/toolforge/toolforge-deploy/-/merge_requests/1302

jobs-api: bump to 0.0.509-20260618084056-aca01951

This has been deployed, I'll close the task, but feel free to reopen if you see the issue again.

dcaro moved this task from Ready for Review to Done on the tools-platform-team board.

Just a note that this issue is persisting for jobs which were running before it arose, and are still running.

toolforge jobs restart does not make the warning message go away.

I had to toolforge jobs delete, followed by toolforge jobs run, to make the warning message go away.

Also, due to T428354, I needed to add --filelog to my run command.

Just a note that this issue is persisting for jobs which were running before it arose, and are still running.

toolforge jobs restart does not make the warning message go away.

I had to toolforge jobs delete, followed by toolforge jobs run, to make the warning message go away.

Also, due to T428354, I needed to add --filelog to my run command.

@Wbm1058 That should not happen unless the jobs were actually different than expected (someone or something changed the k8s objects from the original definition), if you see it again, can you leave the jobs and ping us so we can debug?

Just a note that this issue is persisting for jobs which were running before it arose, and are still running.

toolforge jobs restart does not make the warning message go away.

I had to toolforge jobs delete, followed by toolforge jobs run, to make the warning message go away.

Also, due to T428354, I needed to add --filelog to my run command.

@Wbm1058 That should not happen unless the jobs were actually different than expected (someone or something changed the k8s objects from the original definition), if you see it again, can you leave the jobs and ping us so we can debug?

Sure, there are still two of my jobs that I have not deleted and re-run again, and those two are still showing the warning message:

tools.billsbots@tools-bastion-15:~/php$ toolforge jobs list
Warning: The running version of job 'logrotate' is different from what was configured, please recreate or redeploy.
Warning: The running version of job 'logrotate-refreshlinks' is different from what was configured, please recreate or redeploy.
+------------------------+-----------------------+------------------------------------------+

Job name:Job type:Status:

+------------------------+-----------------------+------------------------------------------+

logrotatescheduled: @dailyLast schedule time: 2026-06-21T16:20:00Z
logrotate-refreshlinksscheduled: @dailyLast schedule time: 2026-06-22T06:18:00Z
permalinkscheduled: * * * * *Last schedule time: 2026-06-22T09:33:00Z
unsynced-dab-redirectsscheduled: 40 * * * *Last schedule time: 2026-06-22T08:40:00Z
refreshcommonslinkscontinuousRunning
refreshlinkscontinuousRunning
refreshmainlinkscontinuousRunning

+------------------------+-----------------------+------------------------------------------+

dcaro moved this task from Done to In progress on the tools-platform-team board.

@Wbm1058 I think I found the issue, will fix, we are storing the aliases of the image in storage, and those might change also eventually

group_203_bot_3c0afd0d9fd9529f3b7bc7e69a4a3bce opened https://gitlab.wikimedia.org/repos/cloud/toolforge/toolforge-deploy/-/merge_requests/1304

jobs-api: bump to 0.0.513-20260622155500-30972a04

okok, so some of it was solved, now the issue is a difference in the logs path:

[2026-06-23 08:53:54,309] p12:t139856736306880 /app/tjf/core/core.py:55:_update_storage_job_status_from_runtime INFO - Found a different running version than in storage:
STORAGE: {'cmd': 'logrotate -v ./logrotate-refreshlinks.conf --state ./logrotate-refreshlinks.state', 'filelog': True, 'filelog_stderr': PosixPath('/data/project/billsbots/logrotate-refreshlinks.err'), 'filelog_stdout': PosixPath('/data/project/billsbots/logrotate-refreshlinks.out'), 'image': {'short_name': 'mariadb', 'type': <ImageType.STANDARD: 'standard'>, 'digest': '', 'host': 'docker-registry.tools.wmflabs.org', 'path': 'toolforge-mariadb-sssd-base', 'tag': 'latest'}, 'job_name': 'logrotate-refreshlinks', 'tool_name': 'billsbots', 'memory': '0.5Gi', 'cpu': '0.1', 'emails': <EmailOption.none: 'none'>, 'mount': <MountOption.ALL: 'all'>, 'status_short': 'Last schedule time: 2026-06-23T06:18:00Z', 'status_long': 'No pods were created for this job.', 'job_type': <JobType.SCHEDULED: 'scheduled'>, 'schedule': {'text': '@daily', 'minute': '18', 'hour': '6', 'day': '*', 'month': '*', 'day_of_week': '*'}, 'retry': 0, 'timeout': 0}
RUNTIME: {'cmd': 'logrotate -v ./logrotate-refreshlinks.conf --state ./logrotate-refreshlinks.state', 'filelog': True, 'filelog_stderr': PosixPath('logrotate-refreshlinks.err'), 'filelog_stdout': PosixPath('logrotate-refreshlinks.out'), 'image': {'short_name': 'mariadb', 'type': <ImageType.STANDARD: 'standard'>, 'digest': '', 'host': 'docker-registry.tools.wmflabs.org', 'path': 'toolforge-mariadb-sssd-base', 'tag': 'latest'}, 'job_name': 'logrotate-refreshlinks', 'tool_name': 'billsbots', 'memory': '0.5Gi', 'cpu': '0.1', 'emails': <EmailOption.none: 'none'>, 'mount': <MountOption.ALL: 'all'>, 'status_short': 'Last schedule time: 2026-06-23T06:18:00Z', 'status_long': 'No pods were created for this job.', 'job_type': <JobType.SCHEDULED: 'scheduled'>, 'schedule': {'text': '@daily', 'minute': '18', 'hour': '6', 'day': '*', 'month': '*', 'day_of_week': '*'}, 'retry': 0, 'timeout': 0}

Things to still look into:

  • log paths seem to get expanded at the wrong time
  • launcher command seems to be added/removed also at the wrong place
dcaro changed the task status from Open to In Progress.Jun 23 2026, 4:09 PM
dcaro moved this task from Ready for Review to In progress on the tools-platform-team board.

log paths seem to get expanded at the wrong time

This happens because the k8s job does not have the full path in the logs, it was created in 2023, I think that was a bug back then as the logs should have the full path from the tool home (images might change the cwd). Changed it manually but there might be more around, will try to do a check, if it's not many, might be better to cleanup with a script.

Whatever you've done seems to have made the warning messages go away. I just did another toolforge jobs list and did not get any warning messages.

group_203_bot_3c0afd0d9fd9529f3b7bc7e69a4a3bce opened https://gitlab.wikimedia.org/repos/cloud/toolforge/toolforge-deploy/-/merge_requests/1309

jobs-api: bump to 0.0.517-20260629131206-af3c60b5

dcaro moved this task from Ready for Review to Done on the tools-platform-team board.