Skip to content

FIX: Ensure Redis log directory is created - #1110

Merged
lightbulbjim merged 1 commit into
mainfrom
chrisr/redis-log
Aug 11, 2026
Merged

FIX: Ensure Redis log directory is created#1110
lightbulbjim merged 1 commit into
mainfrom
chrisr/redis-log

Conversation

@lightbulbjim

Copy link
Copy Markdown
Contributor

/var/log/redis needs to exist for certain tests in discourse/discourse to succeed. We were piggybacking off the Postgres install which discards the contents of /var/log via a tmpfs.

We can safely omit Postgres log directories in /var/log, but /var/log/redis needs to exist for certain tests in discourse/discourse to succeed.
@lightbulbjim
lightbulbjim requested a review from tgxworld August 11, 2026 08:46

@nattsw nattsw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I must be blind but I don't see where the directory is gettin gcreated

@lightbulbjim

lightbulbjim commented Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

The --mount=type=tmpfs,target=/var/log meant /var/log was mounted as a ramdisk and discarded after the command finished.

It would have been written like that because we don't care about Postgres cruft in /var/log.

@lightbulbjim
lightbulbjim merged commit e6d7b50 into main Aug 11, 2026
5 checks passed
@lightbulbjim
lightbulbjim deleted the chrisr/redis-log branch August 11, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants