Headless
(Headless)
10. Juni 2020 um 05:15
1
Hello!
I am having an issue mounting a new space for uploads. I am getting this when I look at the dashboard and a lot of the profile pictures arent showing up when you access someones profile.
I also indeed did go into the app container and checked if the uploads folder was there, it was.
Headless
(Headless)
10. Juni 2020 um 06:53
2
Ive tried everything I could think of, I believe what happened is I did something stupid and tried MOUNTING ONTO the the /var/discourse/shared and it may of caused problems… I keep getting
and I have absoutley no idea how to fix this. Ive tried restoring from previous backups and that still did not fix it. Please someone help me!
neounix
(Dark Matter)
10. Juni 2020 um 07:04
3
Hi @Headless
Sorry you are having this issue.
Do you mind to:
# ls -l /var/discourse/shared
and post the results so we can see the mount point you mentioned that is in this directory?
It will be easier to advise if we can see the actual “mount” you are talking about.
1 „Gefällt mir“
Headless
(Headless)
10. Juni 2020 um 07:05
4
Hi! Thanks for replying, I actually unmounted it when I first encountered this issue, but nevertheless ill show you that.
I ended up mounting it at
neounix
(Dark Matter)
10. Juni 2020 um 07:07
5
Hi @Headless
So, as I understand now, you have a mounted disk partition and you want to use that partition as your uploads directory?
Is that the right understanding?
Headless
(Headless)
10. Juni 2020 um 07:09
6
Yes correct, I did that and it works fine. However, I even tried not using the new volume and tried going back to the way things originally were. But I still get that error, while also having issues with loading profile pictures. I believe I may have really screwed up something and not entirely sure what I ended up doing.
As you can see below is what happens to profile pictures.
neounix
(Dark Matter)
10. Juni 2020 um 07:14
7
That’s OK… Where are your all your uploads now?
Let’s check and see what is going on:
First can you run this:
# find /var/discourse/shared/standalone/uploads | wc -l
and post the results;
and then run this:
# find /mnt/volume-fsn1-1/uploads | wc -l
and post that output?
Thanks.
1 „Gefällt mir“
Headless
(Headless)
10. Juni 2020 um 07:15
8
Sure thing, currently I have moved all the uploads back onto the volume since putting the uploads back onto the main disk did not fix anything.
The first command asked was given the output of
And the second commands output was
I appreciate the help!
neounix
(Dark Matter)
10. Juni 2020 um 07:21
9
No problemo…
Bear with me…
I think there are two issues, to address.
First, I think you need to move your old uploads directory (for now, temporarily) and then create a symbolic link to your new directory, like so:
cd /var/discourse/shared/standalone
mv uploads uploads.orig
ln -sf /mnt/volume-fsn1-1/uploads ./uploads
Then after that is done, we will change the yml
file (as it was originally) and let the symbolic link do the magic.
But before we do that, we also need to check permissions of the files in the /mnt
partition, but first things first.
1 „Gefällt mir“
Headless
(Headless)
10. Juni 2020 um 07:24
10
So that uploads
folder in /var/discourse/shared/standalone
is always empty because it gets created upon build the app. Nevertheless ill do exactly that.
So now I have the symbolic link,
here is a ls -l command on the /mnt directory
neounix
(Dark Matter)
10. Juni 2020 um 07:26
11
Bear with me…
Let’s check this first:
ls -l /var/discourse/shared/standalone
just to make sure since I cannot see the symlink…
neounix
(Dark Matter)
10. Juni 2020 um 07:29
13
Great, sorry to be so detailed oriented…
So, lets’ enter the app and check things out.
Do you mind to show me this:
(edited)
# cd /var/discourse/
./launcher enter app
# ls -l /shared/*
Thanks
Headless
(Headless)
10. Juni 2020 um 07:31
14
Sure thing, this is what i am getting
even though if I enter the app with the launcher it shows up
here i try to fit everything in
neounix
(Dark Matter)
10. Juni 2020 um 07:32
15
Thanks, sorry, yes, I fat fingered the docker exec…
How about this (in the container)
ls -l /shared/uploads/*
neounix
(Dark Matter)
10. Juni 2020 um 07:34
17
neounix:
ls -l /shared/uploads/*
So, i think it looks great… but to be 100% (bear with me), lets run this again:
find /shared/uploads | wc -l
and make sure we are good to go.
neounix
(Dark Matter)
10. Juni 2020 um 07:36
19
Hmmm.
Sorry, let’s do this…
find /shared/uploads/* | wc -l
since it is a symlink…