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

setfacl: Option -m: Invalid argument near character 3 on Ubuntu 14.04 #12

Open
Nico-h opened this issue Jul 8, 2016 · 6 comments
Open

Comments

@Nico-h
Copy link

Nico-h commented Jul 8, 2016

Hi,
I'm unfortunately facing this error with Ubuntu 14.04 but it works fine with Debian 8

Deploy.rb file:

set :file_permissions_paths, ["web", "web/logs", "resources/cache"]
set :file_permissions_chmod_mode, "0777"
set :file_permissions_users, ["www-data"]
before "deploy:updated", "deploy:set_permissions:acl"

Last stack:

INFO [e9cb5f4a] Running /usr/bin/env setfacl -dRn -m u:www-data:rwX -m u::rwX /var/www/html//releases/20160708145928/web /var/www/html//releases/20160708145928/web/logs /var/www/html/...

DEBUG [e9cb5f4a] Command: /usr/bin/env setfacl -dRn -m u:www-data:rwX -m u::rwX /var/www/html//releases/20160708145928/web /var/www/html//releases/20160708145928/web/logs /var/www/html/...

INFO [e9cb5f4a] Finished in 0.013 seconds with exit status 0 (successful).

DEBUG [648790b1] setfacl: Option -m: Invalid argument near character 3

Cap deploy failes. Update list and upgrade packages done.

Any idea please ?

Thanks very much

@Nico-h
Copy link
Author

Nico-h commented Jul 11, 2016

The error occurs when I have a multiple server deploy with different users. Otherwise it works separately.

@zorbash
Copy link

zorbash commented Sep 19, 2016

Can you please make sure that the user www-data exists?

I noticed that running /usr/bin/env setfacl -dRn -m u:<userX>:rwX
when userX does not exist emits this kind of error.

@kevin-lot
Copy link

According to the last documentation,
they removed the -n parameter
http://symfony.com/doc/current/setup/file_permissions.html#using-acl-on-a-system-that-supports-setfacl-linux-bsd

@kevin-lot
Copy link

In fact, on master the -n parameter is missing like the official documentation.
Can you tag your code version plz ?

@lustremedia
Copy link

Had this issue on CentOS. Here the user "www-data" is not present but rather "nginx", "apache", or "httpd". Switching the user to one that was present, worked for me for a multiple server deployment!

@7eggert
Copy link

7eggert commented Sep 24, 2023

This still occurs and it's a very bad way to say "user not found".
Edit: This isn't even the right project. I'll look somewhere else

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