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

Software list upload fails for a new device #540

Closed
abelikt opened this issue Oct 29, 2021 · 3 comments · Fixed by #653
Closed

Software list upload fails for a new device #540

abelikt opened this issue Oct 29, 2021 · 3 comments · Fixed by #653
Assignees
Labels
bug Something isn't working

Comments

@abelikt
Copy link
Contributor

abelikt commented Oct 29, 2021

Describe the bug

When installing 0.4.1 on a fresh device the software list is not uploaded anymore to Cumulocity.

To Reproduce

sudo dpkg -i tedge_0.4.1_armhf.deb tedge_agent_0.4.1_armhf.deb tedge_apt_plugin_0.4.1_armhf.deb tedge_mapper_0.4.1_armhf.deb
sudo tedge cert create --device-id ...
sudo tedge config set c8y.url ....eu-latest.cumulocity.com
sudo tedge cert upload c8y --user ...
sudo tedge connect c8y
sudo tedge disconnect c8y
sudo tedge connect c8y

Expected behavior

A software list appears in Cumulocity.

Screenshots

![image]([https://user-images.githubusercontent.com/75477722/139433973-d15b7efd-d5e2-4336-a0c3-b0c85e70f5ed.png)|https://user-images.githubusercontent.com/75477722/139433973-d15b7efd-d5e2-4336-a0c3-b0c85e70f5ed.png)]

Environment (please complete the following information):

Rpi 3b+
Linux devraspberrypi 5.10.63-v7+ #1459 SMP Wed Oct 6 16:41:10 BST 2021 armv7l GNU/Linux
thin-edge 0.4.1

Additional context
Workaround: Manual restart of the software mapper while being connected:
sudo systemctl restart tedge-mapper-sm-c8y

Timeboxed to 1

@abelikt abelikt added the bug Something isn't working label Oct 29, 2021
@rina23q
Copy link
Member

rina23q commented Nov 17, 2021

@PradeepKiruvale confirmed that it was fixed with 0.4.2. Close here.

@rina23q rina23q closed this as completed Nov 17, 2021
@rina23q rina23q reopened this Nov 25, 2021
@rina23q
Copy link
Member

rina23q commented Nov 25, 2021

This issue is observed again with 0.4.3 on Raspberry Pi OS 5.10.63-v7l+. Therefore, I'd like to reopen it.

We start first sm-agent, then sm-mapper in tedge connect c8y.

Starting tedge-agent service.
Persisting tedge-agent on reboot.
tedge-agent service successfully started and enabled!
Starting tedge-mapper-sm-c8y service.
Persisting tedge-mapper-sm-c8y on reboot.

However, as long as I observe from subscribing mqtt message, it looks first mapper is up, then agent.

[tedge/commands/req/software/list] {"id":"EM3Jqp_sNsDC3jdzVhw4A"}     # from sm-mapper
[tedge/capabilities/software/list]     # from agent
[tedge/capabilities/software/update]     # from agent

Workaround

The workaround is to restart sm-mapper, or publish a software list request message.

sudo tedge mqtt pub tedge/commands/req/software/list '{"id": "1234"}'

@rina23q
Copy link
Member

rina23q commented Nov 30, 2021

PR is opened. #653

@rina23q rina23q linked a pull request Dec 6, 2021 that will close this issue
10 tasks
@rina23q rina23q removed the willwork label Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants