Can you bring back decommissioned devices?

135 views
Skip to first unread message

Cody Martin

unread,
May 11, 2018, 3:58:26 PM5/11/18
to Mender List mender.io
I decommissioned a device and would like to bring it back. I tried following the instructions on flushing the decommissioned devices from the db on the server troubleshooting page but i get this error.


$ sudo docker-compose exec mender-device-auth /usr/bin/deviceauth maintenance --decommissioning-cleanup
ERROR: No container found for mender-device-auth_1


Cody Martin

unread,
May 11, 2018, 4:17:55 PM5/11/18
to Mender List mender.io
Also when i enable tty on that image and run
 
sudo docker exec menderproduction_mender-device-auth_1 /usr/bin/deviceauth maintenance --decommissioning-cleanup 

it looks like its trying to start, that this maintenance command isnt an option to /deviceauth

when i do 

 sudo docker exec menderproduction_mender-device-auth_1 /usr/bin/deviceauth --help

i dont see a "maintenance" option.  just server, migrate, and help.. 

so maybe the troubleshooting docs need updating?

regardless, i still need a way to bring back decommissioned devices. 

Cody Martin

unread,
May 11, 2018, 4:27:04 PM5/11/18
to Mender List mender.io
I see. 1.4 documentation does not match the 1.4 deviceauth code.. looks like maintenance was introduced in 1.5. so how do i flush decommissioned devices from the db in 1.4 so i can 


vt_iot

unread,
May 18, 2018, 9:44:45 AM5/18/18
to Mender List mender.io
Did you get a solution? I am also looking for process/way to cleanup / flush decommissioned devices from the db.
Thanks

Cody Martin

unread,
May 18, 2018, 11:04:26 AM5/18/18
to men...@lists.mender.io
No. They added a way in 1.5. It’s in the troubleshooting guide. I’m using 1.4 so it wasn’t working for me. 

I was able to log into the mongo container and run some cleanup commands on the mongo db manually but I wouldn’t suggest it for a production db. 

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "Mender List mender.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mender+un...@lists.mender.io.
To post to this group, send email to men...@lists.mender.io.
Visit this group at https://groups.google.com/a/lists.mender.io/group/mender/.
Reply all
Reply to author
Forward
0 new messages