Bug: 500 Error when viewing files via direct link in GitLab web viewer
-
I've recently been encountering this and figured I would report it here.
This seems to occur because of how GitLab is packaged for Cloudron as I was unable to reproduce this issue on gitlab.com proper.
However, I was able to trigger this issue on both Cloudrons I manage as well as on the official Cloudron GitLab instance as well.The error manifests when attempting to view a file via the built-in editor in GitLab. Navigating to a file via the interface works, but if you reload the file once it's open or alternatively navigate to its link directly, you will be greeted with a 500 error.
Example link:
https://git.cloudron.io/cloudron/gitlab-app/-/blob/master/README.mdIn the logs this manifests as such:
Completed 500 Internal Server Error in 63ms (ActiveRecord: 3.7ms | Elasticsearch: 0.0ms | Allocations: 12843) ActionView::Template::Error (Can't find entry point 'monaco' in webpack manifest): 2: - page_title @blob.path, @ref 3: - signatures_path = namespace_project_signatures_path(namespace_id: @project.namespace.full_path, project_id: @project.path, id: @last_commit, limit: 1) 4: - content_for :prefetch_asset_tags do 5: - webpack_preload_asset_tag('monaco', prefetch: true) 6: 7: .js-signature-container{ data: { 'signatures-path': signatures_path } } 8:
I found some things on the GitLab issue tracker about rebuilding frontend caches/packages but am not entirely sure how to achieve this (or whether it would actually help in this case) so any advice (or a potential fix) would be appreciated.
-
-