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

🤖 Specify Cache Root #2081

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

jeremyf
Copy link
Contributor

@jeremyf jeremyf commented Dec 20, 2023

Prior to this commit, we were seeing the following failure:

Failure/Error: Site.application_name || super

ActionView::Template::Error:
Permission denied @ dir_s_mkdir - /app

The Account#setup_tenant_cache sets the cache_store to be ENV.fetch('HYKU_CACHE_ROOT', '/app/samvera/file_cache'). When I locally chanced it to /blorg/samvera/file_cache I could repeat the error.

With this commit, we're setting the cache value for the CircleCI run.

Why was it previously working? Perhaps because
Account#setup_tenant_cache never got called due to other configurations? There is a guard clause around the method call.

Prior to this commit, we were seeing the following failure:

> Failure/Error: Site.application\_name || super
>
> ActionView::Template::Error:
>  Permission denied @ dir\_s\_mkdir - /app

The `Account#setup_tenant_cache` sets the cache\_store to be
`ENV.fetch('HYKU_CACHE_ROOT', '/app/samvera/file_cache')`.  When I
locally chanced it to `/blorg/samvera/file_cache` I could repeat the
error.

With this commit, we're setting the cache value for the CircleCI run.

Why was it previously working?  Perhaps because
`Account#setup_tenant_cache` never got called due to other
configurations?  There is a guard clause around the method call.
@jeremyf jeremyf added the ignore-for-release ignore this for release notes label Dec 20, 2023
Copy link
Collaborator

@kirkkwang kirkkwang left a comment

Choose a reason for hiding this comment

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

Cool nice find!

@jeremyf jeremyf merged commit 71a303f into hyrax-5-upgrade Dec 20, 2023
2 of 4 checks passed
@jeremyf jeremyf deleted the hyrax-5-upgrade-specify-hyku-cache-root branch December 20, 2023 15:05
@kirkkwang kirkkwang mentioned this pull request Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ignore-for-release ignore this for release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants