Comments (14)
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.
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.
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.
I don't see it.
At which line number?
from netdata.
I think it was given to you on your browser.
Can you give me the URL that caused netdata respond with this?
from netdata.
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.
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.
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.
I see, thanks for the info. Now it works beautifully here too.
from netdata.
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.
Just got it up and running, thanks! I'm still learning the ropes.
from netdata.
"netdata drops its privileges when started. It becomes user netdata."
This is a very important bit of info.
from netdata.
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.
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)
- [Bug]: METRIC: refcount is 0 (zero or negative) during release HOT 6
- [Bug]: Can't connect dial unix /run/systemd/private: connect: connection refused HOT 1
- When is the android app coming out? HOT 2
- [Bug]: Kickstarter script to install and claim Netdata to the Cloud for macos does not work on M1 and M2 HOT 5
- [Bug]: malloc(): smallbin double linked list corrupted HOT 3
- [Feat]: "container mode" switch or config template to disable collection of non-namespaced metrics
- [Bug]: many plugins stop working after sending HUP to netdata HOT 2
- [Feat]: Provision / backup the custom dashboards
- [Feat]: add `TYPE` and `HELP` when exporting in Prometheus format
- [Bug]: Timeout while request K3S cluster HOT 1
- Fix MAC Installation and Claiming using the Kickstart script HOT 1
- [Feat]: one of the most important alerts of one system are "silenced" by default!!!! HOT 3
- [Feat]: disable query log in go.d.plugin mysql collector HOT 2
- [Bug]: Netdata agent seems to lose all connection and vanishes from Netdata Cloud HOT 3
- [Bug]: Agent Registration via Key Fails HOT 7
- [Bug]: API v1 format array returns null values HOT 3
- [Bug]: Netdata web_log doesn't automatically match PURGE requests HOT 2
- [Bug]: service.netdata constantly segfault at 7fda6e11d7d8 HOT 10
- [Bug]: CGROUP: cannot read directory HOT 2
- [Bug]: HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netdata.