Error 127 on run-test in https://docs.thetatoken.org/docs/setup

Asked by Kenneth Illingsworth

New to Ubuntu . . . Used Pi Imager ⇒ https://www.raspberrypi.org/software/ for this OS ==>
11 Jan 2021 ⇒
Description: Ubuntu 20.10
Release: 20.10
Codename: groovy

This step was OK ==>
spellbound@spellbound-desktop:~$ git clone --branch release https://github.com/thetatoken/theta-protocol-ledger.git $GOPATH/src/github.com/thetatoken/theta
Cloning into '/home/spellbound/go/src/github.com/thetatoken/theta'...
remote: Enumerating objects: 147, done.
remote: Counting objects: 100% (147/147), done.
remote: Compressing objects: 100% (98/98), done.
Receiving objects: 17% (2477/14193), 7.54 MiB | 7.53 MiB/s
remote: Total 14193 (delta 78), reused 96 (delta 47), pack-reused 14046
Receiving objects: 100% (14193/14193), 50.70 MiB | 9.26 MiB/s, done.
Resolving deltas: 100% (9421/9421), done.
Updating files: 100% (862/862), done.
spellbound@spellbound-desktop:~$
spellbound@spellbound-desktop:~$ export GO111MODULE=on
spellbound@spellbound-desktop:~$ cd $THETA_HOME

However, the test-run failed ==>
spellbound@spellbound-desktop:~/go/src/github.com/thetatoken/theta$ make install
go install ./cmd/...
make: go: No such file or directory
make: *** [Makefile:26: release] Error 127

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Kenneth Illingsworth
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Apparently you are missing the go compiler.

It seems to me that you skipped some steps in "Preparation" in https://docs.thetatoken.org/docs/setup

Revision history for this message
Kenneth Illingsworth (illingsk) said :
#2

I actually performed all preparation steps with copy/paste so as to avoid any typos. My only concern was if I was supposed to make some substitutions, but I just didn't see any . . . For example, upon encountering ==>

Next, clone the release branch of the Theta Ledger repo https://github.com/thetatoken/theta-protocol-ledger into your $GOPATH with the following command. The path should look like this: $GOPATH/src/github.com/thetatoken/theta

I just pasted this ==>
git clone --branch release https://github.com/thetatoken/theta-protocol-ledger.git $GOPATH/src/github.com/thetatoken/theta

I found that part confusing . . .

Revision history for this message
Kenneth Illingsworth (illingsk) said :
#3

I retried all from scratch, and this time used ==>
$ GOPATH/src/github.com/thetatoken/theta

The results did change somewhat, but did run into another error ==>

spellbound@spellbound-desktop:~$ $GOPATH/src/github.com/thetatoken/theta
bash: /home/spellbound/go/src/github.com/thetatoken/theta: Is a directory
spellbound@spellbound-desktop:~$ export GO111MODULE=on
spellbound@spellbound-desktop:~$ cd $THETA_HOME
spellbound@spellbound-desktop:~/go/src/github.com/thetatoken/theta$ make install
go install ./cmd/...
/usr/local/go/bin/go: 1: ELF: not found
/usr/local/go/bin/go: 1: �X$: not found
/usr/local/go/bin/go: 2:��J��Jn�
                               �: not found
/usr/local/go/bin/go: 1: M�: not found
/usr/local/go/bin/go: 2: @%: not found
/usr/local/go/bin/go: 4:O: not found
/usr/local/go/bin/go: 2: Syntax error: word unexpected (expecting ")")
make: *** [Makefile:26: release] Error 2
spellbound@spellbound-desktop:~/go/src/github.com/thetatoken/theta$

Revision history for this message
Kenneth Illingsworth (illingsk) said :
#4

I did notice this after ==> sudo apt-get update
Updating from such a repository can’t be done securely, and is therefore disabled by default.
See apt-secure(8) manpage for repository creation and user configuration details

Might this be an associated problem ?

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

1. For the error message with the repository:
Provide the full output that you receive for the command
sudo apt update

2. For the problems with make:
I suggest that you re-start from scratch. Do not change "$GOPATH" to "$ GOPATH".
If you run into a problem, then you better copy/paste the full output into this question document that we can check.

Revision history for this message
Kenneth Illingsworth (illingsk) said :
#6

Hate to be a pain, but here is the result from the 1st line ==>

spellbound@spellbound-desktop:~$ sudo apt-get update
[sudo] password for spellbound:
Sorry, try again.
[sudo] password for spellbound:
Hit:1 http://ports.ubuntu.com/ubuntu-ports groovy InRelease
Ign:2 http://ppa.launchpad.net/mc3man/trusty-media/ubuntu groovy InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports groovy-updates InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports groovy-backports InRelease
Hit:5 http://ppa.launchpad.net/strukturag/libde265/ubuntu groovy InRelease
Hit:6 http://ports.ubuntu.com/ubuntu-ports groovy-security InRelease
Err:7 http://ppa.launchpad.net/mc3man/trusty-media/ubuntu groovy Release
  404 Not Found [IP: 91.189.95.85 80]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu groovy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
spellbound@spellbound-desktop:~$

Revision history for this message
Kenneth Illingsworth (illingsk) said :
#7

My motivation is to abandon Microsoft Windows due to what deranged William Henry Gates III is currently up to. A fully updated Win10 laptop with 8GB RAM and 64-bit architecture is the platform that's currently running Theta Guardian and Edge Node., and disk IO is somewhat of a bottleneck.

I overlooked the results of the sudo apt update command initially because I have several Pi3B platforms featuring the Raspbien OS where sudo apt upgrade and sudo apt update commands never result in any faults.

Since my Pi4B only has 4GB RAM,I'm in the process of setting up a Pi4B with 8GB RAM which might prove necessary. As for disk IO, I already have a Synology DS1515+ NAS set up in case that kind of disk IO is necessary for the Theta applications. I tend to suspect that some parts of this project will nolt be automatically incorporated, Ethernet cables are providing all of the connectivity though.

Revision history for this message
Kenneth Illingsworth (illingsk) said :
#8

I tried a different approach by consulting https://github.com/thetatoken/guardian-mainnet-guide/blob/master/docs/CLI.md#running-a-guardian-node-through-command-line

1st attempt indicated I needed ==> sudo apt install curl . . .

Here is the log from the 2nd attempt ==>
spellbound@spellbound-desktop:~$ screen -S theta_mainnet # if you run the node on a Linux server
Command 'screen' not found, but can be installed with:
sudo apt install screen
spellbound@spellbound-desktop:~$ mkdir ~/theta_mainnet
mkdir: cannot create directory ‘/home/spellbound/theta_mainnet’: File exists
spellbound@spellbound-desktop:~$ cd ~/theta_mainnet
spellbound@spellbound-desktop:~/theta_mainnet$ mkdir bin
mkdir: cannot create directory ‘bin’: File exists
spellbound@spellbound-desktop:~/theta_mainnet$ mkdir -p guardian_mainnet/node
spellbound@spellbound-desktop:~/theta_mainnet$ curl -k --output bin/theta `curl -k 'https://mainnet-data.thetatoken.org/binary?os=linux&name=theta'`
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 60 100 60 0 0 461 0 --:--:-- --:--:-- --:--:-- 465
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 36.7M 100 36.7M 0 0 10.0M 0 0:00:03 0:00:03 --:--:-- 10.0M
spellbound@spellbound-desktop:~/theta_mainnet$ curl -k --output bin/thetacli `curl -k 'https://mainnet-data.thetatoken.org/binary?os=linux&name=thetacli'`
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 63 100 63 0 0 500 0 --:--:-- --:--:-- --:--:-- 504
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 26.3M 100 26.3M 0 0 9.7M 0 0:00:02 0:00:02 --:--:-- 9.7M
spellbound@spellbound-desktop:~/theta_mainnet$ wget -O guardian_mainnet/node/snapshot `curl -k https://mainnet-data.thetatoken.org/snapshot`
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 146 100 146 0 0 52 0 0:00:02 0:00:02 --:--:-- 52
--2021-03-04 17:50:11-- https://drzm1v2r1c2e3.cloudfront.net/snapshot/theta_snapshot-9424852-0x19b5ece46f472af416713f9b2f015b0b1492361d77840d1c7d834cda427628a6-2021-03-04
Resolving drzm1v2r1c2e3.cloudfront.net (drzm1v2r1c2e3.cloudfront.net)... 13.226.38.95, 13.226.38.60, 13.226.38.125, ...
Connecting to drzm1v2r1c2e3.cloudfront.net (drzm1v2r1c2e3.cloudfront.net)|13.226.38.95|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1123716906 (1.0G) [binary/octet-stream]
Saving to: ‘guardian_mainnet/node/snapshot’

guardian_mainnet/no 100%[===================>] 1.05G 10.7MB/s in 1m 41s

2021-03-04 17:51:52 (10.7 MB/s) - ‘guardian_mainnet/node/snapshot’ saved [1123716906/1123716906]

spellbound@spellbound-desktop:~/theta_mainnet$ curl -k --output guardian_mainnet/node/config.yaml `curl -k 'https://mainnet-data.thetatoken.org/config?is_guardian=true'`
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 69 100 69 0 0 385 0 --:--:-- --:--:-- --:--:-- 385
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 403 100 403 0 0 2004 0 --:--:-- --:--:-- --:--:-- 2004
spellbound@spellbound-desktop:~/theta_mainnet$ chmod +x bin/theta
spellbound@spellbound-desktop:~/theta_mainnet$ chmod +x bin/thetacli
spellbound@spellbound-desktop:~/theta_mainnet$ cd bin/
spellbound@spellbound-desktop:~/theta_mainnet/bin$ ./theta start --config=../guardian_mainnet/node
bash: ./theta: cannot execute binary file: Exec format error
spellbound@spellbound-desktop:~/theta_mainnet/bin$

The Theta Guardian application appears ready to go, but the lauch command appears to have a problem. Is there an alternative that can avoid ==> bash: ./theta: cannot execute binary file: Exec format error
???

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

One after the other:

1.
E: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu groovy Release' does not have a Release file.

The Personal Package Archive ppa:mc3man/trusty-media only provides software for Ubuntu trusty, but you are running Ubuntu groovy. You have to disable this source by deleting the related file from the directory /etc/apt/sources.list.d/ (the file name probably is something like mc3man_trusty-media_trusty.list)

2.
cannot execute binary file: Exec format error

Are you running this on a Raspberry Pi? What you have downloaded most probably is an executable file for intel/amd x86 CPUs. This does not work, and you need an executable for RPI's arm CPU architecture.

3. What to do?
a. You should try looking on web pages of thetatoken for instructions how to do this on a RPI
b. You could try going back to the https://docs.thetatoken.org/docs/setup instructions and follow them in a modifies way. There is no use downloading the amd64 version of the go compiler, but you should try with the go compiler provided by Ubuntu (golang-1.15). This of course then requires modifications on the "export GOROOT" and eventually other statements.

Revision history for this message
Kenneth Illingsworth (illingsk) said :
#10

This sounds like really professional advice . . . Kind of complicated for yours truly, but I'll do my best. I'd be a lot more confident with hands on coaching with something that looks very useful albeit complicated, but I suspect that hands-on coaching is not at all available in my area.

Revision history for this message
Kenneth Illingsworth (illingsk) said :
#11

spellbound@spellbound-desktop:/etc/apt/sources.list.d$ rm mc3man-ubuntu-trusty-media-groovy.list
rm: remove write-protected regular file 'mc3man-ubuntu-trusty-media-groovy.list'? y
rm: cannot remove 'mc3man-ubuntu-trusty-media-groovy.list': Permission denied
spellbound@spellbound-desktop:/etc/apt/sources.list.d$ sudo rm mc3man-ubuntu-trusty-media-groovy.list
[sudo] password for spellbound:
spellbound@spellbound-desktop:/etc/apt/sources.list.d$ ls
strukturag-ubuntu-libde265-groovy.list
spellbound@spellbound-desktop:/etc/apt/sources.list.d$

Step one looks good . . .

Revision history for this message
Kenneth Illingsworth (illingsk) said :
#12

Setting up a new Guardian Node and Staking ; https://theta-labs.helpscoutdocs.com/article/5-setting-up-a-new-guardian-node

You can find information on running a Guardian Node and staking here: https://docs.thetatoken.org/docs/guardian-node-overview

The minimum hardware requirements are:
Internet speed: 5Mbps+ up and down
CPU: 4 cores or more
Memory: 8 GBytes or more

Ending this thread because the 8GB Pi4B won't be here for a bout two more weeks.

TYVM for your time . . .