hi, could you share how you proceed with graceful-exit on Truenas? I couldn’t find any documentations. When I tried
docker exec -it storagenode /app/storagenode exit-satellite --identity-dir /app/identity
using Truenas shell command, it says no such container.
Thank you in advance.
Alexey
April 30, 2023, 7:56am
2
Depends on how you run the container.
If using the app, then it likely run in kubernetes.
For this you need to have either kubectl
or search in the UI how you can exec a command inside the running pod, but basically you need something like
kubectl get po -A | grep "storagenode"
this will allow you to find the pod with storagenode
then
kubectl exec -it here_is_the_name_of_the_storagenode_pod ./storagenode exit-satellite --identity-dir identity --config-dir config
If you run it as a usual docker container, you need to figure out what is the container name
docker ps | grep storagenode
1 Like
hi Alexy
I was able to find my pod and I need to add k3s before the command you provided, but after I run the command , it shows
error: unknown flag: --identity-dir
any suggestions?
Thanks
Alexey
April 30, 2023, 11:26am
4
Please show the whole command
root@truenas[~]# k3s kubectl exec -it storj1-storj-node-579dbdfb7c-wmnhp ./storagenode exit-satellite --identity-dir identity --config-dir config
error: unknown flag: --identity-dir
See 'kubectl exec --help' for usage.
root@truenas[~]#
oh yes, sorry
Usage:
kubectl exec (POD | TYPE/NAME) [-c CONTAINER] [flags] -- COMMAND [args...] [options]
so,
k3s kubectl exec -it storj1-storj-node-579dbdfb7c-wmnhp -- ./storagenode exit-satellite --identity-dir identity --config-dir config
Thanks Alexey!
The following command worked for me with namespace ix-storj1
k3s kubectl exec -it --namespace ix-storj1 storj1-storj-node-579dbdfb7c-wmnhp -- ./storagenode exit-satellite --identity-dir identity --config-dir config
1 Like
I think you may also simple open a shell to the app and execute the command there, i.e.
./storagenode exit-satellite --identity-dir identity --config-dir config
1 Like
yes, just tried this method, go to APP and choose the SHELL for Storj and it works perfectlly.
Thanks!
3 Likes