HydraIssues

A watcher whose p4 ticket dies retries forever at ERROR with nothing alarming: Gallo-Romeins was blind for 18 days
open bug Project: hydraperforcewatcher Reporter: 23 Nov 2026 15:06

Description

Cyborn submitted CL12 for the Gallo-Romeins Museum on 2026-11-20. Nothing in Hydra noticed. The museum asked for the new version on 2026-11-23 and it was still not in the mirror, not in the experience library, and not on the body.

The watcher on hydraskin-perforce-1 had lost its Perforce ticket on 2026-11-05 at about 04:57 UTC and had been emitting this every 5 minutes for 18 days:

level=ERROR msg="poll error" target=gallo-romeins-museum err="p4 changes: exit status 1\nPerforce password (P4PASSWD) invalid or unset.\n"

The defect

The agent cannot poll at all, says so at ERROR 288 times a day, and nothing turns that into an alarm. systemctl is-active is active. The state push to hydraperforce.experiencenet.com keeps running. last_poll_at in state.yaml stays fresh (it is written on the attempt, not on success), so the one signal that would expose this, the distance between last_poll_at and last_processed_at, looks exactly like a quiet depot. That is the same blind spot as #1120, reached by a different route: there the poll succeeded against an empty depot, here the poll fails outright. Both end with a healthy-looking agent and a build that never moves.

This is now the third silent-blocking mode between a Cyborn submit and the body, after #609 (stale hydracluster admin_token, notify 401s, changelist still marked processed) and #630 (mirror over max_storage, upload 507s, retried forever). Every one of them was found by a human asking where the build was.

How the ticket died

Not expiry: the group hydraperforce_service has Timeout: unlimited and the user is still in it. The p4d log shows no user-logout, no user-passwd and no restart for that account, and the user spec Update: is still 2026/08/13. The last good poll was 04:54:13; by 04:59:13 every command was refused.

At 04:57:49, between those two, this burst ran as hydraperforce_svc:

'user-users'
'user-user -o hydraperforce_svc'
'user-protects -u hydraperforce_svc'
'user-groups hydraperforce_svc'

That is the signature of the least-privilege account verification described in #1120, which was carried out on this same host on that same morning (#1120 records the mercator agent's last_seen_at as 2026-11-05T04:55:22Z). /root/.p4tickets was rewritten at 05:11 and afterwards held only stale August entries for both hydraperforce_svc and hydra_admin.

The underlying fragility

Both watcher instances on hydraskin-perforce-1 run as root, with Environment=HOME=/root, no P4TICKETS of their own, and the same Perforce username against two different servers:

gallo mercator
unit hydraperforcewatcher.service hydraperforcewatcher-mercator.service
p4 user hydraperforce_svc hydraperforce_svc
port ssl:localhost:1666 ssl:127.0.0.1:1667
ticket file /root/.p4tickets /root/.p4tickets

The two entries differ only by the port in the key. Any p4 login or p4 logout run by either instance, or by an operator in a root shell on that box, rewrites the shared file, and a p4 command that does not name a port picks up the ambient default and acts on the other scale's credentials. Adding a third scale makes this worse.

Asks

  1. Alarm on poll failure. A watch that has not completed a successful poll for N intervals must raise, not just log. Consecutive poll errors belong in the pushed state and on the dashboard.
  2. Do not advance last_poll_at on a failed poll, so the last_poll_at to last_processed_at distance means what #1120 wants it to mean.
  3. Give each instance its own P4TICKETS (Environment=P4TICKETS=/root/.hydraperforcewatcher-<name>/.p4tickets), so one scale's credential work cannot touch another's.
  4. Fail loudly on auth specifically. P4PASSWD invalid or unset is not a transient: it will never fix itself by retrying, and it should be distinguished from a network blip.

Done in the meantime

A fresh unlimited ticket was issued for hydraperforce_svc through the super account and written to /root/.p4tickets (the previous file was backed up). The watcher was restarted, picked up CL12 immediately, uploaded it, and the experience library registered it as build 7. CL12 is now installed and verified on the body. The mirror is no longer the constraint: nbg1 has retention on, 25 GB free and max_storage at 80 GB.

Session Context

Venue
gallo-romeins-museum