fleetdm / fleet

Open-source platform for IT, security, and infrastructure teams. (Linux, macOS, Chrome, Windows, cloud, data center)
https://fleetdm.com
Other
3.17k stars 434 forks source link

Missing software titles in software tab #24087

Open lucasmrod opened 1 week ago

lucasmrod commented 1 week ago

Fleet version: v4.59.1 (probably previous versions too)


💥  Actual behavior

On the main Software tab:

This happens on All teams and when selecting a specific team.

🧑‍💻  Steps to reproduce

We still don't know why this is happening.

🕯️ More info (optional)

Guess: The vulnerabilities cron might be failing to aggregate software titles (if a title has hosts_count = 0 then it's not returned on the software titles API). Thus I requested vulnerabilities cron error logs.

We are still awaiting unfiltered logs from the user (seems details is missing here which could provide more information):

{
    "@timestamp": "2024-11-22T00:07:11.565Z",
    "instance": "...",
    "level": "error",
    "cron": "vulnerabilities",
    "err": "running job",
    "details": "upsert software titles: Error 1869 (HY000): Auto-increment value in UPDATE conflicts with internally generated values",
    "jobID": "cron_reconcile_software_titles"
},
sharon-fdm commented 5 days ago

This has a solution but we can't reproduce so can't QA. Setting 1 story point to review/merge for to suggest as a solution