# インポート後アバターが表示されない

**URL:** <https://meta.discourse.org/t/avatars-not-showing-after-import/80081>\
**Category:** Development\
**Created:** [2018 年 2 月 8 日午前 5:20 UTC](https://meta.discourse.org/t/avatars-not-showing-after-import/80081 "2018-02-08T05:20:44Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![fhe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fhe/32/113345_2.png) [@fhe](https://meta.discourse.org/u/fhe)\
**Post date:** [2018 年 2 月 8 日午前 5:20 UTC](https://meta.discourse.org/t/avatars-not-showing-after-import/80081/1 "2018-02-08T05:20:44Z")

</div>

I’m currently trying to import from IPB using a local dev environment on macOS without any virtualization.

I’m importing avatars via

```
upload = create_upload(user.id, img_path, File.basename(img_path))
if upload && upload.persisted?
    user.create_user_avatar
    user.user_avatar.update(custom_upload_id: upload.id)
    user.update(uploaded_avatar_id: upload.id)
else
    puts "Error: Upload did not persist #{img_path}!"
end

```

which creates the `upload`, creates the `user_avatar` and updates the `uploaded_avatar_id` for the user. However, the avatars are not showing after I import the user and after Sidekiq has processed all tasks.

The uploaded file also exists in the file system at  
discourse/public/uploads/default/original/1X/a164bb6a13a258a27996f117c21d58ceb9ae8a52.png  
and is referenced as  
[http://localhost:3000/user\_avatar/localhost/florian/64/2\_1.png](http://localhost:3000/user_avatar/localhost/florian/64/2_1.png)  
[http://localhost:3000/user\_avatar/localhost/florian/240/2\_1.png](http://localhost:3000/user_avatar/localhost/florian/240/2_1.png)

Any ideas on how to find more information on why the avatars are not showing?

---

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