WongSaang/chatgpt-ui

Registration problem

Opened this issue · 20 comments

image
After deploying through docker compose, I start test the client by register a new account. However, here comes the problem (400 bad request), is it due to my wrong configuration?

show the compos file you are using and the platform you are deploying it .....

I just modified the SERVER_DOMAIN and APP_DOMAIN:
image
image

If you are using Google Cloud or AWS then have you allowed those ports through the firewall?

I am using AWS and I can get access to the admin page like this:
image
but the problem occurs in the client

Try using the default SQLite database. You are using Postgres. If SQLite works, then you need to change localhost to internal IP address of the host machine.

Or, you can also use host.docker.internal instead of localhost.

postgres://postgres:postgrespw@host.docker.internal:49153/chatgpt

I have left the postgres configuration commented to take the SQLite as default. Should I configure it explicitly?
image

Is it working now ?

The problem with your setup is that you are using the localhost. That will not work.

Set DB_URL to what @ilovefreesw mentioned above.

I set this but still got the error:
image

image

That's strange .. post the log of docker-compose up command.

image
image
image
image
image
image

Yes, it is the problem with the Postgres srever name. I think you are using older version of Docker. Whatever the OS is this, find its IP address.

Tell me the output of ip addr show command.

Then use this as the DB_URL = postgres://postgres:postgrespw@172.31.88.184:49153/chatgpt

And if it still doesn't work then create a new EC2 instance with Ubuntu 22.04 or Ubuntu 20.04 image.

I tried this, but the problem remains unresolved.

Did it work when you used the default SQLite database?

As for creating a new EC2 instance, I have not tried. Could you please give me some more detailed instructions? Thank you.

Where are you using it right now ? on Which cloud provider and operating system?

Follow this tutorial: I think this is the same. https://www.youtube.com/watch?v=VKDU10gbYVQ

But it uses DigitalOcean ..so chnage that for yourself..of if you can afford DO then follow this tutorial.

AWS, Ubuntu-22.04.1

Follow this tutorial: I think this is the same. https://www.youtube.com/watch?v=VKDU10gbYVQ

But it uses DigitalOcean ..so chnage that for yourself..of if you can afford DO then follow this tutorial.

Thank you, I'll take it as a reference.