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 instructions in Run in production guide #2980

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adamkdean
Copy link

Pull Request

Related issue

No issue raised for this. Just a fix.

What does this PR do?

The guide did not mention to set the binary as executable, which is an issue when you're configuring the service to run as the created user. You'll end up seeing a failure:

# systemctl status meilisearch
× meilisearch.service - Meilisearch
     Loaded: loaded (/etc/systemd/system/meilisearch.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2024-09-17 09:00:06 UTC; 2min 37s ago
   Main PID: 22227 (code=exited, status=203/EXEC)
        CPU: 4ms

Sep 17 09:00:06 adam.edge.network systemd[1]: meilisearch.service: Scheduled restart job, restart counter is at 5.
Sep 17 09:00:06 adam.edge.network systemd[1]: Stopped Meilisearch.
Sep 17 09:00:06 adam.edge.network systemd[1]: meilisearch.service: Start request repeated too quickly.
Sep 17 09:00:06 adam.edge.network systemd[1]: meilisearch.service: Failed with result 'exit-code'.
Sep 17 09:00:06 adam.edge.network systemd[1]: Failed to start Meilisearch.

You can see here that following the previous instructions leads to a non-executable file (-rwxr--r--) when we're expecting -rwxr-xr-x:

# ls -l /usr/local/bin/meilisearch
-rwxr--r-- 1 root root 120750704 Sep 17 08:55 /usr/local/bin/meilisearch

# chmod +x /usr/local/bin/meilisearch

# ls -l /usr/local/bin/meilisearch
-rwxr-xr-x 1 root root 120750704 Sep 17 08:55 /usr/local/bin/meilisearch

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.

1 participant