
ultracobra
Ni
Verificado por Whatsapp
Dejo un output de Netlify que explica el error a la hora de publicar completamente el sitio correctamente, no he podido hacer un deploy correcto, aunque ha renderizado bien, pero no puedo actualizar correctamente el repositorio...
Deploy log
Maximize log
Initializing
Complete
Building
Failed
1:03:10 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
1:03:08 AM: Netlify Build
1:03:08 AM: ────────────────────────────────────────────────────────────────
1:03:08 AM:
1:03:08 AM: ❯ Version
1:03:08 AM: @netlify/build 29.20.6
1:03:08 AM:
1:03:08 AM: ❯ Flags
1:03:08 AM: baseRelDir: true
1:03:08 AM: buildId: 64e5a10155a2000007696de6
1:03:08 AM: deployId: 64e5a10155a2000007696de8
1:03:08 AM:
1:03:08 AM: ❯ Current directory
1:03:08 AM: /opt/build/repo
1:03:08 AM:
1:03:08 AM: ❯ Config file
1:03:08 AM: /opt/build/repo/netlify.toml
1:03:08 AM:
1:03:08 AM: ❯ Context
1:03:08 AM: production
1:03:08 AM:
1:03:08 AM: ❯ Loading plugins
1:03:08 AM: - netlify-plugin-hugo-cache-resources@0.2.1 from netlify.toml
1:03:09 AM:
1:03:09 AM: netlify-plugin-hugo-cache-resources (onPreBuild event)
1:03:09 AM: ────────────────────────────────────────────────────────────────
1:03:09 AM:
1:03:09 AM: Checking if resources exist at exampleSite/resources
1:03:09 AM: Restored cached resources folder. Total files: 2
1:03:09 AM: ---
1:03:09 AM: 1. /opt/build/repo/exampleSite
1:03:09 AM: 2. /opt/build/repo/exampleSite/resources
1:03:09 AM:
1:03:09 AM: (netlify-plugin-hugo-cache-resources onPreBuild completed in 25ms)
1:03:09 AM:
1:03:09 AM: build.command from netlify.toml
1:03:09 AM: ────────────────────────────────────────────────────────────────
1:03:09 AM:
1:03:09 AM: $ cd exampleSite && hugo --gc --themesDir ../.. -b ${URL}
1:03:09 AM: Error: module hugo-scroll not found; either add it as a Hugo Module or store it in /opt/build.: module does not exist
1:03:09 AM: Total in 0 ms
1:03:09 AM:
1:03:09 AM: build.command failed
1:03:09 AM: ────────────────────────────────────────────────────────────────
1:03:09 AM:
1:03:09 AM: Error message
1:03:09 AM: Command failed with exit code 255: cd exampleSite && hugo --gc --themesDir ../.. -b ${URL} (https://ntl.fyi/exit-code-255)
1:03:09 AM:
1:03:09 AM: Error location
1:03:09 AM: In build.command from netlify.toml:
1:03:09 AM: cd exampleSite && hugo --gc --themesDir ../.. -b ${URL}
1:03:09 AM:
1:03:09 AM: Resolved config
1:03:09 AM: build:
1:03:09 AM: command: cd exampleSite && hugo --gc --themesDir ../.. -b ${URL}
1:03:09 AM: commandOrigin: config
1:03:09 AM: environment:
1:03:09 AM: - HUGO_VERSION
1:03:09 AM: - HUGO_THEME
1:03:09 AM: - HUGO_ENV
1:03:09 AM: publish: /opt/build/repo/exampleSite/public
1:03:09 AM: publishOrigin: config
1:03:09 AM: plugins:
1:03:09 AM: - inputs:
1:03:09 AM: debug: true
1:03:09 AM: origin: config
1:03:09 AM: package: netlify-plugin-hugo-cache-resources
1:03:10 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
1:03:10 AM: Failing build: Failed to build site
1:03:10 AM: Finished processing build request in 20.627s
Quiero sobretodo entender este comando complicado y la url a la que se refiere: cd exampleSite && hugo --gc --themesDir ../.. -b ${UR
1:03:09 AM: In build.command from netlify.toml:
1:03:09 AM: cd exampleSite && hugo --gc --themesDir ../.. -b ${URL}
Deploy log
Maximize log
Initializing
Complete
Building
Failed
1:03:10 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
1:03:08 AM: Netlify Build
1:03:08 AM: ────────────────────────────────────────────────────────────────
1:03:08 AM:
1:03:08 AM: ❯ Version
1:03:08 AM: @netlify/build 29.20.6
1:03:08 AM:
1:03:08 AM: ❯ Flags
1:03:08 AM: baseRelDir: true
1:03:08 AM: buildId: 64e5a10155a2000007696de6
1:03:08 AM: deployId: 64e5a10155a2000007696de8
1:03:08 AM:
1:03:08 AM: ❯ Current directory
1:03:08 AM: /opt/build/repo
1:03:08 AM:
1:03:08 AM: ❯ Config file
1:03:08 AM: /opt/build/repo/netlify.toml
1:03:08 AM:
1:03:08 AM: ❯ Context
1:03:08 AM: production
1:03:08 AM:
1:03:08 AM: ❯ Loading plugins
1:03:08 AM: - netlify-plugin-hugo-cache-resources@0.2.1 from netlify.toml
1:03:09 AM:
1:03:09 AM: netlify-plugin-hugo-cache-resources (onPreBuild event)
1:03:09 AM: ────────────────────────────────────────────────────────────────
1:03:09 AM:
1:03:09 AM: Checking if resources exist at exampleSite/resources
1:03:09 AM: Restored cached resources folder. Total files: 2
1:03:09 AM: ---
1:03:09 AM: 1. /opt/build/repo/exampleSite
1:03:09 AM: 2. /opt/build/repo/exampleSite/resources
1:03:09 AM:
1:03:09 AM: (netlify-plugin-hugo-cache-resources onPreBuild completed in 25ms)
1:03:09 AM:
1:03:09 AM: build.command from netlify.toml
1:03:09 AM: ────────────────────────────────────────────────────────────────
1:03:09 AM:
1:03:09 AM: $ cd exampleSite && hugo --gc --themesDir ../.. -b ${URL}
1:03:09 AM: Error: module hugo-scroll not found; either add it as a Hugo Module or store it in /opt/build.: module does not exist
1:03:09 AM: Total in 0 ms
1:03:09 AM:
1:03:09 AM: build.command failed
1:03:09 AM: ────────────────────────────────────────────────────────────────
1:03:09 AM:
1:03:09 AM: Error message
1:03:09 AM: Command failed with exit code 255: cd exampleSite && hugo --gc --themesDir ../.. -b ${URL} (https://ntl.fyi/exit-code-255)
1:03:09 AM:
1:03:09 AM: Error location
1:03:09 AM: In build.command from netlify.toml:
1:03:09 AM: cd exampleSite && hugo --gc --themesDir ../.. -b ${URL}
1:03:09 AM:
1:03:09 AM: Resolved config
1:03:09 AM: build:
1:03:09 AM: command: cd exampleSite && hugo --gc --themesDir ../.. -b ${URL}
1:03:09 AM: commandOrigin: config
1:03:09 AM: environment:
1:03:09 AM: - HUGO_VERSION
1:03:09 AM: - HUGO_THEME
1:03:09 AM: - HUGO_ENV
1:03:09 AM: publish: /opt/build/repo/exampleSite/public
1:03:09 AM: publishOrigin: config
1:03:09 AM: plugins:
1:03:09 AM: - inputs:
1:03:09 AM: debug: true
1:03:09 AM: origin: config
1:03:09 AM: package: netlify-plugin-hugo-cache-resources
1:03:10 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
1:03:10 AM: Failing build: Failed to build site
1:03:10 AM: Finished processing build request in 20.627s
Quiero sobretodo entender este comando complicado y la url a la que se refiere: cd exampleSite && hugo --gc --themesDir ../.. -b ${UR
1:03:09 AM: In build.command from netlify.toml:
1:03:09 AM: cd exampleSite && hugo --gc --themesDir ../.. -b ${URL}