Avatar upload issue (Ubuntu)

Thanks for this, I had to do some extra manual steps though as the edited installer didn’t seem to install npm or ruby latest versions

Also using ubuntu-22.04

Install latest npm using (option 2): https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-22-04

Install pnmp: npm install -g pnpm

Install latest ruby (method 3): https://ubuntuhandbook.org/index.php/2024/01/install-ruby-ubuntu-24-04/

Add this to bash.rc:

export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"

Install imagemagik manually, the latest version (make sure you go to the " Install latest version of ImageMagick from the source code (for advanced and desperate users)" section: https://itsfoss.com/install-imagemagick-ubuntu

Only after all of this was I able to log on to the instance….

So after spending the entire day getting the dev instance up and running, I was pretty pleased…everything seems to be ok, except uploading avatars. Specifically, as a user I can upload an avatar and in the avatar upload box it shows correctly, but when I click save it just displays the placeholder avatar…..no errors in log…

this is quite important to me as I set up the dev instance to test a migration and one of those tests is that it gets avatars :smiley: …so I want to make sure they work before going ahead with a test import.

Uploaded images in topics appear correctly, no issue

Anyone have any ideas? Any help much appreciated

URLs for pictures can be a bit tricky on local.

Make sure you are starting your local server with FORCE_HOSTNAME=localhost:4200 bin/ember-cli -u

It’s better to use a test instance in the cloud to mimic your final destination … in fact, I would recommend you test migrations in the cloud ultimately.

1 Like

Tried that, no luck.

I’m so tired after spending the entire day getting this local dev environment to where it is, I can’t bring myself to think it was all pointless now :stuck_out_tongue: thought I was there!

My thought process for a local dev environment was:

run the import script locally, backup discord, put it on the proper cloud production instance when all looks good…

you can check the urls of the avatars in the browser dev tools and may find they are not correct

local installs are very useful for development and testing … just not perfect for manipulating images

1 Like

What is probably happening is that WSL is not exposing 127.0.0.1 to Windows, so a Windows browser is not picking it up.

Instead try to launch from Chrome within WSL2 and use that?

My guess is the avatars are being displayed with a 127.0.0.1 address …

Ahh sorry I’m using Ubuntu, on a Ubuntu VM. Didn’t mean to hijack this win 11 thread

1 Like