Gitlab打开Project报404解决

问题描述

使用拥有者账号打开Project

404 The page could not be found or you don't have permission to view it.

使用root账号打开Project

Started GET "/Android/ContactsSync/edit" for 115.238.84.211 at 2018-06-13 13:29:02 +0800
Processing by ProjectsController#edit as HTML
  Parameters: {"namespace_id"=>"Android", "id"=>"ContactsSync"}
Completed 500 Internal Server Error in 258ms (ActiveRecord: 11.5ms)

ActionView::Template::Error (No route matches {:action=>"show", :controller=>"projects/find_file", :id=>nil, :namespace_id=>#<Group id:3 @Android>, :project_id=>#<Project id:1 Android/ContactsSync>} missing required keys: [:id]):
    1: !!! 5
    2: %html{ lang: I18n.locale, class: page_class }
    3:   = render "layouts/head"
    4:   %body{ class: "#{user_application_theme} #{@body_class}", data: { page: body_data_page, project: "#{@project.path if @project}", group: "#{@group.path if @group}", find_file: find_file_path } }
    5:     = render "layouts/init_auto_complete" if @gfm_form
    6:     = render 'peek/bar'
    7:     = render "layouts/header/default"
  config/application.rb:194:in `block (4 levels) in <class:Application>'
  app/helpers/projects_helper.rb:478:in `find_file_path'
  app/views/layouts/application.html.haml:4:in `_app_views_layouts_application_html_haml___4539331734934816470_47343684667880'
  app/views/layouts/project.html.haml:14:in `_app_views_layouts_project_html_haml__3304991172716465960_47343690913300'
  app/views/layouts/project_settings.html.haml:4:in `_app_views_layouts_project_settings_html_haml___2717813663302795480_47343563703380'
  app/controllers/projects_controller.rb:34:in `edit'
  lib/gitlab/i18n.rb:50:in `with_locale'
  lib/gitlab/i18n.rb:56:in `with_user_locale'
  app/controllers/application_controller.rb:360: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'

解决方法

解决:清缓存

# sudo -u git -H bundle exec rake cache:clear RAILS_ENV=production
上一篇 Gitlab源码安装报错 Failed to connect to Gitaly...
下一篇 Gitlab大版本升级思路
目录
文章列表
1 Android NDK 安装及配置
Android NDK 安装及配置
2
MathJax基础之打Tag和引用公式
MathJax基础之打Tag和引用公式
3
MySQL中的索引详解
MySQL中的索引详解
4
Lombok Builder构造器默认值失效
Lombok Builder构造器默认值失效
5
Android NDK基础15:文件加解密_文件合并
Android NDK基础15:文件加解密_文件合并
最新评论
一位WordPress评论者
一位WordPress评论者
2月12日
您好,这是一条评论。若需要审核、编辑或删除评论,请访问仪表盘的评论界面。评论者头像来自 Gravatar。