Open
Description
I can't deploy my site to netlify. I see my files on GitHub are .scss and are different from the local project (see my repo at https://github.com/hahoangnhan/new_blog)
I attached my deployment errors below, please help me address the issue.
Let me know if I must give you need more information to clarify the errors.
Best,
hhn
12:03:40 AM: build-image version: d55944c047ef0aee2ac01971edde72cb2a50acfe (focal)
12:03:40 AM: build-image tag: v4.16.1
12:03:40 AM: buildbot version: 33f88475bcf3426608b49b7681d295235efb41f1
12:03:40 AM: Fetching cached dependencies
12:03:40 AM: Failed to fetch cache, continuing with build
12:03:40 AM: Starting to prepare the repo for build
12:03:40 AM: No cached dependencies found. Cloning fresh repo
12:03:40 AM: git clone https://github.com/hahoangnhan/new_blog
12:03:40 AM: Preparing Git Reference refs/heads/main
12:03:40 AM: Parsing package.json dependencies
12:03:41 AM: Starting build script
12:03:41 AM: Installing dependencies
12:03:41 AM: Python version set to 2.7
12:03:42 AM: v16.19.0 is already installed.
12:03:42 AM: Now using node v16.19.0 (npm v8.19.3)
12:03:42 AM: Enabling node corepack
12:03:42 AM: Started restoring cached build plugins
12:03:42 AM: Finished restoring cached build plugins
12:03:42 AM: Attempting ruby version 2.7.2, read from environment
12:03:43 AM: Using ruby version 2.7.2
12:03:43 AM: Using PHP version 8.0
12:03:43 AM: Started restoring cached go cache
12:03:43 AM: Finished restoring cached go cache
12:03:43 AM: go version go1.19.4 linux/amd64
12:03:43 AM: Detected 0 framework(s)
12:03:43 AM: Installing missing commands
12:03:43 AM: Verify run directory
12:03:43 AM: Section completed: initializing
12:03:44 AM:
12:03:44 AM: Netlify Build
12:03:44 AM: ────────────────────────────────────────────────────────────────
12:03:44 AM:
12:03:44 AM: ❯ Version
12:03:44 AM: @netlify/build 29.2.1
12:03:44 AM:
12:03:44 AM: ❯ Flags
12:03:44 AM: baseRelDir: true
12:03:44 AM: buildId: 63a633ca8e139b64d0c1961d
12:03:44 AM: deployId: 63a633ca8e139b64d0c1961f
12:03:44 AM:
12:03:44 AM: ❯ Current directory
12:03:44 AM: /opt/build/repo
12:03:44 AM:
12:03:44 AM: ❯ Config file
12:03:44 AM: No config file was defined: using default values.
12:03:44 AM:
12:03:44 AM: ❯ Context
12:03:44 AM: production
12:03:44 AM:
12:03:44 AM: 1. Build command from Netlify app
12:03:44 AM: ────────────────────────────────────────────────────────────────
12:03:44 AM:
12:03:44 AM: $ hugo
12:03:44 AM: Error: Unable to locate config file or config directory. Perhaps you need to create a new site.
12:03:44 AM: Run `hugo help new` for details.
12:03:44 AM: Total in 0 ms
12:03:44 AM:
12:03:46 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
12:03:44 AM: "build.command" failed
12:03:44 AM: ────────────────────────────────────────────────────────────────
12:03:44 AM:
12:03:44 AM: Error message
12:03:44 AM: Command failed with exit code 255: hugo (https://ntl.fyi/exit-code-255)
12:03:44 AM:
12:03:44 AM: Error location
12:03:44 AM: In Build command from Netlify app:
12:03:44 AM: hugo
12:03:44 AM:
12:03:44 AM: Resolved config
12:03:44 AM: build:
12:03:44 AM: command: hugo
12:03:44 AM: commandOrigin: ui
12:03:44 AM: publish: /opt/build/repo/public
12:03:44 AM: publishOrigin: ui
12:03:45 AM: Caching artifacts
12:03:45 AM: Started saving build plugins
12:03:45 AM: Finished saving build plugins
12:03:45 AM: Started saving pip cache
12:03:45 AM: Finished saving pip cache
12:03:45 AM: Started saving emacs cask dependencies
12:03:45 AM: Finished saving emacs cask dependencies
12:03:45 AM: Started saving maven dependencies
12:03:45 AM: Finished saving maven dependencies
12:03:45 AM: Started saving boot dependencies
12:03:45 AM: Finished saving boot dependencies
12:03:45 AM: Started saving rust rustup cache
12:03:45 AM: Finished saving rust rustup cache
12:03:45 AM: Started saving go dependencies
12:03:45 AM: Finished saving go dependencies
12:03:45 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
12:03:45 AM: Failing build: Failed to build site
12:03:46 AM: Finished processing build request in 6.003626206s
Currently, I can not render my site locally. I checked and got:
> blogdown::build_site()
Start building sites …
hugo v0.108.0-a0d64a46e36dd2f503bfd5ba1a5807b900df231d+extended darwin/amd64 BuildDate=2022-12-06T13:37:56Z VendorInfo=gohugoio
| EN
-------------------+-----
Pages | 73
Paginator pages | 2
Non-page files | 49
Static files | 93
Processed images | 0
Aliases | 5
Sitemaps | 1
Cleaned | 0
and
> blogdown::serve_site()
Launching the server via the command:
/Users/hhn/Library/Application Support/Hugo/0.108.0/hugo server --bind 127.0.0.1 -p 4321 --themesDir themes -t hugo-apero -D -F --navigateToChanged
Error: Failed to launch the site preview in 30 seconds. Try to give it more time via the global option "blogdown.server.timeout", e.g., options(blogdown.server.timeout = 600).
Metadata
Metadata
Assignees
Labels
No labels