pip install - missing execute bits

127 views
Skip to first unread message

anemarkus

unread,
Dec 14, 2019, 4:44:49 AM12/14/19
to Ansible Project
hi,
I installed ansible via pip on a CentOS 7 workstation

$ sudo yum install python-virtualenv
$ virtualenv venv
$
. venv/bin/activate
$ pip install ansible

but all installed binaries are missing the execute permission

$ ls -l venv/bin/ansible
-rw-rw-r--. 1 me me 5975 Dec 14 10:35 venv/bin/ansible

why is that?
yes, there is the pip warning.

You are using pip version 9.0.1, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

i tried upgrading pip, setuptools and wheel inside the virtualenv, but no change -> missing execute bits

I also tried in a CentOS 7 container and installing inside the container went fine -> correct permissions, i.e. execute bits set.
I tried on another workstation -> missing execute bits
I tried on server -> execute bits are set.

I do not know how to debug this to solve the problem, asking for help.

--
best regards, Markus

Dick Visser

unread,
Dec 14, 2019, 8:54:50 AM12/14/19
to ansible...@googlegroups.com
Sounds like something with umask is off on your control system.
Remove the venv dir, and try again, but now first issue "umask 002"
before creating the venv.
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ba1af98a-b9e7-4697-9b8e-1bb5d24f1474%40googlegroups.com.



--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

anemarkus

unread,
Dec 15, 2019, 12:38:44 PM12/15/19
to Ansible Project


On Saturday, December 14, 2019 at 2:54:50 PM UTC+1, Dick Visser wrote:
Sounds like something with umask is off on your control system.
Remove the venv dir, and try again, but now first issue "umask 002"
before creating the venv.

it is not the umask

with umask 000 i get

-rw-rw-rw-. 1 mafalb mafalb  5983 Dec 15 18:31 ansible

do you have another idea?


On Sat, 14 Dec 2019 at 10:45, anemarkus <wne...@gmail.com> wrote:
>
> hi,
> I installed ansible via pip on a CentOS 7 workstation
>
> $ sudo yum install python-virtualenv
> $ virtualenv venv
> $ . venv/bin/activate
> $ pip install ansible
>
> but all installed binaries are missing the execute permission
>
> $ ls -l venv/bin/ansible
> -rw-rw-r--. 1 me me 5975 Dec 14 10:35 venv/bin/ansible
>
> why is that?
> yes, there is the pip warning.
>
>> You are using pip version 9.0.1, however version 19.3.1 is available.
>> You should consider upgrading via the 'pip install --upgrade pip' command.
>
>
> i tried upgrading pip, setuptools and wheel inside the virtualenv, but no change -> missing execute bits
>
> I also tried in a CentOS 7 container and installing inside the container went fine -> correct permissions, i.e. execute bits set.
> I tried on another workstation -> missing execute bits
> I tried on server -> execute bits are set.
>
> I do not know how to debug this to solve the problem, asking for help.
>
> --
> best regards, Markus
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible...@googlegroups.com.

anemarkus

unread,
Dec 15, 2019, 12:47:44 PM12/15/19
to Ansible Project


On Sunday, December 15, 2019 at 6:38:44 PM UTC+1, anemarkus wrote:


On Saturday, December 14, 2019 at 2:54:50 PM UTC+1, Dick Visser wrote:
Sounds like something with umask is off on your control system.
Remove the venv dir, and try again, but now first issue "umask 002"
before creating the venv.

it is not the umask

with umask 000 i get

-rw-rw-rw-. 1 mafalb mafalb  5983 Dec 15 18:31 ansible

also with umask 000 if I install ansible-lint I get

-rwxrwxrwx. 1 mafalb mafalb 273 Dec 15 18:41 ansible-venv/bin/ansible-lint

my interpretation: the permission problem is only with installed executables from ansible, not others.
it seems it is a problem with ansible but only under specific circumstances.

--
best regards, markus

anemarkus

unread,
Dec 27, 2019, 7:08:40 PM12/27/19
to Ansible Project


On Saturday, December 14, 2019 at 10:44:49 AM UTC+1, anemarkus wrote:
hi,
I installed ansible via pip on a CentOS 7 workstation

$ sudo yum install python-virtualenv
$ virtualenv venv
$
. venv/bin/activate
$ pip install ansible

but all installed binaries are missing the execute permission

$ ls -l venv/bin/ansible
-rw-rw-r--. 1 me me 5975 Dec 14 10:35 venv/bin/ansible

why is that?

I found out that it happens with /tmp mounted with noexec option
There is an issue about that

-- 
best regards, markus
Reply all
Reply to author
Forward
0 new messages