Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netdata Installer : $NETDATA_USER not defined ? #5803

Closed
alexisgunst opened this issue Apr 4, 2019 · 4 comments · Fixed by #5806
Closed

Netdata Installer : $NETDATA_USER not defined ? #5803

alexisgunst opened this issue Apr 4, 2019 · 4 comments · Fixed by #5806
Assignees
Labels
area/packaging Packaging and operating systems support bug
Milestone

Comments

@alexisgunst
Copy link

Hi,

First, thanks for Netdata, it's amazing.
It seems that there is a probleme with the installer since several days.

Bug report summary

As root :

# wget https://my-netdata.io/kickstart-static64.sh
# /bin/sh kickstart-static64.sh
(...)
 --- fix permissions --- 
[/opt/netdata]# chmod g+rx\,o+rx /opt 
 OK   

[/opt/netdata]# chown -R : /opt/netdata 
 OK   

 --- fix plugin permissions --- 
[/opt/netdata]# chown root: usr/libexec/netdata/plugins.d/apps.plugin 
 OK   

[/opt/netdata]# chmod 4750 usr/libexec/netdata/plugins.d/apps.plugin 
 OK   

[/opt/netdata]# chown root: usr/libexec/netdata/plugins.d/cgroup-network 
 OK   

[/opt/netdata]# chmod 4750 usr/libexec/netdata/plugins.d/cgroup-network 
 OK   

[/opt/netdata]# chown root: bin/fping 
 OK   

[/opt/netdata]# chmod 4750 bin/fping 
 OK   

Then Netdata can't start again because of a permission issue.

[/tmp]# ll /opt/netdata/
total 32
drwxrwxr-x 3 root root 4096 Apr  4 09:38 bin
drwxr-xr-x 3 root root 4096 Apr  4 09:38 etc
drwxr-xr-x 3 root root 4096 Apr  4 09:37 include
drwxr-xr-x 3 root root 4096 Apr  4 09:37 lib
lrwxrwxrwx 1 root root   11 Apr  4 17:58 netdata-configs -> etc/netdata
lrwxrwxrwx 1 root root   15 Apr  4 17:58 netdata-dbs -> var/lib/netdata
lrwxrwxrwx 1 root root   15 Apr  4 17:58 netdata-logs -> var/log/netdata
lrwxrwxrwx 1 root root   17 Apr  4 17:58 netdata-metrics -> var/cache/netdata
lrwxrwxrwx 1 root root   19 Apr  4 17:58 netdata-plugins -> usr/libexec/netdata
lrwxrwxrwx 1 root root   21 Apr  4 17:58 netdata-web-files -> usr/share/netdata/web
lrwxrwxrwx 1 root root    3 Apr  4 17:58 sbin -> bin
drwxrwxr-x 6 root root 4096 Apr  4 09:37 share
drwxrwxr-x 2 root root 4096 Apr  4 09:38 system
drwxrwxr-x 5 root root 4096 Apr  4 17:58 usr
drwxr-xr-x 6 root root 4096 Apr  4 09:38 var

=> Everything is root.

If I do

chown -R netdata: /opt/netdata

Then everything is fixed.

OS / Environment

Amazon Linux
Elastic Beanstalk

Netdata version (ouput of netdata -V)

netdata v1.14.0-rc0-29-nightly

@paulkatsoulakis
Copy link
Contributor

Good morning and sorry for this inconvenience.
Netdata install process suffered a major refactor that unfortunately came at a cost.

A fix is on the way, i 'll let you know when we are ready for you to pull the fresh version and retry

@paulkatsoulakis paulkatsoulakis added this to the v1.14-rc1 milestone Apr 5, 2019
@paulkatsoulakis paulkatsoulakis added area/packaging Packaging and operating systems support and removed needs triage Issues which need to be manually labelled labels Apr 5, 2019
@paulkatsoulakis
Copy link
Contributor

I will resolve the issue once the new release is out available.
@alexisgunst as soon as i close the issue you are free to retry, it takes some time for the release to complete.

@paulkatsoulakis
Copy link
Contributor

@alexisgunst you may re-download and reinstall.
My apologies for this inconvenience, we are working to eliminate such exposure to our customers in the future

@alexisgunst
Copy link
Author

Thanks so much for your quick fix !
👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/packaging Packaging and operating systems support bug
Projects
None yet
3 participants