Open StrongManLi opened 1 year ago
Maybe when it was run the first time it did get far enough to create those files? Run ./gradlew clean
as root (or manually delete distribution/archives/build/jvm-options-hack/jvm.options.d
)?
I had many lingering permissions issues after running as root one time. If gradle starts a daemon when you do this, that can also impact later runs.
I was usually able to temporarily fix the issues by stopping the gradle daemon and running ./gradlew clean
as root.
However, the problems never fully disappeared until I deleted the entire project structure and re-cloned the repository.
The other day I downloaded version 2.3.0 of the source code and intend to build it in my CentOS 9 Stream. When I run "gradlew run", I got the exception "can not run opensearch with root", this exception will appear when I use the root user or use command "sudo". but if I run "gradlew run" without root or sudo, I got the new exception "Could not set file mode 750 on '/home/xx/OpenSearch/OpenSearch-2.3.0/distribution/archives/build/jvm-options-hack/jvm.options.d". Did I make a mistake?