Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IMAP email fetching is not detecting new messages since latest Chatwoot update #8829

Open
frerej opened this issue Jan 31, 2024 · 14 comments
Open
Labels
🐞 bug Something isn't working

Comments

@frerej
Copy link

frerej commented Jan 31, 2024

Describe the bug

Email fetching task is properly connecting to the IMAP inbox, it detects some old messages, but not the new ones.

To Reproduce

Cloudron app version: 1.24.2
Chatwoot upstreamVersion: 3.5.2

Expected behavior

New incoming emails should be detected

Environment

Other [please specify in the description]

Cloud Provider

None

Platform

Browser

Operating system

Cloudron 7.6.3

Browser and version

Firefox latest

Docker (if applicable)

No response

Additional context

No response

@frerej frerej added the Bug label Jan 31, 2024
Copy link

linear bot commented Jan 31, 2024

@frerej
Copy link
Author

frerej commented Feb 1, 2024

Here's an extract from the log.

Feb 01 12:52:03I, [2024-02-01T11:52:03.766953 #15] INFO -- : [ActiveJob] [Inboxes::FetchImapEmailsJob] [b8b36699-9d99-4559-bf21-1fadd7adc5c1] [IMAP::FETCH_EMAIL_SERVICE] Fetching mails from @.ch, found 5.

It found 5 emails. If I send an email to this mailbox, it doesn't found 6 emails. Stuck at 5.

@sojan-official
Copy link
Member

we gave a possible fix for this in : https://github.com/chatwoot/chatwoot/pull/8833/files

@frerej
Copy link
Author

frerej commented Feb 1, 2024

Ok, will this fix be included in the next release?

@vishnu-narayanan
Copy link
Member

@frerej Yes, it is already merged and will be available in v3.6 release.

@jordan26
Copy link

jordan26 commented Feb 5, 2024

Hey @frerej , I too need to check my IMAP logs etc. How/where do you find the logs in general for chatwoot? I am SSH'd in, what command(s) need to be run to see logs?

@frerej
Copy link
Author

frerej commented Feb 5, 2024

Hi @jordan26
I use Cloudron, so the logs are accessible through the app settings.

@vishnu-narayanan
Copy link
Member

@jordan26 Logs depend on your installation setup. If you are on a linux setup, use cwctl.

cwctl --logs web
cwctl --logs worker

https://www.chatwoot.com/docs/self-hosted/deployment/chatwoot-ctl/#viewing-logs

@rohanchauhan02
Copy link

rohanchauhan02 commented Feb 7, 2024

I am also facing similar issue,
Uploading Screenshot 2024-02-07 at 2.40.20 PM.png…

@rohanchauhan02
Copy link

@frerej Yes, it is already merged and will be available in v3.6 release.
Is v3.6 available to use, Not able to see this version on chatwoot repo.

@rohanchauhan02
Copy link

rohanchauhan02 commented Feb 21, 2024

@sojan-official Is there any chance that the issue is happening due to redis connection timeout ?? On sentry we found two more issue at the same time

  1. Redis::CannotConnectError
  2. RedisClient::ReadTimeoutError

@rohanchauhan02
Copy link

I am still facing this issue on v3.6.

@frerej
Copy link
Author

frerej commented Feb 22, 2024

@rohanchauhan02 me too. I’ve abandoned Chatwoot and migrated to Crisp. Much better, for a reasonable cost.

@pranavrajs pranavrajs added 🐞 bug Something isn't working and removed Bug labels Feb 22, 2024
@jarne
Copy link

jarne commented Mar 4, 2024

Same issue here. Some e-mails are "stuck" in the processing queue and show over and over again in these logs. I can also see them in the actual IMAP inbox, but they don't show up in Chatwoot. There is no error message in the logs, they just appear there but are not imported.

Bildschirmfoto 2024-03-04 um 16 24 57

Super annoying, as it's not acceptable to just "loose" some customer e-mails randomly.

If it helps to debug, the mail it fails to fetch is actually the confirmation e-mail of Chatwoot:

Bildschirmfoto 2024-03-04 um 16 33 05

About 5-6 are stuck in the queue, one or two first ones were shown in Chatwoot.
Another plain text e-mail sent by me between those stuck ones got imported successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants