Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

makedir() problem if not root user / AbstractEngine #178

Closed
synergiator opened this issue Nov 28, 2014 · 4 comments
Closed

makedir() problem if not root user / AbstractEngine #178

synergiator opened this issue Nov 28, 2014 · 4 comments

Comments

@synergiator
Copy link

As part of an ant script, phpdox executes successfully in root mode.
However as Jenkins there is some problem with an existing directory (access rights completely set to same user as script runner i.e. jenkins)

phpdox_bug

@theseer
Copy link
Owner

theseer commented Nov 29, 2014

This seems to be an issue out of scope for phpdox to fix: The file_exists() check (on line 62) returns false, claiming the file (or directory in this case) does not exist. This can only happen if either the filesystem is broken or - at bit more likely ;) - the OS or FS permissions don't allow the process to the see the directory or any of its parents.

Can you verify if after su'ing into the jenkins account you can access the given directory and/or (re-)create it when you remove it?

@synergiator
Copy link
Author

Hi, thx for your response. Retest:

  1. chown/chgrp whole Jenkins workspace
  2. su to jenkins
  3. removed all dirs under build folder where phpdox has written folders and files
  4. rerun ant
    result: same as above; build is however successful (whole thing in Jenkins frontend fails however due to postprocessing problems probably due to this issue).

Why does not phpdox tell in the log which folder that is?

theseer added a commit that referenced this issue Jan 3, 2015
@iwankgb
Copy link

iwankgb commented Mar 9, 2015

I have just upgraded phpdox to current master and the problem disappeared.

@theseer
Copy link
Owner

theseer commented Mar 9, 2015

Thanks for the heads up.

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

No branches or pull requests

3 participants