danb35 / freenas-iocage-nextcloud

Script to create an iocage jail on FreeNAS for the latest Nextcloud 28 release, including Caddy, MariaDB or PostgreSQL, and Let's Encrypt
GNU General Public License v3.0
252 stars 71 forks source link

The Nextcloud download is corrupt #141

Closed joshL-Dev closed 3 years ago

joshL-Dev commented 3 years ago

Good Day!

I'm having an issue executing the script, everything is set up correctly having a dataset with 4 sub sets and this is my config:

JAIL_IP="192.168.0.XX"
DEFAULT_GW_IP="192.168.0.XX"
POOL_PATH="/mnt/Storage"
TIME_ZONE="America/Denver"
HOST_NAME="X.com"
STANDALONE_CERT=1

but at the end of the install i'm getting the following message:

GPG Signature Verification Failed!
The Nextcloud download is corrupt.

Not sure if I failed somewhere or not. The Exact Pathing for nextcloud datasets are /mnt/Storage/nextcloud (/files, /config, /themes, /db).

If you need additional info or if i can modify the script to make it quick and easy to fix as i'm assumign its just an outdated nextcloud link or something let me know :).

danb35 commented 3 years ago

A few more lines before the error message would be helpful--it indicates that either the download failed entirely, or it was corrupted somehow.

joshL-Dev commented 3 years ago

No Problem,

Here you go!

o: downloading github.com/russross/blackfriday v1.5.2
go: downloading github.com/russross/blackfriday/v2 v2.0.1
go: downloading golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
go: downloading go.opencensus.io v0.22.3
go: downloading github.com/google/go-cmp v0.5.0
go: downloading github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e
2020/08/26 16:50:57 [INFO] Build complete: /usr/local/bin/caddy
^M/tmp/nextcloud.asc                              0% of 3100  B    0  Bps^M/tmp>
gpg: Warning: using insecure memory!
gpg: directory '/root/.gnupg' created
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key D75899B9A724937A: public key "Nextcloud Security <security@nextcloud.c>
gpg: Total number processed: 1
gpg:               imported: 1
gpg: Warning: using insecure memory!
gpg: assuming signed data in '/tmp/latest-19.tar.bz2'
gpg: Signature made Wed Aug 26 10:53:30 2020 PDT
gpg:                using RSA key 8B5274AEE6EC9C06B0DDAA96130DAB86D3FB356C
gpg: Can't check signature: No public key
joshL-Dev commented 3 years ago

Let's Try this again, I need to start SSH because the shell command in Freenas sucks for copy/pasta-ing. Here's the full log.

Script started on Wed Aug 26 16:41:55 2020
Command: ./nextcloud-jail.sh
JAIL_INTERFACES not set, defaulting to: vnet0:bridge0
nextcloud successfully created!

Testing Host DNS response to pkg.freebsd.org
Testing nextcloud's SRV response to pkg.freebsd.org
Testing nextcloud's DNSSEC response to pkg.freebsd.org

Installing pkg... 

Installing supplied packages:
  - nano... 
  - sudo... 
  - redis... 
===> Creating groups.
Creating group 'redis' with gid '535'.
===> Creating users
Creating user 'redis' with uid '535'.
=====
Message from redis-5.0.9:

--
To setup "redis" you need to edit the configuration file:
      /usr/local/etc/redis.conf

      To run redis from startup, add redis_enable="YES"
      in your /etc/rc.conf.
  - php74-ctype... 
=====
Message from php74-ctype-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-ctype.ini
  - gnupg... 
===> Creating groups.
Creating group '_tss' with gid '601'.
===> Creating users
Creating user '_tss' with uid '601'.
===> Creating groups.
Using existing group '_tss'.
===> Creating users
Using existing user '_tss'.
=====
Message from ca_root_nss-3.55:

--
FreeBSD does not, and can not warrant that the certification authorities
whose certificates are included in this package have in any way been
audited for trustworthiness or RFC 3647 compliance.

Assessment and verification of trust is the complete responsibility of the
system administrator.

This package installs symlinks to support root certificates discovery by
default for software that uses OpenSSL.

This enables SSL Certificate Verification by client software without manual
intervention.

If you prefer to do this manually, replace the following symlinks with
either an empty file or your site-local certificate bundle.

  * /etc/ssl/cert.pem
  * /usr/local/etc/ssl/cert.pem
  * /usr/local/openssl/cert.pem
=====
Message from trousers-0.3.14_3:

--
To run tcsd automatically, add the following line to /etc/rc.conf:

tcsd_enable="YES"

You might want to edit /usr/local/etc/tcsd.conf to reflect your setup.

If you want to use tcsd with software TPM emulator, use the following
configuration in /etc/rc.conf:

tcsd_enable="YES"
tcsd_mode="emulator"
tpmd_enable="YES"

To use TPM, add your_account to '_tss' group like following:

# pw groupmod _tss -m your_account
=====
Message from gnupg-2.2.20:

--
GnuPG, when run on hosts without IPv6 connectivity, may fail to connect to
dual-stack hkp servers [1].  As a workaround, add

disable-ipv6

to

/usr/local/etc/dirmngr.conf

[1] https://dev.gnupg.org/rGecfc4db3a2f8bc2652ba4ac4de5ca1cd13bfcbec
  - bash... 
  - go... 
  - git... 
===> Creating groups.
Creating group 'git_daemon' with gid '964'.
===> Creating users
Creating user 'git_daemon' with uid '964'.
=====
Message from perl5-5.30.3:

--
The /usr/bin/perl symlink has been removed starting with Perl 5.20.
For shebangs, you should either use:

#!/usr/local/bin/perl

or

#!/usr/bin/env perl

The first one will only work if you have a /usr/local/bin/perl,
the second will work as long as perl is in PATH.
=====
Message from apr-1.7.0.1.6.1_1:

--
The Apache Portable Runtime project removed support for FreeTDS with
version 1.6. Users requiring MS-SQL connectivity must migrate
configurations to use the added ODBC driver and FreeTDS' ODBC features.
=====
Message from python37-3.7.8:

--
Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:

py37-gdbm       databases/py-gdbm@py37
py37-sqlite3    databases/py-sqlite3@py37
py37-tkinter    x11-toolkits/py-tkinter@py37
=====
Message from git-2.27.0:

--
If you installed the GITWEB option please follow these instructions:

In the directory /usr/local/share/examples/git/gitweb you can find all files to
make gitweb work as a public repository on the web.

All you have to do to make gitweb work is:
1) Please be sure you're able to execute CGI scripts in
   /usr/local/share/examples/git/gitweb.
2) Set the GITWEB_CONFIG variable in your webserver's config to
   /usr/local/etc/git/gitweb.conf. This variable is passed to gitweb.cgi.
3) Restart server.

If you installed the CONTRIB option please note that the scripts are
installed in /usr/local/share/git-core/contrib. Some of them require
other ports to be installed (perl, python, etc), which you may need to
install manually.
  - php74-dom... 
=====
Message from php74-dom-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-dom.ini
  - php74-gd... 
Running fc-cache to build fontconfig cache...
Font directories:
    /usr/local/share/fonts
    /usr/local/lib/X11/fonts
/usr/local/share/fonts: skipping, no such directory
/usr/local/lib/X11/fonts: skipping, no such directory
/var/db/fontconfig: cleaning cache directory
fc-cache: succeeded
=====
Message from freetype2-2.10.2:

--
The 2.7.x series now uses the new subpixel hinting mode (V40 port's option) as
the default, emulating a modern version of ClearType. This change inevitably
leads to different rendering results, and you might change port's options to
adapt it to your taste (or use the new "FREETYPE_PROPERTIES" environment
variable).

The environment variable "FREETYPE_PROPERTIES" can be used to control the
driver properties. Example:

FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
    cff:no-stem-darkening=1 \
    autofitter:warping=1

This allows to select, say, the subpixel hinting mode at runtime for a given
application.

If LONG_PCF_NAMES port's option was enabled, the PCF family names may include
the foundry and information whether they contain wide characters. For example,
"Sony Fixed" or "Misc Fixed Wide", instead of "Fixed". This can be disabled at
run time with using pcf:no-long-family-names property, if needed. Example:

FREETYPE_PROPERTIES=pcf:no-long-family-names=1

How to recreate fontconfig cache with using such environment variable,
if needed:
# env FREETYPE_PROPERTIES=pcf:no-long-family-names=1 fc-cache -fsv

The controllable properties are listed in the section "Controlling FreeType
Modules" in the reference's table of contents
(/usr/local/share/doc/freetype2/reference/site/index.html, if documentation was installed).
=====
Message from php74-gd-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-gd.ini
  - php74-iconv... 
=====
Message from php74-iconv-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-iconv.ini
  - php74-json... 
=====
Message from php74-json-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-json.ini
  - php74-mbstring... 
=====
Message from php74-mbstring-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-mbstring.ini
  - php74-posix... 
=====
Message from php74-posix-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-posix.ini
  - php74-simplexml... 
=====
Message from php74-simplexml-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-simplexml.ini
  - php74-xmlreader... 
=====
Message from php74-xmlreader-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-xmlreader.ini
  - php74-xmlwriter... 
=====
Message from php74-xmlwriter-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-xmlwriter.ini
  - php74-zip... 
=====
Message from php74-zip-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-zip.ini
  - php74-zlib... 
=====
Message from php74-zlib-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-zlib.ini
  - php74-xml... 
=====
Message from php74-xml-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-xml.ini
  - php74... 
The most recent versions of packages are already installed
  - php74-pecl-redis... 
=====
Message from php74-session-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-18-session.ini
=====
Message from php74-pecl-redis-5.3.0_1:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-30-redis.ini
  - php74-session... 
The most recent versions of packages are already installed
  - php74-xsl... 
=====
Message from php74-xsl-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-30-xsl.ini
  - php74-filter... 
=====
Message from php74-filter-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-filter.ini
  - php74-pecl-APCu... 
=====
Message from php74-pecl-APCu-5.1.18:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-apcu.ini
  - php74-curl... 
=====
Message from php74-curl-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-curl.ini
  - php74-fileinfo... 
=====
Message from php74-fileinfo-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-fileinfo.ini
  - php74-bz2... 
=====
Message from php74-bz2-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-bz2.ini
  - php74-intl... 
=====
Message from php74-intl-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-intl.ini
  - php74-openssl... 
=====
Message from php74-openssl-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-openssl.ini
  - php74-ldap... 
=====
Message from openldap-client-2.4.50:

--
The OpenLDAP client package has been successfully installed.

Edit
  /usr/local/etc/openldap/ldap.conf
to change the system-wide client defaults.

Try `man ldap.conf' and visit the OpenLDAP FAQ-O-Matic at
  http://www.OpenLDAP.org/faq/index.cgi?file=3
for more information.
=====
Message from php74-ldap-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-ldap.ini
  - php74-ftp... 
=====
Message from php74-ftp-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-ftp.ini
  - php74-imap... 
=====
Message from cclient-2007f_4,1:

--
Warning: You have chosen to include SSL support. Applications/ports that use
the cclient library but do not support SSL may stop working or have problems
linking. Linking them explicitly with ssl (-lssl -lcrypto) may or may not help.
--
===>   NOTICE:

The cclient port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port
=====
Message from php74-imap-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-30-imap.ini
  - php74-exif... 
=====
Message from php74-exif-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-exif.ini
  - php74-gmp... 
=====
Message from php74-gmp-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-gmp.ini
  - php74-pecl-memcache... 
=====
Message from php74-pecl-memcache-4.0.5.2:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-30-memcache.ini
  - php74-pecl-imagick... 
No schema files found: doing nothing.
===> Creating groups.
Creating group 'messagebus' with gid '556'.
===> Creating users
Creating user 'messagebus' with uid '556'.
===> Creating groups.
Creating group 'avahi' with gid '558'.
===> Creating users
Creating user 'avahi' with uid '558'.
===> Creating groups.
Creating group 'cups' with gid '193'.
===> Creating users
Creating user 'cups' with uid '193'.
=====
Message from ghostscript9-agpl-base-9.52_5:

--
This package installs a script named dvipdf that depends on dvips.  If you
want to use this script you need to install print/tex-dvipsk.
=====
Message from libwmf-nox11-0.2.8.4_15:

--
===>   NOTICE:

The libwmf-nox11 port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port
=====
Message from liblqr-1-0.4.2:

--
NOTE: In order to compile examples for liblqr, you will
also need pngwriter port (/usr/ports/graphics/pngwriter).
Examples are located in /usr/local/share/examples/liblqr-1
=====
Message from php74-pecl-imagick-3.4.4:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-imagick.ini
  - php74-pecl-smbclient... 
=====
Message from libinotify-20180201_2:

--
Libinotify functionality on FreeBSD is missing support for

  - detecting a file being moved into or out of a directory within the
    same filesystem
  - certain modifications to a symbolic link (rather than the
    file it points to.)

in addition to the known limitations on all platforms using kqueue(2)
where various open and close notifications are unimplemented.

This means the following regression tests will fail:

Directory notifications:
   IN_MOVED_FROM
   IN_MOVED_TO

Open/close notifications:
   IN_OPEN
   IN_CLOSE_NOWRITE
   IN_CLOSE_WRITE

Symbolic Link notifications:
   IN_DONT_FOLLOW
   IN_ATTRIB
   IN_MOVE_SELF
   IN_DELETE_SELF

Kernel patches to address the missing directory and symbolic link
notifications are available from:

https://github.com/libinotify-kqueue/libinotify-kqueue/tree/master/patches

You might want to consider increasing the kern.maxfiles tunable if you plan
to use this library for applications that need to monitor activity of a lot
of files.
=====
Message from gamin-0.1.10_10:

--
Gamin will only provide realtime notification of changes for at most n files,
where n is the minimum value between (kern.maxfiles * 0.7) and
(kern.maxfilesperproc - 200). Beyond that limit, files will be polled.

If you often open several large folders with Nautilus, you might want to
increase the kern.maxfiles tunable (you do not need to set
kern.maxfilesperproc, since it is computed at boot time from kern.maxfiles).

The behavior of gamin can be controlled via the various gaminrc files.
See http://www.gnome.org/~veillard/gamin/config.html on how to create
these files.  In particular, if you find gam_server is taking up too much
CPU time polling for changes, something like the following may help
in one of the gaminrc files:

# reduce polling frequency to once per 10 seconds
# for UFS file systems in order to lower CPU load
fsset ufs poll 10
--
===>   NOTICE:

The gamin port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port
=====
Message from samba410-4.10.15:

--
How to start: http://wiki.samba.org/index.php/Samba4/HOWTO

* Your configuration is: /usr/local/etc/smb4.conf

* All the relevant databases are under: /var/db/samba4

* All the logs are under: /var/log/samba4

* Provisioning script is: /usr/local/bin/samba-tool

For additional documentation check: http://wiki.samba.org/index.php/Samba4

Bug reports should go to the: https://bugzilla.samba.org/
=====
Message from php74-pecl-smbclient-1.0.0_1:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-smbclient.ini
  - php74-opcache... 
=====
Message from php74-opcache-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-10-opcache.ini
  - php74-pcntl... 
=====
Message from php74-pcntl-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-pcntl.ini
  - php74-bcmath... 
=====
Message from php74-bcmath-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-bcmath.ini
  - php74-pecl-APCu... 
The most recent versions of packages are already installed
  - perl5... 
The most recent versions of packages are already installed
  - p5-Locale-gettext... 
  - help2man... 
  - texinfo... 
  - m4... 
  - autoconf... 
No default gateway found for ipv6.
* Starting nextcloud
  + Started OK
  + Using devfs_ruleset: 5
  + Configuring VNET OK
  + Using IP options: vnet
  + Starting services OK
  + Executing poststart OK
Successfully added mount to nextcloud's fstab
Successfully added mount to nextcloud's fstab
Successfully added mount to nextcloud's fstab
Successfully added mount to nextcloud's fstab
Successfully added mount to nextcloud's fstab
===> Creating groups.
Creating group 'mysql' with gid '88'.
===> Creating users
Creating user 'mysql' with uid '88'.
===> Creating homedir(s)
=====
Message from boost-libs-1.72.0_2:

--
You have built the Boost library with thread support.

Don't forget to add -pthread to your linker options when
linking your code.
=====
Message from mariadb103-client-10.3.23:

--
MariaDB respects hier(7) and doesn't check /etc and /etc/mysql for
my.cnf. Please move existing my.cnf files from those paths to
/usr/local/etc and /usr/local/etc/mysql.
=====
Message from galera-25.3.30:

--
Find the Galera Cluster documentation at
http://galeracluster.com/documentation-webpages/
=====
Message from php74-pdo-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-pdo.ini
=====
Message from mariadb103-server-10.3.23:

--
MariaDB respects hier(7) and doesn't check /etc and /etc/mysql for
my.cnf. Please move existing my.cnf files from those paths to
/usr/local/etc and /usr/local/etc/mysql.

This port does NOT include the mytop perl script, this is included in
the MariaDB tarball but the most recent version can be found in the
databases/mytop port
=====
Message from php74-pdo_mysql-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-30-pdo_mysql.ini
=====
Message from php74-mysqli-7.4.9:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-mysqli.ini
2020/08/26 16:49:52 [INFO] Temporary folder: /tmp/buildenv_2020-08-26-1649.092330058
2020/08/26 16:49:52 [INFO] Writing main module: /tmp/buildenv_2020-08-26-1649.092330058/main.go
2020/08/26 16:49:52 [INFO] Initializing Go module
2020/08/26 16:49:52 [INFO] exec (timeout=10s): /usr/local/bin/go mod init caddy 
go: creating new go.mod: module caddy
2020/08/26 16:49:52 [INFO] Pinning versions
2020/08/26 16:49:52 [INFO] exec (timeout=0s): /usr/local/bin/go get -d -v github.com/caddyserver/caddy/v2 
go: downloading github.com/caddyserver/caddy v1.0.5
go: downloading github.com/caddyserver/caddy/v2 v2.1.1
go: github.com/caddyserver/caddy/v2 upgrade => v2.1.1
go: downloading go.uber.org/zap v1.15.0
go: downloading github.com/caddyserver/certmagic v0.11.2
go: downloading golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9
go: downloading github.com/go-acme/lego/v3 v3.7.0
go: downloading go.uber.org/atomic v1.6.0
go: downloading go.uber.org/multierr v1.5.0
go: downloading golang.org/x/sys v0.0.0-20200413165638-669c56c373c4
go: downloading github.com/miekg/dns v1.1.27
go: downloading golang.org/x/net v0.0.0-20200625001655-4c5254603344
go: downloading github.com/klauspost/cpuid v1.3.0
go: downloading github.com/cenkalti/backoff/v4 v4.0.0
go: downloading gopkg.in/square/go-jose.v2 v2.4.0
go: downloading golang.org/x/text v0.3.2
2020/08/26 16:50:09 [INFO] Build environment ready
2020/08/26 16:50:09 [INFO] Building Caddy
2020/08/26 16:50:09 [INFO] exec (timeout=0s): /usr/local/bin/go build -o /usr/local/bin/caddy -ldflags -w -s -trimpath 
go: downloading github.com/smallstep/certificates v0.15.0-rc.1.0.20200506212953-e855707dc274
go: downloading github.com/smallstep/cli v0.14.4
go: downloading github.com/klauspost/compress v1.10.10
go: downloading github.com/smallstep/nosql v0.3.0
go: downloading github.com/smallstep/truststore v0.9.5
go: downloading github.com/dustin/go-humanize v1.0.1-0.20200219035652-afde56e7acac
go: downloading github.com/go-chi/chi v4.1.2+incompatible
go: downloading gopkg.in/natefinch/lumberjack.v2 v2.0.0
go: downloading github.com/yuin/goldmark-highlighting v0.0.0-20200307114337-60d527fdb691
go: downloading github.com/google/cel-go v0.5.1
go: downloading github.com/alecthomas/chroma v0.7.4-0.20200517063913-500529fd43c1
go: downloading github.com/yuin/goldmark v1.1.32
go: downloading github.com/dgraph-io/badger v1.5.3
go: downloading github.com/Masterminds/sprig/v3 v3.1.0
go: downloading google.golang.org/protobuf v1.25.0
go: downloading github.com/lucas-clemente/quic-go v0.17.1
go: downloading google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013
go: downloading github.com/jsternberg/zap-logfmt v1.2.0
go: downloading github.com/naoina/toml v0.1.1
go: downloading github.com/golang/protobuf v1.4.1
go: downloading github.com/mitchellh/copystructure v1.0.0
go: downloading github.com/libdns/libdns v0.0.0-20200501023120-186724ffc821
go: downloading github.com/Masterminds/semver v1.4.2
go: downloading github.com/naoina/go-stringutil v0.1.0
go: downloading github.com/Masterminds/semver/v3 v3.1.0
go: downloading github.com/spf13/cast v1.3.1
go: downloading github.com/dgraph-io/badger/v2 v2.0.1-rc1.0.20200413122845-09dd2e1a4195
go: downloading github.com/mitchellh/reflectwalk v1.0.0
go: downloading github.com/google/uuid v1.1.1
go: downloading github.com/dgraph-io/ristretto v0.0.2-0.20200115201040-8f368f2f2ab3
go: downloading gopkg.in/yaml.v2 v2.3.0
go: downloading github.com/cespare/xxhash v1.1.0
go: downloading github.com/manifoldco/promptui v0.3.1
go: downloading github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2
go: downloading github.com/urfave/cli v1.22.2
go: downloading github.com/cheekybits/genny v1.0.0
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/antlr/antlr4 v0.0.0-20200503195918-621b933c7a7f
go: downloading github.com/go-sql-driver/mysql v1.5.0
go: downloading github.com/francoispqt/gojay v1.2.13
go: downloading github.com/dlclark/regexp2 v1.2.0
go: downloading go.etcd.io/bbolt v1.3.2
go: downloading github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964
go: downloading github.com/imdario/mergo v0.3.8
go: downloading github.com/marten-seemann/qpack v0.1.0
go: downloading github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e
go: downloading github.com/golang/snappy v0.0.1
go: downloading cloud.google.com/go v0.54.0
go: downloading google.golang.org/grpc v1.27.1
go: downloading github.com/marten-seemann/qtls v0.9.1
go: downloading github.com/rs/xid v1.2.1
go: downloading github.com/Masterminds/goutils v1.1.0
go: downloading google.golang.org/api v0.20.0
go: downloading github.com/huandu/xstrings v1.3.1
go: downloading github.com/samfoo/ansi v0.0.0-20160124022901-b6bd2ded7189
go: downloading github.com/juju/ansiterm v0.0.0-20180109212912-720a0952cc2a
go: downloading github.com/sirupsen/logrus v1.4.2
go: downloading github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9
go: downloading github.com/googleapis/gax-go v2.0.0+incompatible
go: downloading github.com/cpuguy83/go-md2man v1.0.10
go: downloading github.com/shurcooL/sanitized_anchor_name v1.0.0
go: downloading github.com/mattn/go-isatty v0.0.12
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.0
go: downloading github.com/googleapis/gax-go/v2 v2.0.5
go: downloading github.com/mattn/go-colorable v0.1.6
go: downloading github.com/lunixbochs/vtclean v1.0.0
go: downloading github.com/russross/blackfriday v1.5.2
go: downloading github.com/russross/blackfriday/v2 v2.0.1
go: downloading golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
go: downloading go.opencensus.io v0.22.3
go: downloading github.com/google/go-cmp v0.5.0
go: downloading github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e
2020/08/26 16:50:57 [INFO] Build complete: /usr/local/bin/caddy
2020/08/26 16:50:57 [INFO] Cleaning up temporary folder: /tmp/buildenv_2020-08-26-1649.092330058

/tmp/latest-19.tar.bz2                          0% of   95 MB    0  Bps
/tmp/latest-19.tar.bz2                          0% of   95 MB  148 kBps
/tmp/latest-19.tar.bz2                          0% of   95 MB  506 kBps
/tmp/latest-19.tar.bz2                          1% of   95 MB  921 kBps 03m13s
/tmp/latest-19.tar.bz2                          2% of   95 MB 1381 kBps 02m13s
/tmp/latest-19.tar.bz2                          4% of   95 MB 1856 kBps 01m39s
/tmp/latest-19.tar.bz2                          7% of   95 MB 2215 kBps 01m18s
/tmp/latest-19.tar.bz2                          9% of   95 MB 2878 kBps 01m03s
/tmp/latest-19.tar.bz2                         13% of   95 MB 3806 kBps    49s
/tmp/latest-19.tar.bz2                         17% of   95 MB 3592 kBps    41s
/tmp/latest-19.tar.bz2                         22% of   95 MB 4552 kBps    34s
/tmp/latest-19.tar.bz2                         27% of   95 MB 5117 kBps    28s
/tmp/latest-19.tar.bz2                         33% of   95 MB 5599 kBps    24s
/tmp/latest-19.tar.bz2                         39% of   95 MB 6233 kBps    19s
/tmp/latest-19.tar.bz2                         46% of   95 MB 6803 kBps    16s
/tmp/latest-19.tar.bz2                         54% of   95 MB 8131 kBps    12s
/tmp/latest-19.tar.bz2                         62% of   95 MB 7414 kBps    09s
/tmp/latest-19.tar.bz2                         71% of   95 MB 8266 kBps    06s
/tmp/latest-19.tar.bz2                         80% of   95 MB 9107 kBps    04s
/tmp/latest-19.tar.bz2                         90% of   95 MB 9959 kBps    02s
/tmp/latest-19.tar.bz2                                  95 MB 5071 kBps    19s

/tmp/latest-19.tar.bz2.asc                      0% of  833  B    0  Bps
/tmp/latest-19.tar.bz2.asc                             833  B   26 MBps    00s

/tmp/nextcloud.asc                              0% of 3100  B    0  Bps
/tmp/nextcloud.asc                                    3100  B   70 MBps    00s
gpg: Warning: using insecure memory!
gpg: directory '/root/.gnupg' created
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key D75899B9A724937A: public key "Nextcloud Security <security@nextcloud.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: Warning: using insecure memory!
gpg: assuming signed data in '/tmp/latest-19.tar.bz2'
gpg: Signature made Wed Aug 26 10:53:30 2020 PDT
gpg:                using RSA key 8B5274AEE6EC9C06B0DDAA96130DAB86D3FB356C
gpg: Can't check signature: No public key
Command: gpg --verify /tmp/latest-19.tar.bz2.asc failed!
GPG Signature Verification Failed!
The Nextcloud download is corrupt.

Command exit status: 1
Script done on Wed Aug 26 16:51:21 2020
danb35 commented 3 years ago

Thanks (and you're right, the GUI shell is pretty much worthless). The problem is that the public key that the script downloaded from nextcloud.com doesn't match the private key used to create the signature that the script downloads, which is more than a little strange, and ultimately seems like a problem the Nextcloud folks would need to fix. For the time being, you can bypass this check by commenting out lines 305-310 of the script. They read like this:

if ! iocage exec "${JAIL_NAME}" gpg --verify /tmp/"${FILE}".asc
then
    echo "GPG Signature Verification Failed!"
    echo "The Nextcloud download is corrupt."
    exit 1
fi
danb35 commented 3 years ago

Looks like this has worked itself out.