mattbr is migrating from phpBB to Discourse and reports that user-uploaded avatars are not displaying — only letter avatars appear, though Gravatars import correctly. The avatar files exist in /var/discourse/shared/standalone/import/data/avatars/upload, but aren’t linked to users. He tried marguerite’s suggestion to change bicubic to catrom in optimized_image.rbmarguerite, but it didn’t resolve the issue. marguerite later suggests checking Sidekiq jobs (none were pending) and inspecting the database: mattbr confirms custom_upload_id is NULL for all users, indicating the system doesn’t recognize uploaded avatars. schungx notes avatar URLs point to 127.0.0.1, which may indicate a local binding issue, though mattbr clarifies this is due to local SSH testing on an EC2 instance. Ultimately, mattbr decides to deprioritize the issue and have users re-upload avatars at launch, thanking everyone for their help.
I am in the process of moving from phpBB to Discourse and managed to get everything up and running except for the avatars. Any user uploaded avatars from phpBB are not displaying and I am getting the letter avatar, however if a user has setup Gravatar on phpBB it is able to fetch and grab the images from there and set them properly.
When I navigate to /var/discourse/shared/standalone/import/data/avatars/upload I can see that there are images of users avatars in there, however when I view my forums they are not being associated to the user.
Since I’m a new user I cannot link to both of those, but are easy to find on GitHub. I do not believe are causing any issues. I have my avatars settings.yml file as:
Does anyone have any other suggestions as to what might be the issue? I would like to not have to force our users to re-upload their avatars once we go live with Discourse. I have verified that once on Discourse you can re-upload your avatar and it works perfectly fine.
I just checked and there are no SideKiq jobs in the queue, I flushed it just in-case as well. I am still getting letter avatars.
When I go to a users profile with a letter avatar the URL for their avatar is: http://127.0.0.1:81/letter_avatar_proxy/v2/letter/e/8dc957/120.png
Thanks for the response! I think at this point I’m going to bump down the priority of this, and when I go live just have my users re-upload their avatars as this is really just a nice to have.
@marguerite looking at the database the custom_upload_id is NULL for every user, some users have their gravatar IDs setup. I’m not going to bother working on this anymore, and just have users re-upload their avatars. Thanks for all the help though!
@schungx I have an EC2 instance running my Discourse forums, I just opened up the SSH ports so I can jump on it and test locally.