-
-
Notifications
You must be signed in to change notification settings - Fork 365
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
Windows Support : Exit Code: 2(Misuse of shell builtins) #101
Comments
Thanks for the report, indeed I cannot help a lot with Windows support. However could you try running the command I'm suspecting this command doesn't work on windows. |
Alright, I tried to manually run the command and this is the output:
So I suspect the file was corrupted (maybe because it was bundled from a non windows machine) and I downloaded a new one from the source on https://secure.php.net/get/php-7.2.5.tar.gz/from/a/mirror and saved the file into .bref\bin\php I re-ran the deploy command and got:
I re-ran the untar command manually and after 3-4 minutes it completed with no error, making the untar command not the cause. But even if I change max_input_time, max_execution_time or default_socket_timeout I still get the timeout. Maybe this is not related to php.ini but PowerShell - which I doubt. Also maybe an idea to add a parameter in the deploy command to skip the untar step if we already "untared" the php archive? Thanks |
OK so maybe there's a way to fix this: This is the line that runs the See an example here: If you can try it on your machine and it works you could send a pull request? |
I tried to run the deployment from the Ubuntu App on Windows 10 but still got the same error. So I looked at the code and as you explained the default timeout is 60s. I have added this and it works: FYI, it took me 14min to deploy the sample code. My machine is using SSD so I assume the bottleneck is the CPU (i7 - first gen?).
|
Yes I have to agree that the If I were you I'd try investigating why tar takes so long on Windows. You have a good processor and a SSD so I see no reason for this to take so long… |
At least it allowed to discover this minor enhancement but I will investigate why, it may be related to Windows Defender. Made a PR, all the processes finished but now facing the same issue #80 Closing this issue. |
I would guess a antivirus software is slowing the tar process |
Hi @mnapoli ,
Just saw video of you on YT explaining about serverless and found this Bref project interesting, so I give it a try.
I know that you are not working on Windows but maybe someone faced this issue and has a solution:
Thanks
The text was updated successfully, but these errors were encountered: