Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating modules #68

Closed
nhuurnink opened this issue Jul 25, 2018 · 6 comments
Closed

Updating modules #68

nhuurnink opened this issue Jul 25, 2018 · 6 comments

Comments

@nhuurnink
Copy link

Hi there,

When I'm trying to update a module by using "Create deployment to single device" in VSC, it states Deployment succeeded. However on my device the module seems to keep running, and I don't see any changes in behavior until I completely reset IoT Edge.

What is required to force the module to re-run with the new deployed code? Or am I thinking about this whole process the wrong way?

@dsajanice
Copy link
Member

Can you please provide some more information on the full container image names (including tags) you created before and after the deployment. The Edge Agent will only detect a change in image if the new image tag differs from the previous one. If both images are pushed with tag 'latest', the Edge Agent will not detect the change in deployment and will only pull the new image the next time IoT Edge is reset.

@nhuurnink
Copy link
Author

Oh that is based on meta info and not on changes in code itself? That would explain my case.
What is the recommended approach to do this via visual studio code? Up the version? Cause this feels like overkill during development.

@dsajanice
Copy link
Member

Yes, please up the version. If you are using the VS Code extension, it can be changed in module.json. The Edge Agent cannot detect changes in code because the code is packaged inside a container. It detects a change in container based on the properties of the image.

@nhuurnink
Copy link
Author

Ok clear, thanks!

@nkolchakov
Copy link

nkolchakov commented Oct 16, 2018

If I have a new or updated image for an existring module how can I update it manually though the Portal or something w/o using Visual Studio Code functionality ?

@elliotchaim
Copy link

@dsajanice I am updating the version in the module.json file, yet still experiencing the issue which @nhuurnink described. Any advice?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants