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 in elasticsearch-full formula. #150

Closed
nataliaroncea12 opened this issue Jul 27, 2023 · 10 comments
Closed

Error in elasticsearch-full formula. #150

nataliaroncea12 opened this issue Jul 27, 2023 · 10 comments

Comments

@nataliaroncea12
Copy link

I have a M1 Mac, and my elasticsearch-full stoped working. I tried to reinstall it but this is the error message i get

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:
  /usr/local/Homebrew/Library/Taps/elastic/homebrew-tap/Formula/elasticsearch-full.rb:68

I have also tried to change the plist_options line with something the method "service" but it was also unsuccsesfull.
Can you please advise?

@kapilkaisare
Copy link

Seeing the same problem as well.

@todgru
Copy link

todgru commented Jul 27, 2023

A PR is open to fix this issue. Until approved, applying the patch should resolve the issue: #144 (comment)

cd /usr/local/Homebrew/Library/Taps/elastic/homebrew-tap
git fetch origin pull/144/head:patch-1
git checkout patch-1

thanks to @euxx

@marcosvcloures
Copy link

The actual folder for M1 Macs is

cd /opt/homebrew/Library/Taps/elastic/homebrew-tap

@todgru
Copy link

todgru commented Jul 27, 2023

@marcosvcloures, we noticed some of our M1 users have homebrew installed in /opt while others, /usr/local.

@Equationzhao
Copy link

+1

@GreatMuta514
Copy link

GreatMuta514 commented Jan 22, 2024

$ brew services start elasticsearch-full

Error: elasticsearch-full: undefined method `plist_options' for Formulary::FormulaNamespacefc8f134bd39648de0819bacf06d5db7a23dff2b46b56fa93160065443c96cc07::ElasticsearchFull:Class

@alexventuraio
Copy link

I'm getting the exact same error when trying to install it with brew:

> brew tap elastic/tap
==> Tapping elastic/tap
Cloning into '/opt/homebrew/Library/Taps/elastic/homebrew-tap'...
remote: Enumerating objects: 1407, done.
remote: Counting objects: 100% (586/586), done.
remote: Compressing objects: 100% (65/65), done.
remote: Total 1407 (delta 559), reused 530 (delta 521), pack-reused 821
Receiving objects: 100% (1407/1407), 328.79 KiB | 1.71 MiB/s, done.
Resolving deltas: 100% (1099/1099), done.
Tapped 17 formulae (38 files, 448.8KB).

> brew install elastic/tap/elasticsearch-full
Error: elastic/tap/elasticsearch-full: undefined method `plist_options' for Formulary::FormulaNamespacebf9a1382d41b546c07ca9fb03a7076777de36a194bc5d2ee6351261ec59a8ed3::ElasticsearchFull:Class

@GreatMuta514 Any progress on fixing it?

@alexventuraio
Copy link

I'm getting the exact same error when trying to install it with brew:

Any progress on fixing it?

Ok, I did this to get it fixed and able to install ES 7 in Mac with M1 chip:

  • Open the file with the class failing using your editor like this: vim /opt/homebrew/Library/Taps/elastic/homebrew-tap/Formula/elasticsearch-full.rb
  • Replace the lines as per the opened PR here
    service do
      run [opt_bin/"elasticsearch"]
      working_dir var
      log_path var/"log/elasticsearch.log"
      error_log_path var/"log/elasticsearch.log"
    end
  • Save the file and re-run the brew install ... command, you should be good now.

@RandomJo
Copy link

RandomJo commented Mar 2, 2024

In addition following the lead of @todgru and @marcosvcloures, I also had to follow these instructions to get it fully working: https://gist.github.com/todgru/0ba097d63318313f12a52594217f8e2b

@mgreau
Copy link
Member

mgreau commented Apr 3, 2024

Replace the lines as per the opened PR here

The PR has been merged to fix this problem.

@mgreau mgreau closed this as completed Apr 3, 2024
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

9 participants