Salamek / gitlab-tools

Web application providing tools not avaiable in GitLab CE (Gitlab push/pull mirror and more)
GNU General Public License v3.0
99 stars 15 forks source link

500 Internal Server Error after login / Redirect #23

Closed preussal closed 5 years ago

preussal commented 5 years ago

I use Ubuntu 18. Install the package from your mirror. And do the steps of configuration from your doku

I use the Internal Webserver from your gitlab-tools

After Login in Gitlab i get this

500 Internal Server Error
Uh-oh you found a bug! An email has been sent to the ADMINs list.
URL: http://gitlab-tools.domain.tld:8081/sign/in/do?code=29f6d9adbdcb.....

The config /etc/gitlab-tools/config.yml

GITLAB_APP_ID: 7b4f7f......
GITLAB_APP_SECRET: 21b0f3fe4......
GITLAB_URL: https://gitlab.fti-group.com
HOST: 0.0.0.0
PORT: '8081'
SECRET_KEY: 9b51054c2d.......
SERVER_NAME: gitlab-tools.domain.tld:8081
SQLALCHEMY_DATABASE_URI: sqlite:////home/gitlab-tools/gitlab-tools.db
USER: gitlab-tools

What is wrong ?

gitlab-ce:amd64/bionic 11.9.8-ce.0

Salamek commented 5 years ago

@preussal can you check logs in gitlab-tools home dir ? (and paste them here if posible)

preussal commented 5 years ago

ls -lah

-rw-r--r-- 1 gitlab-tools gitlab-tools  220 Apr  4  2018 .bash_logout
-rw-r--r-- 1 gitlab-tools gitlab-tools 1.9K Jan  5  2018 .bashrc
-rw-r--r-- 1 gitlab-tools gitlab-tools    5 Apr 20 14:27 celerybeat.pid
-rw-r--r-- 1 gitlab-tools gitlab-tools 180K Apr 20 14:51 gitlab-tools.db
-rw-r--r-- 1 gitlab-tools gitlab-tools    0 Apr 20 14:25 gitlab-tools_server.log
-rw-r--r-- 1 gitlab-tools gitlab-tools 2.2K May 31  2017 .kshrc
-rw-r--r-- 1 gitlab-tools gitlab-tools  807 Apr  4  2018 .profile
drwxr-xr-x 2 gitlab-tools gitlab-tools    6 Apr 20 14:26 repositories

tree

.
├── celerybeat.pid
├── gitlab-tools.db
├── gitlab-tools_server.log
└── repositories

1 directory, 3 files
Salamek commented 5 years ago

@preussal and journalctl -u gitlab-tools ?

preussal commented 5 years ago

I found the mistake. I forgot that I use ssl offloading on the haproxy. And I need on the internal server for external domains a host entry for the LB IP.

Routing :)

preussal commented 5 years ago

Thanks for this great addon. Too bad that the pull function is not present in the CE version.