wget on Ubuntu server fails

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Post Reply
timb
Posts: 11
Joined: Sat Mar 23, 2019 7:21 pm

wget on Ubuntu server fails

Post by timb » Wed Feb 24, 2021 8:44 am

Hi,

no problem with network, DNS, etc. Server version is 18.04 bare metal on a Proliant DL380 G6

Here is the output from the install command:

root@ubuntu-srv-eve:~# wget -O - https://www.eve-ng.net/repo-bionic/install-eve-pro.sh | bash -i
root@ubuntu-srv-eve:~#
Redirecting output to ‘wget-log’.
#!/bin/sh
root@ubuntu-srv-eve:~#
root@ubuntu-srv-eve:~# # On Azure attach data disk
root@ubuntu-srv-eve:~# azure_disk_tune () {
> ls -l /dev/disk/by-id/ | grep -q sdc && (
> echo o # Create a new empty DOS partition table
> echo n # Add a new partition
> echo p # Primary partition
> echo 1 # Partition number
> echo # First sector (Accept default: 1)
> echo # Last sector (Accept default: varies)
> echo w # Write changes
> ) | sudo fdisk /dev/sdc && (
> mke2fs -F /dev/sdc1
> echo "/dev/sdc1" /opt/ext4defaults,discard0 0 " >> /etc/fstab
> mount /opt
> )
> }
>
> uname -a | grep -q -- "-azure " && azure_disk_tune
>
> #Modify /etc/ssh/sshd_config with: PermitRootLogin yes
> sed -i -e "s/.*PermitRootLogin .*/PermitRootLogin yes/" /etc/ssh/sshd_config
> wget -O - http://www.eve-ng.net/repo-bionic/eczem ... om.gpg.key | sudo apt-key add -
> apt-get update
> apt-get -y install software-properties-common
> #sudo add-apt-repository "deb [arch=amd64] http://www.eve-ng.net/repo-testing xenial main"
> echo "deb [arch=amd64] http://www.eve-ng.net/repo-bionic bionic main" > /etc/apt/sources.list.d/eve-ng.list
> apt-get update
> DEBIAN_FRONTEND=noninteractive apt-get -y docker-ce
> DEBIAN_FRONTEND=noninteractive apt-get -y install eve-ng-pro
> /etc/init.d/mysql restart
> DEBIAN_FRONTEND=noninteractive apt-get -y install eve-ng-pro
> rm -fr /var/lib/docker/aufs
> DEBIAN_FRONTEND=noninteractive apt-get -y install eve-ng-pro
> #cp /lib/firmware/bnx2/*.fw /lib/firmware/4.9.40-eve-ng-uksm-2+/bnx2/
>
> # Detect cloud
>
>
> gcp_tune () {
> sed -i -e 's/NAME="ens.*/NAME="eth0"/' /etc/udev/rules.d/70-persistent-net.rules
> sed -i -e 's/ens4/eth0/' /etc/netplan/50-cloud-init.yaml
> sed -i -e 's/PasswordAuthentication.*/PasswordAuthentication yes/' /etc/ssh/sshd_config
> apt-mark hold linux-image-gcp
> mv /boot/vmlinuz-*gcp /root
> update-grub2
> }
>
> azure_kernel_tune () {
> apt update
> #apt install linux-image-4.20.17-eve-ng-azure+
> echo "options kvm_intel nested=1 vmentry_l1d_flush=never" > /etc/modprobe.d/qemu-system-x86.conf
> sed -i -e 's/PasswordAuthentication.*/PasswordAuthentication yes/' /etc/ssh/sshd_config
> sudo -i
> }
>
>
> # GCP
> dmidecode -t bios | grep -q Google && gcp_tune
>
> # Azure
>
> uname -a | grep -q -- "-azure " && azure_kernel_tune
> bash: unexpected EOF while looking for matching `''
bash: syntax error: unexpected end of file
root@ubuntu-srv-eve:~# exit

Uldis (UD)
Posts: 5084
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: wget on Ubuntu server fails

Post by Uldis (UD) » Wed Feb 24, 2021 12:48 pm

DNS is not ok,
simply

and use eve pro cookbook to setup bare please
not the GCP steps

timb
Posts: 11
Joined: Sat Mar 23, 2019 7:21 pm

Re: wget on Ubuntu server fails

Post by timb » Wed Feb 24, 2021 4:07 pm

Thanks for the reply, but I am following the pro cookbook, version 4.6

3.3.2 EVE Professional Installation Phase 2
Step 30: Launch EVE-PRO Internet installation

wget -O - https://www.eve-ng.net/repo-bionic/install-eve-pro.sh | bash -i

No idea why it is looking for anything on GCP. I have local server

DNS servers are Google public and I have also used Cloudflare at 1.1.1.1

root@ubuntu-srv-eve:~# ping www.google.com
PING www.google.com (216.58.200.100) 56(84) bytes of data.
64 bytes from syd09s14-in-f4.1e100.net (216.58.200.100): icmp_seq=1 ttl=115 time=41.1 ms
64 bytes from syd09s14-in-f4.1e100.net (216.58.200.100): icmp_seq=2 ttl=115 time=41.0 ms
64 bytes from syd09s14-in-f4.1e100.net (216.58.200.100): icmp_seq=3 ttl=115 time=40.8 ms
64 bytes from syd09s14-in-f4.1e100.net (216.58.200.100): icmp_seq=4 ttl=115 time=40.9 ms
64 bytes from syd09s14-in-f4.1e100.net (216.58.200.100): icmp_seq=5 ttl=115 time=41.0 ms
64 bytes from syd09s14-in-f4.1e100.net (216.58.200.100): icmp_seq=6 ttl=115 time=40.8 ms
64 bytes from syd09s14-in-f4.1e100.net (216.58.200.100): icmp_seq=7 ttl=115 time=41.1 ms
^C
--- www.google.com ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6010ms
rtt min/avg/max/mdev = 40.853/40.998/41.129/0.106 ms
root@ubuntu-srv-eve:~# ping trademe.co.nz
PING trademe.co.nz (151.101.130.137) 56(84) bytes of data.
64 bytes from 151.101.130.137 (151.101.130.137): icmp_seq=1 ttl=60 time=6.33 ms
64 bytes from 151.101.130.137 (151.101.130.137): icmp_seq=2 ttl=60 time=6.30 ms
64 bytes from 151.101.130.137 (151.101.130.137): icmp_seq=3 ttl=60 time=6.33 ms
64 bytes from 151.101.130.137 (151.101.130.137): icmp_seq=4 ttl=60 time=6.34 ms
64 bytes from 151.101.130.137 (151.101.130.137): icmp_seq=5 ttl=60 time=6.33 ms
64 bytes from 151.101.130.137 (151.101.130.137): icmp_seq=6 ttl=60 time=6.35 ms
^C
--- trademe.co.nz ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5008ms
rtt min/avg/max/mdev = 6.305/6.333/6.350/0.014 ms
root@ubuntu-srv-eve:~# ping cnn.com
PING cnn.com (151.101.129.67) 56(84) bytes of data.
64 bytes from 151.101.129.67 (151.101.129.67): icmp_seq=1 ttl=60 time=5.70 ms
64 bytes from 151.101.129.67 (151.101.129.67): icmp_seq=2 ttl=60 time=5.66 ms
64 bytes from 151.101.129.67 (151.101.129.67): icmp_seq=3 ttl=60 time=5.57 ms
64 bytes from 151.101.129.67 (151.101.129.67): icmp_seq=4 ttl=60 time=5.58 ms
64 bytes from 151.101.129.67 (151.101.129.67): icmp_seq=5 ttl=60 time=5.58 ms
64 bytes from 151.101.129.67 (151.101.129.67): icmp_seq=6 ttl=60 time=5.60 ms
64 bytes from 151.101.129.67 (151.101.129.67): icmp_seq=7 ttl=60 time=5.65 ms
64 bytes from 151.101.129.67 (151.101.129.67): icmp_seq=8 ttl=60 time=5.76 ms
^C
--- cnn.com ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7012ms
rtt min/avg/max/mdev = 5.574/5.640/5.762/0.105 ms

Thanks

timb
Posts: 11
Joined: Sat Mar 23, 2019 7:21 pm

Re: wget on Ubuntu server fails

Post by timb » Wed Feb 24, 2021 8:06 pm

I resolved this by downloading the script and running what was needed manually. The wget command in the cookbook does not seem to work. At least it did not for me.

Uldis (UD)
Posts: 5084
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: wget on Ubuntu server fails

Post by Uldis (UD) » Wed Feb 24, 2021 8:42 pm

it works,
you copy it our from pdf to notepad
and then to cli

Code: Select all

wget -O - https://www.eve-ng.net/repo-bionic/install-eve-pro.sh | bash -i

Post Reply