openimsdk / openim-sdk-core

Instant Messaging
https://openim.io
Apache License 2.0
360 stars 322 forks source link

Bug: <describe the error> #420

Open zisequkuai opened 11 months ago

zisequkuai commented 11 months ago

What happened?

Problems with not being able to log in?

What did you expect to happen?

The installation was successful using docker, but I went to http://127.0.0.1:11002/login

After typing in my username and password and clicking log in there was no feedback,

then I went to check the docker logs “ alertmanager | ts=2023-11-29T09:32:22.071Z caller=notify. go:745 level=warn component=dispatcher receiver=email integration=email[0] aggrGroup={}:{} msg="Notification attempt failed, will retry later" attempts=4 err="Creating SMTP client: 554 IP rejected, smtp auth error limit exceeded, 163 zwqz-smtp-mta-g2-1,_____wDH7q0mBWdlsx32EA --. 39760S0 1701250342" alertmanager | ts=2023-11-29T08:18:23.676Z caller=notify.go:745 level=warn component=dispatc”

What needs to be done to fix this?

How can we reproduce it (as minimally and precisely as possible)?

docker log: “ alertmanager | ts=2023-11-29T08:27:30.858Z caller=dispatch.go:352 level=error component=dispatcher msg="Notify for alerts failed" num_alerts=14 err="email/email[0]: notify retry canceled after 7 attempts: create SMTP client: 554 IP is rejected, smtp auth error limit exceed,163 zwqz-smtp-mta-g2-4,wDHzjLt9WZlFXupEA--.34747S0 1701246446" alertmanager | ts=2023-11-29T08:27:31.008Z caller=notify.go:745 level=warn component=dispatcher receiver=email integration=email[0] aggrGroup={}:{} msg="Notify attempt failed, will retry later" attempts=1 err="create SMTP client: 554 IP is rejected, smtp auth error limit exceed,163 zwqz-smtp-mta-g3-4,wD3X93y9WZl5DwPBQ--.6421S0 1701246450" alertmanager | ts=2023-11-29T08:27:31.629Z caller=notify.go:745 level=warn component=dispatcher receiver=email integration=email[0] aggrGroup={}:{} msg="Notify attempt failed, will retry later" attempts=2 err="create SMTP client: 554 IP is rejected, smtp auth error limit exceed,163 zwqz-smtp-mta-g2-3,_____wDnz8fz9WZldxbuEA--.42126S0 1701246451" " ”

Anything else we need to know?

No response

version

Official docker version

Cloud provider

localhost

OS version

macos:13.0.1

Install tools

cubxxw commented 11 months ago

Based on the provided logs, it seems that the email notification feature of the application is failing. The error message suggests that there is an issue with the SMTP client and that the IP is being rejected due to an SMTP auth error limit being exceeded.

To resolve this issue, you can try the following steps:

  1. Check if the SMTP credentials are correct and up-to-date.
  2. Check if the SMTP server is running and reachable from the application.
  3. Check if there are any restrictions on the SMTP server that may be causing the issue.
  4. Try increasing the SMTP auth error limit if possible.

If you are unable to resolve the issue, could you please provide detailed information about yourself, such as the status of Docker, logs, and so on?

zisequkuai commented 11 months ago

Thank you very much for your reply, is it possible to turn off email notifications, also my docker start alertmanager error, but my port 9093 does not have any services, but still says occupied, error messge ” Error invoking remote method 'docker-start-container': Error: (HTTP code 500) server error - driver failed programming external connectivity on endpoint alertmanager ( 5f295efe63d5d48a89e84ff2624d23b09cd3b0378a28c09e8c275ddf22b369e7): Bind 0.0.0.0:9093 failed: port assigned“

zisequkuai commented 11 months ago

login docker message: "openim-admin | 172.28.0.1 - - [29/Nov/2023:11:09:01 +0000] "GET /login HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "-" prometheus | ts=2023-11-29T11:09:25.851Z caller=notifier.go:530 level=error component=notifier alertmanager=http://172.28.0.1:19093/api/v2/alerts count=14 msg="Error sending alert" err="Post \"http://172.28.0.1:19093/api/v2/alerts\": dial tcp 172.28.0.1:19093: connect: connection refused" grafana | logger=infra.usagestats t=2023-11-29T11:09:35.865328471Z level=info msg="Usage stats are ready to report" prometheus | ts=2023-11-29T11:10:40.847Z caller=notifier.go:530 level=error component=notifier alertmanager=http://172.28.0.1:19093/api/v2/alerts count=14 msg="Error sending alert" err="Post \"http://172.28.0.1:19093/api/v2/alerts\": dial tcp 172.28.0.1:19093: connect: connection refused" "

zisequkuai commented 11 months ago

Configuring smtp has been resolved. thanks a lot @cubxxw bro!

cubxxw commented 11 months ago

Congratulations on completing the task! It would be wonderful if you could kindly provide a description and record of the steps and process you undertook here. Your insights and experiences would be greatly appreciated. Thank you for your time and effort!

kubbot commented 9 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

kubbot commented 9 months ago

This issue was closed because it has been stalled for 7 days with no activity.