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]: build-static.sh x86_64 fails HOT 2
- [Bug]: Debian native: nightly: Netdata service not started after installation
- [Bug]: Incorrect bloat calculation in go.d.plugin, postgres module HOT 6
- [Platform EOL]: centos-stream 8 will be EOL soon.
- [Bug]: latest netdata version (security patch) is missing in opensuse 15.5 repo HOT 2
- Upload source files to sentry.
- [Bug]: apcupsd module is unable to connect to UPS (docker) HOT 3
- [Bug]: ubuntu 22.04 dependencies missing HOT 4
- [Bug]: Ubuntu 22.04 Unmet dependencies HOT 4
- [Bug]: Chart filtering to prometheus appears to be broken HOT 3
- [Bug]: Netdata 1.45.4 fails to build with h2o, cloud and aclk disabled
- [Bug]: go.d/smartctl bad default graphs HOT 1
- [Bug]: Runing netdata plugin from nested directory uses wrong config dir HOT 1
- [Bug]: Increased number of Read/Write operations per second HOT 5
- [question]: my netdata cloud plan does not allow more than 5 active nodes.?earlier plans cancel and +8505USD/YEAR ! HOT 2
- [Bug]: cron netdata-updater script failed HOT 2
- [Feat]: carts for mariadb circular buffers
- [Bug]: Netdata agent that reports offline and then back online
- [Bug]: netdata plugins segfaults after update 1.45.3 to 1.45.4 HOT 7
- [Feat]: rspamd monitoring with netdata HOT 3
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.