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.
-
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.
-
N nebulon marked this topic as a question on
-
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.
@timwedde also noticed this after recent package update, was meaning to getting around to making a post on it. Thanks for the detailed report! +1
-
N nebulon has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
