Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new hg backups are failing #474

Closed
ewdurbin opened this issue Aug 19, 2024 · 2 comments
Closed

new hg backups are failing #474

ewdurbin opened this issue Aug 19, 2024 · 2 comments
Assignees
Labels
hg Relates to the legacy HG repository services

Comments

@ewdurbin
Copy link
Member

From cron to infrastructure-staff:

Warning: Identity file /etc/backup/.ssh/id_rsa_hg-mercurial-static not accessible: No such file or directory.
root@backup.sfo1.psf.io: Permission denied (publickey).

and

Warning: Identity file /etc/backup/.ssh/id_rsa_hg-svn-config not accessible: No such file or directory.
root@backup.sfo1.psf.io: Permission denied (publickey).

It looks like this is because we infer that a given backup config has an individual backup key when templating the remote command.

@JacobCoffee
Copy link
Member

JacobCoffee commented Aug 19, 2024

Investigating... Keys are not being made for the two new entries :(

root@hg:~# ls /etc/backup/.ssh
id_rsa_python-hg

from

{{ backup }}-ssh-key:
  file.managed:
    - name: /etc/backup/.ssh/id_rsa_{{ backup }}
    - contents_pillar: backup-secret:directories:{{ backup }}:ssh_key
    - user: {{ config['user'] }}
    - mode: "0600"
    - show_diff: False 

probably due to missing pillar data in the secrets file for backup

@ewdurbin
Copy link
Member Author

Resolved with #484

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hg Relates to the legacy HG repository services
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants