gitlab - 在我们的 gitlab 安装中随机出现 500 个错误
问题描述
所以我们最近在 VPS 上安装了一个全新的 Gitlab。我们不断收到这些奇怪的 500 错误,有时我们也会收到 502 错误。如果您只是重新加载页面,它会再次正常工作。
这是我们在日志中得到的:
Completed 500 Internal Server Error in 104ms (ActiveRecord: 11.0ms | Elasticsearch: 0.0ms)
ActionView::Template::Error (wrong number of arguments (given -1, expected 0..1)):
2: .projects-dropdown-container
3: .project-dropdown-sidebar.qa-projects-dropdown-sidebar
4: %ul
5: = nav_link(path: 'dashboard/projects#index') do
6: = link_to dashboard_projects_path, class: 'qa-your-projects-link' do
7: = _('Your projects')
8: = nav_link(path: 'projects#starred') do
app/helpers/tab_helper.rb:44:in `nav_link'
app/views/layouts/nav/projects_dropdown/_show.html.haml:5:in `_app_views_layouts_nav_projects_dropdown__show_html_haml__507423338401438640_70116785554280'
app/views/layouts/nav/_dashboard.html.haml:8:in `block in _app_views_layouts_nav__dashboard_html_haml__3348077098840061580_70116777691560'
app/helpers/tab_helper.rb:55:in `nav_link'
app/views/layouts/nav/_dashboard.html.haml:3:in `_app_views_layouts_nav__dashboard_html_haml__3348077098840061580_70116777691560'
app/views/layouts/header/_default.html.haml:15:in `_app_views_layouts_header__default_html_haml___3435027822084279605_70116622340220'
app/views/layouts/application.html.haml:7:in `_app_views_layouts_application_html_haml___580706530271060056_70116596509800'
app/views/layouts/project.html.haml:14:in `_app_views_layouts_project_html_haml___2694622167901485088_70116784316120'
app/controllers/projects/merge_requests_controller.rb:22:in `index'
lib/gitlab/i18n.rb:50:in `with_locale'
lib/gitlab/i18n.rb:56:in `with_user_locale'
app/controllers/application_controller.rb:338:in `set_locale'
lib/gitlab/middleware/multipart.rb:95:in `call'
lib/gitlab/request_profiler/middleware.rb:14:in `call'
lib/gitlab/middleware/go.rb:17:in `call'
lib/gitlab/etag_caching/middleware.rb:11:in `call'
lib/gitlab/middleware/read_only/controller.rb:28:in `call'
lib/gitlab/middleware/read_only.rb:16:in `call'
lib/gitlab/request_context.rb:18:in `call'
lib/gitlab/metrics/requests_rack_middleware.rb:27:in `call'
lib/gitlab/middleware/release_env.rb:10:in `call'
为什么我们会得到这些,我该如何解决?
解决方案
推荐阅读
- image - 如何使用 Slick Slider 为移动设备加载不同的图像?
- c# - 客户显示器使用十六进制代码进行文本滚动
- php - 页面刷新后如何记住输入字段的值?
- sass - 如何在 sass 中保留引用的字符
- excel - 如何使用 VBA 对数据进行分类并传输到其他文件?
- vb.net - 如何修复此代码并将此小数位函数添加到另一个函数的输出中
- angular - 如何使用来自 http 的数据填充输入字段
- python - How to create pandas dataframe based on multi-index column values
- php - 如何使用 php 7.2 在lando 中安装 php-mcrypt?
- python - 在本地函数内部时从父范围修改变量