Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Can't login to admin

default discord avatar
razzeyy2 years ago
7

Hello people!



Suddenly when I try to login to my payload app through "/admin" i get redirected to "admin/login?redirect=" and then nothing more, it stops loading and is just displaying the Payload logo.



I have tried restarting the app.



Has anyone encountered this issue before, and if so what are the fixes?



Thanks!

  • discord user avatar
    dribbens
    2 years ago

    Not sure what the issue could be. Any errors logged on the server or in the browser if you go to your inspector?



    When it happens do you get a cookie assigned for your user?

  • default discord avatar
    razzeyy2 years ago

    Nothing in the console except a console log "[HMR] connected", and no cookies

  • discord user avatar
    dribbens
    2 years ago

    Never heard of this before. If it were a cors issue I would expect to see console errors in the browser and if it were a server issue you'd have some logs.



    The only other option I can think of is that there is an

    await

    that can't be completed causing a request to hang indefinitly.



    That last point has to be the situation you're in. Are there any hooks or other extras in your

    users

    collection?



    If you can't find it, I would open an issue on github and try to create a simple reproduction so we can address whatever this is. My guess is in that process you'll find the issue in your code.

  • default discord avatar
    razzeyy2 years ago

    I'm not very familiar when it comes to creating issues and such in github, so I just created a new repository for the payload files (I was gonna do that anyway in the future), have a look:

    https://github.com/Anderrssonrasmus/Payload

    Any luck on this issue?

  • default discord avatar
    m.naeem666222 years ago

    Did you tried re-cloning the repo??

  • default discord avatar
    razzeyy2 years ago

    I am self-hosting it so I used create-payload-app. I did however try deleting my installation and running create-payload-app again but the issue wasn't solved. I "solved" it by also deleting my cluster in Mongodb, creating a new cluster and THEN running create-payload-app. So my app is running again but I literally deleted everything and redid it all and I still don't know what originally went wrong.

  • default discord avatar
    m.naeem666222 years ago

    Did your issue has been reseolved now??



    By typing forward slash

    /

    use command

    /solve

    to mark this thread as solved

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.