{"action":"created","issue":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8135","labels_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8135/labels{/name}","comments_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8135/comments","events_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8135/events","html_url":"https://github.com/gitlabhq/gitlabhq/issues/8135","id":46514658,"number":8135,"title":"[7.4.0.rc1] Error 500 when accessing file tree","user":{"login":"OndrejP","id":1157443,"avatar_url":"https://avatars.githubusercontent.com/u/1157443?v=3","gravatar_id":"","url":"https://api.github.com/users/OndrejP","html_url":"https://github.com/OndrejP","followers_url":"https://api.github.com/users/OndrejP/followers","following_url":"https://api.github.com/users/OndrejP/following{/other_user}","gists_url":"https://api.github.com/users/OndrejP/gists{/gist_id}","starred_url":"https://api.github.com/users/OndrejP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OndrejP/subscriptions","organizations_url":"https://api.github.com/users/OndrejP/orgs","repos_url":"https://api.github.com/users/OndrejP/repos","events_url":"https://api.github.com/users/OndrejP/events{/privacy}","received_events_url":"https://api.github.com/users/OndrejP/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2014-10-22T14:17:57Z","updated_at":"2015-01-20T14:30:54Z","closed_at":"2014-10-23T11:44:30Z","body":"GET on http://gitlab/groupname/projectname/tree/trunk return HTTP 500 error .\r\nOn some project is this problem, but on other project is all fine. \r\nOn all project http://gitlab.int.wikidi.net/groupname/projectname/network/trunk functional and 'trunk' exist. \r\n\r\nToday I upgrade from 6.8.2 to 7.4.0 .\r\nOn production log:\r\n```\r\nStarted GET \"/groupname/projectname/tree/trunk\" for 127.0.0.1 at 2014-10-22 15:46:48 +0200\r\nProcessing by Projects::TreeController#show as HTML\r\n  Parameters: {\"project_id\"=>\"groupname/projectname\", \"id\"=>\"trunk\"}\r\nCompleted 500 Internal Server Error in 66ms\r\n\r\nActionView::Template::Error (undefined method `[]' for nil:NilClass):\r\n    1: - tree, commit = submodule_links(submodule_item)\r\n    2: %tr{ class: \"tree-item\" }\r\n    3:   %td.tree-item-file-name\r\n    4:     %i.fa.fa-archive\r\n  app/models/repository.rb:162:in `method_missing'\r\n  app/models/repository.rb:228:in `submodule_url_for'\r\n  app/helpers/submodule_helper.rb:6:in `submodule_links'\r\n  app/views/projects/tree/_submodule_item.html.haml:1:in `_app_views_projects_tree__submodule_item_html_haml__72721025819922330_69870558233620'\r\n  app/helpers/tree_helper.rb:19:in `render_tree'\r\n  app/views/projects/tree/_tree.html.haml:42:in `_app_views_projects_tree__tree_html_haml__3156903284251226383_69870557509340'\r\n  app/views/projects/tree/show.html.haml:9:in `_app_views_projects_tree_show_html_haml__1301463322870502234_69870556854620'\r\n  app/controllers/projects/tree_controller.rb:13:in `show'\r\n```\r\nSystem information:\r\n```\r\nSystem:\t\tDebian 7.5\r\nCurrent User:\tgit\r\nUsing RVM:\tno\r\nRuby Version:\t2.1.2p95\r\nGem Version:\t2.2.2\r\nBundler Version:1.7.4\r\nRake Version:\t10.3.2\r\nSidekiq Version:2.17.0\r\n\r\nGitLab information\r\nVersion:\t7.4.0.rc1\r\nRevision:\tbe80837\r\nDirectory:\t/home/git/gitlab\r\nDB Adapter:\tmysql2\r\nUsing LDAP:\tno\r\nUsing Omniauth:\tno\r\n\r\nGitLab Shell\r\nVersion:\t2.0.1\r\nRepositories:\t/home/git/repositories/\r\nHooks:\t\t/home/git/gitlab-shell/hooks/\r\nGit:\t\t/usr/bin/git\r\n```\r\nCheck:\r\n```\r\nGit configured for git user? ... yes\r\n\r\nChecking Environment ... Finished\r\n\r\nChecking GitLab Shell ...\r\n\r\nGitLab Shell version >= 2.0.1 ? ... OK (2.0.1)\r\nRepo base directory exists? ... yes\r\nRepo base directory is a symlink? ... no\r\nRepo base owned by git:git? ... yes\r\nRepo base access is drwxrws---? ... yes\r\nSatellites access is drwxr-x---? ... yes\r\nhooks directories in repos are links: ... \r\nRunning /home/git/gitlab-shell/bin/check\r\nCheck GitLab API access: OK\r\nCheck directories and files: \r\n\t/home/git/repositories: OK\r\n\t/home/git/.ssh/authorized_keys: OK\r\nTest redis-cli executable: redis-cli 2.8.10\r\nSend ping to redis server: PONG\r\ngitlab-shell self-check successful\r\n\r\nChecking GitLab Shell ... Finished\r\n\r\nChecking Sidekiq ...\r\n\r\nRunning? ... yes\r\nNumber of Sidekiq processes ... 1\r\n\r\nChecking Sidekiq ... Finished\r\n\r\nChecking LDAP ...\r\n\r\nLDAP is disabled in config/gitlab.yml\r\n\r\nChecking LDAP ... Finished\r\n\r\nChecking GitLab ...\r\n\r\nDatabase config exists? ... yes\r\nDatabase is SQLite ... no\r\nAll migrations up? ... yes\r\nDatabase contains orphaned GroupMembers? ... no\r\nGitLab config exists? ... yes\r\nGitLab config outdated? ... no\r\nLog directory writable? ... yes\r\nTmp directory writable? ... yes\r\nInit script exists? ... yes\r\nInit script up-to-date? ... yes\r\n\r\nRedis version >= 2.0.0? ... yes\r\nRuby version >= 2.0.0 ? ... yes (2.1.2)\r\nYour git bin path is \"/usr/bin/git\"\r\nGit version >= 1.7.10 ? ... yes (1.7.10)\r\n\r\nChecking GitLab ... Finished\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/comments/70661379","html_url":"https://github.com/gitlabhq/gitlabhq/issues/8135#issuecomment-70661379","issue_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8135","id":70661379,"user":{"login":"brianpcarr","id":4673411,"avatar_url":"https://avatars.githubusercontent.com/u/4673411?v=3","gravatar_id":"","url":"https://api.github.com/users/brianpcarr","html_url":"https://github.com/brianpcarr","followers_url":"https://api.github.com/users/brianpcarr/followers","following_url":"https://api.github.com/users/brianpcarr/following{/other_user}","gists_url":"https://api.github.com/users/brianpcarr/gists{/gist_id}","starred_url":"https://api.github.com/users/brianpcarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianpcarr/subscriptions","organizations_url":"https://api.github.com/users/brianpcarr/orgs","repos_url":"https://api.github.com/users/brianpcarr/repos","events_url":"https://api.github.com/users/brianpcarr/events{/privacy}","received_events_url":"https://api.github.com/users/brianpcarr/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T14:30:54Z","updated_at":"2015-01-20T14:30:54Z","body":"In a separate copy of your repo, what does the 'git submodule' command return.  At some point it seems that gitlab should be able to support incompletely defined submodules (a.k.a. sub repos), but right now it is up to you to make sure that all your submodules are complete and correct."}}