-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
Missing execution bit from chromedriver preventing its execution #54
Comments
Is the project in a shared folder? The shared fs driver you use most likely not preserve permissions. |
Hey, me and @XavierVallot are working together and I just encountered the same issue. When manually cloning the repo: Inside the VM, we are using php 7.2.7 and composer 1.6.5. |
@dunglas you are right, this problem only happens when we require a dependency inside this shared folder. I tried with non-shared folder I tried to update our Vagrantfile with this but it does not work: config.vm.synced_folder '.', '/srv/app',
type: 'nfs',
- mount_options: ['nolock', 'actimeo=1', 'fsc']
+ mount_options: ['nolock', 'actimeo=1', 'fsc', 'exec'] Do you have an idea @tristanbes? 🤔 |
maybe @nervo could enlight us on this (seems to happens only on Linux since on my OSX host, I can't reproduce) I just can't figure why it's doing this only with this library since you don't have any problem with executable files ( |
Maybe it is related to composer too? |
@XavierVallot @Kocal @tristanbes have you fixed the problem? same here with vagrant and shared FS |
no, the team stopped using Panthere because of this issue. It was a nightmare to debug/work with. Other executables are fine (doctrine, symfony console etc...) it seems that it's related only with panthere. We used Cypress for E2E tests. |
thanks @tristanbes |
@tristanbes you can always use your own binary using |
We tried that, but then other problem appeared. Maybe @Kocal remembers what it was. But it would be best if it works out of the box 📦 without the need to provide our own binaries.
Envoyé de mon iPhone
… Le 8 oct. 2018 à 21:34, Kévin Dunglas ***@***.***> a écrit :
@tristanbes you can always use your own binary using PANTHER_CHROME_DRIVER_BINARY if there is no other choice.
If someone can provide a repository with a reproducer, I can try to debug this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I agree, but as I never faced this problem (and it is likely due to NFS, a volume or something like that), it's hard to debug without reproducer. |
If I remember well, I think it was a composer issue at the final... 😞
I made a reproduction repository here: https://github.com/Kocal/symfony-panther-missing-executable-bit-nfs Thanks for your time! |
Yes, but not in this case. I tried to install By looking at its What happens if you add |
Ok, I think I get what the problem is. As the Composer warning highlights, |
@Kocal, it's probably just a side effect, the I don't think that copying Chromedriver in |
Good catch, that was the problem! |
Ok, I'm glad we sorted this out! The next step is to make it bold in the documentation that |
Thanks guys ! Glad you have sorted this out
Envoyé de mon iPhone
… Le 8 oct. 2018 à 23:09, Kévin Dunglas ***@***.***> a écrit :
Ok, I'm glad we sorted this out! The next step is to make it bold in the documentation that unzip must be installed to not have this issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Need to check this, this could unlock some important topics for me 👍 |
@dunglas thanks, installing Then I had another problem:
I installed libxi6 and libgconf-2-4 too to fix the problem. Edit: I was using chromium instead of chromedriver |
yeah, composer indeed makes the file executable when creating it in |
@supertanuki: Chrome and Chromedriver binaries require some libraries that are not installed by default with Alpine. |
Sorry to comment an old issue, but I think it may be interesting for others landing here from google. I kept getting this error: Which was also due to the fact that I had run composer install before installing unzip. |
Hi,
I'm trying to use Panthère in Symfony on Debian, but I have this error when launching my tests :
RuntimeException: sh: 1: exec: /srv/app/vendor/symfony/panthere/src/ProcessManager/../../chromedriver-bin/chromedriver_linux64: Permission denied
Indeed, here's the permission status :
Is there a way to install chromedriver without setting permissions by hand ?
The text was updated successfully, but these errors were encountered: