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

update.sh complete with errors #565

Closed
DamLaw opened this issue Jun 12, 2018 · 1 comment
Closed

update.sh complete with errors #565

DamLaw opened this issue Jun 12, 2018 · 1 comment

Comments

@DamLaw
Copy link

DamLaw commented Jun 12, 2018

Steps to reproduce

  1. bash /var/scripts/update.sh

Expected behaviour

Successful upgrade to NC 13.0.4

Actual behaviour

Netdata fails to update
NC fails to update

Server configuration

Server version: (see your admin page)
13.0.2

VM version (Scripted install from master OR Released version)

Updated from an older installed version or fresh install:

Network

Do you use DHCP?
No
Is port 80 and/or 443 open?
Yes

Logs / Screenshots

root@sparks:# bash /var/scripts/update.sh
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libc-dev-bin python-all
Use 'apt autoremove' to remove them.
The following packages have been kept back:
elasticsearch
The following packages will be upgraded:
apport binutils binutils-common binutils-x86-64-linux-gnu dirmngr git git-man gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client
gpg-wks-server gpgconf gpgsm gpgv libbinutils libncurses5 libncursesw5 libpq5 libpulse0 libtinfo5 linux-cloud-tools-common linux-tools-common
mdadm ncurses-base ncurses-bin ncurses-term netplan.io nplan postgresql-10 postgresql-client-10 python-pip python-pip-whl python3-apport
python3-distupgrade python3-problem-report ubuntu-release-upgrader-core
39 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 18.0 MB of archives.
After this operation, 311 kB of additional disk space will be used.
Get:1 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 ncurses-bin amd64 6.1-1ubuntu1.18.04 [163 kB]
Get:2 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 ncurses-base all 6.1-1ubuntu1.18.04 [17.8 kB]
Get:3 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 libncurses5 amd64 6.1-1ubuntu1.18.04 [95.1 kB]
Get:4 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 libtinfo5 amd64 6.1-1ubuntu1.18.04 [80.3 kB]
Get:5 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 libncursesw5 amd64 6.1-1ubuntu1.18.04 [117 kB]
Get:6 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 gpg-wks-client amd64 2.2.4-1ubuntu1.1 [91.8 kB]
Get:7 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 dirmngr amd64 2.2.4-1ubuntu1.1 [316 kB]
Get:8 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 gnupg-utils amd64 2.2.4-1ubuntu1.1 [127 kB]
Get:9 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 gpg-wks-server amd64 2.2.4-1ubuntu1.1 [84.9 kB]
Get:10 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 gpg-agent amd64 2.2.4-1ubuntu1.1 [227 kB]
Get:11 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 gpg amd64 2.2.4-1ubuntu1.1 [467 kB]
Get:12 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 gpgconf amd64 2.2.4-1ubuntu1.1 [123 kB]
Get:13 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 gnupg-l10n all 2.2.4-1ubuntu1.1 [49.5 kB]
Get:14 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 gnupg amd64 2.2.4-1ubuntu1.1 [249 kB]
Get:15 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 gpgsm amd64 2.2.4-1ubuntu1.1 [215 kB]
Get:16 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 gpgv amd64 2.2.4-1ubuntu1.1 [197 kB]
Get:17 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 netplan.io amd64 0.36.2 [58.6 kB]
Get:18 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 nplan all 0.36.2 [1,364 B]
Get:19 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 ubuntu-release-upgrader-core all 1:18.04.19 [24.4 kB]
Get:20 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 python3-distupgrade all 1:18.04.19 [103 kB]
Get:21 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 python3-problem-report all 2.20.9-0ubuntu7.2 [9,624 B]
Get:22 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 python3-apport all 2.20.9-0ubuntu7.2 [81.3 kB]
Get:23 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 apport all 2.20.9-0ubuntu7.2 [124 kB]
Get:24 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 binutils-x86-64-linux-gnu amd64 2.30-20ubuntu2
18.04 [1,854 kB]
Get:25 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 libbinutils amd64 2.30-20ubuntu218.04 [503 kB]
Get:26 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 binutils amd64 2.30-20ubuntu2
18.04 [3,388 B]
Get:27 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 binutils-common amd64 2.30-20ubuntu218.04 [193 kB]
Get:28 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 git amd64 1:2.17.1-1ubuntu0.1 [3,905 kB]
Get:29 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 git-man all 1:2.17.1-1ubuntu0.1 [803 kB]
Get:30 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 libpq5 amd64 10.4-0ubuntu0.18.04 [106 kB]
Get:31 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 libpulse0 amd64 1:11.1-1ubuntu7.1 [265 kB]
Get:32 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 linux-cloud-tools-common all 4.15.0-23.25 [43.3 kB]
Get:33 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 linux-tools-common all 4.15.0-23.25 [156 kB]
Get:34 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 mdadm amd64 4.0-2ubuntu1.1 [408 kB]
Get:35 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 ncurses-term all 6.1-1ubuntu1.18.04 [248 kB]
Get:36 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 postgresql-client-10 amd64 10.4-0ubuntu0.18.04 [933 kB]
Get:37 http://mirror.enzu.com/ubuntu bionic-updates/main amd64 postgresql-10 amd64 10.4-0ubuntu0.18.04 [3,752 kB]
Get:38 http://mirror.enzu.com/ubuntu bionic-updates/universe amd64 python-pip all 9.0.1-2.3
ubuntu1 [151 kB]
Get:39 http://mirror.enzu.com/ubuntu bionic-updates/universe amd64 python-pip-whl all 9.0.1-2.3ubuntu1 [1,652 kB]
Fetched 18.0 MB in 4s (4,011 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 123640 files and directories currently installed.)
Preparing to unpack .../ncurses-bin_6.1-1ubuntu1.18.04_amd64.deb ...
Unpacking ncurses-bin (6.1-1ubuntu1.18.04) over (6.1-1ubuntu1) ...
Setting up ncurses-bin (6.1-1ubuntu1.18.04) ...
(Reading database ... 123640 files and directories currently installed.)
Preparing to unpack .../ncurses-base_6.1-1ubuntu1.18.04_all.deb ...
Unpacking ncurses-base (6.1-1ubuntu1.18.04) over (6.1-1ubuntu1) ...
Setting up ncurses-base (6.1-1ubuntu1.18.04) ...
(Reading database ... 123642 files and directories currently installed.)
Preparing to unpack .../libncurses5_6.1-1ubuntu1.18.04_amd64.deb ...
Unpacking libncurses5:amd64 (6.1-1ubuntu1.18.04) over (6.1-1ubuntu1) ...
Preparing to unpack .../libtinfo5_6.1-1ubuntu1.18.04_amd64.deb ...
Unpacking libtinfo5:amd64 (6.1-1ubuntu1.18.04) over (6.1-1ubuntu1) ...
Setting up libtinfo5:amd64 (6.1-1ubuntu1.18.04) ...
(Reading database ... 123642 files and directories currently installed.)
Preparing to unpack .../libncursesw5_6.1-1ubuntu1.18.04_amd64.deb ...
Unpacking libncursesw5:amd64 (6.1-1ubuntu1.18.04) over (6.1-1ubuntu1) ...
Setting up libncursesw5:amd64 (6.1-1ubuntu1.18.04) ...
(Reading database ... 123642 files and directories currently installed.)
Preparing to unpack .../00-gpg-wks-client_2.2.4-1ubuntu1.1_amd64.deb ...
Unpacking gpg-wks-client (2.2.4-1ubuntu1.1) over (2.2.4-1ubuntu1) ...
Preparing to unpack .../01-dirmngr_2.2.4-1ubuntu1.1_amd64.deb ...
Unpacking dirmngr (2.2.4-1ubuntu1.1) over (2.2.4-1ubuntu1) ...
Preparing to unpack .../02-gnupg-utils_2.2.4-1ubuntu1.1_amd64.deb ...
Unpacking gnupg-utils (2.2.4-1ubuntu1.1) over (2.2.4-1ubuntu1) ...
Preparing to unpack .../03-gpg-wks-server_2.2.4-1ubuntu1.1_amd64.deb ...
Unpacking gpg-wks-server (2.2.4-1ubuntu1.1) over (2.2.4-1ubuntu1) ...
Preparing to unpack .../04-gpg-agent_2.2.4-1ubuntu1.1_amd64.deb ...
Unpacking gpg-agent (2.2.4-1ubuntu1.1) over (2.2.4-1ubuntu1) ...
Preparing to unpack .../05-gpg_2.2.4-1ubuntu1.1_amd64.deb ...
Unpacking gpg (2.2.4-1ubuntu1.1) over (2.2.4-1ubuntu1) ...
Preparing to unpack .../06-gpgconf_2.2.4-1ubuntu1.1_amd64.deb ...
Unpacking gpgconf (2.2.4-1ubuntu1.1) over (2.2.4-1ubuntu1) ...
Preparing to unpack .../07-gnupg-l10n_2.2.4-1ubuntu1.1_all.deb ...
Unpacking gnupg-l10n (2.2.4-1ubuntu1.1) over (2.2.4-1ubuntu1) ...
Preparing to unpack .../08-gnupg_2.2.4-1ubuntu1.1_amd64.deb ...
Unpacking gnupg (2.2.4-1ubuntu1.1) over (2.2.4-1ubuntu1) ...
Preparing to unpack .../09-gpgsm_2.2.4-1ubuntu1.1_amd64.deb ...
Unpacking gpgsm (2.2.4-1ubuntu1.1) over (2.2.4-1ubuntu1) ...
Preparing to unpack .../10-gpgv_2.2.4-1ubuntu1.1_amd64.deb ...
Unpacking gpgv (2.2.4-1ubuntu1.1) over (2.2.4-1ubuntu1) ...
Setting up gpgv (2.2.4-1ubuntu1.1) ...
(Reading database ... 123642 files and directories currently installed.)
Preparing to unpack .../00-netplan.io_0.36.2_amd64.deb ...
Unpacking netplan.io (0.36.2) over (0.36.1) ...
Preparing to unpack .../01-nplan_0.36.2_all.deb ...
Unpacking nplan (0.36.2) over (0.36.1) ...
Preparing to unpack .../02-ubuntu-release-upgrader-core_1%3a18.04.19_all.deb ...
Unpacking ubuntu-release-upgrader-core (1:18.04.19) over (1:18.04.18) ...
Preparing to unpack .../03-python3-distupgrade_1%3a18.04.19_all.deb ...
Unpacking python3-distupgrade (1:18.04.19) over (1:18.04.18) ...
Preparing to unpack .../04-python3-problem-report_2.20.9-0ubuntu7.2_all.deb ...
Unpacking python3-problem-report (2.20.9-0ubuntu7.2) over (2.20.9-0ubuntu7.1) ...
Preparing to unpack .../05-python3-apport_2.20.9-0ubuntu7.2_all.deb ...
Unpacking python3-apport (2.20.9-0ubuntu7.2) over (2.20.9-0ubuntu7.1) ...
Preparing to unpack .../06-apport_2.20.9-0ubuntu7.2_all.deb ...
Unpacking apport (2.20.9-0ubuntu7.2) over (2.20.9-0ubuntu7.1) ...
Preparing to unpack .../07-binutils-x86-64-linux-gnu_2.30-20ubuntu2
18.04_amd64.deb ...
Unpacking binutils-x86-64-linux-gnu (2.30-20ubuntu218.04) over (2.30-15ubuntu1) ...
Preparing to unpack .../08-libbinutils_2.30-20ubuntu2
18.04_amd64.deb ...
Unpacking libbinutils:amd64 (2.30-20ubuntu218.04) over (2.30-15ubuntu1) ...
Preparing to unpack .../09-binutils_2.30-20ubuntu2
18.04_amd64.deb ...
Unpacking binutils (2.30-20ubuntu218.04) over (2.30-15ubuntu1) ...
Preparing to unpack .../10-binutils-common_2.30-20ubuntu2
18.04_amd64.deb ...
Unpacking binutils-common:amd64 (2.30-20ubuntu218.04) over (2.30-15ubuntu1) ...
Preparing to unpack .../11-git_1%3a2.17.1-1ubuntu0.1_amd64.deb ...
Unpacking git (1:2.17.1-1ubuntu0.1) over (1:2.17.0-1ubuntu1) ...
Preparing to unpack .../12-git-man_1%3a2.17.1-1ubuntu0.1_all.deb ...
Unpacking git-man (1:2.17.1-1ubuntu0.1) over (1:2.17.0-1ubuntu1) ...
Preparing to unpack .../13-libpq5_10.4-0ubuntu0.18.04_amd64.deb ...
Unpacking libpq5:amd64 (10.4-0ubuntu0.18.04) over (10.3-1) ...
Preparing to unpack .../14-libpulse0_1%3a11.1-1ubuntu7.1_amd64.deb ...
Unpacking libpulse0:amd64 (1:11.1-1ubuntu7.1) over (1:11.1-1ubuntu7) ...
Preparing to unpack .../15-linux-cloud-tools-common_4.15.0-23.25_all.deb ...
Unpacking linux-cloud-tools-common (4.15.0-23.25) over (4.15.0-22.24) ...
Preparing to unpack .../16-linux-tools-common_4.15.0-23.25_all.deb ...
Unpacking linux-tools-common (4.15.0-23.25) over (4.15.0-22.24) ...
Preparing to unpack .../17-mdadm_4.0-2ubuntu1.1_amd64.deb ...
Unpacking mdadm (4.0-2ubuntu1.1) over (4.0-2ubuntu1) ...
Preparing to unpack .../18-ncurses-term_6.1-1ubuntu1.18.04_all.deb ...
Unpacking ncurses-term (6.1-1ubuntu1.18.04) over (6.1-1ubuntu1) ...
Preparing to unpack .../19-postgresql-client-10_10.4-0ubuntu0.18.04_amd64.deb ...
Unpacking postgresql-client-10 (10.4-0ubuntu0.18.04) over (10.3-1) ...
Preparing to unpack .../20-postgresql-10_10.4-0ubuntu0.18.04_amd64.deb ...
Unpacking postgresql-10 (10.4-0ubuntu0.18.04) over (10.3-1) ...
Preparing to unpack .../21-python-pip_9.0.1-2.3
ubuntu1_all.deb ...
Unpacking python-pip (9.0.1-2.3ubuntu1) over (9.0.1-2) ...
Preparing to unpack .../22-python-pip-whl_9.0.1-2.3
ubuntu1_all.deb ...
Unpacking python-pip-whl (9.0.1-2.3ubuntu1) over (9.0.1-2) ...
Setting up libncurses5:amd64 (6.1-1ubuntu1.18.04) ...
Setting up python-pip-whl (9.0.1-2.3
ubuntu1) ...
Setting up ncurses-term (6.1-1ubuntu1.18.04) ...
Setting up git-man (1:2.17.1-1ubuntu0.1) ...
Setting up linux-cloud-tools-common (4.15.0-23.25) ...
Processing triggers for ureadahead (0.100.0-20) ...
Processing triggers for install-info (6.5.0.dfsg.1-2) ...
Setting up gpgconf (2.2.4-1ubuntu1.1) ...
Setting up gpg-agent (2.2.4-1ubuntu1.1) ...
Setting up netplan.io (0.36.2) ...
Setting up mdadm (4.0-2ubuntu1.1) ...
update-initramfs: deferring update (trigger activated)
Generating grub configuration file ...
File descriptor 3 (pipe:[27477875]) leaked on vgs invocation. Parent PID 112143: grub-probe
File descriptor 3 (pipe:[27477875]) leaked on vgs invocation. Parent PID 112143: grub-probe
File descriptor 3 (pipe:[27477875]) leaked on vgs invocation. Parent PID 112183: /usr/sbin/grub-probe
File descriptor 3 (pipe:[27477875]) leaked on vgs invocation. Parent PID 112183: /usr/sbin/grub-probe
File descriptor 3 (pipe:[27477875]) leaked on vgs invocation. Parent PID 112193: /usr/sbin/grub-probe
File descriptor 3 (pipe:[27477875]) leaked on vgs invocation. Parent PID 112193: /usr/sbin/grub-probe
File descriptor 3 (pipe:[27477875]) leaked on vgs invocation. Parent PID 112204: /usr/sbin/grub-probe
File descriptor 3 (pipe:[27477875]) leaked on vgs invocation. Parent PID 112204: /usr/sbin/grub-probe
File descriptor 3 (pipe:[27477875]) leaked on vgs invocation. Parent PID 112214: /usr/sbin/grub-probe
File descriptor 3 (pipe:[27477875]) leaked on vgs invocation. Parent PID 112214: /usr/sbin/grub-probe
File descriptor 3 (pipe:[27477875]) leaked on vgs invocation. Parent PID 112268: /usr/sbin/grub-probe
File descriptor 3 (pipe:[27477875]) leaked on vgs invocation. Parent PID 112268: /usr/sbin/grub-probe
Found linux image: /boot/vmlinuz-4.15.0-20-generic
Found initrd image: /boot/initrd.img-4.15.0-20-generic
File descriptor 3 (pipe:[27477875]) leaked on vgs invocation. Parent PID 112342: /usr/sbin/grub-probe
File descriptor 3 (pipe:[27477875]) leaked on vgs invocation. Parent PID 112342: /usr/sbin/grub-probe
File descriptor 3 (pipe:[27477875]) leaked on vgs invocation. Parent PID 112353: /usr/sbin/grub-probe
File descriptor 3 (pipe:[27477875]) leaked on vgs invocation. Parent PID 112353: /usr/sbin/grub-probe
File descriptor 3 (pipe:[27477875]) leaked on vgs invocation. Parent PID 112363: /usr/sbin/grub-probe
File descriptor 3 (pipe:[27477875]) leaked on vgs invocation. Parent PID 112363: /usr/sbin/grub-probe
File descriptor 3 (pipe:[27477875]) leaked on vgs invocation. Parent PID 112374: /usr/sbin/grub-probe
File descriptor 3 (pipe:[27477875]) leaked on vgs invocation. Parent PID 112374: /usr/sbin/grub-probe
File descriptor 3 (pipe:[27477875]) leaked on vgs invocation. Parent PID 112512: /usr/sbin/grub-probe
File descriptor 3 (pipe:[27477875]) leaked on vgs invocation. Parent PID 112512: /usr/sbin/grub-probe
File descriptor 3 (pipe:[27477875]) leaked on lvs invocation. Parent PID 112630: /bin/sh
done
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up libpulse0:amd64 (1:11.1-1ubuntu7.1) ...
Setting up gnupg-l10n (2.2.4-1ubuntu1.1) ...
Setting up python3-problem-report (2.20.9-0ubuntu7.2) ...
Setting up binutils-common:amd64 (2.30-20ubuntu218.04) ...
Setting up libpq5:amd64 (10.4-0ubuntu0.18.04) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up linux-tools-common (4.15.0-23.25) ...
Setting up nplan (0.36.2) ...
Setting up gpgsm (2.2.4-1ubuntu1.1) ...
Processing triggers for systemd (237-3ubuntu10) ...
Processing triggers for postgresql-common (190) ...
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
Removing obsolete dictionary files:
Setting up gnupg-utils (2.2.4-1ubuntu1.1) ...
Processing triggers for man-db (2.8.3-2) ...
Setting up dirmngr (2.2.4-1ubuntu1.1) ...
Setting up python-pip (9.0.1-2.3
ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Setting up git (1:2.17.1-1ubuntu0.1) ...
Setting up python3-distupgrade (1:18.04.19) ...
Setting up gpg (2.2.4-1ubuntu1.1) ...
Setting up postgresql-client-10 (10.4-0ubuntu0.18.04) ...
Setting up libbinutils:amd64 (2.30-20ubuntu218.04) ...
Setting up gpg-wks-server (2.2.4-1ubuntu1.1) ...
Setting up ubuntu-release-upgrader-core (1:18.04.19) ...
Setting up postgresql-10 (10.4-0ubuntu0.18.04) ...
Setting up gpg-wks-client (2.2.4-1ubuntu1.1) ...
Setting up python3-apport (2.20.9-0ubuntu7.2) ...
Setting up apport (2.20.9-0ubuntu7.2) ...
Setting up binutils-x86-64-linux-gnu (2.30-20ubuntu2
18.04) ...
Setting up gnupg (2.2.4-1ubuntu1.1) ...
Setting up binutils (2.30-20ubuntu2~18.04) ...
Processing triggers for initramfs-tools (0.130ubuntu3) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-20-generic
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Tue Jun 12 13:27:23 +08 2018 : INFO: Running on a terminal - (this script also supports running headless from crontab)

Tue Jun 12 13:27:23 +08 2018 : INFO: Updating netdata source from github...
remote: Counting objects: 9, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 9 (delta 5), reused 9 (delta 5), pack-reused 0
Unpacking objects: 100% (9/9), done.
From https://github.com/firehol/netdata
6d2dbd1c..f70a4787 master -> origin/master
Updating 6d2dbd1c..f70a4787
Fast-forward
CMakeLists.txt | 2 +-
node.d/node_modules/net-snmp.js | 15 +++++++++++----
2 files changed, 12 insertions(+), 5 deletions(-)

Tue Jun 12 13:27:25 +08 2018 : INFO: Re-installing netdata...

^
|.-. .-. .-. .-. . netdata
| '-' '-' '-' '-' real-time performance monitoring, done right!
+----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--->

You are about to build and install netdata to your system.

It will be installed at these locations:

  • the daemon at /usr/sbin/netdata
  • config files in /etc/netdata
  • web files in /usr/share/netdata
  • plugins in /usr/libexec/netdata
  • cache files in /var/cache/netdata
  • db files in /var/lib/netdata
  • log files in /var/log/netdata
  • pid file at /var/run/netdata.pid
  • logrotate file at /etc/logrotate.d/netdata

This installer allows you to change the installation path.
Press Control-C and run the same command with --help for help.

--- Run autotools to configure the build environment ---
[/usr/src/netdata.git]# ./autogen.sh
autoreconf: Entering directory .' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: running: /usr/bin/autoconf --force autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing autoreconf: Leaving directory .'
OK

[/usr/src/netdata.git]# ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-zlib --with-math --with-user=netdata CFLAGS=-O2
checking whether to enable maintainer-specific portions of Makefiles... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in /usr/src/netdata.git': configure: error: C compiler cannot create executables See config.log' for more details
FAILED

^
|.-. .-. .-. .-. .-. . netdata .-. .-
| '-' '-' '-' '-' '-' sorry, it failed to build... '-' '-'
+----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--->

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Sorry! netdata failed to build...

You may need to check these:

  1. The package uuid-dev (or libuuid-devel) has to be installed.

    If your system cannot find libuuid, although it is installed
    run me with the option: --libs-are-really-here

  2. The package zlib1g-dev (or zlib-devel) has to be installed.

    If your system cannot find zlib, although it is installed
    run me with the option: --libs-are-really-here

  3. You need basic build tools installed, like:

    gcc make autoconf automake pkg-config

    Autoconf version 2.60 or higher is required.

If you still cannot get it to build, ask for help at github:

https://github.com/firehol/netdata/issues

Tue Jun 12 13:27:35 +08 2018 : ERROR: FAILED TO UPDATE NETDATA : FAILED TO COMPILE/INSTALL NETDATA
latest: Pulling from onlyoffice/documentserver
Digest: sha256:88881510e6b698d0b824d76d18da9ed186d59883c90c58c61ecc74bfb4592baa
Status: Image is up to date for onlyoffice/documentserver:latest
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libc-dev-bin python-all
0 upgraded, 0 newly installed, 2 to remove and 1 not upgraded.
After this operation, 434 kB disk space will be freed.
(Reading database ... 123648 files and directories currently installed.)
Removing libc-dev-bin (2.27-3ubuntu1) ...
Removing python-all (2.7.15~rc1-1) ...
Processing triggers for man-db (2.8.3-2) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Del ubuntu-release-upgrader-core 1:18.04.18 [24.4 kB]
Del python3-distupgrade 1:18.04.18 [103 kB]
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-20-generic
Found initrd image: /boot/initrd.img-4.15.0-20-generic
done
Latest release is: 13.0.4. Current version is: 13.0.2.
New version available! Upgrade continues...
Checking latest released version on the Nextcloud download server and if it's possible to download...
nextcloud-13.0.4.tar.bz2 100%[=====================================================================>] 43.06M 11.5MB/s in 4.3s
Backing up files and upgrading to Nextcloud 13.0.4 in 10 seconds...
Press CTRL+C to abort.
Doing pgdump of nextcloud_db...
/var/scripts/nextcloud_update.sh: line 144: /var/NCBACKUP/nextclouddb.sql: No such file or directory
Backing up data...

Backup OK!
gpg: key D75899B9A724937A: 8 signatures not checked due to missing keys
gpg: key D75899B9A724937A: public key "Nextcloud Security security@nextcloud.com" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1
gpg: Signature made Mon 11 Jun 2018 04:29:35 PM +08
gpg: using RSA key D75899B9A724937A
gpg: Good signature from "Nextcloud Security security@nextcloud.com" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 2880 6A87 8AE4 23A2 8372 792E D758 99B9 A724 937A
/var/www/nextcloud-13.0.4.tar.bz2 exists
/var/NCBACKUP/config/ exists
/var/NCBACKUP/apps/ exists
/var/NCBACKUP/themes/ exists

All files are backed up.
Maintenance mode enabled
Removing old Nextcloud instance in 5 seconds...
[] Creating possible missing Directories
chmod Files and Directories
[-] chown Directories
[|] chmod/chown .htaccess
[/] Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Maintenance mode disabled
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Set log level to debug
Turned on maintenance mode
Updating database schema
Updated database
Updating ...
Updated to 1.1.1
Updating ...
Fix broken values of calendar objects

Done
0/0 [>---------------------------] 0%
Updated to 1.4.7
Checking for update of app activity in appstore
Checked for update of app "activity" in appstore
Checking for update of app admin_audit in appstore
Checked for update of app "admin_audit" in appstore
Checking for update of app admin_notifications in appstore
Update app admin_notifications from appstore
Checked for update of app "admin_notifications" in appstore
Checking for update of app announcementcenter in appstore
Update app announcementcenter from appstore
Add read permissions for existing announcements
Done
0/0 [>---------------------------] 0%
Checked for update of app "announcementcenter" in appstore
Checking for update of app calendar in appstore
Update app calendar from appstore
Checked for update of app "calendar" in appstore
Checking for update of app caniupdate in appstore
Update app caniupdate from appstore
Checked for update of app "caniupdate" in appstore
Checking for update of app comments in appstore
Checked for update of app "comments" in appstore
Checking for update of app contacts in appstore
Update app contacts from appstore
Checked for update of app "contacts" in appstore
Checking for update of app dav in appstore
Checked for update of app "dav" in appstore
Checking for update of app federatedfilesharing in appstore
Checked for update of app "federatedfilesharing" in appstore
Checking for update of app federation in appstore
Checked for update of app "federation" in appstore
Checking for update of app files in appstore
Checked for update of app "files" in appstore
Checking for update of app files_fulltextsearch in appstore
Update app files_fulltextsearch from appstore
Checked for update of app "files_fulltextsearch" in appstore
Checking for update of app files_pdfviewer in appstore
Checked for update of app "files_pdfviewer" in appstore
Checking for update of app files_sharing in appstore
Checked for update of app "files_sharing" in appstore
Checking for update of app files_texteditor in appstore
Checked for update of app "files_texteditor" in appstore
Checking for update of app files_trashbin in appstore
Checked for update of app "files_trashbin" in appstore
Checking for update of app files_versions in appstore
Checked for update of app "files_versions" in appstore
Checking for update of app firstrunwizard in appstore
Checked for update of app "firstrunwizard" in appstore
Checking for update of app fulltextsearch in appstore
Update app fulltextsearch from appstore
An unhandled exception has been thrown:
Error: Class 'OCA\FullTextSearch\AppInfo\Application' not found in /var/www/nextcloud/apps/fulltextsearch/lib/Settings/AdminSection.php:55
Stack trace:
#0 /var/www/nextcloud/lib/private/Settings/Manager.php(274): OCA\FullTextSearch\Settings\AdminSection->getID()
#1 /var/www/nextcloud/lib/private/Settings/Manager.php(236): OC\Settings\Manager->updateSection(Object(OCA\FullTextSearch\Settings\AdminSection), 'admin_sections')
#2 /var/www/nextcloud/lib/private/Settings/Manager.php(140): OC\Settings\Manager->setupSectionEntry('OCA\FullTextSea...', 'admin')
#3 /var/www/nextcloud/lib/private/legacy/app.php(1061): OC\Settings\Manager->setupSettings(Array)
#4 /var/www/nextcloud/lib/private/Installer.php(199): OC_App::updateApp('fulltextsearch')
#5 /var/www/nextcloud/lib/private/Updater.php(473): OC\Installer->updateAppstoreApp('fulltextsearch')
#6 /var/www/nextcloud/lib/private/Updater.php(277): OC\Updater->upgradeAppStoreApps(Array)
#7 /var/www/nextcloud/lib/private/Updater.php(139): OC\Updater->doUpgrade('13.0.4.0', '13.0.2.1')
#8 /var/www/nextcloud/core/Command/Upgrade.php(270): OC\Updater->upgrade()
#9 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(264): OC\Core\Command\Upgrade->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/nextcloud/3rdparty/symfony/console/Application.php(874): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/www/nextcloud/3rdparty/symfony/console/Application.php(228): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\Upgrade), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/nextcloud/3rdparty/symfony/console/Application.php(130): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /var/www/nextcloud/lib/private/Console/Application.php(173): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /var/www/nextcloud/console.php(90): OC\Console\Application->run()
#15 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
#16 {main}Sorry but something went wrong. Please report this issue to https://github.com/nextcloud/vm/issues and include the output of the error message. Thank you!
sudo -u www-data php /var/www/nextcloud/occ upgrade --no-app-disable failed

@enoch85
Copy link
Member

enoch85 commented Jun 12, 2018

Thanks for your report.

Please report the Netdata error to Netdata, the Nextcloud update error to Full Text Search.

Also, when reporting to Netdata, please include this:

configure: error: in /usr/src/netdata.git': configure: error: C compiler cannot create executables Seeconfig.log' for more details

And Full Text Search:

Error: Class 'OCA\FullTextSearch\AppInfo\Application' not found in /var/www/nextcloud/apps/fulltextsearch/lib/Settings/AdminSection.php:55

This has nothing to do with the scripts itself, rather the components it's trying to update.

@enoch85 enoch85 closed this as completed Jun 12, 2018
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

2 participants