-
Notifications
You must be signed in to change notification settings - Fork 334
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
error 404 for bootstrap.min.css as it is read-only by an owner #660
Comments
Sorry you've run into this! I wonder if the issue has to do with our SCSS compilation pipeline and caching. For example, if at one time you had the local unmask set to a restrictive permission, we could've generated these files with invalid permissions, and since no content inside of them is changing, we're always using the cached version with incorrect file permissions. (If this is true, I'll still need to figure a better way to deal with this). You could test this theory by clearing the files out of our scss cache directory at:
Once you've cleared the cache, render the site again and we will regenerate the files (hopefully with the correct permissions). If this doesn't solve the issue (or you know you haven't changed the unmask setting). I can keep digging into why these files are getting created with incorrect permissions... |
Thanks! I am using mac OS 10.15 (catalina) and quarto v 0.9.254. umask is set of 0022. I checked sass cache dir for quarto if any at This is not a major issue for me though. For now, I simply change to |
Thanks for checking (I gave you linux paths). Any chance you could check one other location for me?
is the correct path on Mac. |
Sure and forgot to check that one. Here is output.
I then did following: rm -rf /Users/<user>/Library/Caches/quarto/sass/
cd <quarto website>
rm -rf _site
umask 0022
touch testme
ls -alh testm # shows 644 permission
quarto render No change and |
Ok thanks so much checking - that definitely shoots down that theory! I'll do more digging... |
Since git does not track read-write permission, once I set valid 644 permissions on local and push these changes to github, subsequent reversion to 600 on local (with I use |
Thanks for you help, I do believe that I found the issue and fixed it here: There is a fresh release on the way with this change. |
great and happy to help. Thanks again for this making this great product. |
Started using quarto and love it!
I use custom server to host intranet website. While deploying website using
quarto render
followed rsync toserver:/var/www/html/
, website returns error 404 for files, bootstrap.min.css and bootstrap-dark.min.css and thus, fails to render website theme.I have local umask set to
0022
and for most files under_site/
, I get a valid file permissions (read-only by others) but bootstrap.min.css and bootstrap-dark.min.css are set to read-only by the owner only. This is typically not an issue if on remote server, the same user,foo
orroot
is runningnginx
server but in my case, it runs usingnginx
user and it fails to read css files. Manually fixing permissions of these css files render website correctly on a remote server, however I need to do this every-time I usequarto render
.The text was updated successfully, but these errors were encountered: