# 导入后头像丢失

**URL:** https://meta.discourse.org/t/avatars-missing-after-import/85482
**Category:** Migration
**Created:** [2018年四月17日 01:27 UTC](https://meta.discourse.org/t/avatars-missing-after-import/85482 "2018-04-17T01:27:53Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2018年四月24日 21:25 UTC](https://meta.discourse.org/t/avatars-missing-after-import/85482/5 "2018-04-24T21:25:16Z")

</div>

I did a fresh import and all of the avatars are missing. Sidekiq still has 13M things to process, but I don’t see how that could be the problem. I did another import on another site with what I believe to be the same import script and the avatars are fine there.

```ruby
pry(main)> User.find_by_username('MysteryManAvatar').uploaded_avatar
=> #<Upload:0x0000558a0d31b478
 id: 97,
 user_id: 114,
 original_filename: "clevername.jpg",
 filesize: 2028,
 width: 90,
 height: 67,
 url: "/uploads/default/original/1X/080817dcf59ddc838054fba9716b62fce9ae3d83.jpg",
 created_at: Thu, 19 Apr 2018 23:51:15 UTC +00:00,
 updated_at: Thu, 19 Apr 2018 23:51:15 UTC +00:00,
 sha1: "080817dcf59ddc838054fba9716b62fce9ae3d83",
 origin: nil,
 retain_hours: nil,
 extension: "jpg">

```

But that file isn’t in uploads (or tombstone).

I looked at [Avatars not showing after import - #2 by fhe](https://meta.discourse.org/t/avatars-not-showing-after-import/80081/2) and that didn’t seem to be related.

---

_[View the full topic](https://meta.discourse.org/t/avatars-missing-after-import/85482)._
