We’re running Gitlab Enterprise v12.10.0-ee on Ubuntu and just recently noticed that a lot of the uploaded images that we pasted into our wikis are showing up as broken links. Some work just fine. Some of the missing images are years old, some are only weeks old so date doesn’t seem to be an issue.
One thing that sticks out between the working and non-working files is the difference in the urls. For instance, this image appears correctly:
http://<our_site>/documentation/wiki/-/wikis/uploads/d08bf9ef1d30a89dd4e2d75b933ab292/Screen_Shot_2018-11-28_at_8.35.23_AM.png
It’s located in this page:
https://<our_site>/documentation/wiki/-/wikis/project-maverick-setup
This image does not appear and shows a broken link:
https://<our_site>/documentation/wiki/uploads/b0bc0e0d077b62ef0e25cb3ed4aaec39/Screen_Shot_2018-02-28_at_12.37.05_PM.png
It’s located in this page:
https://<our_site>/documentation/wiki/-/wikis/how-to-release
Note the lack of the additional /-/wikis/
in the broken image path. Adding /-/wikis/
to the broken image path takes me to a page to create that resource, not to the actual image.
I searched our server for the broken image and found it here:
/var/opt/gitlab/gitlab-rails/uploads/documentation/wiki/b0bc0e0d077b62ef0e25cb3ed4aaec39/Screen_Shot_2018-02-28_at_12.37.05_PM.png
which mirrors the URL. So it’s not missing.
What’s more perplexing is that when I search my Gitlab server for files that DO appear correctly, I can’t find them. So I’m wondering if an update changed the way files are stored and some of these files didn’t get updated?
Would appreciate it if anybody has any ideas.
Thanks