After extra investigation, I discovered that pushing new code also has 
problem but this time production.log is more descriptive.
So on a new repository if I try to push I get the error:
----
Access denied.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
----


The gitlab-shell.log has this inside
----
API call <GET 
https://vcs.encode//api/v3/internal/allowed?action=git-receive-pack&ref=_any&project=bob%2Ftest_empty&forced_push=false&key_id=1>
 
failed: 500 => <{"message"=>"500 Internal Server Error"}>.
---

The production.log has this inside
----
Completed 200 OK in 29ms (Views: 0.4ms | ActiveRecord: 1.4ms)
Started GET 
"//api/v3/internal/allowed?action=git-receive-pack&ref=_any&project=bob%2Ftest_empty&forced_push=false&key_id=1"
 
for 127.0.0.1 at 2014-06-27 17:28:43 +0300
NoMethodError (undefined method `tag_names' for nil:NilClass):
/home/git/gitlab/app/models/repository.rb:102:in `block in tag_names'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/cache.rb:296:in
 
`block in fetch'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/cache.rb:587:in
 
`block in save_block_result_to_cache'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/cache.rb:548:in
 
`instrument'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/cache.rb:586:in
 
`save_block_result_to_cache'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/cache.rb:296:in
 
`fetch'
/home/git/gitlab/app/models/repository.rb:101:in `tag_names'
/home/git/gitlab/lib/gitlab/git_access.rb:56:in `push_allowed?'
/home/git/gitlab/lib/gitlab/git_access.rb:27:in `allowed?'
/home/git/gitlab/lib/api/internal.rb:33:in `block (2 levels) in 
<class:Internal>'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/grape-0.6.1/lib/grape/endpoint.rb:31:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/grape-0.6.1/lib/grape/endpoint.rb:31:in
 
`block in generate_api_method'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/grape-0.6.1/lib/grape/endpoint.rb:401:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/grape-0.6.1/lib/grape/endpoint.rb:401:in
 
`run'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/grape-0.6.1/lib/grape/endpoint.rb:154:in
 
`block in call!'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/grape-0.6.1/lib/grape/middleware/base.rb:24:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/grape-0.6.1/lib/grape/middleware/base.rb:24:in
 
`call!'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/grape-0.6.1/lib/grape/middleware/base.rb:18:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/grape-0.6.1/lib/grape/middleware/base.rb:24:in
 
`call!'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/grape-0.6.1/lib/grape/middleware/base.rb:18:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/grape-0.6.1/lib/grape/middleware/error.rb:26:in
 
`block in call!'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/grape-0.6.1/lib/grape/middleware/error.rb:25:in
 
`catch'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/grape-0.6.1/lib/grape/middleware/error.rb:25:in
 
`call!'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/grape-0.6.1/lib/grape/middleware/base.rb:18:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/head.rb:11:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:138:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/grape-0.6.1/lib/grape/endpoint.rb:155:in
 
`call!'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/grape-0.6.1/lib/grape/endpoint.rb:145:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in
 
`block in call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in
 
`block in recognize'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:68:in
 
`optimized_each'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in
 
`recognize'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/grape-0.6.1/lib/grape/api.rb:525:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/grape-0.6.1/lib/grape/api.rb:42:in
 
`call!'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/grape-0.6.1/lib/grape/api.rb:38:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.1/lib/action_dispatch/journey/router.rb:71:in
 
`block in call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.1/lib/action_dispatch/journey/router.rb:59:in
 
`each'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.1/lib/action_dispatch/journey/router.rb:59:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.1/lib/action_dispatch/routing/route_set.rb:676:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/omniauth-1.1.4/lib/omniauth/strategy.rb:184:in
 
`call!'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/omniauth-1.1.4/lib/omniauth/strategy.rb:164:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-cors-0.2.9/lib/rack/cors.rb:54:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-attack-2.3.0/lib/rack/attack.rb:63:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:35:in
 
`block in call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in
 
`catch'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/etag.rb:23:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/conditionalget.rb:25:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/head.rb:11:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.1/lib/action_dispatch/middleware/params_parser.rb:27:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.1/lib/action_dispatch/middleware/flash.rb:254:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in
 
`context'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.1/lib/action_dispatch/middleware/cookies.rb:560:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/query_cache.rb:36:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.1/lib/action_dispatch/middleware/callbacks.rb:29:in
 
`block in call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:82:in
 
`run_callbacks'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.1/lib/action_dispatch/middleware/callbacks.rb:27:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.1/lib/action_dispatch/middleware/remote_ip.rb:76:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.1/lib/action_dispatch/middleware/debug_exceptions.rb:17:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/rack/logger.rb:38:in
 
`call_app'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/rack/logger.rb:20:in
 
`block in call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/tagged_logging.rb:68:in
 
`block in tagged'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/tagged_logging.rb:26:in
 
`tagged'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/tagged_logging.rb:68:in
 
`tagged'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/rack/logger.rb:20:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.1/lib/action_dispatch/middleware/request_id.rb:21:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/engine.rb:514:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/application.rb:144:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/railtie.rb:194:in
 
`public_send'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/railtie.rb:194:in
 
`method_missing'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:138:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/urlmap.rb:65:in
 
`block in call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in
 
`each'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in
 
`call'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:552:in
 
`process_client'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/unicorn-worker-killer-0.4.2/lib/unicorn/worker_killer.rb:51:in
 
`process_client'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:632:in
 
`worker_loop'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:500:in
 
`spawn_missing_workers'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:142:in
 
`start'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/bin/unicorn_rails:209:in
 
`<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/bin/unicorn_rails:23:in `load'
/home/git/gitlab/vendor/bundle/ruby/2.0.0/bin/unicorn_rails:23:in `<main>'
---


The rake gitlab:env:info info is this:
----
Instance method "lock!" is already defined in ActiveRecord::Base, use 
generic helper instead or set StateMachine::Machine.ignore_method_conflicts 
= true.

System information
System:        Debian 7.5
Current User:    git
Using RVM:    no
Ruby Version:    2.1.2p95
Gem Version:    
/var/lib/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/spec_set.rb:92:in `block 
in materialize': Could not find rake-10.3.2 in any of the sources 
(Bundler::GemNotFound)
    from 
/var/lib/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/spec_set.rb:85:in `map!'
    from 
/var/lib/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/spec_set.rb:85:in 
`materialize'
    from 
/var/lib/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/definition.rb:133:in 
`specs'
    from 
/var/lib/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/definition.rb:178:in 
`specs_for'
    from 
/var/lib/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/definition.rb:167:in 
`requested_specs'
    from 
/var/lib/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/environment.rb:18:in 
`requested_specs'
    from 
/var/lib/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/runtime.rb:13:in `setup'
    from /var/lib/gems/2.0.0/gems/bundler-1.5.2/lib/bundler.rb:119:in 
`setup'
    from /var/lib/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/setup.rb:17:in 
`<top (required)>'
    from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in 
`require'
    from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in 
`require'
Bundler Version:1.5.2
Rake Version:    10.3.2
Sidekiq Version:2.17.0

GitLab information
Version:    7.0.0
Revision:    de9bf7d
Directory:    /home/git/gitlab
DB Adapter:    mysql2
URL:        http://code.internal.lan
HTTP Clone URL:    http://code.internal.lan/some-project.git
SSH Clone URL:    [email protected]:some-project.git
Using LDAP:    yes
Using Omniauth:    no

GitLab Shell
Version:    1.9.6
Repositories:    /home/git/repositories/
Hooks:        /home/git/gitlab-shell/hooks/
Git:        /usr/bin/git
---

And the rake gitlab:check report this (some irrelevant and non erroneous 
info has been removed)
---
Instance method "lock!" is already defined in ActiveRecord::Base, use 
generic helper instead or set StateMachine::Machine.ignore_method_conflicts 
= true.
Checking Environment ...

Git configured for git user? ... yes

Checking Environment ... Finished

Checking GitLab Shell ...

GitLab Shell version >= 1.9.6 ? ... OK (1.9.6)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
Satellites access is drwxr-x---? ... yes
update hook up-to-date? ... yes
update hooks in repos are links: ... 
<HERE EXISTED PROJECTS THAT ARE OK>
bob / test_empty ... repository is empty
Running /home/git/gitlab-shell/bin/check
Could not find rake-10.3.2 in any of the sources
Run `bundle install` to install missing gems.
gitlab-shell self-check failed
  Try fixing it:
  Make sure GitLab is running;
  Check the gitlab-shell configuration file:
  sudo -u git -H editor /home/git/gitlab-shell/config.yml
  Please fix the error above and rerun the checks.

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes
Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Checking LDAP ...

LDAP users with access to your GitLab server (only showing the first 100 
results)
<SHOWS MAY VALID USERS HERE>

DN: CN=LDAP Connect,CN=Users,DC=internal    userPrincipalName: 
["ldap_cn@internal"]

Checking LDAP ... Finished

Checking GitLab ...

Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
Database contains orphaned UsersGroups? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... yes
Init script up-to-date? ... yes
projects have namespace: ... 
<HERE EXISTED PROJECTS THAT ARE yes>
bob / test_empty ... yes
Projects have satellites? ... 
<HERE EXISTED PROJECTS THAT ARE yes>
bob / test_empty ... can't create, repository is empty
Redis version >= 2.0.0? ... yes
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (1.7.10)

Checking GitLab ... Finished
---

How could I fix this problem with rake, is it relevant? And how can I run 
rake commands while it complains for non existing rake?


On Friday, June 27, 2014 5:28:45 PM UTC+3, [email protected] wrote:
>
> Hello,
>
> Yesterday I upgraded from 6.9.2 to 7.0 following this guide[1]. Today we 
> discovered that for any new project when trying to access the wiki, the 
> browser showed a flash 
> "Could not create Wiki Repository at this time. Please try again later. " 
> and redirected to the home page of the project.
>
> On the production.log  the relevant entries are:
> -----------------
> Started GET "/bob/test_project/wikis/home" for 127.0.0.1 at 2014-06-27 
> 16:26:06 +0300
> Processing by Projects::WikisController#show as HTML
> Parameters: {"project_id"=>"bob/test_project", "id"=>"home"}
> Redirected to https://code.internal.lan/bob/test_project
> Filter chain halted as :load_project_wiki rendered or redirected
> Completed 302 Found in 478ms (ActiveRecord: 1.5ms)
> Started GET "/bob/test_project" for 127.0.0.1 at 2014-06-27 16:26:07 +0300
> Processing by ProjectsController#show as HTML
> Parameters: {"id"=>"bob/test_project"}
> Completed 200 OK in 70ms (Views: 37.8ms | ActiveRecord: 3.0ms)
> -----------------
>
>
> Any ideas what to look after?
>
> Thank you in advance :)
>
>
> [1] 
> https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/update/6.9-to-7.0.md
>

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/3a4c3b8f-eaad-4f9f-9282-25d35a959d04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to