-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
[🐛 BUG]: handle_serve_command
function call error when having spaces on the server.command
path
#1667
Comments
Hey @nunomaduro 👋🏻
|
Also, I'm not sure this is the right place to install binaries on MacOS. In general, this folder is used for the configuration files, program working data, etc., but not for the binaries. The usual place for the binaries is |
Yes, I double-checked the docs, this is not an RR bug, but rather a Herd inconsistent with OS recommendations. Here is the link. Have a look at the table 1-2, 1-3:
|
None of this options is working for me. @marcelpociot Any ideas here buddy? |
@nunomaduro As a third option, you can create a symlink to the |
Well the Application Support folder is a folder that holds all files that an app needs in order to operate (files supporting the application). |
Hey @mpociot 👋🏻 Nice to meet you. Unfortunately, I can't agree with your idea that support files (or files supporting the application) can contain other (downloaded) binaries. And Apple docs say about this - "App-created data files, configuration files, templates, or other fixed or modifiable resources managed by the application". The second example is |
By But still, as a workaround, the PHP binary from |
Well, the |
So, instead of: command: "php psr-worker.php" Use something like this, w/o any limitation on any symbols in the paths: command:
- "/Users/nunomaduro/Library/'Application Support'/Herd/bin/php82" # Command
- "arg1"
- "arg2"
- "etc" Or: command: ["/Users/nunomaduro/Library/'Application Support'/Herd/bin/php82", "arg1", "arg2" ,"etc" ] So, what do you think? |
So the future version will be backward compatible with the previous configurations with the string as command and arguments. But it will also support the new syntax. |
Can you give me a bash command that works as "inline" option? In other words, can you adjust the command bellow to something that works with "spaces"?
|
I think that in your case, it might be an option to do the following (after we implement this syntax for the command):
EDIT: The first argument is a path to the executable, all other elements in the array are arguments to be passed to the executable (as usual). The same as we use in the |
Thank you - however seems to be failing. So, my understanding is that you will add support for this new syntax correct?
|
Yes, I'm just suggesting a new syntax before implementation 😃 If it works for you, I'll add this issue to the |
Thanks - just ping me here once is ready! And thanks again! |
@nunomaduro 👋🏻 Fixed, |
Thank you. However, @rustatian, we've downloaded the binary from that action, and we are still facing the same issue: Running:
Output:
|
^^^^^^ |
@nunomaduro After I push an updated plugins to the master (early next week), only after that you can check the latest GitHub action (for the previous one I said -> |
@nunomaduro Ok, here you are: https://github.com/roadrunner-server/roadrunner/actions/runs/5796771575 |
@nunomaduro Have you tried the build? Any problems with it? |
Still not working, here is the output:
-- With escaped space:
|
@nunomaduro This is yaml parsing limitation unfortinately. ATM this feature is fully supported via configuration (I double checked). |
@rustatian I've tried removing the space from the path from the inline option:
But still getting an error:
|
@jbrooksuk Hey 👋🏻 Sorry to hear that. This feature is supported in configuration ( At the moment, I don't plan to support it, since folders with spaces is a non-standard behavior. And while this bug is about support in general, the problem here (as I posted above, apple dev docs) is incorrectly placing the binary (herd php binary) in the folder with configuration files (Application Support). |
@rustatian |
I'm always open to PRs 😃
Most have the binaries in the same place (MacOS, Linux) - If you want to put binaries in a different folder, like I'm just trying to explain to you my reasoning, not just - |
I suggested you a standard solution - do not add herd binaries located in the Application Support to the |
It seems to be working using the @jbrooksuk could you give it a try? Your modified command below:
|
@bnzo That works. Thanks! |
No duplicates 🥲.
What happened?
Seems to be impossible to provide a
server.command
with spaces on the command's path. Here is an example:I've tried multiple aways to escape the "Application Support", however the result is aways the same:
Any ideas for what to solve this issue?
Version (rr --version)
rr version 2023.2.1 (build time: 2023-07-27T17:12:33+0000, go1.20.6), OS: darwin, arch: arm64
How to reproduce the issue?
rr version 2023.2.1
Relevant log output
handle_serve_command: Function call error: got initial serve error from the Vertex *http.Plugin, stopping execution, error: static_pool_allocate_workers: WorkerAllocate: fork/exec /Users/nunomaduro/Library/Application: no such file or directory
The text was updated successfully, but these errors were encountered: