question

kaushikroy-7024 avatar image
0 Votes"
kaushikroy-7024 asked asergaz edited

Percept DK got corrupted after an incorrect deployment. how do i bring it back?

Hi i deployed a wrong deployment json onto percept dk and it is not showing me anythign now. i tried flashing the firmware but its not working either .can you help?

azure-percept
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @kaushikroy-7024 can you ssh the device? If you can, what is the current status of iot edge?

  • sudo iotedge check

Then I would recommend that you do sudo systemctl restart iotedge to restarts the Azure IoT Edge security daemon.

See more troubleshooting commands to try out if you can access your device via ssh: Troubleshooting commands

Thank you!


0 Votes 0 ·
asergaz avatar image
0 Votes"
asergaz answered kaushikroy-7024 commented

Hi @kaushikroy-7024 ,

In order to delete all existing data on the device, including SSH Users, AI models and containers you can Update Azure Percept DK over a USB-C connection and then start a new OOBE setup.

There isn't an option to remove previous users "from OOBE setup" but you can do it via SSH using some standard Linux commands to remove SSH users.

  1. Get the list of user names (service names also will be shown) : cut -d: -f1 /etc/passwd

  2. Delete the user in question: : sudo userdel <users_name>

  3. DO NOT DELETE any other users as they are used by services.

Note: User names created for SSH only need to be created once. Not every time OOBE is ran. You can "Skip" or "Next" past the SSH pages. The previous username still exists and is usable for SSH "as is". When you get to device setup page, you would pick "Setup as a new device" and choose a new device name. This will create a new device instance in IoT Hub and deploy the appropriate default modules. Finally you can then go to Azure Portal and delete the old/previous Devices in Iot Hub to clean up things.

I hope I could help :).

Remember:
- Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
- Want a reminder to come back and check responses? Here is how to subscribe to a notification.



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you so much! that clarifies a lot of things. i am going to research mroe and update you.

1 Vote 1 ·
kaushikroy-7024 avatar image
0 Votes"
kaushikroy-7024 answered asergaz edited

i basically went through the OOTB experience again and set it up correctly. however i noticed one thing that any user created before is always existing. so after 3 failed installations i got it right at 'kaushik04' but all previous attempted usernames are there. what can i do to clean those?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@kaushikroy-7024 thank you for sharing your solution. I am taking a look internally on how to clean previous configured users in the Out Of the Box Experience (OOBE).

0 Votes 0 ·