sasha icon indicating copy to clipboard operation
sasha copied to clipboard

sandbox_apply_container: Operation not permitted

Open stalinkay opened this issue 6 years ago • 11 comments

Hi @artemnovichkov, I was trying to install your CLIs on a Mac running macOS High Sierra but was unable to. I believe the sandbox is not required when building on macOS High Sierra, see similar issue here. This issue affects Carting, FastFood and Sasha. See output below.

Updating Homebrew...
==> Installing fastfood from artemnovichkov/projects
==> Downloading https://github.com/artemnovichkov/fastfood/archive/1.3.tar.gz
==> Downloading from https://codeload.github.com/artemnovichkov/fastfood/tar.gz/1.3
######################################################################## 100.0%
==> make install PREFIX=/usr/local/Cellar/fastfood/1.3
Last 15 lines from /Users/hq/Library/Logs/Homebrew/fastfood/01.make:
2017-10-15 23:48:56 +0200

make
install
PREFIX=/usr/local/Cellar/fastfood/1.3

swift build -c release -Xswiftc -static-stdlib
error: manifest parse error(s):
sandbox-exec: sandbox_apply_container: Operation not permitted
make: *** [build] Error 1

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/artemnovichkov/homebrew-projects/issues

stalinkay avatar Oct 16 '17 04:10 stalinkay

Hi, @stalinkay! I have updated Sasha and disabled sandbox containers in 2.0.3 version. Can you check Sasha installation now? If it works for you, I'll update another scripts.

artemnovichkov avatar Oct 16 '17 06:10 artemnovichkov

@artemnovichkov It installed successfully. There's, however, an error when I run sasha project in an arbitrary directory.

Enter project name: 
Cool
❌ An error occurred:
The operation couldn’t be completed. (Files.FileSystem.Item.PathError error 0.)

stalinkay avatar Oct 16 '17 06:10 stalinkay

@stalinkay maybe there is a folder with Cool name in script directory?

artemnovichkov avatar Oct 16 '17 06:10 artemnovichkov

@artemnovichkov This is the output of ls -a. No Cool folder.

.              .editorconfig  .gitignore     ansible.cfg    files          handlers       hosts.dev      hosts.qa       main.pb.yml    setup.sh       templates      tests          vault.pass
..             .git           Readme.md      bootstrap.rb   group_vars     host_vars      hosts.prod     init-target.sh roles          tasks          test.pb.yml    vars

stalinkay avatar Oct 16 '17 06:10 stalinkay

Strange, I checked your case and it works for me. Files.FileSystem.Item.PathError related to empty path. Can you run sasha in another directory?

artemnovichkov avatar Oct 16 '17 07:10 artemnovichkov

@artemnovichkov I created a new directory on the desktop, then ran sasha project but no luck. I'll try it on a different mac and revert back.

Enter project name: 
UI
❌ An error occurred:
The operation couldn’t be completed. (Files.FileSystem.Item.PathError error 0.)

stalinkay avatar Oct 16 '17 08:10 stalinkay

@stalinkay, ok, thank you, I'll try to find it out. Last question - do you use 2.0.3 version?

artemnovichkov avatar Oct 16 '17 08:10 artemnovichkov

@artemnovichkov Yeah, see below.

==> Installing sasha from artemnovichkov/projects
==> Downloading https://github.com/artemnovichkov/sasha/archive/2.0.3.tar.gz
==> Downloading from https://codeload.github.com/artemnovichkov/sasha/tar.gz/2.0.3
######################################################################## 100.0%
==> make install PREFIX=/usr/local/Cellar/sasha/2.0.3
🍺  /usr/local/Cellar/sasha/2.0.3: 5 files, 10MB, built in 38 seconds

stalinkay avatar Oct 16 '17 08:10 stalinkay

Hi, @stalinkay! Another related question - have you changed project.sasha file?

artemnovichkov avatar Oct 18 '17 06:10 artemnovichkov

@artemnovichkov Hi man. I simply installed sasha and ran sasha project. Nothing else. It also seems that ~/.sasha/project.sasha is not present, which means it is probably not being copied over during installation.

stalinkay avatar Oct 18 '17 18:10 stalinkay

Hi, @stalinkay! You're right, .sasha isn't copied, but I don't know why: https://github.com/artemnovichkov/sasha/blob/20d5b2640afd1f845266dca7b434324f13074b7b/Makefile#L22-L25 Installation finished w/o errors, but .sasha doesn't exist 🤷‍♂️

artemnovichkov avatar Oct 24 '17 06:10 artemnovichkov