# Throw 500 when login with Gitlab CE

**URL:** <https://community.codecov.com/t/throw-500-when-login-with-gitlab-ce/329>\
**Category:** Bug Fixes\
**Created:** [June 29, 2019, 2:18pm UTC](https://community.codecov.com/t/throw-500-when-login-with-gitlab-ce/329 "2019-06-29T14:18:25Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiningstarts](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@shiningstarts](https://community.codecov.com/u/shiningstarts)\
**Post date:** [June 29, 2019, 2:18pm UTC](https://community.codecov.com/t/throw-500-when-login-with-gitlab-ce/329/1 "2019-06-29T14:18:25Z")

</div>

I deploy codecov-enterprise with docker compose([Deploying with Docker Compose](https://docs.codecov.io/docs/deploying-with-docker)), it seems work well.  
But it throws 500 when I login with Gitlab Community Edition.

---

<div class="post-metadata">

**Author:** ![jerrod](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/jerrod/32/41_2.png) [@jerrod](https://community.codecov.com/u/jerrod)\
**Post date:** [July 12, 2019, 6:48pm UTC](https://community.codecov.com/t/throw-500-when-login-with-gitlab-ce/329/3 "2019-07-12T18:48:45Z")

</div>

Marking this resolved as it’s been handled on a separate channel 🙂

---

<div class="post-metadata">

**Author:** ![jordan-rash](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/jordan-rash/32/215_2.png) [@jordan-rash](https://community.codecov.com/u/jordan-rash)\
**Post date:** [July 30, 2019, 11:24am UTC](https://community.codecov.com/t/throw-500-when-login-with-gitlab-ce/329/4 "2019-07-30T11:24:33Z")

</div>

Is there anyway we can reference “separate channel” here as I am having the same issue with GHEE. Thanks

---

<div class="post-metadata">

**Author:** ![drazisil](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/drazisil/32/496_2.png) [@drazisil](https://community.codecov.com/u/drazisil)\
**Post date:** [August 2, 2019, 2:29pm UTC](https://community.codecov.com/t/throw-500-when-login-with-gitlab-ce/329/5 "2019-08-02T14:29:58Z")

</div>

Hi @jordan-rash

If you are an Enterprise customer, please open a ticket so we can better assist.

---

<div class="post-metadata">

**Author:** ![jordan-rash](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/jordan-rash/32/215_2.png) [@jordan-rash](https://community.codecov.com/u/jordan-rash)\
**Post date:** [August 2, 2019, 7:27pm UTC](https://community.codecov.com/t/throw-500-when-login-with-gitlab-ce/329/6 "2019-08-02T19:27:02Z")

</div>

Hey @drazisil, thanks for getting back to me. I am not a customer yet, I am trying to few products right now. In your site, it says that I can run the enterprise docker container without a key for a single user (reference attached). At this time, even with a single user, the tool is sending a 500 code. Thanks for the help.

> **[Deploying with Docker Compose](https://docs.codecov.com/docs/deploying-with-docker)**
>
> Using Codecov's official Docker image and docker-compose

 ![50%20PM](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/1X/096dce2350d6ac95a16f5b842902bed3fbea0c12.png)

---

<div class="post-metadata">

**Author:** ![drazisil](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/drazisil/32/496_2.png) [@drazisil](https://community.codecov.com/u/drazisil)\
**Post date:** [August 2, 2019, 7:56pm UTC](https://community.codecov.com/t/throw-500-when-login-with-gitlab-ce/329/7 "2019-08-02T19:56:17Z")

</div>

Are you using GitHub or GitHub Enterprise. Either way, did you create the oauth app? [https://docs.codecov.io/docs/link-service-provider](https://docs.codecov.io/docs/link-service-provider)

---

<div class="post-metadata">

**Author:** ![jordan-rash](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/jordan-rash/32/215_2.png) [@jordan-rash](https://community.codecov.com/u/jordan-rash)\
**Post date:** [August 7, 2019, 1:35pm UTC](https://community.codecov.com/t/throw-500-when-login-with-gitlab-ce/329/8 "2019-08-07T13:35:36Z")

</div>

Enterprise…and yea, the Oauth app is up and running…even shows that 1 user is connected in the UI. Still I get the 500 when trying to connect. The only error that is throw is about the key. Now, in order to get it to start (since is didnt start allow for enterprise integration at all when I left the key field blank) I had to satisfy the regex to get the webserver to start (20 random chars). All this being said, I just want to know how to start the enterprise docker container without a key so I can test. Thanks

---

<div class="post-metadata">

**Author:** ![jordan-rash](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/jordan-rash/32/215_2.png) [@jordan-rash](https://community.codecov.com/u/jordan-rash)\
**Post date:** [August 7, 2019, 1:42pm UTC](https://community.codecov.com/t/throw-500-when-login-with-gitlab-ce/329/9 "2019-08-07T13:42:01Z")

</div>

This is the error being thrown in the logs

```auto
web_1 | File "site-packages/tornado/web.py", line 1511, in _execute
web_1 | File "site-packages/tornado/gen.py", line 1055, in run
web_1 | File "site-packages/tornado/concurrent.py", line 238, in result
web_1 | File "site-packages/tornado/gen.py", line 1069, in run
web_1 | File "app/handlers/github/login.py", line 49, in get
web_1 | File "app/handlers/base.py", line 924, in login
web_1 | KeyError: 'users'

```

```auto
web_1 | 2019-08-07 13:41:04 {6} [ERROR] {"method": "GET", "ms": "414", "reason": "Internal Server Error", "service": "ghe", "status": 500, "url": "/login/ghe?code=c0aa3xxxxxxx841450ca"}

```

---

<div class="post-metadata">

**Author:** ![drazisil](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/drazisil/32/496_2.png) [@drazisil](https://community.codecov.com/u/drazisil)\
**Post date:** [August 7, 2019, 2:51pm UTC](https://community.codecov.com/t/throw-500-when-login-with-gitlab-ce/329/10 "2019-08-07T14:51:28Z")

</div>

I’ll need your config.yml, and since you’ve opened a ticket, lets handle it there and we can bring the solution back to the community if applicable.

---

<div class="post-metadata">

**Author:** ![jerrod](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/jerrod/32/41_2.png) [@jerrod](https://community.codecov.com/u/jerrod)\
**Post date:** [October 25, 2019, 6:33pm UTC](https://community.codecov.com/t/throw-500-when-login-with-gitlab-ce/329/11 "2019-10-25T18:33:00Z")

</div>

@jordan-rash – I think our docs were a bit misleading and I’ve updated them. I’d love to provide you a trial license key though, no charge or expectation → connect with us @ hello {at} [codecov.io](http://codecov.io)

---

<div class="post-metadata">

**Author:** ![jordan-rash](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/jordan-rash/32/215_2.png) [@jordan-rash](https://community.codecov.com/u/jordan-rash)\
**Post date:** [October 31, 2019, 10:23am UTC](https://community.codecov.com/t/throw-500-when-login-with-gitlab-ce/329/12 "2019-10-31T10:23:18Z")

</div>

@jerrod Thanks for clearing that up. Yea unfortunately I had interrupted the “Codecov will run without a trial license key…” piece as Codecov Ent will run for a single user without a license key. Made sense to me for in order to allow folks to run POCs at their orgs (new docs are much more clear, thanks!). No worries though, I will spend the next couple days trying to get the environment back up and running, then I will reach out. Don’t want to pull a key before I can use it 🙂 Thanks again!

---

<div class="post-metadata">

**Author:** ![jerrod](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/jerrod/32/41_2.png) [@jerrod](https://community.codecov.com/u/jerrod)\
**Post date:** [November 1, 2019, 6:12pm UTC](https://community.codecov.com/t/throw-500-when-login-with-gitlab-ce/329/13 "2019-11-01T18:12:44Z")

</div>

Sounds good! Look forward to providing a trial license key when the time is right.

Jerrod
