Deploys failing

Hello,
having issues deploying the site from github. Here’s the log:

11:46:03 PM: Build ready to start
11:46:07 PM: build-image version: ca811f47d4c1cbd1812d1eb6ecb0c977e86d1a1d
11:46:07 PM: build-image tag: v3.3.20
11:46:07 PM: buildbot version: 78b5536ab4f742c26705d3e953381b9cde6e22ef
11:46:08 PM: Fetching cached dependencies
11:46:08 PM: Failed to fetch cache, continuing with build
11:46:08 PM: Starting to prepare the repo for build
11:46:08 PM: No cached dependencies found. Cloning fresh repo
11:46:08 PM: git clone https://github.com/Madute/peak-health-udy-theme
11:46:10 PM: Preparing Git Reference refs/heads/master
11:46:12 PM: Starting build script
11:46:12 PM: Installing dependencies
11:46:12 PM: Python version set to 2.7
11:46:14 PM: v12.18.0 is already installed.
11:46:14 PM: Now using node v12.18.0 (npm v6.14.4)
11:46:14 PM: Started restoring cached build plugins
11:46:14 PM: Finished restoring cached build plugins
11:46:15 PM: Attempting ruby version 2.7.1, read from environment
11:46:16 PM: Using ruby version 2.7.1
11:46:16 PM: Using PHP version 5.6
11:46:16 PM: 5.2 is already installed.
11:46:16 PM: Using Swift version 5.2
11:46:16 PM: Started restoring cached node modules
11:46:16 PM: Finished restoring cached node modules
11:46:17 PM: Installing NPM modules using NPM version 6.14.4
11:46:19 PM: npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
11:46:21 PM: npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
11:46:24 PM: npm WARN deprecated resolve-url@0.2.1: GitHub - lydell/resolve-url: [DEPRECATED] Like Node.js’ `path.resolve`/`url.resolve` for the browser.
11:46:24 PM: npm WARN deprecated urix@0.1.0: Please see GitHub - lydell/urix: [DEPRECATED] Makes Windows-style paths more unix and URI friendly.
11:46:24 PM: npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
11:46:35 PM: > sharp@0.24.1 install /opt/build/repo/node_modules/sharp
11:46:35 PM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
11:46:35 PM: info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.9.0/libvips-8.9.0-linux-x64.tar.gz
11:46:38 PM: > core-js@2.6.11 postinstall /opt/build/repo/node_modules/core-js
11:46:38 PM: > node -e β€œtry{require(β€˜./postinstall’)}catch(e){}”
11:46:38 PM: > ejs@2.7.4 postinstall /opt/build/repo/node_modules/ejs
11:46:38 PM: > node ./postinstall.js
11:46:38 PM: npm notice created a lockfile as package-lock.json. You should commit this file.
11:46:38 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/browser-sync/node_modules/chokidar/node_modules/fsevents):
11:46:38 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {β€œos”:β€œdarwin”,β€œarch”:β€œany”} (current: {β€œos”:β€œlinux”,β€œarch”:β€œx64”})
11:46:38 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
11:46:38 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {β€œos”:β€œdarwin”,β€œarch”:β€œany”} (current: {β€œos”:β€œlinux”,β€œarch”:β€œx64”})
11:46:38 PM: npm WARN peak-health-udy-theme@ No description
11:46:38 PM: npm WARN peak-health-udy-theme@ No repository field.
11:46:38 PM: npm WARN peak-health-udy-theme@ No license field.
11:46:38 PM: added 594 packages from 508 contributors and audited 597 packages in 20.806s
11:46:38 PM: 9 packages are looking for funding
11:46:38 PM: run npm fund for details
11:46:38 PM: found 3 vulnerabilities (2 low, 1 high)
11:46:38 PM: run npm audit fix to fix them, or npm audit for details
11:46:39 PM: NPM modules installed
11:46:39 PM: Started restoring cached go cache
11:46:39 PM: Finished restoring cached go cache
11:46:39 PM: go version go1.14.4 linux/amd64
11:46:39 PM: go version go1.14.4 linux/amd64
11:46:39 PM: Installing missing commands
11:46:39 PM: Verify run directory
11:46:40 PM: ​
11:46:40 PM: β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
11:46:40 PM: β”‚ Netlify Build β”‚
11:46:40 PM: β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
11:46:40 PM: ​
11:46:40 PM: ❯ Version
11:46:40 PM: @netlify/build 2.0.27
11:46:40 PM: ​
11:46:40 PM: ❯ Flags
11:46:40 PM: deployId: 5f0e279a63338a01a0af6bb3
11:46:40 PM: mode: buildbot
11:46:40 PM: ​
11:46:40 PM: ❯ Current directory
11:46:40 PM: /opt/build/repo
11:46:40 PM: ​
11:46:40 PM: ❯ Config file
11:46:40 PM: /opt/build/repo/netlify.toml
11:46:40 PM: ​
11:46:40 PM: ❯ Context
11:46:40 PM: production
11:46:40 PM: ​
11:46:40 PM: β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
11:46:40 PM: β”‚ 1. build.command from netlify.toml β”‚
11:46:40 PM: β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
11:46:40 PM: ​
11:46:40 PM: $ node optimize.js && eleventy
11:48:01 PM: Problem writing Eleventy templates: (more in DEBUG output)
11:48:01 PM: > Output conflict: multiple input files are writing to public/services/coaching/index.html. Use distinct permalink values to resolve this conflict.
11:48:01 PM: 1. ./site/pages/services/organisations/coaching.md
11:48:01 PM: 2. ./site/pages/services/individuals/coaching.md
11:48:01 PM: DuplicatePermalinkOutputError was thrown:
11:48:01 PM: (Repeated output has been truncated…)
11:48:01 PM: at TemplateMap.checkForDuplicatePermalinks (/opt/build/repo/node_modules/@11ty/eleventy/src/TemplateMap.js:533:13)
11:48:01 PM: at TemplateMap.cache (/opt/build/repo/node_modules/@11ty/eleventy/src/TemplateMap.js:306:10)
11:48:01 PM: at async TemplateWriter._createTemplateMap (/opt/build/repo/node_modules/@11ty/eleventy/src/TemplateWriter.js:133:5)
11:48:01 PM: at async TemplateWriter.write (/opt/build/repo/node_modules/@11ty/eleventy/src/TemplateWriter.js:168:5)
11:48:01 PM: at async Eleventy.write (/opt/build/repo/node_modules/@11ty/eleventy/src/Eleventy.js:659:13)
11:48:01 PM: Copied 1 item / Wrote 0 files in 0.62 seconds (v0.10.0)
11:48:02 PM: ​
11:48:02 PM: β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
11:48:02 PM: β”‚ β€œbuild.command” failed β”‚
11:48:02 PM: β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
11:48:02 PM: ​
11:48:02 PM: Error message
11:48:02 PM: Command failed with exit code 1: node optimize.js && eleventy
11:48:02 PM: ​
11:48:02 PM: Error location
11:48:02 PM: In build.command from netlify.toml:
11:48:02 PM: node optimize.js && eleventy
11:48:02 PM: ​
11:48:02 PM: Resolved config
11:48:02 PM: build:
11:48:02 PM: command: node optimize.js && eleventy
11:48:02 PM: commandOrigin: config
11:48:02 PM: publish: /opt/build/repo/public
11:48:02 PM: Caching artifacts
11:48:02 PM: Started saving node modules
11:48:02 PM: Finished saving node modules
11:48:02 PM: Started saving build plugins
11:48:02 PM: Finished saving build plugins
11:48:02 PM: Started saving pip cache
11:48:02 PM: Finished saving pip cache
11:48:02 PM: Started saving emacs cask dependencies
11:48:02 PM: Finished saving emacs cask dependencies
11:48:02 PM: Started saving maven dependencies
11:48:02 PM: Finished saving maven dependencies
11:48:02 PM: Started saving boot dependencies
11:48:02 PM: Finished saving boot dependencies
11:48:02 PM: Started saving go dependencies
11:48:02 PM: Finished saving go dependencies
11:48:04 PM: Error running command: Build script returned non-zero exit code: 1
11:48:04 PM: Failing build: Failed to build site
11:48:04 PM: Failed during stage β€˜building site’: Build script returned non-zero exit code: 1
11:48:04 PM: Finished processing build request in 1m57.143882966s

howdy, so the problem is coming from here:

11:46:40 PM: $ node optimize.js && eleventy
11:48:01 PM: Problem writing Eleventy templates: (more in DEBUG output)
11:48:01 PM: > Output conflict: multiple input files are writing to public/services/coaching/index.html. Use distinct permalink values to resolve this conflict.
11:48:01 PM: 1. ./site/pages/services/organisations/coaching.md
11:48:01 PM: 2. ./site/pages/services/individuals/coaching.md
11:48:01 PM: DuplicatePermalinkOutputError was thrown:
11:48:01 PM: (Repeated output has been truncated…)

seems like both of those files are trying to write to the same file? Not sure how to fix it, another hugo person might know, but thats the cause of the error.

does this work locally? :thinking:

1 Like

Hey thank you for replying. I managed to resolve the issue. I had to use unique/distinct permalinks, these two pages were somehow giving me the same permalinks. But it’s fixed, all it took was just changing slugs manually.

1 Like