v1.6.0 permission problems after upgrade/update
-
@pitaj aaah ok... so what step should I change to update it properly then? let my nodebb account run
./nodebb upgrade
or should I let my account fetch/checkout/merge as well (which I will have to modify some policies for that)? -
Ideally you should run everything without root, and under the nodebb account. Everything besides
systemctl
commands, that is. @julian pointed out above how best to run bash under a different user:su - nodebb
-
@pitaj that part I already know. I am a sysadmin as well... freebsd habits, when it comes to starting services (I am not really in the mood to explain admin tasks for spinning up services in any OS with an admin/root account, too tired for that now).
short answer could've been:
due to changes to v1.6.0, it is mandatory to use the account that you use for nodebb for upgrading, to avoid extra admin work and/or issues.
off to bed with me ;(
-
as a last ditch effort... I did it again, but upgrading with the nodebb account...
v1.4 ---> v1.5 = perfect
v1.5 ---> v1.6 = now I don't get internal server error, but pages get stuck ~75% and when I manually refresh, it works (*edit to add: for every page I go to, besides login and admin).
I'm sticking to v1.5 until I can find the time and strength to reinstall it to v1.6
-
I have same problem
after thisgit fetch git checkout v1.6.0 ./nodebb upgrade
first time i found
nodebb-plugin-category-sort-by-title
will make nodebb crash, i disable it
then i foundError: EACCES: permission denied, open '/home/nodebb/build/public/templates/recent.jst'
then
chown -R nodebb /home/nodebb
problem solved
-
It Works!
sudo chown -R $USER:$GROUPS NodeBB/
sudo chmod -R 770 build/
-
I think I'm having the same issue here, folks. I installed everything and have always done upgrades as root. Now, when trying to upgrade from 1.5.3 to 1.6.1 I get permission denied errors.
I have never used my NodeBB login to do anything with NodeBB as far as installation or upgrading, and so I'm kind of lost on how to fix all this.
-
@michael-pfaff You shouldn't be using root to do anything with
./nodebb
. You should always do such things as thenodebb
user or whatever user you use to run it.The easiest way to fix this is to delete the
build
directory, and thensu - nodebb
and run./nodebb build
as that user. -
@pitaj said in v1.6.0 permission problems after upgrade/update:
@michael-pfaff You shouldn't be using root to do anything with
./nodebb
. You should always do such things as thenodebb
user or whatever user you use to run it.The easiest way to fix this is to delete the
build
directory, and thensu - nodebb
and run./nodebb build
as that user.Thanks, @PitaJ. I didn't realize that was the case. I'll try this out and see if it works.
To clarify:
What does the
su - nodebb
command do exactly?Appreciate all the help.
-
@michael-pfaff
su - nodebb
switches to the nodebb user and goes to their home directory. -
@baris said in v1.6.0 permission problems after upgrade/update:
@michael-pfaff
su - nodebb
switches to the nodebb user and goes to their home directory.Sorry y'all. Just getting around to doing this. Apparently, I don't have a nodebb user. And, I'm not entirely sure what user was used to install nodebb. So, it's not letting me do anything. Can't even use the ./nodebb stop command like I used to at root.
I didn't initially install NodeBB on my server. Is there a way to determine which user? Can I do a fresh install with my old data?
-
At this point should I delete the
build
directory and try to run./nodebb build
? I'm nervous that command won't work since I can't run./nodebb log
. -
try
sudo chown -R www-data nodebb
. If that doesn't work then try deleting stuff -
@pitaj said in v1.6.0 permission problems after upgrade/update:
try
sudo chown -R www-data nodebb
. If that doesn't work then try deleting stuffThat changed this, yes?
-rw-r--r-- 1 www-data www-data 15468 Aug 4 00:08 nodebb
Still doesn't seem to get me to where I can run
./nodebb log
. Getting this error:-su: ./nodebb: Permission denied
. -
@pitaj said in v1.6.0 permission problems after upgrade/update:
If that doesn't work then try deleting stuff
Oh lawdy.
-
Any advice on a fresh install?