Gitlab projects lost repositories after upgrade

Hello.
We have recently upgraded Gitlab 8.0 installed from sources to Gitlab 10.5.
It looks like everything inside Gitlab works fine except repositories.
When I am trying to access it over web or ssh I am constantly getting a message that there is no repository. That happens for every project I tried.

See a log from api_json.log:

{“time”:“2018-03-12T22:59:59.927Z”,“severity”:“INFO”,“duration”:45.68,“db”:8.83,“view”:36.85,“status”:200,“method”:“POST”,“path”:"/api/v4/internal/allowed",“params”:{“action”:“git-upload-pack”,“changes”:"_any",“gl_repository”:null,“project”:“icw/cwstats.git”,“protocol”:“ssh”,“env”:"{}",“key_id”:"[FILTERED]",“secret_token”:"[FILTERED]"},“host”:“dev.icw.com.ua”,“ip”:“172.16.0.194”,“ua”:“Ruby”}

It looks like project icw/cwstats.git doesn’t have a repository (“gl_repository”:null).

Is there a way to fix it?
I tried “bundle exec rake gitlab:import:repos[’/var/lib/git/repositories’] RAILS_ENV=production” but without success:

Processing /var/lib/git/repositories/icw/cwstats.git

  • CWStats (icw/cwstats) exists

Maybe it is possible to specify project’s repository name directly into DB (we use PostgreSQL)? Could you provide a table responsible for this?

I will be appreciated for any help.