GithubHelp home page GithubHelp logo

Comments (7)

mattrochon avatar mattrochon commented on July 22, 2024 1

Confirmed works, was user-error all along, thanks for the help!

from hatchet.

abelanger5 avatar abelanger5 commented on July 22, 2024

Hey @mattrochon, taking a look at this. There's a chance the migration ran on a previous startup of the container, are there any logs further up when you click into the hatchet-lite-hatchet-lite-1 container on docker desktop (or via docker logs...)?

everything looks like it starts up but I am unable to log in.

What do you see when you try to log in? There should be an associated error log here as well.

from hatchet.

mattrochon avatar mattrochon commented on July 22, 2024

image

There are a significant amount of logs.

  1. Postgres startup, seems to be ok, though I did have to add PGUSER to the env in the yaml file
  2. Rabbit MQ startup - it seems to error our tryign to connect to rmq first, then decides its not runnign and starts it up
  3. After rmq starts then it checks the db. THe prisma migrations table doesnt exist yet, so no migrations would have been run, assuming that the atlas migrations still updates the prisma table.

image

the atlas-apply script seems to suggest that it does.

from hatchet.

abelanger5 avatar abelanger5 commented on July 22, 2024

Thanks for the additional info. A couple other questions:

  1. Seeing Please provide valid credentials is expected, since we check GET /api/v1/users/current when you load localhost:8080. What are the logs when you try to log in with:

    Email: [email protected]
    Password: Admin123!!
    
  2. To address this:

    THe prisma migrations table doesnt exist yet, so no migrations would have been run, assuming that the atlas migrations still updates the prisma table.

    The atlas migrations don't update the prisma table - this case should only be hit if you're upgrading from an older version of Hatchet (pre-0.31.0).

    One way we can check if the migrations ran is by adding:

    services:
      postgres:
        # ... rest of config
        ports:
          - "5432:5432"
    # ... rest of config

    And then running psql 'postgresql://hatchet:hatchet@localhost:5432/hatchet', and inside of the shell, run \dt and let me know what it outputs?

from hatchet.

mattrochon avatar mattrochon commented on July 22, 2024

You're right, looks like the db was created.

image

THe error message is the exact same when i try to log in. No error appears on the page, only in the logs.

The default user also appears to exist.

image

from hatchet.

mattrochon avatar mattrochon commented on July 22, 2024

OK i think the issue is i'm not running it on localhost. I have it running in a remote docker host on my local network.

image

from hatchet.

abelanger5 avatar abelanger5 commented on July 22, 2024

Ah, yeah the cookie has a domain attribute set to localhost. You can change the value of SERVER_AUTH_COOKIE_DOMAIN in the configuration and see if that helps?

from hatchet.

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.