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

Docker build failed with permissions denied error on step 119 #25

Closed
pankaj-sachan opened this issue Jan 17, 2018 · 2 comments
Closed

Comments

@pankaj-sachan
Copy link

Hello,

I tried building bistro using docker image and i am facing this issue .

Command :
os_image=ubuntu:16.04 gcc_version=5 make_parallelism=2 travis_cache_dir=~/travis_ccache ./../build/fbcode_builder/travis_docker_build.sh

Error:
Step 119/126 : RUN PATH="$PATH:"'/home/install'/bin TEMPLATES_PATH='/home/install'/include/thrift/templates ./cmake/run-cmake.sh Debug -DCMAKE_INSTALL_PREFIX='/home/install'
---> Running in e731295f3654
/bin/bash: ./cmake/run-cmake.sh: Permission denied
The command '/bin/bash -c PATH="$PATH:"'/home/install'/bin TEMPLATES_PATH='/home/install'/include/thrift/templates ./cmake/run-cmake.sh Debug -DCMAKE_INSTALL_PREFIX='/home/install'' returned a non-zero code: 126

  • build_exit_code=126
  • echo 'Build failed with code 126, trying to save ccache'
    Build failed with code 126, trying to save ccache

This file seems to have all the permissions. Don't know whats going wrong.
rwxrwxrwx 1 psachan psachan 3K Jan 11 11:58 ./cmake/run-cmake.sh*

Any help is appreciated.
Thanks

@snarkmaster
Copy link
Contributor

Thanks for writing. I have not been able to reproduce this issue in an Ubuntu 14.04 VM with Docker 1.12.5, as well as some other 16.04 VMs. Also, Bistro's Travis builds pass most of the time these days.

So, something has to be different about your environment. Let me ask some questions:

  • Does this still reproduce for you?
  • Are you working with a clean checkout?
  • I'm pretty surprised that your run-cmake.sh is world-writable. Did you change that?
  • Which OS are you on? Docker version?
  • What filesystem is your git checkout on?

@snarkmaster
Copy link
Contributor

Please reopen with more details if this is still important to you.

facebook-github-bot pushed a commit that referenced this issue Jul 10, 2020
…eps (#25)

Summary:
Fixes include:
1. Passing "GETDEPS_BUILD_DIR" and "GETDEPS_INSTALL_DIR" env variable and using them in eden/scm/Makefile rather than assuming the source code is always in the same place regardless getdeps arguments (it isn't).
2. Added "fbthrift-source" and "fb303-source" to avoid unnecessary compilation (at least of fb303) and to put fbthrift and fb303 source code in an easy to locate place inside getdeps' "installed" folder.

Pull Request resolved: facebook/sapling#25

Test Plan: sandcastle, check oss-eden_scm-darwin-getdeps

Reviewed By: farnz

Differential Revision: D22431872

Pulled By: lukaspiatkowski

fbshipit-source-id: 8ccbb090713ec085a5dd56df509eb58ab6fb9e34
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