themefisher / airspace-hugo

Airspace Hugo theme for multipurpose use, like Portfolio, Blog, Business.
https://gethugothemes.com/products/airspace/?utm_source=airspace_github&utm_medium=referral&utm_campaign=github_theme_about
MIT License
351 stars 508 forks source link

Deploy Failed on netlify #197

Closed Mosesdejaviano closed 3 years ago

Mosesdejaviano commented 3 years ago

This is what netlify says; 11:26:23 PM: Build ready to start 11:26:25 PM: build-image version: fa439ad1ab9393b2c0d449d8d7c033927683f4b0 11:26:25 PM: build-image tag: v4.3.0 11:26:25 PM: buildbot version: bfa1ece451875e5fe124c5b0a59bb85e0abb8d50 11:26:26 PM: Fetching cached dependencies 11:26:26 PM: Failed to fetch cache, continuing with build 11:26:26 PM: Starting to prepare the repo for build 11:26:26 PM: No cached dependencies found. Cloning fresh repo 11:26:26 PM: git clone https://github.com/Mosesdejaviano/airhugo 11:26:27 PM: Preparing Git Reference refs/heads/master 11:26:27 PM: Parsing package.json dependencies 11:26:28 PM: Starting build script 11:26:28 PM: Installing dependencies 11:26:28 PM: Python version set to 2.7 11:26:29 PM: Downloading and installing node v16.9.1... 11:26:29 PM: Downloading https://nodejs.org/dist/v16.9.1/node-v16.9.1-linux-x64.tar.xz... 11:26:29 PM: Computing checksum with sha256sum 11:26:29 PM: Checksums matched! 11:26:32 PM: Now using node v16.9.1 (npm v7.21.1) 11:26:32 PM: Started restoring cached build plugins 11:26:32 PM: Finished restoring cached build plugins 11:26:33 PM: Attempting ruby version 2.7.2, read from environment 11:26:34 PM: Using ruby version 2.7.2 11:26:34 PM: Using PHP version 8.0 11:26:34 PM: Installing Hugo 0.87.0 11:26:35 PM: hugo v0.87.0-B0C541E4+extended linux/amd64 BuildDate=2021-08-03T10:57:28Z VendorInfo=gohugoio 11:26:35 PM: Started restoring cached go cache 11:26:35 PM: Finished restoring cached go cache 11:26:35 PM: go version go1.16.5 linux/amd64 11:26:35 PM: go version go1.16.5 linux/amd64 11:26:35 PM: Installing missing commands 11:26:35 PM: Verify run directory 11:26:37 PM: ​ 11:26:37 PM: ──────────────────────────────────────────────────────────────── 11:26:37 PM: Netlify Build
11:26:37 PM: ──────────────────────────────────────────────────────────────── 11:26:37 PM: ​ 11:26:37 PM: ❯ Version 11:26:37 PM: @netlify/build 18.8.0 11:26:37 PM: ​ 11:26:37 PM: ❯ Flags 11:26:37 PM: baseRelDir: true 11:26:37 PM: buildId: 613d2d0f51f3c53ce863374d 11:26:37 PM: deployId: 613d2d0f51f3c53ce863374f 11:26:37 PM: ​ 11:26:37 PM: ❯ Current directory 11:26:37 PM: /opt/build/repo 11:26:37 PM: ​ 11:26:37 PM: ❯ Config file 11:26:37 PM: /opt/build/repo/netlify.toml 11:26:37 PM: ​ 11:26:37 PM: ❯ Context 11:26:37 PM: production 11:26:37 PM: ​ 11:26:37 PM: ──────────────────────────────────────────────────────────────── 11:26:37 PM: 1. build.command from netlify.toml
11:26:37 PM: ──────────────────────────────────────────────────────────────── 11:26:37 PM: ​ 11:26:37 PM: $ cd exampleSite && hugo --gc --themesDir ../.. 11:26:37 PM: Start building sites … 11:26:37 PM: hugo v0.87.0-B0C541E4+extended linux/amd64 BuildDate=2021-08-03T10:57:28Z VendorInfo=gohugoio 11:26:37 PM: Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/contact.html:50:152: executing "main" at <partial "cloak_email" .email>: error calling partial: "/opt/build/repo/layouts/partials/cloak_email.html:5:167": execute of template failed: template: partials/cloak_email.html:5:167: executing "partials/cloak_email.html" at <len $domain>: error calling len: reflect: call of reflect.Value.Type on zero Value 11:26:37 PM: Total in 168 ms 11:26:37 PM: ​ 11:26:37 PM: ──────────────────────────────────────────────────────────────── 11:26:37 PM: "build.command" failed
11:26:37 PM: ──────────────────────────────────────────────────────────────── 11:26:37 PM: ​ 11:26:37 PM: Error message 11:26:37 PM: Command failed with exit code 255: cd exampleSite && hugo --gc --themesDir ../.. 11:26:37 PM: ​ 11:26:37 PM: Error location 11:26:37 PM: In build.command from netlify.toml: 11:26:37 PM: cd exampleSite && hugo --gc --themesDir ../.. 11:26:37 PM: ​ 11:26:37 PM: Resolved config 11:26:37 PM: build: 11:26:37 PM: command: cd exampleSite && hugo --gc --themesDir ../.. 11:26:37 PM: commandOrigin: config 11:26:37 PM: environment: 11:26:37 PM: - HUGO_VERSION 11:26:37 PM: - HUGO_THEME 11:26:37 PM: - HUGO_BASEURL 11:26:37 PM: publish: /opt/build/repo/exampleSite/public 11:26:37 PM: publishOrigin: config 11:26:37 PM: redirects: 11:26:37 PM: - from: /de/* status: 404 to: /de/404.html

salim-b commented 3 years ago

This is probably because you either didn't set params.contact.email in config.toml, or you've set it to an invalid e-mail address. I've improved the template code in #198 to properly handle both cases.

Mosesdejaviano commented 3 years ago

Thanks, the Issue has been solved now with the improved template.