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

Can't deploy using Netlify #632

Closed
AntoineSoetewey opened this issue Aug 24, 2023 · 3 comments
Closed

Can't deploy using Netlify #632

AntoineSoetewey opened this issue Aug 24, 2023 · 3 comments
Labels
non-issue Nothing needs to be fixed

Comments

@AntoineSoetewey
Copy link
Contributor

Issue description

Hello,

I use RStudio and the blogdown R package to build my website (www.antoinesoetewey.com). It is building fine, but I cannot deploy it with Netlify.

Here is my repository: https://github.com/AntoineSoetewey/antoinesoetewey.com
Below the log from Netlify.

In case it helps, here are my settings in Netlify:

Screenshot 2023-08-24 at 16 59 12

It used to work fine until last month. I could not find a solution online. Am I the only one to have this issue?

Thanks in advance for any help.
Antoine

Theme version

v2.6.1

Hugo version

0.101.0

Which browser rendering engines are you seeing the problem on?

No response

URL to sample repository or website

https://github.com/AntoineSoetewey/antoinesoetewey.com

Hugo output or build error messages

4:52:57 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
4:52:38 PM: build-image version: 6cae66f783f2b7ff8e3a9cdbb5031761f0b47719 (focal)
4:52:38 PM: buildbot version: 6cae66f783f2b7ff8e3a9cdbb5031761f0b47719
4:52:38 PM: Building without cache
4:52:38 PM: Starting to prepare the repo for build
4:52:38 PM: No cached dependencies found. Cloning fresh repo
4:52:38 PM: git clone --filter=blob:none https://github.com/AntoineSoetewey/antoinesoetewey.com
4:52:39 PM: Preparing Git Reference refs/heads/master
4:52:42 PM: Starting to install dependencies
4:52:42 PM: Python version set to 3.8
4:52:42 PM: Attempting Ruby version 2.7.2, read from environment
4:52:43 PM: Using Ruby version 2.7.2
4:52:43 PM: Started restoring cached go cache
4:52:43 PM: Finished restoring cached go cache
4:52:43 PM: Installing Go version 1.16.5 (requested 1.16.5)
4:52:47 PM: go version go1.16.5 linux/amd64
4:52:48 PM: Using PHP version 8.0
4:52:48 PM: Installing Hugo 0.101.0
4:52:49 PM: hugo v0.101.0-466fa43c16709b4483689930a4f9ac8add5c9f66+extended linux/amd64 BuildDate=2022-06-16T07:09:16Z VendorInfo=gohugoio
4:52:50 PM: Downloading and installing node v16.20.2...
4:52:50 PM: Downloading https://nodejs.org/dist/v16.20.2/node-v16.20.2-linux-x64.tar.xz...
4:52:50 PM: Computing checksum with sha256sum
4:52:50 PM: Checksums matched!
4:52:52 PM: Now using node v16.20.2 (npm v8.19.4)
4:52:52 PM: Enabling Node.js Corepack
4:52:52 PM: Started restoring cached build plugins
4:52:52 PM: Finished restoring cached build plugins
4:52:52 PM: Install dependencies script success
4:52:52 PM: Starting build script
4:52:53 PM: Detected 0 framework(s)
4:52:53 PM: Section completed: initializing
4:52:55 PM: ​
4:52:55 PM: Netlify Build                                                 
4:52:55 PM: ────────────────────────────────────────────────────────────────
4:52:55 PM: ​
4:52:55 PM: ❯ Version
4:52:55 PM:   @netlify/build 29.20.6
4:52:55 PM: ​
4:52:55 PM: ❯ Flags
4:52:55 PM:   baseRelDir: true
4:52:55 PM:   buildId: 64e76eb49e9a6a0e9eee1301
4:52:55 PM:   deployId: 64e76eb49e9a6a0e9eee1303
4:52:55 PM: ​
4:52:55 PM: ❯ Current directory
4:52:55 PM:   /opt/build/repo
4:52:55 PM: ​
4:52:55 PM: ❯ Config file
4:52:55 PM:   /opt/build/repo/netlify.toml
4:52:55 PM: ​
4:52:55 PM: ❯ Context
4:52:55 PM:   production
4:52:55 PM: ​
4:52:55 PM: build.command from netlify.toml                               
4:52:55 PM: ────────────────────────────────────────────────────────────────
4:52:55 PM: ​
4:52:55 PM: $ hugo
4:52:55 PM: Start building sites …
4:52:55 PM: hugo v0.101.0-466fa43c16709b4483689930a4f9ac8add5c9f66+extended linux/amd64 BuildDate=2022-06-16T07:09:16Z VendorInfo=gohugoio
4:52:55 PM: Error: Error building site: /opt/build/repo/content/_index.fr.md:18:1: failed to extract shortcode: template for shortcode button not found
4:52:55 PM: Total in 37 ms
4:52:55 PM: ​
4:52:55 PM: build.command failed                                        
4:52:55 PM: ────────────────────────────────────────────────────────────────
4:52:55 PM: ​
4:52:55 PM:   Error message
4:52:55 PM:   Command failed with exit code 255: hugo (https://ntl.fyi/exit-code-255)
4:52:55 PM: ​
4:52:55 PM:   Error location
4:52:55 PM:   In build.command from netlify.toml:
4:52:55 PM:   hugo
4:52:55 PM: ​
4:52:55 PM:   Resolved config
4:52:55 PM:   build:
4:52:55 PM:     command: hugo
4:52:55 PM:     commandOrigin: config
4:52:55 PM:     environment:
4:52:55 PM:       - HUGO_VERSION
4:52:55 PM:       - HUGO_ENV
4:52:55 PM:     publish: /opt/build/repo/public
4:52:55 PM:     publishOrigin: config
4:52:56 PM: Caching artifacts
4:52:56 PM: Started saving build plugins
4:52:56 PM: Finished saving build plugins
4:52:56 PM: Started saving pip cache
4:52:56 PM: Finished saving pip cache
4:52:56 PM: Started saving emacs cask dependencies
4:52:56 PM: Finished saving emacs cask dependencies
4:52:56 PM: Started saving maven dependencies
4:52:56 PM: Finished saving maven dependencies
4:52:56 PM: Started saving boot dependencies
4:52:56 PM: Finished saving boot dependencies
4:52:56 PM: Started saving rust rustup cache
4:52:56 PM: Finished saving rust rustup cache
4:52:56 PM: Started saving go dependencies
4:52:56 PM: Finished saving go dependencies
4:52:57 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
4:52:57 PM: Failing build: Failed to build site
4:52:57 PM: Finished processing build request in 19.232s
@AntoineSoetewey AntoineSoetewey added the bug Something isn't working label Aug 24, 2023
@AntoineSoetewey
Copy link
Contributor Author

I have also raised the issue on the Netlify support forum (https://answers.netlify.com/t/command-failed-with-exit-code-255/100740), without success so far

@shin-sforzando
Copy link
Contributor

The Netlify error log says "failed to extract shortcode: template for shortcode button not found", so it looks like the Netlify build environment is not able to reference Congo.

From your repository, it seems that you have not installed it using the Hugo module method.
In that case, the official documentation says you need to put theme = congo in your config.toml.
ref. https://jpanther.github.io/congo/docs/installation/#set-up-theme-configuration-files

@AntoineSoetewey
Copy link
Contributor Author

Thank you very much @shin-sforzando !

@jpanther jpanther added non-issue Nothing needs to be fixed and removed bug Something isn't working labels Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
non-issue Nothing needs to be fixed
Projects
None yet
Development

No branches or pull requests

3 participants