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

Pipeline needs to be restarted after every Raspberry Pi reboot #3356

Open
MaD-DSD opened this issue Nov 27, 2024 · 2 comments
Open

Pipeline needs to be restarted after every Raspberry Pi reboot #3356

MaD-DSD opened this issue Nov 27, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@MaD-DSD
Copy link

MaD-DSD commented Nov 27, 2024

Apache StreamPipes version

None

Affected StreamPipes components

Processing Elements

What happened?

I am using Streampipes on a Raspberry Pi. The data source is an HTTP server adapter that captures data and forwards it via a REST Publisher (Data Sink) to a Flask endpoint running in the background on the Raspberry Pi.
Problem:
After a reboot of the Raspberry Pi, data no longer arrives at the Flask endpoint. However, if the pipeline is manually stopped and restarted, the data transmission works correctly again.

How to reproduce?

  1. Reboot the Raspberry Pi.
  2. Data does not arrive at the Flask endpoint.
  3. Stop and restart the pipeline.
  4. Data transmission works again after restarting the pipeline.

Expected behavior

The pipeline should continue functioning correctly after a Raspberry Pi reboot, without the need for a manual restart of the pipeline.

Additional technical information

No response

Are you willing to submit a PR?

None

@MaD-DSD MaD-DSD added the bug Something isn't working label Nov 27, 2024
@dominikriemer
Copy link
Member

Hi @MaD-DSD do you use the standard docker-compose file where the dependsOndependencies are declared between backend and extensions?
For a normal reboot where StreamPipes receives a SIGTERM event, pipelines should be gracefully stopped.
If not (e.g., when the plug is removed from the Pi), usually Health checks should ensure that pipelines which where not properly shutdown are restarted. Is this the case in your setup? Health checks run by default every 60 seconds.

@cdeom
Copy link

cdeom commented Nov 28, 2024

Hi @dominikriemer,

Thank you for your feedback!

We are using this baseline with minor modifications:
https://github.com/apache/streampipes/blob/dev/docker-compose.yml.

I didn’t notice any depends_on related to the backend service in the extensions section of your file, but we will add it to test the setup.
In the backend service, the only depends_on we see is for CouchDB.

image

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

No branches or pull requests

3 participants