AppFlowy-IO / AppFlowy-Cloud

AppFlowy is an open-source alternative to Notion. You are in charge of your data and customizations. Built with Flutter and Rust.
GNU Affero General Public License v3.0
528 stars 145 forks source link

[Bug] can't login after redeploy latest version #609

Closed mickey3721 closed 3 weeks ago

mickey3721 commented 3 weeks ago

Describe the bug after redeploy the latest AppFlowy-Cloud by docker compose, can not login as before deploy steps:

1.pull all files from repository 2.copy and modified deploy.env to .env 3.docker compose up

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior How to solve the login problem?

Screenshots image

Desktop (please complete the following information):

Additional context

speed2exe commented 3 weeks ago

@mickey3721 seems like nginx service not able to find the service. have you tried to restart nginx?

mickey3721 commented 3 weeks ago

I already try to restart all containers, even reboot my machine, but nothing change,

Attaching my log and .env file, and container list, pls help me to solve the problem, thks!

image env.txt log.txt

speed2exe commented 3 weeks ago

@mickey3721 can you check the gotrue service?


$ cat ~/Downloads/log.txt | grep gotrue
Attaching to admin_frontend-1, ai-1, appflowy_cloud-1, appflowy_history-1, appflowy_indexer-1, gotrue-1, minio-1, nginx-1, postgres-1, redis-1
admin_frontend-1    | {"timestamp":"2024-06-11T05:51:05.353769Z","level":"INFO","fields":{"message":"config loaded: Config { redis_url: \"redis://redis:6379\", gotrue_url: \"http://gotrue:9999\", appflowy_cloud_url: \"http://appflowy_cloud:8000\", appflowy_cloud_gateway_url: \"http://localhost:8100\" }"},"target":"admin_frontend"}
admin_frontend-1    | {"timestamp":"2024-06-11T05:51:05.392162Z","level":"ERROR","fields":{"error":"calling http://gotrue:9999/health failed"},"target":"gotrue::api","span":{"name":"health"},"spans":[{"name":"health"}]}
``

health check failed
mickey3721 commented 3 weeks ago

yes that's some problem with goture. When I rebuild the gotrue by docker compose, it stuck in configuring postgresql, any key press invaild, show message below, more detail in attachment log.txt:

5 719.0 Configuring postgresql-common

5 719.0 -----------------------------

5 719.0

5 719.0 createcluster.conf: A new version (/tmp/postgresql-common.0IPfrZ) of

5 719.0 configuration file /etc/postgresql-common/createcluster.conf is available, but

5 719.0 the version installed currently has been locally modified.

5 719.0

5 719.0 1. install the package maintainer's version

5 719.0 2. keep the local version currently installed

5 719.0 3. show the differences between the versions

5 719.0 4. show a side-by-side difference between the versions

5 719.0 5. start a new shell to examine the situation

5 719.0 What do you want to do about modified configuration file createcluster.conf?

speed2exe commented 3 weeks ago

@mickey3721 i have not met with this issue before. perhaps you upgraded your postgresql too? this message shows up as it run, right? perhaps try docker exec -it <gotrue container> to see if you can input any option

mickey3721 commented 3 weeks ago

I have no idea about it, for building the gotrue make me cracy can use the earlier version docker compose file to deploy the server? (using gotrue image instead of building it)

speed2exe commented 3 weeks ago

you should be able to do that