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

Failed to compile/install netdata #102

Open
oleole39 opened this issue Feb 22, 2023 · 0 comments
Open

Failed to compile/install netdata #102

oleole39 opened this issue Feb 22, 2023 · 0 comments

Comments

@oleole39
Copy link

Hello,

On a VPS running YNH 11.1.10 I tried to install netdata both via the webadmin & the CLI without success. I had also tried it before on YNH 11.1.6 with the same result: it gets stuck at the step "Executing Netdata Installer" and makes the server unresponsive (both webadmin & SSH) for 15-30mn.
Is this a script issue or limitation due to the server's ressources ?

  • Webadmin install : when the sever starts responding again, Netdata is considered as installed by YNH, although nothing happens when clicking on Netdata tile. It seems the installation process did not complete. It can then be uninstalled. No error thrown into the install log which ends like that:
INFO - [###########+++++++..] > Executing Netdata installer...
DEBUG - ++ mktemp /tmp/netdata-updater-log-XXXXXX.log
DEBUG - + tmp=/tmp/netdata-updater-log-ownldV.log
DEBUG - + exec
DEBUG - + pushd /tmp/tmp.mZK38G52kP
DEBUG - /tmp/tmp.mZK38G52kP /var/cache/yunohost/app_tmp_work_dirs/app_l1wz9xdi/scripts
DEBUG - + ./netdata-installer.sh --install /opt --dont-wait --disable-cloud --disable-telemetry --stable-channel
  • With CLI install (sudo yunohost app install netdata), the warning "Failed to compile/install" is thrown:
Info: Installing netdata...
Info: [....................] > Validating installation parameters...
Info: [....................] > Storing installation settings...
Info: [++++++++............] > Installing dependencies...
Info: [########++..........] > Setting up source files...
Info: [##########+.........] > Configuring NGINX web server...
Info: [###########+++++++..] > Executing Netdata installer...
Warning: FAILED TO COMPILE/INSTALL NETDATA
Error: Unable to install netdata: An error occurred inside the app installation script
Info: The operation 'Install the 'netdata' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20230222-140444-app_install-netdata' to get help
Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
Info: DEBUG - + service_name=nginx
Info: DEBUG - + action=reload
Info: DEBUG - + line_match=
Info: DEBUG - + length=20
Info: DEBUG - + log_path=/var/log/nginx/nginx.log
Info: DEBUG - + timeout=300
Info: DEBUG - + '[' reload == stop ']'
Info: DEBUG - + '[' reload == reload ']'
Info: DEBUG - + action=reload-or-restart
Info: DEBUG - + systemctl reload-or-restart nginx
Info: INFO - [###########+++++++..] > Executing Netdata installer...
Info: DEBUG - ++ mktemp /tmp/netdata-updater-log-XXXXXX.log
Info: DEBUG - + tmp=/tmp/netdata-updater-log-DOo66u.log
Info: DEBUG - + exec
Info: DEBUG - + pushd /tmp/tmp.oe0cRAfj4z
Info: DEBUG - /tmp/tmp.oe0cRAfj4z /var/cache/yunohost/app_tmp_work_dirs/app_8pcmuzi3/scripts
Info: DEBUG - + ./netdata-installer.sh --install /opt --dont-wait --disable-cloud --disable-telemetry --stable-channel
Info: DEBUG - + ynh_die 'FAILED TO COMPILE/INSTALL NETDATA'
Info: DEBUG - + ynh_exit_properly
Warning: Removing the app after installation failure...
Info: [+...................] > Loading installation settings...
Info: [#+..................] > Removing NGINX web server configuration...
Info: [##++++++++..........] > Removing dependencies...
Info: [##########++++++....] > Uninstalling Netdata...
Warning: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (111)
Info: [####################] > Removal of netdata completed
Error: The operation 'Install the 'netdata' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20230222-140444-app_install-netdata' to get help

This VPS has a rather light config with 2GB RAM. The up & down peaks in the graphs below (both yesterday and today) are most likely related to netdata install attempt.

systemload
ramalloc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant