Please help with my deployment error.
I am kind of newbie to Netlify. I maintain my blog on Netlify, today when I tried to post a new blog, I got the following deployment error. I have just successfully posted a blog one day ago, I didnβt know what happened after my last posting. I tried to make my new blog as simple as possible for testing if there is any weird text or content in my blog caused error, but no lucky.
Can anyone help me with this?
Thank you in advance.
8:31:28 PM: build-image version: 3ffff9df3d5419545acc1b673a54de348174406d (focal)
8:31:28 PM: buildbot version: 234adcfe967f1d318bfad465ff22f561d657197d
8:31:28 PM: Fetching cached dependencies
8:31:28 PM: Starting to download cache of 312.9MB
8:31:32 PM: Finished downloading cache in 3.903s
8:31:32 PM: Starting to extract cache
8:31:34 PM: Finished extracting cache in 2.09s
8:31:34 PM: Finished fetching cache in 6.068s
8:31:34 PM: Starting to prepare the repo for build
8:31:35 PM: Preparing Git Reference refs/heads/master
8:31:37 PM: Custom publish path detected. Proceeding with the specified path: βXiangWebsite/publicβ
8:31:37 PM: manpath: warning: $PATH not set
8:31:37 PM: Starting to install dependencies
8:31:37 PM: Python version set to 3.8
8:31:37 PM: Attempting Ruby version 2.7.2, read from environment
8:31:38 PM: Using Ruby version 2.7.2
8:31:38 PM: Started restoring cached go cache
8:31:38 PM: Finished restoring cached go cache
8:31:40 PM: go version go1.19.13 linux/amd64
8:31:40 PM: Using PHP version 8.0
8:31:41 PM: Started restoring cached Node.js version
8:31:42 PM: Finished restoring cached Node.js version
8:31:42 PM: v16.20.2 is already installed.
8:31:42 PM: Now using node v16.20.2 (npm v8.19.4)
8:31:42 PM: Enabling Node.js Corepack
8:31:42 PM: Started restoring cached build plugins
8:31:42 PM: Finished restoring cached build plugins
8:31:43 PM: Successfully installed dependencies
8:31:43 PM: Starting build script
8:31:43 PM: Detected 2 framework(s)
8:31:43 PM: βhugoβ at version βunknownβ
8:31:43 PM: βzolaβ at version βunknownβ
8:31:43 PM: Section completed: initializing
8:31:45 PM: β
8:31:45 PM: Netlify Build
8:31:45 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
8:31:45 PM: β
8:31:45 PM: β― Version
8:31:45 PM: @netlify/build 29.29.4
8:31:45 PM: β
8:31:45 PM: β― Flags
8:31:45 PM: baseRelDir: true
8:31:45 PM: buildId: 656db88f881aec0008cd433b
8:31:45 PM: deployId: 656db88f881aec0008cd433d
8:31:45 PM: β
8:31:45 PM: β― Current directory
8:31:45 PM: /opt/build/repo/XiangWebsite
8:31:45 PM: β
8:31:45 PM: β― Config file
8:31:45 PM: No config file was defined: using default values.
8:31:45 PM: β
8:31:45 PM: β― Context
8:31:45 PM: production
8:31:45 PM: β
8:31:45 PM: β― Installing plugins
8:31:45 PM: - @netlify/plugin-lighthouse@5.0.0
8:31:47 PM: β
8:31:47 PM: β― Loading plugins
8:31:47 PM: - @algolia/netlify-plugin-crawler@1.0.0 from Netlify app
8:31:47 PM: - @netlify/plugin-lighthouse@5.0.0 from Netlify app
8:31:48 PM: β
8:31:48 PM: Build command from Netlify app
8:31:48 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
8:31:48 PM: β
8:31:48 PM: $ hugo
8:31:48 PM: Start building sites β¦
8:31:48 PM: hugo v0.85.0-724D5DB5+extended linux/amd64 BuildDate=2021-07-05T10:46:28Z VendorInfo=gohugoio
8:31:48 PM: ERROR 2023/12/04 11:31:48 render of βhomeβ failed: execute of template failed: template: index.html:36:20: executing βcontentβ at <.Render>: error calling Render: failed to execute template [βsummaryβ] v: β/opt/build/repo/XiangWebsite/themes/loveit/layouts/_default/summary.html:69:32β: execute of template failed: template: _default/summary.html:69:32: executing β_default/summary.htmlβ at <partialCached βfunction/path.htmlβ $value $value>: error calling partialCached: partial that returns a value needs a non-zero argument.
8:31:48 PM: Error: Error building site: failed to render pages: render of βpageβ failed: execute of template failed: template: posts/single.html:96:12: executing βcontentβ at <partial βsingle/footer.htmlβ .>: error calling partial: β/opt/build/repo/XiangWebsite/themes/loveit/layouts/partials/single/footer.html:54:32β: execute of template failed: template: partials/single/footer.html:54:32: executing βpartials/single/footer.htmlβ at <partialCached βfunction/path.htmlβ $value $value>: error calling partialCached: partial that returns a value needs a non-zero argument.
8:31:48 PM: Total in 199 ms
8:31:48 PM: Usage:
8:31:48 PM: hugo [flags]
8:31:48 PM: hugo [command]
8:31:48 PM: Available Commands:
8:31:48 PM: config Print the site configuration
8:31:48 PM: convert Convert your content to different formats
8:31:48 PM: deploy Deploy your site to a Cloud provider.
8:31:48 PM: env Print Hugo version and environment info
8:31:48 PM: gen A collection of several useful generators.
8:31:48 PM: help Help about any command
8:31:48 PM: import Import your site from others.
8:31:48 PM: list Listing out various types of content
8:31:48 PM: mod Various Hugo Modules helpers.
8:31:48 PM: new Create new content for your site
8:31:48 PM: server A high performance webserver
8:31:48 PM: version Print the version number of Hugo
8:31:48 PM: Flags:
8:31:48 PM: -b, --baseURL string hostname (and path) to the root, e.g. http://spf13.com/
8:31:48 PM: -D, --buildDrafts include content marked as draft
8:31:48 PM: -E, --buildExpired include expired content
8:31:48 PM: -F, --buildFuture include content with publishdate in the future
8:31:48 PM: --cacheDir string filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/
8:31:48 PM: --cleanDestinationDir remove files from destination not found in static directories
8:31:48 PM: --config string config file (default is path/config.yaml|json|toml)
8:31:48 PM: --configDir string config dir (default βconfigβ)
8:31:48 PM: -c, --contentDir string filesystem path to content directory
8:31:48 PM: --debug debug output
8:31:48 PM: -d, --destination string filesystem path to write files to
8:31:48 PM: --disableKinds strings disable different kind of pages (home, RSS etc.)
8:31:48 PM: --enableGitInfo add Git revision, date and author info to the pages
8:31:48 PM: -e, --environment string build environment
8:31:48 PM: --forceSyncStatic copy all files when static is changed.
8:31:48 PM: --gc enable to run some cleanup tasks (remove unused cache files) after the build
8:31:48 PM: -h, --help help for hugo
8:31:48 PM: --i18n-warnings print missing translations
8:31:48 PM: --ignoreCache ignores the cache directory
8:31:48 PM: --ignoreVendor ignores any _vendor directory
8:31:48 PM: --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern
8:31:48 PM: -l, --layoutDir string filesystem path to layout directory
8:31:48 PM: --log enable Logging
8:31:48 PM: --logFile string log File path (if set, logging enabled automatically)
8:31:48 PM: --minify minify any supported output format (HTML, XML etc.)
8:31:48 PM: --noChmod don"t sync permission mode of files
βnoTimes don"t sync modification time of files
βpath-warnings print warnings on duplicate target paths etc.
8:31:48 PM: --poll string set this to a poll interval, e.g --poll 700ms, to use a poll based approach to watch for file system changes
8:31:48 PM: --print-mem print memory usage to screen at intervals
8:31:48 PM: --quiet build in quiet mode
8:31:48 PM: --renderToMemory render to memory (only useful for benchmark testing)
8:31:48 PM: -s, --source string filesystem path to read files relative from
8:31:48 PM: --templateMetrics display metrics about template executions
8:31:48 PM: --templateMetricsHints calculate some improvement hints when combined with --templateMetrics
8:31:48 PM: -t, --theme strings themes to use (located in /themes/THEMENAME/)
8:31:48 PM: --themesDir string filesystem path to themes directory
8:31:48 PM: --trace file write trace to file (not useful in general)
8:31:48 PM: -v, --verbose verbose output
8:31:48 PM: --verboseLog verbose logging
8:31:48 PM: -w, --watch watch filesystem for changes and recreate as needed
8:31:48 PM: Additional help topics:
8:31:48 PM: hugo check Contains some verification checks
8:31:48 PM: Use βhugo [command] --helpβ for more information about a command.
8:31:48 PM: β
8:31:48 PM: βbuild.commandβ failed
8:31:48 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
8:31:48 PM: β
8:31:48 PM: Error message
8:31:48 PM: Command failed with exit code 255: hugo (Search results for '"non-zero exit code: 255"' - Netlify Support Forums)
8:31:48 PM: β
8:31:48 PM: Error location
8:31:48 PM: In Build command from Netlify app:
8:31:48 PM: hugo
8:31:48 PM: β
8:31:48 PM: Resolved config
8:31:48 PM: build:
8:31:48 PM: base: /opt/build/repo/XiangWebsite
8:31:48 PM: command: hugo
8:31:48 PM: commandOrigin: ui
8:31:48 PM: environment:
8:31:48 PM: - ALGOLIA_API_KEY
8:31:48 PM: - ALGOLIA_BASE_URL
8:31:48 PM: publish: /opt/build/repo/XiangWebsite/public
8:31:48 PM: publishOrigin: ui
8:31:48 PM: plugins:
8:31:48 PM: - inputs: {}
8:31:48 PM: origin: ui
8:31:48 PM: package: β@algolia/netlify-plugin-crawlerβ
8:31:48 PM: - inputs: {}
8:31:48 PM: origin: ui
8:31:48 PM: package: β@netlify/plugin-lighthouseβ
8:31:49 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
8:31:49 PM: Failing build: Failed to build site
8:31:49 PM: Finished processing build request in 20.759s
8:31:49 PM: Failed during stage βbuilding siteβ: Build script returned non-zero exit code: 2