mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 12:56:59 +00:00
[GH-ISSUE #8494] [Bug] Can't log into console admin with fresh self-hosted deployment even with default config: HTTP 200 status message: "Invalid email or password" statusCode: "404" #3888
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#3888
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @meetnick on GitHub (Feb 22, 2026).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/8494
Bug Description
I just got exhausted after spending a whole day trying to deploy a fresh install of self-hosted appflowy with no luck. I keep getting the same error:
Steps to reproduce:
Results: Modal says: "An unexpected error occurred. Please try again." (See attached screenshot)
Login POST says HTTP Status 200, however response body says "Invalid email or password" with statusCode 404.
I used default username and password:
admin@example.comandpassword| NOTE: As you can see in the logs below, the only difference is running nginx with ports 82 and 8443 since I have a nginx-proxy-manager instance running on 80. However, I already tried running it in a different machine with nginx at port 80/443 and same results.
What I've tried so far
How to Reproduce
Expected Behavior
Successful login to admin console is what I would expect.
Operating System
Fedora / Mac OS
AppFlowy Version(s)
docker latest: AppFlowy Cloud version:0.12.2 | Admin frontend Version: 0.12.2 | AI "Server version: "0.10.2"
Screenshots
Additional Context
Request Payload:
Response:
Full logs:
@MayurSMahajan commented on GitHub (Feb 22, 2026):
Hey @meetnick I know how frustrating it can be. But I think you are very close.
Based on the logs, I think the nginx port is not the issue here. The login attempts are actually reaching the console and getting responses (HTTP 200), so routing is working fine.
The gotrue container runs a one-time admin user creation script on first boot. So did you set a different custom admin email and passwords before the first run? let me know.
@MayurSMahajan commented on GitHub (Feb 22, 2026):
I will suggest you do this:
Copy your current .env file and change the admin password and email to default: admin@example.com and password. (Keep all the nginx related settings). Save this .env file on your local computer. Also save the docker-compose.yml file if you have made any changes to it.
Then wipe all the docker volumes and data:
Now ensure that in your .env file, the Admin credentials are default.
Restart docker container with latest images
@MayurSMahajan commented on GitHub (Feb 22, 2026):
Feel free to dm me on discord if you need my help: mayurmahajan23
Also you might wanna look at these two videos:
Self hosting: (skip all the google cloud steps)
https://youtu.be/tTEps1njGkQ?si=cxX6XFulKlS0ivlV
Since you mentioned you already have a nginx proxy:
https://youtu.be/nsCzM3IT-Us?si=HrfdwKl-mk9aGHeK
@meetnick commented on GitHub (Feb 23, 2026):
Hello @MayurSMahajan , thank you for your quick and detailed response.
I've spend a little more time debugging/troubleshooting and I actually found the issue.
The issue was fixed after I made explicit the custom
nginxport number for FQDN in.env. I still don't now why this did not work on my other machine where I tried with default nginx ports. But anyway that was only a test, what I really need is to run AppFlowy in the same machine as other nginx@meetnick commented on GitHub (Feb 23, 2026):
So, since I run nginx on PORT 82, I had to set:
FQDN=<host_ip>:82This made the trick.
@MayurSMahajan commented on GitHub (Feb 23, 2026):
I am glad you were able to solve it! Let me know if something comes up.