Failed to run 'override-build': Exit code was 1

When using snapcraft.io builder I get this error for all platforms but not for 64-bit version
Failed to run ‘override-build’: Exit code was 1.
https://paste.ubuntu.com/p/h7gPBcTsgg/
And this is my .yaml
name: ubuntu-mate-launchpad # you probably want to 'snapcraft register ’
version: ‘0.1’ # just for humans, typically ‘1.2+git’ or ‘1.3.2’
summary: A fast way to report problems in UBuntu Mate # 79 char long summary
description: |
This is my-snap’s description. You have a paragraph or two to tell the
most important story about your snap. Keep it under 100 words though,
we live in tweetspace and your description wants to look good in the snap
store.
grade: devel # must be ‘stable’ to release into candidate/stable channels
confinement: strict # use ‘strict’ once you have the right plugs and slots

parts:
electron-app:
source: app/
plugin: nodejs

stage-packages:
  - libnotify4
  - libappindicator1
  - libxtst6
  - libnss3
  - libxss1
  - fontconfig-config
  - gconf2
  - libasound2
  - pulseaudio


after:
  - desktop-gtk3



override-build: |
  node_modules/.bin/electron-builder
  mkdir $SNAPCRAFT_PART_INSTALL/app
  mv dist/linux-unpacked/* $SNAPCRAFT_PART_INSTALL/app
prime:
  - -node_modules

apps:
ubuntu-mate-launchpad:
command: env TMPDIR=$XDG_RUNTIME_DIR desktop-launch $SNAP/app/ubuntu-mate-launchpad
plugs:
- home
- x11
- browser-support
- network
- gsettings
- pulseaudio

  • opengl
    Thanks

Wrap your code with backticks(```) to avoid it being interpreted as a Markdown-formatted text.

[08/Sep/2018:09:09:13 +0000] "CONNECT github-production-release-asset-2e65be.s3.amazonaws.com:443 HTTP/1.1" 200 5966359 "-" "Go-http-client/1.1"
[08/Sep/2018:09:09:13 +0000] "CONNECT github-production-release-asset-2e65be.s3.amazonaws.com:443 HTTP/1.1" 200 5966852 "-" "Go-http-client/1.1"
[08/Sep/2018:09:09:13 +0000] "CONNECT github-production-release-asset-2e65be.s3.amazonaws.com:443 HTTP/1.1" 200 5969404 "-" "Go-http-client/1.1"
[08/Sep/2018:09:09:13 +0000] "CONNECT github-production-release-asset-2e65be.s3.amazonaws.com:443 HTTP/1.1" 200 5969403 "-" "Go-http-client/1.1"
[08/Sep/2018:09:09:13 +0000] "CONNECT github-production-release-asset-2e65be.s3.amazonaws.com:443 HTTP/1.1" 200 5969404 "-" "Go-http-client/1.1"
[08/Sep/2018:09:09:13 +0000] "CONNECT github-production-release-asset-2e65be.s3.amazonaws.com:443 HTTP/1.1" 200 5969404 "-" "Go-http-client/1.1"
[08/Sep/2018:09:09:13 +0000] "CONNECT github-production-release-asset-2e65be.s3.amazonaws.com:443 HTTP/1.1" 200 5969373 "-" "Go-http-client/1.1"
[08/Sep/2018:09:09:13 +0000] "CONNECT github-production-release-asset-2e65be.s3.amazonaws.com:443 HTTP/1.1" 200 5969365 "-" "Go-http-client/1.1"
mv: cannot stat 'dist/linux-unpacked/*': No such file or directory
Failed to run 'override-build': Exit code was 1.

This error doesn’t seem to be snapcraft-specific and is likely a networking problem, have you tried a manual rebuild?

UPDATE: Disregard this reply.

From the build log:

  • packaging       platform=linux arch=arm64 electron=2.0.8 appOutDir=dist/linux-arm64-unpacked
[... snip ...]
mv: cannot stat 'dist/linux-unpacked/*': No such file or directory
Failed to run 'override-build': Exit code was 1.

Note the dist/linux-arm64-unpacked vs dist/linux-unpacked: electron-builder seems to use a different output path on non-x86 architectures. You need to wildcard the directory name in your override-build.

1 Like

ok. but in my .yaml I don’t have a specific path
'('name: ubuntu-mate-launchpad # you probably want to 'snapcraft register ’
version: ‘0.1’ # just for humans, typically ‘1.2+git’ or ‘1.3.2’
summary: A fast way to report problems in UBuntu Mate # 79 char long summary
description: |
This is my-snap’s description. You have a paragraph or two to tell the
most important story about your snap. Keep it under 100 words though,
we live in tweetspace and your description wants to look good in the snap
store.
grade: devel # must be ‘stable’ to release into candidate/stable channels
confinement: strict # use ‘strict’ once you have the right plugs and slots

parts:
electron-app:
source: app/
plugin: nodejs

stage-packages:
  - libnotify4
  - libappindicator1
  - libxtst6
  - libnss3
  - libxss1
  - fontconfig-config
  - gconf2
  - libasound2
  - pulseaudio


after:
  - desktop-gtk3



override-build: |
  node_modules/.bin/electron-builder
  mkdir $SNAPCRAFT_PART_INSTALL/app
  mv dist/linux-unpacked/* $SNAPCRAFT_PART_INSTALL/app
prime:
  - -node_modules

apps:
ubuntu-mate-launchpad:
command: env TMPDIR=$XDG_RUNTIME_DIR desktop-launch $SNAP/app/ubuntu-mate-launchpad
plugs:
- home
- x11
- browser-support
- network
- gsettings

  • opengl’)

You do have a specific path, in the last line of your override-build:

1 Like

sorry, I am a first-time coder and it’s over the top for me right now. I will let this problem for now until I will have more knowledge.
Thx for all your help and have a great day/night!

1 Like