-
Notifications
You must be signed in to change notification settings - Fork 0
Debian 9: /var/lib/apt/periodic/update-success-stamp not found #1
Comments
Hi! Thanks for checking this out, that's nice to see! I've built this exporter for Ubuntu and never tried it on Debian (let alone a fresh installation), so I'm not surprised to see it failing. Given that it gets this far, I assume this means |
The update-success-stamp file itself may not have been created yet.
@lebokus Would you mind trying again with the version I just pushed (v0.3.0). I believe both issues should have been addressed (the file not existing, and the different name of the stamp file on Debian). |
Sorry for not responding - I will test it tonight. Thank you very much! |
@pmaene Yeah this fixed it. Thanks for your effort :) |
Great, happy to hear that! Thank you for checking! |
I tried to run apt_exporter on Debian 9 and got this exception:
Jan 19 21:05:45 apt_exporter[15566]: time="2020-01-19T21:05:45+01:00" level=fatal msg="no such file or directory" source="apt_exporter.go:359"
I think this is the cause:
apt_exporter/apt_exporter.go
Line 244 in 4aecd1e
Directly after a new installation of Debian the /var/lib/apt/periodic directory is empty.
Maybe these files are firstly written after the execution of the APT Periodic cron. Furthermore the file /var/lib/apt/periodic/update-success-stamp is named /var/lib/apt/periodic/udate-stamp.
For which distribution did you develop this exporter?
The text was updated successfully, but these errors were encountered: