-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
rabbitmq-service.bat install failed on folder which has "(" or ")" in the name #1756
Comments
Greetings. Can you please confirm this issue is still happening with the latest version of rabbitmq-env.bat? Thank you! |
Hello, Workaround: |
Relevant PR pending QA: #1979. Note that anyone can give it a shot and share the findings. |
Hello @michaelklishin #1979 pull request is not fixing this issue. I tried applying the changes of this pull request on rabbitmq-env.bat on a folder that has "(" and ")" characters and I still get "[foldername] was unexpected at this time." error. |
@callofktulu please attach your complete, un-altered @LadaVarga - it is very unlikely that we will support drives that have disabled 8.3 file names any time soon.
|
@lukebakken Non-system drives has disabled 8dot3name by default in Windows. Many of our customers have "program files (x86)" in non-system drives. |
@LadaVarga a workaround is to use directories that don't contain problematic characters. The |
@lukebakken as I wrote, we have the workaround. We will upgrade to newer version soon, we will see if we can fix it. |
The easiest way is to enable (as administrator) the 8dot3name support on E: with but it works only on extended paths created once this flag has been enabled, so for already existing paths does not work |
Maybe the same trick of quote (for supporting extented path) and after unquote proposed in PR #1979 can be applied in this part of code like this... Note: set ERL_LIBS="%~dpnx1" is the short form of %~dps1%~n1%~x1 and the s (short path form has been removed) REM Ensure all paths in ERL_LIBS do not contains non-ASCII characters. :filter_paths :filter_path |
…paths (having spaces) Related to Bug rabbitmq#1756 Include PR rabbitmq#1979
In particular needed when installing on drives with no 8dot3 flag enabled. Includes PR rabbitmq#1979 Fixes: Bug rabbitmq#1756
Fixed by #2088 and will ship in RabbitMQ |
This issue seems to appear again on 3.8.4, I was able to reproduce it with the standard installer. It looks like it was brought back in through d3bd7d7 The following
If |
@twjs76 if you understand what the root cause is, please submit a PR. Thank you. |
@twjs76 thank you for your contribution. |
STR
![2018-11-01 20_02_20-window](https://user-images.githubusercontent.com/22859476/47873333-3df3d380-de11-11e8-9d6c-860bbb62009c.png)
When Deploy RabbitMQ server to non-system drive with disabled 8do3 creation (Check: fsutil 8dot3name query e:)
and Folders has "(" or ")"
Examples:
*8dot3name disabled + e:\program files (x64)\yourcomapnyname\123456789111\rabbitmq_server-3.7.8\sbin*
**8dot3name enabled + c:\h(hj)\yourcomapnyname\123456789111\rabbitmq_server-3.7.8\sbin\ **
and Run "rabbitmq-service.bat install"
Then error thrown:
\yourcomapnyname\123456789111\rabbitmq_server-3.7.8\plugins was unexpected at this time.
During the investigation we figured out there is problem with these lines:
![2018-11-01 19_47_22-window](https://user-images.githubusercontent.com/22859476/47872842-f6b91300-de0f-11e8-9969-611bca6d8104.png)
https://github.com/rabbitmq/rabbitmq-server/blob/master/scripts/rabbitmq-env.bat#L459-L468
Solution
Don't know.
Workaround
rem line or remove whole ascii check section (we don't have problem with previous version in that area at all and it is used by thousands of customers)
call :filter_paths "%ERL_LIBS_orig%"
The text was updated successfully, but these errors were encountered: