You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steve Brasier edited this page Aug 6, 2024
·
1 revision
Debugging podman-based services which fail to start
The filebeat, opensearch and mysql services are containerised using podman. If the podman command fails, in some cases the reason for the failure is not surfaced in the syslog or journal for the service. Debugging this involves trying to run the equivalent command as the podman user but not under systemd. By default, all these services run on the control node.
Using the opensearch service as an example.
SSH into the control node.
Ensure the service is stopped: sudo systemctl stop opensearch.
Find the opensearch unit file, e.g as shown in systemctl status opensearch.
Copy the ExecStart command from this.
Change to the podman user and that user's home directory:
sudo su podman
cd
Run the ExecStart command but with the -d/--detach option removed.