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

Fix litestream showing as "not running" in Docker #44

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

AxelTheGerman
Copy link
Contributor

When deploying litestream-ruby via Kamal and Docker, the dashboard shows the process as not running. Using the "x" option for "ps" seems to solve this.

As per ps man page:

Lift the BSD-style "must have a tty" restriction, which imposed upon the set of all processes when some BSD-style
(without "-") options are used or when the personality setting is BSD-like. The set processes selected in this manner is in addition to the set of processes selected by other means.

An alternate description is that this option causes ps list all processes owned by you (same EUID as ps), or list all processes when used together with the a option.

Resolves: #43

When deploying litestream-ruby via Kamal and Docker, the dashboard shows the process as not running.
Using the "x" option for "ps" seems to solve this.

As per ps man page:
x      Lift the BSD-style "must have a tty" restriction, which is
       imposed upon the set of all processes when some BSD-style
       (without "-") options are used or  when  the  ps
       personality  setting  is  BSD-like.   The  set  of
       processes  selected  in this manner is in addition to the
       set of processes selected by other means.

       An alternate description is that this option causes ps to
       list all processes owned by you (same EUID as ps), or to
       list all processes when used together with the a option.

Resolves: fractaledmind#43
@fractaledmind fractaledmind merged commit af0863b into fractaledmind:main Oct 22, 2024
10 checks passed
@fractaledmind
Copy link
Owner

Released in v0.12.0

@AxelTheGerman
Copy link
Contributor Author

Thank you @fractaledmind

Also loved your talk at RailsWorld last month - finally gave me the push to simplify my stack with the new tools and Rails 8 🚀

@AxelTheGerman AxelTheGerman deleted the issue-43 branch October 22, 2024 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deploying with Kamal/Docker shows Litestream as not running in the dashboard
2 participants