gitlab.get_access_token: list index out of range
When running ./initMedprint.py
Reproduce Problem
- Stop all local services for postgres, redis, etc
- Remove all existing containers for postgres, redis, gitlab, etc
- Install python-gitlab module
- Run
initMedprint.py
- Hit enter when Gitlab ready
Error output
1
clone_frontend
git_clone
fatal: destination path 'medprint-frontend' already exists and is not an empty directory.
clone_deployment
git_clone
fatal: destination path 'medprint-deploy' already exists and is not an empty directory.
2
create_gitlab_env_file
create_env_file
3
create_postgresql_env_file
create_env_file
4
docker_compose_up
Creating nginx-container ... done
Creating postgresql-container ... done
Creating redis-container ... done
Creating gitlab-container ... done
5
Press Enter when GitLab is ready...
6
gitlab_get_access_token
Traceback (most recent call last):
File "./initMedprint.py", line 270, in <module>
main()
File "./initMedprint.py", line 248, in main
gitlab_token = gitlab_get_access_token(gitlab_url,gitlab_user,gitlab_password)
File "./initMedprint.py", line 194, in gitlab_get_access_token
csrf2, cookies2 = sign_in(endpoint,csrf1, cookies1, user, password)
File "./initMedprint.py", line 171, in sign_in
return token, r.history[0].cookies
IndexError: list index out of range
Notes
- When Gitlab container loaded, I went to gitlab.medprint in my browser. I was already logged in from my credentials last time, which was odd. I thought recreating postgres from init script would've wiped that
- My local version of medprint-frontend is now connecting to postgres in docker. Again, it retains user credentials from before. Everything works except gitlab functionality