Comments (5)
Hello @Kidswiss
Good news your suggestion worked perfectly !!
I checked the snapshots and saw they did not have the repository field that was added recently so I checked my CRDs and found out I forgot to update them (silly me).
I updated the CRDs and then deleted all snapshots as you suggested and everything worked.
Thank you very much for your kind help
from k8up.
Hi @sashokbg
Do you have any snapshot
objects in that namespace? kubectl get snapshots
? If you do, could you please post the yaml output of one of those?
It looks to me that a field is not correctly populated in the snapshot object when using the swift backend.
from k8up.
Hello @Kidswiss thank you for your message here are some yamls from the snapshots:
apiVersion: k8up.io/v1
kind: Snapshot
metadata:
creationTimestamp: "2023-05-14T02:00:26Z"
generation: 1
name: f4856c6f
namespace: home-cloud
resourceVersion: "85254"
uid: cc1e2de6-35e1-4dcd-934c-e36b06914cb3
spec:
date: "2023-03-27T02:00:20Z"
id: f4856c6fe842d6421187f9368171089fde4316bcf5c7a9053cceba10f192f339
paths:
- /home-cloud-postgresql.sql
apiVersion: k8up.io/v1
kind: Snapshot
metadata:
creationTimestamp: "2023-05-14T02:00:28Z"
generation: 1
name: f0cd4ef4
namespace: home-cloud
resourceVersion: "85267"
uid: d5a29422-c0b5-4d79-b4e4-a3f573592155
spec:
date: "2023-04-18T02:00:12Z"
id: f0cd4ef4c1f4d26b0eb823310303c2357ef14e7dbaf0f714b18b26abb2603ae0
paths:
- /data/data-nextcloud
from k8up.
Hello @Kidswiss I have worked on adding the swift support via EnvFrom variables in #657 can you please give me some directions where the NPE might be comming from ? I am not well versed in GO unfortunately :(
from k8up.
Hi @sashokbg
Sorry was a bit busy...
I just checked your snapshots
and I see that the field spec.repository
is missing. That's what's causing the nilpointer.
It should take the value of RESTIC_REPOSITORY
in the backup pod to populate this field. Could you please post a yaml of the backup pod? I'd like to check if all environment variables are available as expected.
EDIT: it might start to work if you use envFrom to inject following envVar:
RESTIC_REPOSITORY=swift:home-cloud-backup-storage/archives
Then you delete the existing snapshot
objects in the namespace and trigger a backup again.
from k8up.
Related Issues (20)
- Allow to attach dynamic tags to snapshots
- Env variable BACKUP_GLOBALRESTORES3ACCESKEYID contains typo
- Allow using custom CA certificates HOT 2
- Support container Security Context HOT 1
- Improve external Contributor Experience
- Archive is Not Created HOT 1
- Include K8s objects in backup
- Failed backup stated as succeeded HOT 3
- Longhorn & Wordpress - k8up changes directory permission HOT 2
- Create PVC Backups via CSI Snapshots or CSI Cloned Volumes
- GCS backend only allows short lived token
- concurrentRunsAllowed: false is not working
- Fix typo in `RestServerSpec`
- Refactoring e2e test with kubernetes-sigs/e2e-framework
- Installation of CRD fails HOT 3
- Helm chart support dual stuck clusters
- Add easy way to create an backup instance of a schedule HOT 2
- Helm Chart 4.5.1 hasn't been released to repositories HOT 4
- Allow to set the priorityClassName of Backup pods HOT 1
- make run doesn't work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k8up.