# Unable to change Avatar on new install

**URL:** <https://forums.rocket.chat/t/unable-to-change-avatar-on-new-install/5488>\
**Category:** Community Support\
**Created:** [January 8, 2020, 12:21pm UTC](https://forums.rocket.chat/t/unable-to-change-avatar-on-new-install/5488 "2020-01-08T12:21:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fasal](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/fasal/32/1096_2.png) [@fasal](https://forums.rocket.chat/u/fasal)\
**Post date:** [January 8, 2020, 12:21pm UTC](https://forums.rocket.chat/t/unable-to-change-avatar-on-new-install/5488/1 "2020-01-08T12:21:50Z")

</div>

### Description

We installed a new RocketChat application, and restored the previous mongodb instance data over to this one. Everything went smooth, and working fine as expected except the Avatar section. We were using Gravatar image, and when I switch it to the normal initial one it worked but I cannot switch it back to the Gravatar image or upload a new one. It just displays success message but reverting back to the normal letter image.

### Server Setup Information

- Version of Rocket.Chat Server: 2.4.0
- Operating System: CentOS 7
- Deployment Method: rocketchatctl command
- Number of Running Instances: 1
- DB Replicaset Oplog: Enabled
- NodeJS Version: 8.17.0
- MongoDB Version: 4.0.14
- Proxy: none
- Firewalls involved: CSF firewall

### Any additional Information

There is nothing logged in View Logs section while replicating this. Is there any other log file available to check?

---

<div class="post-metadata">

**Author:** ![fasal](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/fasal/32/1096_2.png) [@fasal](https://forums.rocket.chat/u/fasal)\
**Post date:** [January 8, 2020, 2:03pm UTC](https://forums.rocket.chat/t/unable-to-change-avatar-on-new-install/5488/2 "2020-01-08T14:03:42Z")

</div>

nevermind, I sorted this issue

---

<div class="post-metadata">

**Author:** ![hantsaniala](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/hantsaniala/32/1523_2.png) [@hantsaniala](https://forums.rocket.chat/u/hantsaniala)\
**Post date:** [February 18, 2020, 12:26pm UTC](https://forums.rocket.chat/t/unable-to-change-avatar-on-new-install/5488/3 "2020-02-18T12:26:17Z")

</div>

Hello,  
Can you explain how you fixed this please ? I’m facing the same issues here. I’m using the same config as you too.  
Thanks.

---

<div class="post-metadata">

**Author:** ![fasal](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/fasal/32/1096_2.png) [@fasal](https://forums.rocket.chat/u/fasal)\
**Post date:** [February 18, 2020, 3:47pm UTC](https://forums.rocket.chat/t/unable-to-change-avatar-on-new-install/5488/4 "2020-02-18T15:47:01Z")

</div>

@hantsaniala

That was a ownership issue on ufs folder, where its actually being stored temporarily while uploading an image in RocketChat.

I corrected the ownership of the folder **/tmp/ufs/** to the correct user running RocketChat instance.

I hope the above helps you to solve yours, else we may have to wait for others to point out other possibilities.

---

<div class="post-metadata">

**Author:** ![hantsaniala](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/hantsaniala/32/1523_2.png) [@hantsaniala](https://forums.rocket.chat/u/hantsaniala)\
**Post date:** [February 19, 2020, 12:33pm UTC](https://forums.rocket.chat/t/unable-to-change-avatar-on-new-install/5488/5 "2020-02-19T12:33:14Z")

</div>

Thanks for the answer but now, I don’t know how, but the image is uploading and stuck there, after some time, when I look at the content of the /tmp/ufs folder, there is 22Go of temporary file and the cl-root of my server is getting full. So I must reboot the server and manually remove that file from the temp folder. Any idea ? And the avatar still doesn’t change.
