Skip to content
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

Error elasticsearch-full en macOs Ventura chip M1 y M1 pro #153

Open
esneyderariza19 opened this issue Aug 2, 2023 · 7 comments
Open

Error elasticsearch-full en macOs Ventura chip M1 y M1 pro #153

esneyderariza19 opened this issue Aug 2, 2023 · 7 comments

Comments

@esneyderariza19
Copy link

image

Error: elasticsearch-full: Calling plist_options is disabled! Use service.require_root instead.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/homebrew-core), or even better, submit a PR to fix it:
/opt/homebrew/Library/Taps/elastic/homebrew-tap/Formula/elasticsearch-full.rb:68

Ayuda por favor. Lo uso para Magento2 con Valet

@ronval
Copy link

ronval commented Aug 3, 2023

Ya i'm getting the same issue on an intel mac. some insight into this would be great.

@ronval
Copy link

ronval commented Aug 3, 2023

For anyone that is having this issue there was another issue post that addresses this
essentially use the patch that fixes this until its merged into the main branch

$ cd /usr/local/Homebrew/Library/Taps/elastic/homebrew-tap # or
$ cd /opt/homebrew/Library/Taps/elastic/homebrew-tap # For M1
$ git fetch origin pull/144/head:patch-1
$ git checkout patch-1

for some reason doing this didnt fix it for me so i had to add the patch manually to the file. So what i did was

open this file in my text editor

/usr/local/Homebrew/Library/Taps/elastic/homebrew-tap/Formula/elasticsearch-full.rb

DELETE THIS WHOLE THING

plist_options :manual => "elasticsearch"

  def plist
    <<~EOS
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
        <dict>
          <key>KeepAlive</key>
          <false/>
          <key>Label</key>
          <string>#{plist_name}</string>
          <key>ProgramArguments</key>
          <array>
            <string>#{opt_bin}/elasticsearch</string>
          </array>
          <key>EnvironmentVariables</key>
          <dict>
          </dict>
          <key>RunAtLoad</key>
          <true/>
          <key>WorkingDirectory</key>
          <string>#{var}</string>
          <key>StandardErrorPath</key>
          <string>#{var}/log/elasticsearch.log</string>
          <key>StandardOutPath</key>
          <string>#{var}/log/elasticsearch.log</string>
        </dict>
      </plist>
    EOS
  end

ADD/REPLACE WITH THIS INSTEAD

service do
    run [opt_bin/"elasticsearch"]
    working_dir var
    log_path var/"log/elasticsearch.log"
    error_log_path var/"log/elasticsearch.log"
end

then run

brew install elastic/tap/elasticsearch-full

That fixes this issue :)

@pupeno
Copy link

pupeno commented Aug 7, 2023

This is a duplicate of #150

@mibrahim09d
Copy link

For anyone that is having this issue there was another issue post that addresses this essentially use the patch that fixes this until its merged into the main branch

$ cd /usr/local/Homebrew/Library/Taps/elastic/homebrew-tap # or $ cd /opt/homebrew/Library/Taps/elastic/homebrew-tap # For M1 $ git fetch origin pull/144/head:patch-1 $ git checkout patch-1

for some reason doing this didnt fix it for me so i had to add the patch manually to the file. So what i did was

open this file in my text editor

/usr/local/Homebrew/Library/Taps/elastic/homebrew-tap/Formula/elasticsearch-full.rb

DELETE THIS WHOLE THING

plist_options :manual => "elasticsearch"

  def plist
    <<~EOS
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
        <dict>
          <key>KeepAlive</key>
          <false/>
          <key>Label</key>
          <string>#{plist_name}</string>
          <key>ProgramArguments</key>
          <array>
            <string>#{opt_bin}/elasticsearch</string>
          </array>
          <key>EnvironmentVariables</key>
          <dict>
          </dict>
          <key>RunAtLoad</key>
          <true/>
          <key>WorkingDirectory</key>
          <string>#{var}</string>
          <key>StandardErrorPath</key>
          <string>#{var}/log/elasticsearch.log</string>
          <key>StandardOutPath</key>
          <string>#{var}/log/elasticsearch.log</string>
        </dict>
      </plist>
    EOS
  end

ADD/REPLACE WITH THIS INSTEAD

service do
    run [opt_bin/"elasticsearch"]
    working_dir var
    log_path var/"log/elasticsearch.log"
    error_log_path var/"log/elasticsearch.log"
end

then run

brew install elastic/tap/elasticsearch-full

That fixes this issue :)

This solved my issue, great solution.

@awartani
Copy link

awartani commented Sep 7, 2023

cd /opt/homebrew/Library/Taps/elastic/homebrew-tap
git remote remove origin
git remote add origin [email protected]:cnmaple/homebrew-tap.git
git fetch
git pull origin main --ff-only
brew install elastic/tap/elasticsearch-full

@rohanmendon
Copy link

getting the same issue on mac m1 chip

brew install elastic/tap/elasticsearch-full
Error: elastic/tap/elasticsearch-full: Calling plist_options is disabled! Use service.require_root instead.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/homebrew-core), or even better, submit a PR to fix it:
  /opt/homebrew/Library/Taps/elastic/homebrew-tap/Formula/elasticsearch-full.rb:68

@NearXdu
Copy link

NearXdu commented Sep 22, 2023

brew install elastic/tap/elasticsearch-full

thanks, it's worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants