Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Builds fail with "fork/exec /usr/local/bin/build: no such file or directory" #127

Closed
aeneasr opened this issue Feb 2, 2018 · 7 comments
Closed

Comments

@aeneasr
Copy link

aeneasr commented Feb 2, 2018

I can not execute builds on the netlify platform, I receive the following error:

4:14:15 PM: Build command unable to start
4:14:15 PM: Error running command: fork/exec /usr/local/bin/build: no such file or directory

I ran a debug build based on this guide which worked without any issues.

@brycekahle
Copy link
Contributor

@arekkas Can you contact support? They can help you solve your build problems.

@aeneasr
Copy link
Author

aeneasr commented Feb 2, 2018

Ok! By the way, I was able to resolve it - seems that build images don't get booted when master branch doesn't use a build pipeline. In my case, I was using a branch and introduced a build pipeline to it.

@aeneasr aeneasr closed this as completed Feb 2, 2018
@brycekahle
Copy link
Contributor

@arekkas That is curious. Can you provide more details to make sure that isn't a problem on our end?

@aeneasr
Copy link
Author

aeneasr commented Feb 2, 2018

Hm, I'm not entirely sure. I have a netlify.toml file in the project root:

[build]
  base    = "public"
  publish = "public"
  command = "yarn build"

With that file, the build fails. If I remove the file and set those settings in the Netlify UI then the build succeeds. If I remove those settings from the Netlify UI then the build succeeds as well, but is obviously not built.

I have two branches:

  • master: Does not use build process (just some static html files)
  • new-site: Uses gatsby/node to build the website. I added the netlify.toml here.

I am seeing these issues in the PR build preview of new-site. Does that help?

@aeneasr aeneasr reopened this Feb 2, 2018
@brycekahle
Copy link
Contributor

@arekkas Are you sure you want the base to be public? Normally public is an output directory, and not where you want to issue build commands.

@aeneasr
Copy link
Author

aeneasr commented Feb 2, 2018

Oh, removing base resolves the error! The error message is quite misleading, maybe this could be improved?

@brycekahle
Copy link
Contributor

We can look into it, but at that point it is in a bash script so it isn't trivial.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants