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

Discarded Avatar::AvatarFromUrlJob due to a ActiveJob::DeserializationError. #6138

Closed
Budfish opened this issue Dec 28, 2022 · 3 comments
Closed
Assignees

Comments

@Budfish
Copy link

Budfish commented Dec 28, 2022

Describe the bug

Send message to page from Facebook. It will receive message and Facebook contact name but not profile picture.
image

Expected behavior

Showing the profile picture of the contact.
image

Server logs

E, [2022-12-28T09:10:09.878290 #359112] ERROR -- : Discarded Avatar::AvatarFromUrlJob due to a ActiveJob::DeserializationError.
2022-12-28T09:10:09.878Z pid=359112 tid=6pj0 class=Avatar::AvatarFromUrlJob jid=fe5e80723da6607a3a85c899 elapsed=0.005 INFO: done

Environment

self-hosted, Linux VM on Ubuntu 20.04,

Cloud Provider (If applicable)

GCP

@artdaniel306
Copy link

Update Server logs:

in worker log, there's one more error ActiveJob::DeserializationError:

E, [2022-12-28T21:44:14.311506 #566269]
ERROR -- : Skipping job because of ActiveJob::DeserializationError (Error while trying to deserialize arguments: Couldn't find Contact with 'id'=43)

E, [2022-12-28T21:44:14.311649 #566269]
ERROR -- : Discarded Avatar::AvatarFromUrlJob due to a ActiveJob::DeserializationError.

@tejaswinichile
Copy link
Contributor

The contact has been deleted from the system, causing the issue, and the job is still running on the sidekiq-server.

It will be dead after three retries.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 31, 2023
sojan-official pushed a commit that referenced this issue May 9, 2024
The ActiveJob FacebookEventsJob created a Contact and then enqueued Avatar::AvatarFromUrlJob in another process. However, since the Contact was created within a transaction when AvatarFromUrlJob was executed immediately afterwards, the Contact was not actually present in the database then.

Fixes: #6138 #6761
clairton pushed a commit to clairton/chatwoot that referenced this issue Jun 13, 2024
)

The ActiveJob FacebookEventsJob created a Contact and then enqueued Avatar::AvatarFromUrlJob in another process. However, since the Contact was created within a transaction when AvatarFromUrlJob was executed immediately afterwards, the Contact was not actually present in the database then.

Fixes: chatwoot#6138 chatwoot#6761
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants