Skip to content

fix: app with dangling container are failed#299

Draft
lucarin91 wants to merge 1 commit intomainfrom
dangling-container-are-failing-app
Draft

fix: app with dangling container are failed#299
lucarin91 wants to merge 1 commit intomainfrom
dangling-container-are-failing-app

Conversation

@lucarin91
Copy link
Copy Markdown
Contributor

@lucarin91 lucarin91 commented Mar 16, 2026

Motivation

Apps with some containers not in a running state should be considered failed.

Change description

Additional Notes

Reviewer checklist

  • PR addresses a single concern.
  • PR title and description are properly filled.
  • Changes will be merged in main.
  • Changes are covered by tests.
  • Logging is meaningful in case of troubleshooting.

@lucarin91 lucarin91 requested review from a team and giulio93 March 16, 2026 14:14
@lucarin91 lucarin91 marked this pull request as ready for review March 16, 2026 14:14
@lucarin91 lucarin91 marked this pull request as draft March 17, 2026 14:22
@lucarin91
Copy link
Copy Markdown
Contributor Author

We have an issue with the events generated by starting an app. With this change during the startup of an app we transition to a failing state, which isn't acceptable, in my opinion. Se the logs below:

event: app
data: {"id":"ZXhhbXBsZXM6b2JqZWN0LWRldGVjdGlvbg","name":"Detect objects on images","description":"Object detection in the browser","icon":"🏞","status":"stopped","example":true,"default":false}

event: app
data: {"id":"ZXhhbXBsZXM6b2JqZWN0LWRldGVjdGlvbg","name":"Detect objects on images","description":"Object detection in the browser","icon":"🏞","status":"stopped","example":true,"default":false}

event: app
data: {"id":"ZXhhbXBsZXM6b2JqZWN0LWRldGVjdGlvbg","name":"Detect objects on images","description":"Object detection in the browser","icon":"🏞","status":"failed","example":true,"default":false}

event: app
data: {"id":"ZXhhbXBsZXM6b2JqZWN0LWRldGVjdGlvbg","name":"Detect objects on images","description":"Object detection in the browser","icon":"🏞","status":"running","example":true,"default":false}

We need to find a better way to distinguish between a starting app and an app with a dangling container.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 18, 2026

CLA assistant check
All committers have signed the CLA.

@giulio93
Copy link
Copy Markdown
Contributor

Running the object detection on UNO Q board i don't see fail coming up as an error:

data: {"code":"INTERNAL_SERVER_ERROR","message":"no app status found for app at path /var/lib/arduino-app-cli/examples/object-detection"}

event: app
data: {"id":"","name":"","description":"","icon":"","example":false,"default":false}

event: app
data: {"id":"ZXhhbXBsZXM6b2JqZWN0LWRldGVjdGlvbg","name":"Detect objects on images","description":"Object detection in the browser","icon":"🏞️","status":"running","example":true,"default":false}

event: app
data: {"id":"ZXhhbXBsZXM6b2JqZWN0LWRldGVjdGlvbg","name":"Detect objects on images","description":"Object detection in the browser","icon":"🏞️","status":"running","example":true,"default":false}

event: error
data: {"code":"INTERNAL_SERVER_ERROR","message":"no app status found for app at path /var/lib/arduino-app-cli/examples/object-detection"}

event: app
data: {"id":"","name":"","description":"","icon":"","example":false,"default":false}

event: error
data: {"code":"INTERNAL_SERVER_ERROR","message":"no app status found for app at path /var/lib/arduino-app-cli/examples/object-detection"}

event: app
data: {"id":"","name":"","description":"","icon":"","example":false,"default":false}

event: app
data: {"id":"ZXhhbXBsZXM6b2JqZWN0LWRldGVjdGlvbg","name":"Detect objects on images","description":"Object detection in the browser","icon":"🏞️","status":"stopped","example":true,"default":false}

event: heartbeat

event: error
data: {"code":"INTERNAL_SERVER_ERROR","message":"no app status found for app at path /var/lib/arduino-app-cli/examples/object-detection"}

event: app
data: {"id":"","name":"","description":"","icon":"","example":false,"default":false}

event: app
data: {"id":"ZXhhbXBsZXM6b2JqZWN0LWRldGVjdGlvbg","name":"Detect objects on images","description":"Object detection in the browser","icon":"🏞️","status":"running","example":true,"default":false}

event: app
data: {"id":"ZXhhbXBsZXM6b2JqZWN0LWRldGVjdGlvbg","name":"Detect objects on images","description":"Object detection in the browser","icon":"🏞️","status":"running","example":true,"default":false}

event: error
data: {"code":"INTERNAL_SERVER_ERROR","message":"no app status found for app at path /var/lib/arduino-app-cli/examples/object-detection"}

event: app
data: {"id":"","name":"","description":"","icon":"","example":false,"default":false}

event: error
data: {"code":"INTERNAL_SERVER_ERROR","message":"no app status found for app at path /var/lib/arduino-app-cli/examples/object-detection"}

event: app
data: {"id":"","name":"","description":"","icon":"","example":false,"default":false}

event: app
data: {"id":"ZXhhbXBsZXM6b2JqZWN0LWRldGVjdGlvbg","name":"Detect objects on images","description":"Object detection in the browser","icon":"🏞️","status":"stopped","example":true,"default":false}

@per1234 per1234 added the bug Something isn't working label Mar 26, 2026
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 this pull request may close these issues.

5 participants