alt3 / cakebox

Framework agnostic virtual PHP Development Environment
128 stars 27 forks source link

Error installing application sources. #94

Closed kmcgowan0 closed 6 years ago

kmcgowan0 commented 6 years ago

When running cakebox application add mycake3.app , I get the error Error installing application sources.

I've checked the error log, and it seems to be a permissions problem:

[ErrorException] copy(/home/vagrant/.composer/cache/files/squizlabs/php_codesniffer/21fc9024bccaa50ebc7c3aa8aebb590119cbfa32.zip): failed to open stream: Permission denied","@tags":["cli.cakebox"],"@type":"cakephp"}

I've tried increasing the memory on the box, but no luck.

Any help would be greatly appreciated.

Thanks!

bravo-kernel commented 6 years ago

Yes, unfortunately this slipped in somewhere. The workaround until patched as copied from https://github.com/alt3/cakebox/issues/91#issuecomment-364211673:

FIX FOR PERMISSION ERROR WHEN CREATING A NEW APPLICATION

Run the following command inside your box:

sudo chown vagrant:vagrant /home/vagrant/.composer/cache/files/squizlabs -R

Please close ticket if this resolves the issue for you.

dereuromark commented 6 years ago

This should be documented somewhere.

bravo-kernel commented 6 years ago

Totally agree and I think the fix is as easy as adding the command to https://github.com/alt3/cakebox-console/blob/dev/src/Shell/UpdateShell.php probably.

sudo chown vagrant:vagrant /home/vagrant/.composer/cache/files/squizlabs -R
bravo-kernel commented 6 years ago

All box fixes should be done there. If you can wait a week then I will add it, if not, feel free to add it yourself.

dereuromark commented 6 years ago

The whole cache :) not just this one repo. But I guess we can wait on your fix.

bravo-kernel commented 6 years ago

ok, fair enough

bravo-kernel commented 6 years ago

Fixed through #100 💯