Coder Social home page Coder Social logo

Comments (15)

christianlupus avatar christianlupus commented on September 16, 2024 1

OK, now I see. I was mislead. I thought I needed to log into the main django application. Instead is was sufficient to log into the admin interface. I managed to configure trax with my mattermost installation now, I think successfully. Thank you very much.

from trax.

christianlupus avatar christianlupus commented on September 16, 2024

Oh, by the way. My modifications:

# diff env.example .env
7c7
< DJANGO_ADMIN_URL=
---
> DJANGO_ADMIN_URL=^admin/
14c14,15
< DJANGO_ALLOWED_HOSTS=.trax.io
---
> #DJANGO_ALLOWED_HOSTS=.trax.io
> DJANGO_ALLOWED_HOSTS=trax.example.com
35c36
< TIME_ZONE=UTC
---
> TIME_ZONE=Europe/Berlin

# diff docker-compose.*
36c36
<       - "0.0.0.0:8079:80"
---
>       - "127.0.0.1:8001:80"

from trax.

agateblue avatar agateblue commented on September 16, 2024

Hi @christianlupus! Inside the DJANGO_ALLOWED_HOSTS= variable, you should put the domain name used to access your trax instance (trax.example.com seems invalid in this case).

Can you try that, reload the process and let me know if it works?

from trax.

christianlupus avatar christianlupus commented on September 16, 2024

I replaced my real domain name with example.com throughout all my comments. I wanted to avoid putting a semi-installed installation of trax publicly on the web while sharing the url to it. Is it save to do so and there are no preconfigured user accounts?

By reloading you mean docker-compose restart or down and up -d or even build?

from trax.

agateblue avatar agateblue commented on September 16, 2024

docker-compose up -d should do the trick, otherwise stop then start

It should be safe to share the URL, since you are creating the superuser by hand.

from trax.

christianlupus avatar christianlupus commented on September 16, 2024

OK, I am ok with both. The url is https://trax.christian-wolf.click. I will add the .env file here as an attachment .env.

from trax.

agateblue avatar agateblue commented on September 16, 2024

Alright, I see nothing wrong with your env file. Without any log, it's hard to debug. You don't have anything at all in docker-compose logs django ?

from trax.

christianlupus avatar christianlupus commented on September 16, 2024

Yes, there is quite something. I will attach the output of your command: django.log or without the color scripts django_clean.log.

from trax.

agateblue avatar agateblue commented on September 16, 2024

And no new logs when you are logging in?

EDIT: are you logging on /admin/?

from trax.

christianlupus avatar christianlupus commented on September 16, 2024

Nope, nothing. This is the strange thing. I would have assumed some message to appear at least.

from trax.

christianlupus avatar christianlupus commented on September 16, 2024

The only thing I could try additionally is set ALLOWED_HOSTS=* and opening a connection directly to the nginx or django directly using SSH port forwarding.

from trax.

agateblue avatar agateblue commented on September 16, 2024

Just to be sure, is the error happening on /admin/ or /accounts/login ?

from trax.

christianlupus avatar christianlupus commented on September 16, 2024

I did not try to connect to /admin. Just putting in the credentials and submitting opens /accounts/login with the error.

Update: When trying the admin console, I can log in.

from trax.

agateblue avatar agateblue commented on September 16, 2024

Ok, if you can login to the admin, I think we can close the ticket, unless you have other configuration issues ?

I agree this is not ideal (and the other login page is confusing) but I really have no time to maintain Trax anymore these days :/

from trax.

agateblue avatar agateblue commented on September 16, 2024

Thank you!

from trax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.