Avatars missing after import

I’ve done db restore from backup (there were some db migrations from old version and backup.sql.gz included only sql not uploads).

Unfortunately avatars are not showing on the site.. (only default placeholder)

They seem to be correctly in the database and url correct and PNG file exists:

root@og-app:/var/www/discourse# rails c
[1] pry(main)> User.find_by_username('Overgrow').uploaded_avatar
=> #<Upload:0x0000565323a78880
 id: 2936,
 user_id: 1,
 original_filename: "avatar.png",
 filesize: 161585,
 width: nil,
 height: nil,
 url:     "/uploads/default/original/2X/f/fbba12aa89b1bc45676efcfa55affd4b7a76edf1.png",
 created_at: Sat, 03 Sep 2016 10:26:23 UTC +00:00,
 updated_at: Sat, 22 Feb 2020 11:57:35 UTC +00:00,
 sha1: "fbbe22aa89b1bc45676efcfa55affd4b7a76edf1",
 origin: nil,
 retain_hours: nil,
 extension: "unknown",
 thumbnail_width: nil,
 thumbnail_height: nil,
 etag: nil,
 secure: false,
 access_control_post_id: nil,
 original_sha1: nil>

Can you please advise what to try next? Thanks in advance!

Update:

Some avatars have regenerated in the background.. Can I speed up the process? Or run it manually?

From my observations, could this part be sign of the problem?

extension: "unknown",

It seems like those regenerated have now this field filled:

extension: "JPG",