{"action":"created","issue":{"url":"https://api.github.com/repos/EliotBerriot/trax/issues/25","repository_url":"https://api.github.com/repos/EliotBerriot/trax","labels_url":"https://api.github.com/repos/EliotBerriot/trax/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/EliotBerriot/trax/issues/25/comments","events_url":"https://api.github.com/repos/EliotBerriot/trax/issues/25/events","html_url":"https://github.com/EliotBerriot/trax/issues/25","id":346555393,"node_id":"MDU6SXNzdWUzNDY1NTUzOTM=","number":25,"title":"Trax/django produces HTTP 500 internal server errors","user":{"login":"christianlupus","id":8202922,"node_id":"MDQ6VXNlcjgyMDI5MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/8202922?v=4","gravatar_id":"","url":"https://api.github.com/users/christianlupus","html_url":"https://github.com/christianlupus","followers_url":"https://api.github.com/users/christianlupus/followers","following_url":"https://api.github.com/users/christianlupus/following{/other_user}","gists_url":"https://api.github.com/users/christianlupus/gists{/gist_id}","starred_url":"https://api.github.com/users/christianlupus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianlupus/subscriptions","organizations_url":"https://api.github.com/users/christianlupus/orgs","repos_url":"https://api.github.com/users/christianlupus/repos","events_url":"https://api.github.com/users/christianlupus/events{/privacy}","received_events_url":"https://api.github.com/users/christianlupus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-08-01T11:13:36Z","updated_at":"2018-08-01T12:39:49Z","closed_at":null,"author_association":"NONE","body":"I tried to make trax running using docker. I went with your [suggestion ](https://traxio.readthedocs.io/en/latest/deploy.html)\r\n\r\n    # clone the repository\r\n    git clone https://github.com/EliotBerriot/trax.git\r\n    cd trax\r\n    \r\n    # setup the environment variables\r\n    # edit the .env file, especially the TIME_ZONE variable\r\n    # and the DJANGO_ALLOWED_HOSTS one\r\n    cp env.example .env\r\n    nano .env\r\n    \r\n    # set up the docker-compose file\r\n    # customize any configuration in the docker compose file\r\n    # especially, you can change the listening port and ip\r\n    cp docker-compose.example.yml docker-compose.yml\r\n    nano docker-compose.yml\r\n    \r\n    # build and run the containers\r\n    docker-compose build\r\n    docker-compose up -d\r\n    \r\n    # create tables in the database\r\n    docker-compose run django python manage.py migrate\r\n    \r\n    # create an admin user (this will be needed to configure your tokens)\r\n    docker-compose run django python manage.py createsuperuser\r\n\r\nUnfortunately you do not mention what the various settings mean and how they should be set up correctly.\r\n\r\nI put an apache web server (serves also other sites) as a reverse proxy between the internet and trax. That is it is configured to forward all traffic for domain `trax.example.com` to the nginx in the docker container. I put in the list of allowed hosts the site `trax.example.com` as sole entry. Using this setup, I can connect to the django server (later I want to get rid of nginx but this is another story).\r\n\r\nWhen I try to log in using my username and password as set up in the commands above, I get a HTTP error `500 Internal server error`. This is coming from django itself. I sniffed into the traffic of the bridge and the nginx sends the `POST` request to `/accounts/login` with the credentials to django. The result is the error 500.\r\n\r\nIn the docker logs there is nothing that looks suspicious except for some warnings about missing `.env` files. Especially there are no errors shown.\r\n\r\nWhat can I do to track this further down?"},"comment":{"url":"https://api.github.com/repos/EliotBerriot/trax/issues/comments/409560482","html_url":"https://github.com/EliotBerriot/trax/issues/25#issuecomment-409560482","issue_url":"https://api.github.com/repos/EliotBerriot/trax/issues/25","id":409560482,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTU2MDQ4Mg==","user":{"login":"christianlupus","id":8202922,"node_id":"MDQ6VXNlcjgyMDI5MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/8202922?v=4","gravatar_id":"","url":"https://api.github.com/users/christianlupus","html_url":"https://github.com/christianlupus","followers_url":"https://api.github.com/users/christianlupus/followers","following_url":"https://api.github.com/users/christianlupus/following{/other_user}","gists_url":"https://api.github.com/users/christianlupus/gists{/gist_id}","starred_url":"https://api.github.com/users/christianlupus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianlupus/subscriptions","organizations_url":"https://api.github.com/users/christianlupus/orgs","repos_url":"https://api.github.com/users/christianlupus/repos","events_url":"https://api.github.com/users/christianlupus/events{/privacy}","received_events_url":"https://api.github.com/users/christianlupus/received_events","type":"User","site_admin":false},"created_at":"2018-08-01T12:39:49Z","updated_at":"2018-08-01T12:39:49Z","author_association":"NONE","body":"Yes, there is quite something. I will attach the output of your command: [django.log](https://github.com/EliotBerriot/trax/files/2249426/django.log) or without the color scripts [django_clean.log](https://github.com/EliotBerriot/trax/files/2249434/django_clean.log).\r\n\r\n\r\n"}}
{"actor":{"display_login":"christianlupus"}}