* chown -R gccadmin /www/gcc/htdocs-preformatted
@ 2022-10-18 14:15 Gerald Pfeifer
2022-10-18 14:46 ` Frank Ch. Eigler
0 siblings, 1 reply; 2+ messages in thread
From: Gerald Pfeifer @ 2022-10-18 14:15 UTC (permalink / raw)
To: overseers; +Cc: Martin Liška
Martin reported that his latest change to
https://gcc.gnu.org/codingconventions.html
did not make it to the actual gcc.gnu.org site after pushing to git.
I dug into it and found that /www/gcc/htdocs-preformatted is behind
git head. `git pull` gets stuck (even as user gccadmin).
$ git checkout
Your branch is behind 'origin/master' by 3 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
$ git pull
Updating 68c7552f..415fcf49
error: unable to unlink old 'htdocs/onlinedocs/8.4.0/index.html': Permission denied
Ask: Can you please run
chown -R gccadmin /www/gcc/htdocs-preformatted
as root?
And then see whether
cd /www/gcc/htdocs-preformatted ; git pull
(as user gccadmin) succeeds?
Thank you,
Gerald
Q: Why is this happening only now, with this specific update?
Why did Martin and others not run into any problems the last years?
A: My commit 91315916d177e42c5888c5d30491ab6d6041b1a4 four days ago
touched every single *.html file in the tree, which is a first in
four years, and a first since wwwdocs moved to git three years ago.
Interestingly newer directories under onlinedocs/ don't run into this
since they are drwxrwsr-x. instead of drwxr-sr-x. like 8.4.0 is.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: chown -R gccadmin /www/gcc/htdocs-preformatted
2022-10-18 14:15 chown -R gccadmin /www/gcc/htdocs-preformatted Gerald Pfeifer
@ 2022-10-18 14:46 ` Frank Ch. Eigler
0 siblings, 0 replies; 2+ messages in thread
From: Frank Ch. Eigler @ 2022-10-18 14:46 UTC (permalink / raw)
To: Overseers mailing list; +Cc: overseers, Gerald Pfeifer
Hi -
> Martin reported that his latest change to
> https://gcc.gnu.org/codingconventions.html
> did not make it to the actual gcc.gnu.org site after pushing to git.
> [...]
> Updating 68c7552f..415fcf49
> error: unable to unlink old 'htdocs/onlinedocs/8.4.0/index.html': Permission denied
This is fixed via chown and a few strategic chmod g+ws's.
> [...]
> And then see whether
> cd /www/gcc/htdocs-preformatted ; git pull
> (as user gccadmin) succeeds?
No, because git pull fails with a different error (extra commits on
local master vs. origin/master branch). I think you are able to
clean that up without more fuss.
By the way, other projects use git-backed htdocs here with less
machinery, where in a commit to the FOO-htdocs git repo automatically
checks things out to a htdocs directory, sans manual/gccadmin
intervention. Consider.
- FChE
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-18 14:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-18 14:15 chown -R gccadmin /www/gcc/htdocs-preformatted Gerald Pfeifer
2022-10-18 14:46 ` Frank Ch. Eigler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).