dancryer / PHPCI

PHPCI is a free and open source continuous integration tool specifically designed for PHP.
BSD 2-Clause "Simplified" License
2.42k stars 439 forks source link

Can't understand if "Permission denied" occurred #92

Closed vitkovskii closed 11 years ago

vitkovskii commented 11 years ago

I ran build from local path.

Executing: cp -Rf "/data/lingualeo/infrastructure/deploy/data/base_repo" "/data/www/phpci/web/build/project2-build11/" Working copy created: /data/www/phpci/web/build/project2-build11/

PHPCI said that working copy was successfully created, but really "Permission denied" occurred and no working dir was created. All plugins fails after this.

No chance to understand this from console output.

dancryer commented 11 years ago

Hi @vitkovskii - Do you know if the the "project2-build11" directory was created at all? Or was the directory created, but the cp operation failed as you the system didn't have access to read from /data/lingualeo/infrastructure/deploy/data/base_repo ?

vitkovskii commented 11 years ago

Hello, @dancryer. I think that directory wasn't created at all. Because ls -la /data/www/phpci/web/build displays nothing after build.

dancryer commented 11 years ago

@vitkovskii - It's tricky, as PHPCI automatically deletes the build directory after the build runs, whether it was successful or not.

I will add some more detailed logging to that part of the build process and see if we can figure it out. I assume you are using a Local Path build?

vitkovskii commented 11 years ago

Yes, it was Local Path build. Thanks a lot =)

dancryer commented 11 years ago

Hi @vitkovskii - Did you ever get to the bottom of this? I can't reproduce it no matter what I try...

I'm going to close this for now, but please do reopen it if the issue isn't resolved.

Spiff77 commented 10 years ago

Hello,

I have the same problem. I have git on windows then push on a VM with linux and PHPCI installed.

Here is the build.log report:

Working copy created: / RUNNING PLUGIN: php_unit Error trying to execute: /vendor/bin/phpunit --tap -c "/build/logs/phpunit.xml" --coverage-html /build/logs/coverage  sh: 1: /vendor/bin/phpunit: Permission denied   EXCEPTION: TapParser only supports TAP version 13 PLUGIN STATUS: FAILED RUNNING PLUGIN: php_mess_detector Error trying to execute: /vendor/bin/phpmd "/" xml codesize,unusedcode,naming --exclude vendor,tests --suffixes php sh: 1: /vendor/bin/phpmd: Permission denied 

EXCEPTION: Could not process PHPMD report XML. PLUGIN STATUS: FAILED RUNNING PLUGIN: php_code_sniffer Error trying to execute: /vendor/bin/phpcs --report=json --standard=PSR2 --extensions=php --ignore=vendor,tests "/" sh: 1: /vendor/bin/phpcs: Permission denied

etc etc..

I have a 777 on the build folder and run the script with the nohup method.

Do you have an idea from where it can come?

UPDATE: I checked if folder is well created before beeing deleted and its okay (created in 755)

martindines commented 10 years ago

I also get a similar failure:

RUNNING PLUGIN: php_unit
sh: 1: /vendor/bin/phpunit: Permission denied


EXCEPTION: TapParser only supports TAP version 13
PLUGIN STATUS: FAILED

Will edit once I've investigated further :)