Skip to content

"record not found" error on Origin/Cache initial startup #3017

@h2zh

Description

@h2zh

A user (David T) reported an error on their Origin

time="2025-10-16T04:48:27Z" level=error msg="SELECT * FROM `service_names` WHERE name = \"[redacted]\" AND `service_names`.`deleted_at` IS NULL ORDER BY `service_names`.`id` LIMIT 1" component=gorm duration="642.865µs" error="record not found" rows=0


After some investigation, I found that this 'error' is actually just a default log emitted by GORM. The 'record not found' message is expected behavior during an Origin/Cache initial startup and is already handled by the code. We should suppress this log to avoid misleading users into thinking it is a real error.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcacheIssue relating to the cache componentoriginIssue relating to the origin component

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions