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

[Azure Update Center] HTTP/404 on directories which are symlinks #4375

Closed
dduportal opened this issue Nov 6, 2024 · 2 comments
Closed

[Azure Update Center] HTTP/404 on directories which are symlinks #4375

dduportal opened this issue Nov 6, 2024 · 2 comments

Comments

@dduportal
Copy link
Contributor

As reported by @MarkEWaite, we have at least one location which reports HTTP/404 on the new (Azure) Update Center while being served with no error on the (current) Update Center:

Capture d’écran 2024-11-06 à 09 58 26

Capture d’écran 2024-11-06 à 09 58 51

@dduportal
Copy link
Contributor Author

We identified the problem: it was an unexpected side effect of jenkins-infra/update-center2#816 (for the issue #4373) in which we switched from a "www/ -> rsync -> httpd-htdocs" pattern to a "www/ -> cp -> httpd-htdocs", before using azcopy to copy the "httpd-htdocs" to the Azure File Shares?
The unexpected change is that using cp copy the symlinks "as it" while rsync was derefencing them.
=> Sinc azcopy sync does NOT support symlinks, they are simply ignored since jenkins-infra/update-center2#816.

/latest/ is a symlink: it's now ignored by azcopy, e.g. it was removed, hence the HTTP/404

@dduportal
Copy link
Contributor Author

Problem fixed by the following PR: jenkins-infra/update-center2#824 (note we did a first try, reverted it and then this PR). It now works: symlinks are dereferences first, and then copied "as file".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant