make sure that you have ". htaccass" file in pub/static folder. use carrom pass avatar. it is really funny
Usually related to permissions; however, we don't ever use 777, except at the casinos.
Try re-setting your user/group first.
e.g.
sudo chown -R www-data:www-data /var/www/magento