Skip to content

Commit

Permalink
🤖 Specify Cache Root
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jeremyf committed Dec 20, 2023
1 parent 8272321 commit 5b3089a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
BUNDLE_PATH: vendor/bundle
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
HYKU_CACHE_ROOT: /tmp/hyku-cache
HYKU_RESTRICT_CREATE_AND_DESTROY_PERMISSIONS: 'true'
SOLR_ADMIN_USER: admin
SOLR_ADMIN_PASSWORD: admin
Expand Down

0 comments on commit 5b3089a

Please sign in to comment.