Coder Social home page Coder Social logo

Comments (14)

ktsaou avatar ktsaou commented on May 17, 2024 3

However, I find it strange that those files are not readable by netdata.

The internal web browser of netdata refuses to serve files not owned by its user. Security rules.

from netdata.

ktsaou avatar ktsaou commented on May 17, 2024 2

netdata drops its privileges when started.
It becomes user netdata.
So, install it outside /root (prefer /tmp if you plan to delete it later).
If you really want to start it as root, add -u root to the command line, but I strongly suggest against this practice.

from netdata.

ktsaou avatar ktsaou commented on May 17, 2024 1

Get `http://your.netdata.ip:19999/netdata.conf and seek for these 2 options:

[global]
    # run as user = 
    # web files owner = 

If they are empty, like the ones above, user netdata is assumed. If they are not empty, these are the permissions the web files should have.

Check also /var/log/netdata/error.log, it should give you some info.

from netdata.

ktsaou avatar ktsaou commented on May 17, 2024

I don't see it.
At which line number?

from netdata.

ktsaou avatar ktsaou commented on May 17, 2024

I think it was given to you on your browser.

Can you give me the URL that caused netdata respond with this?

from netdata.

ktsaou avatar ktsaou commented on May 17, 2024

I see in the code this message can be given if the web files are not owned by the user netdata runs.

If you installed netdata on your system, the web files should be at /usr/share/netdata/web.

Check the directory and its contents.
If netdata runs as user netdata, this directory and its contents should be owned by this user too.

from netdata.

ktsaou avatar ktsaou commented on May 17, 2024

I added a log line to error log for this. The line states the path to the problematic filename its current owner and the wanted one.

from netdata.

SanskritFritz avatar SanskritFritz commented on May 17, 2024

Thanks, I see. I missed setting the permissions in my package. However, I find it strange that those files are not readable by netdata. Does the program try to change any file under /usr? Because all files are visible by any user in the system, even if they are root owned.

from netdata.

SanskritFritz avatar SanskritFritz commented on May 17, 2024

I see, thanks for the info. Now it works beautifully here too.

from netdata.

Porco-Rosso avatar Porco-Rosso commented on May 17, 2024

Hi I'm having troubles with the same issue, what exactly did you run?
Nether
chown root -R /root/netdata/netdata/usr
Nor
chown netdata:netdata -R /root/netdata/netdata/usr
Help

(I ran the install to the folder ~/netdata)

from netdata.

Porco-Rosso avatar Porco-Rosso commented on May 17, 2024

Just got it up and running, thanks! I'm still learning the ropes.

from netdata.

quixand avatar quixand commented on May 17, 2024

"netdata drops its privileges when started. It becomes user netdata."
This is a very important bit of info.

from netdata.

CholtonATX avatar CholtonATX commented on May 17, 2024

I installed Netdata as a sudoer, everything in /usr/share/netdata/web is owned by user netdata, but I am still getting 'access to file not permitted'. Do I have to run /usr/sbin/netdata AS user netdata?

from netdata.

SanskritFritz avatar SanskritFritz commented on May 17, 2024

On Wed, Nov 16, 2016 at 5:29 AM, Fleetside58 [email protected]
wrote:

I installed Netdata as a sudoer, everything in /usr/share/netdata/web is
owned by user netdata, but I am still getting 'access to file not
permitted'. Do I have to run /usr/sbin/netdata AS user netdata?

No, by default netdata drops to the netdata user when you run it as root,
unless you configured it differently. I run netdata from systemd with no
special settings:

root@HomeC ~# ps -ef | grep netdata
netdata 23194 1 0 10:36 ? 00:00:01 /usr/bin/netdata -D
netdata 23200 23194 0 10:36 ? 00:00:00 bash
/usr/lib/netdata/plugins.d/tc-qos-helper.sh 1
netdata 23209 23194 0 10:36 ? 00:00:01
/usr/lib/netdata/plugins.d/apps.plugin 1
netdata 23215 23194 0 10:36 ? 00:00:01 /usr/sbin/python
/usr/lib/netdata/plugins.d/python.d.plugin 1
netdata 24335 23200 0 10:41 ? 00:00:00 sleep 0.994
root 24343 23156 0 10:41 pts/4 00:00:00 grep --color=auto netdata

from netdata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.