Commit 24f4c30
fix(canopy): set KOPIA_PASSWORD env so snapshot restore can reopen the repo
The canopy restore path ran 'kopia repository connect' and 'kopia
snapshot restore' as two separate processes, passing the repo password
only to connect via --password. The restore process must reopen the
repository and needs the password again; headless containers have no
keyring for kopia to retrieve the persisted credential, so it fell back
to an interactive prompt and died with 'inappropriate ioctl for device'.
Mirror the legacy restore path by setting KOPIA_PASSWORD on the kopia
container env, which kopia reads on every invocation.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent c538b87 commit 24f4c30
1 file changed
Lines changed: 27 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
213 | 227 | | |
214 | 228 | | |
215 | 229 | | |
| |||
637 | 651 | | |
638 | 652 | | |
639 | 653 | | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
640 | 662 | | |
641 | 663 | | |
642 | 664 | | |
| |||
0 commit comments