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

Sprockets::FileOutsidePaths #217

Open
itay-grudev opened this issue Nov 24, 2017 · 3 comments
Open

Sprockets::FileOutsidePaths #217

itay-grudev opened this issue Nov 24, 2017 · 3 comments

Comments

@itay-grudev
Copy link

I am using sprockets (4.0.0.beta6) and I encounter the following error during deployment while precompiling assets:

Sprockets::FileOutsidePaths: /home/deploy/app/releases/ACTIVE_RELEASE_PATH/app/assets/images/image.svg is no longer under a load path:
/home/deploy/app/releases/NEW_RELEASE_PATH/app/assets/images,
/home/deploy/app/releases/NEW_RELEASE_PATH/app/assets/javascripts,
/home/deploy/app/releases/NEW_RELEASE_PATH/app/assets/stylesheets,
/home/deploy/app/releases/NEW_RELEASE_PATH/vendor/assets/javascripts,
/home/deploy/app/releases/NEW_RELEASE_PATH/vendor/assets/stylesheets,

As shown, the inconsistency is in the release paths used.

@itay-grudev
Copy link
Author

The error doesn't always appear. Just in some commits. I haven't found any relationship though.

@itay-grudev
Copy link
Author

Also related to #70

@trusche
Copy link

trusche commented Jan 25, 2018

I'm encountering the same with sprockets 4.0.0.beta6 and latest Capistrano 3.10.1. It seems to have something to do with caching if that's using a shared directory (which it is in my case - releases/REVISION/tmp/cache is a symlink to shared/tmp/cache. Clearing the cache gets around the deploy error, but it's obviously not a permanent solution.

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

No branches or pull requests

2 participants