[PR #4494] [CLOSED] Make sure systemd doesn't try to start NetBox before Redis is ready #12858

Closed
opened 2025-12-29 22:24:01 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/4494
Author: @bluikko
Created: 4/15/2020
Status: Closed

Base: developHead: patch-2


📝 Commits (1)

  • b2409e5 Make sure systemd doesn't try to start NetBox before Redis is ready

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 contrib/netbox.service (+2 -2)

📄 Description

Fixes: #4493

In some cases Redis will take some seconds to become ready.
If NetBox is started with systemd unit file before Redis is ready it will fail with an error.

Changing the After/Wants to redis.service will make sure NetBox start is not attempted before Redis signals it is ready. This needs in redis.conf:

supervised systemd

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/4494 **Author:** [@bluikko](https://github.com/bluikko) **Created:** 4/15/2020 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `patch-2` --- ### 📝 Commits (1) - [`b2409e5`](https://github.com/netbox-community/netbox/commit/b2409e5446d3c552c1eef4b874b610102fce97ca) Make sure systemd doesn't try to start NetBox before Redis is ready ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `contrib/netbox.service` (+2 -2) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ACCEPTED BUG REPORT OR FEATURE REQUEST, IT WILL BE MARKED AS INVALID AND CLOSED. --> ### Fixes: #4493 <!-- Please include a summary of the proposed changes below. --> In some cases Redis will take some seconds to become ready. If NetBox is started with systemd unit file before Redis is ready it will fail with an error. Changing the After/Wants to redis.service will make sure NetBox start is not attempted before Redis signals it is ready. This needs in `redis.conf`: ``` supervised systemd ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:24:01 +01:00
adam closed this issue 2025-12-29 22:24:01 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12858