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

Add warning that only things in the home folder can be cached (_cci1/how-cache-works.md) #176

Closed
levlaz opened this issue Jun 2, 2016 · 6 comments

Comments

@levlaz
Copy link
Contributor

levlaz commented Jun 2, 2016

RE: jekyll/_docs/how-cache-works.md

Right now only things in the home folder (owned by the ubuntu user) may be cached. To reduce confusion we should make this explicit in the doc.

If someone needs to cache something that is not owned by the ubuntu user they can either:

  1. install the dependencies into the home folder rather than the standard location
  2. Change the ownership of the directory outside of home to be owned by the ubuntu user
@FelicianoTech
Copy link
Contributor

Hey so to be clear, the rule isn't that something needs to be in $HOME to be cached but rather needs to be owned by the ubuntu user correct? Does the group matter at all?

@levlaz
Copy link
Contributor Author

levlaz commented Jun 3, 2016

That is right, just things owned by ubuntu. However you need to be careful.
For example if you chown -R ubunut:ubuntu / and try to cache root it will
not work (and even if it did it would be a 60+GB cache that would take two
hours to restore.)

This is why to be safe we just tell people to install things into $HOME and
then on a case by case basis chown the file if you absolutely must cache
it.

On Fri, Jun 3, 2016 at 2:11 PM Ricardo N Feliciano notifications@github.com
wrote:

Hey so to be clear, the rule isn't that something needs to be in $HOME to
be cached but rather needs to be owned by the ubuntu user correct? Does
the group matter at all?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#176 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AHnH6G6k4-UK8fqq3rXvESn42-zmC2Utks5qIJiNgaJpZM4Is8or
.

@eric-hu
Copy link
Contributor

eric-hu commented Jun 6, 2016

@levlaz out of curiosity, are there other reasons that taking ownership of / would fail besides size limitations?

@levlaz
Copy link
Contributor Author

levlaz commented Jun 7, 2016

Yes, there are some files and directories that you cannot actually own as
the ubuntu user even if you chown them, so this will cause a failure.

On Mon, Jun 6, 2016 at 7:36 AM eric-hu notifications@github.com wrote:

@levlaz https://github.com/levlaz out of curiosity, are there other
reasons that taking ownership of / would fail besides size limitations?


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#176 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AHnH6JaHjY8S1cEx7Fdagg0Egayq3aAzks5qJDBRgaJpZM4Is8or
.

@smart-alek smart-alek changed the title Add explicit instruction that only things in the home folder can be cached Add warning that only things in the home folder can be cached (_cci1/how-cache-works.md) Mar 3, 2017
@smart-alek
Copy link
Contributor

More context here.

@smart-alek
Copy link
Contributor

This might still be applicable to 2.0, but closing for now unless I hear otherwise from @eric-hu or @levlaz.

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

4 participants