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

[v2.5.1] Warning: chmod(): Operation not permitted #381

Open
aistis- opened this issue Sep 7, 2015 · 10 comments
Open

[v2.5.1] Warning: chmod(): Operation not permitted #381

aistis- opened this issue Sep 7, 2015 · 10 comments

Comments

@aistis-
Copy link

aistis- commented Sep 7, 2015

This commit leads us to have a following error:

Warning: chmod(): Operation not permitted

Work around is remove the line or suppress the errors chmod($tmpFileName, 0664);

We are using code inside vagrant machine, but it does not work even on 777 permissions.
@beberlei could you advice something, mate? :)

@Ocramius
Copy link
Member

Ocramius commented Sep 7, 2015

@aistis- is the file that was created not owned by your process? Or is it already existing? What does a manual chmod report in that environment?

@Ocramius
Copy link
Member

Ocramius commented Sep 8, 2015

@aistis- can you just inline the output here, please? Can't access those drive files.

@aistis-
Copy link
Author

aistis- commented Sep 8, 2015

@Ocramius I have updated the urls

@Ocramius
Copy link
Member

Ocramius commented Sep 8, 2015

Looks like the error occurs when nginx tries chmod()

Does nginx have access to that dir? Seems to be owned by vagrant, which is probably not in the same group.

@aistis-
Copy link
Author

aistis- commented Sep 8, 2015

It is clear that the problem is related to php5-fpm permissions. It was working under www-data:www-data and on vagrant:www-data it works fine. vagrant is in www-data group and www-data in vagrant

@kirtixs
Copy link

kirtixs commented Sep 9, 2015

This issue is similiar to symfony/symfony#2125
Adding a @ in front of chmod fixes it.

We are working on a vagrant system and the project is mounted using samba, since chmod is not supported on ntfs/samba the Exception is thrown.

@kimhemsoe
Copy link
Member

@redshark1802 Small advice, you should move the cache folder out the vagrant folder if possible. It gives a nice speed boost and fixes this issue until we get a real fix in.

mpdude referenced this issue in doctrine/orm Sep 19, 2015
@mpdude
Copy link

mpdude commented Oct 1, 2015

There is a discussion whether or not silencing this is a good thing. Affects other Doctrine components as well.

@aistis-
Copy link
Author

aistis- commented Oct 1, 2015

Our workaround was to set vagrant as php5-fpm user.

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

5 participants