https://rancher.com/ logo
Title
b

brave-egg-3182

02/05/2023, 3:35 PM
Hey guys, I have trouble while trying to take snapshot from etcd in my Kubernetes cluster. There hasn't been any resource in order to fix this problem on rke issue (on Github). Whenever I run
rke etcd snapshot-save --config cluster.yml --name first-snapshot
command, I face the following issue:
invalid memory address or nil pointer
This error has been solved but I can't find the snapshot (it's name in the above case is first-snapshot) in my files.
find / -name first-snapshot 2>/dev/null
The above command didn't find any file on my computer.
image.png
b

bulky-sunset-52084

02/05/2023, 6:56 PM
The snapshot should be in
/opt
the file will have the date appended to it so the reason the find command didn't work is because there won't be a literal file called 'first-snapshot' I would use a wildcard (*) in the find command to find it so like:
find / -name "first-snapshot*" 2>/dev/null
❤️ 1
b

brave-egg-3182

02/06/2023, 7:54 AM
Thanks
@bulky-sunset-52084 Would you please tell me the root cause of
invalid memory address or nil pointer
error I got? I don't know what the problem is?
b

bulky-sunset-52084

02/06/2023, 7:30 PM
That could be a lot of things. it could be RKE. It could be your OS. It could be the OS you're running rke snapshot-save from. More context is needed here. this is a very generic memory error...