Error on plugin update while executing nodebb with non root user
-
Ubuntu server
Running nodebb with normal user get me these error on npm updates on admin panelAny linux permission expert?
-
@exodo looks like you probably ran npm as root once so the directories are under root's authority. You can most likely chmod the directory privileges to whatever user you want. Look it up.
For future reference, you can usually figure out what's causing these issues by looking up the error code. In this case, it's
EACCESS
. The code will always be in ALLCAPS and start withE
. You can look it up and that will give you at least some information so you can start to solve the issue on your own. -
@PitaJ said in Error on plugin update while executing nodebb with non root user:
@exodo looks like you probably ran npm as root once so the directories are under root's authority. You can most likely chmod the directory privileges to whatever user you want. Look it up.
For future reference, you can usually figure out what's causing these issues by looking up the error code. In this case, it's
EACCESS
. The code will always be in ALLCAPS and start withE
. You can look it up and that will give you at least some information so you can start to solve the issue on your own.changed chown of .npm the directories but still same error
-
@julian said in Error on plugin update while executing nodebb with non root user:
What command did you use?
chown -R user:group folder
-
When this happens I normally enter in the nodebb folder and do
sudo chown -R user:group .
where, of course,user:group
represents the same parameters as the one I put insystemd
's configurations to run nodebb.
That's what you did, so it's really strange. -
@exodo try checking the ownership with
stat -c "%U %G" /path/to/file
if that shows the wrong user/group, make sure you runchown
withsudo
-
restarted a few times again nodebb working now thanks