elastic / homebrew-tap Goto Github PK
View Code? Open in Web Editor NEWHomebrew tap for the Elastic Stack
License: Apache License 2.0
Homebrew tap for the Elastic Stack
License: Apache License 2.0
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
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?
There are several problems with Metricbeat and Filebeat installed from homebrew:
Cannot find modules:
Rhodas-MBP:bin$ filebeat modules enable system
Module system doesn't exist!
Rhodas-MBP:bin$ metricbeat modules enable system
Module system doesn't exist!
Rhodas-MBP:bin$ metricbeat modules list
Enabled:
Disabled:
Cannot load ingest pipelines
filebeat setup --pipelines --modules system
GET /_ingest/pipeline/filebeat* returns {}
Using Brew I get this warning on MacOS 12.0.1:
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
/usr/local/Homebrew/Library/Taps/elastic/homebrew-tap/Formula/elasticsearch-full.rb:9
I've run brew doctor and tried re-installing the full package already.
i'm installing these packages via CI with an unprivileged user
we grant specific sudo privileges via /etc/sudoers.d/username
but i can't figure out what commands i need to approve for this install
the failed install:
user@:~$ brew install --verbose --debug logstash-full
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/elastic/homebrew-tap/Formula/logstash-full.rb
==> Downloading https://artifacts.elastic.co/downloads/logstash/logstash-7.17.4-darwin-x86_64.tar.gz?tap=elastic/homebrew-tap
/usr/local/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/3.5.4\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 10.15.7\)\ curl/7.64.1 --header Accept-Language:\ en --retry 3 --location --silent --head --request GET https://artifacts.elastic.co/downloads/logstash/logstash-7.17.4-darwin-x86_64.tar.gz\?tap=elastic/homebrew-tap
Already downloaded: /Users/user/Library/Caches/Homebrew/downloads/45dbc075d640fee5688991b29018197961c131be6d473cd099a99e0a37fb087e--logstash-7.17.4-darwin-x86_64.tar.gz
==> Verifying checksum for '45dbc075d640fee5688991b29018197961c131be6d473cd099a99e0a37fb087e--logstash-7.17.4-darwin-x86_64.tar.gz'
==> Installing logstash-full from elastic/tap
Warning: Your Xcode (11.3.1) is outdated.
Please update to Xcode 12.4 (or delete it).
Xcode can be updated from the App Store.
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/logstash.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/elastic/homebrew-tap/Formula/logstash-oss.rb
/usr/local/Homebrew/Library/Homebrew/shims/shared/git --version
tar --extract --no-same-owner --file /Users/user/Library/Caches/Homebrew/downloads/45dbc075d640fee5688991b29018197961c131be6d473cd099a99e0a37fb087e--logstash-7.17.4-darwin-x86_64.tar.gz --directory /private/tmp/d20220708-56211-1hlwrk0
cp -pR /private/tmp/d20220708-56211-1hlwrk0/logstash-7.17.4/. /private/tmp/logstash-full-20220708-56211-1owamlq/logstash-7.17.4
chmod -Rf +w /private/tmp/d20220708-56211-1hlwrk0
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.8_1/lib/ruby/2.6.0/fileutils.rb:529:in `rename'
Errno::EACCES: Permission denied @ rb_file_s_rename - (/usr/local/Cellar/logstash-full/7.17.4/libexec/config/logstash-sample.conf, /usr/local/etc/logstash/logstash-sample.conf)
1. raise
2. ignore
3. backtrace
4. irb
5. shell
Choose an action: ^C
what i've already tried for permissions:
user@:~$ sudo cat /etc/sudoers.d/user_brew
#NB managed by puppet
user ALL = (root) NOPASSWD:SETENV: /usr/bin/env, /bin/mv, /bin/cp
steps:
brew tap elastic/tap
brew install elastic/tap/elasticsearch-oss
brew services start elastic/tap/elasticsearch-oss
check the log at /usr/local/var/log/elasticsearch.log
Exception in thread "main" java.lang.RuntimeException: starting java failed with [1]
output:
[0.002s][error][logging] Error opening log file 'logs/gc.log': No such file or directory
[0.002s][error][logging] Initialization of output 'file=logs/gc.log' using options 'filecount=32,filesize=64m' failed.
error:
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Invalid -Xlog option '-Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m', see error log for details.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
at org.elasticsearch.tools.launchers.JvmErgonomics.flagsFinal(JvmErgonomics.java:118)
at org.elasticsearch.tools.launchers.JvmErgonomics.finalJvmOptions(JvmErgonomics.java:86)
at org.elasticsearch.tools.launchers.JvmErgonomics.choose(JvmErgonomics.java:59)
at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:92)
Upgrade of kibana-full from 7.8.1 didn't succeed. Removed everything related to kibana in /usr/local and tried again from scratch with the same result. Here's the output from kibana
on the command line:
Configuring logger failed: { Error: EISDIR: illegal operation on a directory, read
at Object.readSync (fs.js:498:3)
at tryReadSync (fs.js:332:20)
at readFileSync (fs.js:369:19)
at Keystore.load (/usr/local/Cellar/kibana-full/7.9.0/libexec/src/legacy/server/keystore/keystore.js:70:45)
at new Keystore (/usr/local/Cellar/kibana-full/7.9.0/libexec/src/legacy/server/keystore/keystore.js:29:10)
at readKeystore (/usr/local/Cellar/kibana-full/7.9.0/libexec/src/cli/serve/read_keystore.js:33:20)
at applyConfigOverrides (/usr/local/Cellar/kibana-full/7.9.0/libexec/src/cli/serve/serve.js:164:41)
at applyConfigOverrides (/usr/local/Cellar/kibana-full/7.9.0/libexec/src/cli/serve/serve.js:223:42)
at MapSubscriber.RawConfigService.config$.rawConfigFromFile$.pipe.rawConfig [as project] (/usr/local/Cellar/kibana-full/7.9.0/libexec/src/core/server/config/raw_config_service.js:39:16)
at MapSubscriber._next (/usr/local/Cellar/kibana-full/7.9.0/libexec/node_modules/rxjs/internal/operators/map.js:49:35)
at MapSubscriber.Subscriber.next (/usr/local/Cellar/kibana-full/7.9.0/libexec/node_modules/rxjs/internal/Subscriber.js:66:18)
at ReplaySubject._subscribe (/usr/local/Cellar/kibana-full/7.9.0/libexec/node_modules/rxjs/internal/ReplaySubject.js:76:28)
at ReplaySubject.Observable._trySubscribe (/usr/local/Cellar/kibana-full/7.9.0/libexec/node_modules/rxjs/internal/Observable.js:44:25)
at ReplaySubject.Subject._trySubscribe (/usr/local/Cellar/kibana-full/7.9.0/libexec/node_modules/rxjs/internal/Subject.js:102:51)
at ReplaySubject.Observable.subscribe (/usr/local/Cellar/kibana-full/7.9.0/libexec/node_modules/rxjs/internal/Observable.js:30:22)
at MapOperator.call (/usr/local/Cellar/kibana-full/7.9.0/libexec/node_modules/rxjs/internal/operators/map.js:32:23) errno: -21, syscall: 'read', code: 'EISDIR' }
FATAL Error: EISDIR: illegal operation on a directory, read
Can the Elastic agent be added?
https://www.elastic.co/downloads/past-releases/elastic-agent-7-14-0
When running a brew reinstall I get this warning:
Warning: Tried to install empty array to /usr/local/etc/elasticsearch/jvm.options.d
Full output:
brew reinstall elasticsearch-full
==> Downloading https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.0-darwin-x86_64.tar.gz?tap=elastic/ho
Already downloaded: /Users/tdehnke/Library/Caches/Homebrew/downloads/2e7bf759ccc7760057f181ec2d45b9ce887584f04f4d2a123d7588a18b5462ea--elasticsearch-7.17.0-darwin-x86_64.tar.gz
==> Reinstalling elastic/tap/elasticsearch-full
Warning: Tried to install empty array to /usr/local/etc/elasticsearch/jvm.options.d
==> codesign -f -s - /usr/local/Cellar/elasticsearch-full/7.17.0/libexec/modules/x-pack-ml/platform/darwin-x86_64/controller.
==> find /usr/local/Cellar/elasticsearch-full/7.17.0/libexec/jdk.app/Contents/Home/bin -type f -exec codesign -f -s - {} ;
==> Caveats
Data: /usr/local/var/lib/elasticsearch/elasticsearch_tdehnke/
Logs: /usr/local/var/log/elasticsearch/elasticsearch_tdehnke.log
Plugins: /usr/local/var/elasticsearch/plugins/
Config: /usr/local/etc/elasticsearch/
To restart elastic/tap/elasticsearch-full after an upgrade:
brew services restart elastic/tap/elasticsearch-full
Or, if you don't want/need a background service you can just run:
elasticsearch
==> Summary
🍺 /usr/local/Cellar/elasticsearch-full/7.17.0: 974 files, 497MB, built in 9 seconds
==> Running `brew cleanup elasticsearch-full`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).```
For Magento 2 elasticsearch 7.6 is required but I can't find a solution to switch to this version.
Is this possible?
And if not.
Could it be made it possible.
I run cmd "brew services restart elasticsearch-full" and have this problems. Anyone help me ?enter image description here I try Move to trash and cancel but it's still not working. I also try sudo too I try to install native for project magento 2
There are many pages giving people steps to fix the deprecated "`plist_options'" issue with these, and there are 4 PRs of people making changes to get that deprecated (and now blocked) setting out of these configs.
A maintainer needs to approve one so we stop hitting the issue.
Is there a timeline on when the versions will be bumped to 8.0.0?
Also, any chance we can have multiple versions maintained? (MongoDB, etc. do this, it helps immensely when there is a need to test against legacy versions)
Cheers!
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
/usr/local/Homebrew/Library/Taps/elastic/homebrew-tap/Formula/elasticsearch-full.rb:9
Warning: Tried to install empty array to /usr/local/etc/elasticsearch/jvm.options.d
==> codesign -f -s - /usr/local/Cellar/elasticsearch-full/7.15.2/libexec/modules/x-pack-ml/platform/darwin-x86_64/controller.app --deep
==> find /usr/local/Cellar/elasticsearch-full/7.15.2/libexec/jdk.app/Contents/Home/bin -type f -exec codesign -f -s - {} ;
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
/usr/local/Homebrew/Library/Taps/elastic/homebrew-tap/Formula/elasticsearch-full.rb:9
Seeing this on the latest homebrew
on macOS Monterey (non-M1).
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
/usr/local/Homebrew/Library/Taps/elastic/homebrew-tap/Formula/elasticsearch-full.rb:9
Got this running a recent brew install
:
Warning: Calling plist_options is deprecated! 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
My elasticsearch is 7.10.1. I want to install the matched kibana via brew. But I don't know how to do it?
is there a way to get versioning? currently installing from elastic/tap/elasticsearch-full
yields v7.5 of ES and kibana is on 7.6, which when you run it, says it's compatible with ES 7.5. What I'd like to do is
brew install elastic/tap/[email protected]
brew install elastic/tap/[email protected]
On February 24th, @StudioMaX opened a PR for adding support of Linuxbrew.
As explained in the PR, the Elastic took the following decision:
We discussed this topic internally and unfortunately, we are not going to add support for Linuxbrew in the short term.
We do support multiple ways to install the Elastic Stack on Linux distributions.
We prefer not to add a new system that is not part of our automation process yet and that we will not be able to fully support.
This decision may be revisited in the future
@StudioMaX mentioned the following
Sometimes it's not possible to use yum/dnf/apt/zypper repositories or rpm/deb packages because we just don't have root privileges on the server. And the only way to install Elasticsearch is to use .tar.gz archives, which is far from ideal, since all the charms of package managers are missing (for example, just updating the application to the latest version is not so simple). This is why we using Linuxbrew.
Hi,
I’m experiencing an issue with elasticsearch-full
that may have started occuring after upgrading to 7.7.0.
The problem is that the service is unavailable:
➜ ~ curl localhost:9200
curl: (7) Failed to connect to localhost port 9200: Connection refused
brew services
shows started
, but in yellow:
Apparently, the yellow color means unknown
.
I tried looking for the postmaster.pid
file as suggested here, but could not find it:
➜ ~ ls -la /usr/local/var/elasticsearch/
total 0
drwxr-xr-x 3 yngve admin 96 Jan 8 11:51 ./
drwxrwxr-x 10 yngve admin 320 Apr 14 23:54 ../
drwxr-xr-x 2 yngve admin 64 Jan 8 11:51 plugins/
(The plugins/
directory is empty.)
I have tried uninstalling, installing and reinstalling several times. When I install or reinstall, I’m getting Warning: tried to install empty array to /usr/local/etc/elasticsearch/jvm.options.d
:
➜ ~ brew reinstall elasticsearch-full
==> Reinstalling elastic/tap/elasticsearch-full
==> Downloading https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.7.0-darwin-x86_64.tar.gz?tap=elastic/homebrew-tap
Already downloaded: /Users/yngve/Library/Caches/Homebrew/downloads/9bd1aed55d57955a1a40b41043ec5ac9835e7c8687b44504e5870fa2528143c1--elasticsearch-7.7.0-darwin-x86_64.tar.gz
Warning: tried to install empty array to /usr/local/etc/elasticsearch/jvm.options.d
==> codesign -f -s - /usr/local/Cellar/elasticsearch-full/7.7.0/libexec/modules/x-pack-ml/platform/darwin-x86_64/controller.app --deep
==> Caveats
Data: /usr/local/var/lib/elasticsearch/elasticsearch_yngve/
Logs: /usr/local/var/log/elasticsearch/elasticsearch_yngve.log
Plugins: /usr/local/var/elasticsearch/plugins/
Config: /usr/local/etc/elasticsearch/
To have launchd start elastic/tap/elasticsearch-full now and restart at login:
brew services start elastic/tap/elasticsearch-full
Or, if you don't want/need a background service you can just run:
elasticsearch
==> Summary
🍺 /usr/local/Cellar/elasticsearch-full/7.7.0: 987 files, 472.4MB, built in 8 seconds
When I restart the service, no new entries appear in /usr/local/var/log/elasticsearch/elasticsearch_yngve.log
. Full contents:
[2020-05-13T04:33:32,437][INFO ][o.e.x.s.SnapshotRetentionTask] [Yngves-2015-MacBook-Pro.local] starting SLM retention snapshot cleanup task
[2020-05-13T09:26:58,390][INFO ][o.e.x.m.MlDailyMaintenanceService] [Yngves-2015-MacBook-Pro.local] triggering scheduled [ML] maintenance tasks
[2020-05-13T09:26:58,393][INFO ][o.e.x.m.a.TransportDeleteExpiredDataAction] [Yngves-2015-MacBook-Pro.local] Deleting expired data
[2020-05-13T09:26:58,397][INFO ][o.e.x.m.a.TransportDeleteExpiredDataAction] [Yngves-2015-MacBook-Pro.local] Completed deletion of expired ML data
[2020-05-13T09:26:58,397][INFO ][o.e.x.m.MlDailyMaintenanceService] [Yngves-2015-MacBook-Pro.local] Successfully completed [ML] maintenance tasks
[2020-05-13T16:14:30,195][INFO ][o.e.x.s.a.s.FileRolesStore] [Yngves-2015-MacBook-Pro.local] parsed [0] roles from file [/usr/local/etc/elasticsearch/roles.yml]
[2020-05-13T21:21:22,041][INFO ][o.e.n.Node ] [Yngves-2015-MacBook-Pro.local] stopping ...
[2020-05-13T21:21:22,235][INFO ][o.e.x.w.WatcherService ] [Yngves-2015-MacBook-Pro.local] stopping watch service, reason [shutdown initiated]
[2020-05-13T21:21:22,239][INFO ][o.e.x.w.WatcherLifeCycleService] [Yngves-2015-MacBook-Pro.local] watcher has stopped and shutdown
[2020-05-13T21:21:22,729][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [Yngves-2015-MacBook-Pro.local] [controller/508] [Main.cc@150] Ml controller exiting
[2020-05-13T21:21:22,732][INFO ][o.e.x.m.p.NativeController] [Yngves-2015-MacBook-Pro.local] Native controller process has stopped - no new native processes can be started
[2020-05-13T21:21:22,766][INFO ][o.e.n.Node ] [Yngves-2015-MacBook-Pro.local] stopped
[2020-05-13T21:21:22,767][INFO ][o.e.n.Node ] [Yngves-2015-MacBook-Pro.local] closing ...
[2020-05-13T21:21:22,796][INFO ][o.e.n.Node ] [Yngves-2015-MacBook-Pro.local] closed
brew doctor
➜ ~ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
softwareupdate --all --install --force
If that doesn't show you an update run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
Alternatively, manually download them from:
https://developer.apple.com/download/more/.
I tried softwareupdate --all --install --force
, but it didn’t find anything. I’m hesitant to run the sudo rm -rf
command suggested.
macOS 10.15.4, no updates available:
From brew
output -
Warning: Calling depends_on :java is deprecated! Use "depends_on "openjdk@11", "depends_on "openjdk@8" or "depends_on "openjdk" instead.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/elastic/homebrew-tap/Formula/logstash-full.rb:7
When upgrading elasticsearch-full
and kibana-full
cask versions from the tap I ran into the following issue:
==> Upgrading 3 outdated packages:
elastic/tap/kibana-full 7.17.1 -> 7.17.2
elastic/tap/elasticsearch-full 7.17.1 -> 7.17.2
libx11 1.7.3.1 -> 1.7.5
==> Downloading https://artifacts.elastic.co/downloads/kibana/kibana-7.17.2-darwin-x86_64.tar.gz?tap=elastic/homebrew-tap
##O#- #
curl: (22) The requested URL returned error: 403
Error: kibana-full: Failed to download resource "kibana-full"
Download failed: https://artifacts.elastic.co/downloads/kibana/kibana-7.17.2-darwin-x86_64.tar.gz?tap=elastic/homebrew-tap
==> Downloading https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.2-darwin-x86_64.tar.gz?tap=elastic/homebrew-tap
##O#- #
curl: (22) The requested URL returned error: 403
Error: elasticsearch-full: Failed to download resource "elasticsearch-full"
Download failed: https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.2-darwin-x86_64.tar.gz?tap=elastic/homebrew-tap
Trying to open the download link manually in the browser returns a "403 Forbidden" error. Is this a location specific error, cause connecting through VPN makes it go away?
The top level directories from the Kibana distributable are currently being copied into the kibana formulae, is that required or could we derive that file list from the download somehow?
This has already caused #5 and I suspect it will bite us again if we can't get rid of that directory listing.
From the log
Caused by: java.nio.file.NoSuchFileException: /usr/local/Cellar/elasticsearch/7.1.1/libexec/plugins/x-pack/plugin-descriptor.properties
On the filesystem its called meta-plugin-descriptor.properties
.
Using the elasticsearch docker image as explained in the official reference documentation the performance is great: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html. It is comparable to a setup on my Linux laptop.
docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.13.2
But, when installing elasticsearch with homebrew brew install elasticsearch-full
, I've noticed it is several times slower. For example my Ruby on Rails test suite runs normally in 20 seconds, but requires 2 minutes now.
Since I'm not very knowledgable in elasticsearch, I don't know how to debug this further. But, I assume there' a simple explanation for the slowdown.
Any ideas? Thanks in advance!
General troubleshooting steps
brew tap elastic/tap
brew install elastic/tap/apm-server-oss
[X ] I understand that if I ignore these instructions, my issue may be closed without review.
I have retried my command with --force.
I ran brew update-reset && brew update and retried my command.
I ran brew doctor, fixed as many issues as possible and retried my command.
I have checked the instructions for reporting bugs.
I made doubly sure this is not a checksum does not match error.
Description of issue
Warning: apm-server-oss: No available formula with the name "apm-server".
'conflicts_with "apm-server"' should be removed from apm-server-oss.rb.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core)!
Command that failed
{{replace this}}
Output of command with --verbose --debug
{{replace this}}
Output of brew doctor --verbose
{{replace this}}
Output of brew tap
==> Installing apm-server-oss from elastic/tap
==> Downloading https://artifacts.elastic.co/downloads/apm-server/apm-server-oss-7.10.2-darwin-x86_64.tar.gz?tap=elastic/homebrew-tap
######################################################################## 100.0%
Warning: apm-server-oss: No available formula with the name "apm-server".
'conflicts_with "apm-server"' should be removed from apm-server-oss.rb.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core)!
==> Caveats
To have launchd start elastic/tap/apm-server-oss now and restart at login:
brew services start elastic/tap/apm-server-oss
Or, if you don't want/need a background service you can just run:
apm-server
==> Summary
🍺 /usr/local/Cellar/apm-server-oss/7.10.2: 10 files, 95.6MB, built in 3 seconds
Hello,
I haven't been successful in uninstall the ELK stack from my MacOS (12.0.1) machine. Performing a brew search elasticsearch returns the following:
==> Formulae elastic/tap/elasticsearch-full elasticsearch elasticsearch@6
After running:
brew uninstall elasticsearch
, I get the following output:
➜ ~ brew uninstall elasticsearch Error: No such keg: /usr/local/Cellar/elasticsearch
I also ran a brew update and brew update-reset. Is there something I'm missing?
$ elasticsearch
Exception in thread "main" java.nio.file.NotDirectoryException: /usr/local/Cellar/elasticsearch-full/7.17.4/libexec/plugins/.DS_Store
at java.base/sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:419)
at java.base/java.nio.file.Files.newDirectoryStream(Files.java:482)
at java.base/java.nio.file.Files.list(Files.java:3793)
at org.elasticsearch.tools.launchers.BootstrapJvmOptions.getPluginInfo(BootstrapJvmOptions.java:49)
at org.elasticsearch.tools.launchers.BootstrapJvmOptions.bootstrapJvmOptions(BootstrapJvmOptions.java:34)
at org.elasticsearch.tools.launchers.JvmOptionsParser.jvmOptions(JvmOptionsParser.java:137)
at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:86)
Error: elasticsearch-full: Calling plist_options is deprecated! Use service.require_root instead.
Here is an example of fixing this issue.
It seems all formulas are hard coded to MacOS. This very unfortunate as it precludes using this on Linux native and WSL2.
mindw@GABI-PC:~$ brew install elasticsearch-full
Running `brew update --preinstall`...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 1 formula.
==> Downloading https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.16.2-darwin-x86_64.tar.gz?tap=elastic/homebrew-tap
Already downloaded: /home/mindw/.cache/Homebrew/downloads/19b02ecab78e563b74477d37b83e551ba7a7d4c5bacbfc54fbe3703b135a7260--elasticsearch-7.16.2-darwin-x86_64.tar.gz
==> Installing elasticsearch-full from elastic/tap
Warning: Tried to install empty array to /home/linuxbrew/.linuxbrew/etc/elasticsearch/jvm.options.d
==> codesign -f -s - /home/linuxbrew/.linuxbrew/Cellar/elasticsearch-full/7.16.2/libexec/modules/x-pack-ml/platform/darwin-x86_64/controller.app --deep
Last 15 lines from /home/mindw/.cache/Homebrew/Logs/elasticsearch-full/01.codesign:
2021-12-23 07:17:39 +0000
codesign
-f
-s
-
/home/linuxbrew/.linuxbrew/Cellar/elasticsearch-full/7.16.2/libexec/modules/x-pack-ml/platform/darwin-x86_64/controller.app
--deep
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/elastic/homebrew-tap/issues
These open issues may also help:
Error: No available formula or cask with the name "elastic/tap/elasticsearch-full" https://github.com/elastic/homebrew-tap/issues/117
m
Whenever I try to start the service with the command: brew services start elasticsearch-full
it gives me below error message:
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
I have tried brew tap elastic/tap
also, it works fine but when I try to start the service, it stucks here.
I uninstalled, deleted config folders, and reinstalled ES and I'm getting security warnings in my ruby/rails test suite:
warning: 299 Elasticsearch-7.13.0-5ca8591c6fcdb1260ce95b08a8e023559635c6f3 "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.13/security-minimal-setup.html to enable security."
Is this just me; or is there something that can be added to default config for any new 7.13 security requirements?
Does #64 have the right checksum?
On homebrew tap we see
==> Verifying checksum for '66eb7c517452556be97145f3523d65880a756f8adfa84f8788f6a653e5f2b55d--elasticsearch-7.11.0-darwin-x86_64.tar.gz'
Error: SHA256 mismatch
Expected: 9ab59bf562b176ec27371353b28987d12d96e15e2b3ed31dcea2adefef98aafb
Actual: e34098c0ea81d9a6e5dc0b3162fd6c56e647bdb8cb21d3f2523b219ea4a5341b
File: /Users/matthewt/Library/Caches/Homebrew/downloads/66eb7c517452556be97145f3523d65880a756f8adfa84f8788f6a653e5f2b55d--elasticsearch-7.11.0-darwin-x86_64.tar.gz
When installing the kibana-full
formula for 7.2, the x-pack
directory is not copied over from the distributable, so when Kibana is started with the kibana
command a re-optimization is triggered and x-pack plugins are not available from the UI or API.
Installing elastic/tap/elasticsearch-full
works, but it doesn't run as a background service. MacOS presents an error messages saying that the jdk
executable is damaged and prompts the user to remove it. Running elasticsearch
in a shell works if you have a local Java install defined using the ES_JAVA_HOME
environment variable. I suspect this means the embedded JDK is somehow incompatible with MacOS Ventura and needs updating.
While I understand this tap is now deprecated, we use it because we don't love the overhead of Docker. It would be great to get an update to resolve this, or to remove this tap entirely so people don't get confused trying to use it.
Can you please update to the latest version?
A deprecation warning is coming with elastic-search
Warning: Calling bottle: unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
/usr/local/Homebrew/Library/Taps/elastic/homebrew-tap/Formula/elasticsearch-full.rb:9
Somebody have a look :)
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:
/usr/local/Homebrew/Library/Taps/elastic/homebrew-tap/Formula/elasticsearch-full.rb:68
Please add ES 7.17.10 version as well, as it contains latest security fixes.
When I execute brew update, the following warning appears
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/elastic/homebrew-tap/Formula/apm-server-full.rb:10
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/elastic/homebrew-tap/Formula/apm-server-oss.rb:10
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/elastic/homebrew-tap/Formula/auditbeat-full.rb:10
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/elastic/homebrew-tap/Formula/auditbeat-oss.rb:10
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/elastic/homebrew-tap/Formula/elasticsearch-full.rb:9
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/elastic/homebrew-tap/Formula/filebeat-full.rb:10
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/elastic/homebrew-tap/Formula/filebeat-oss.rb:10
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/elastic/homebrew-tap/Formula/heartbeat-full.rb:10
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/elastic/homebrew-tap/Formula/heartbeat-oss.rb:10
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/elastic/homebrew-tap/Formula/kibana-full.rb:9
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/elastic/homebrew-tap/Formula/logstash-full.rb:10
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/elastic/homebrew-tap/Formula/logstash-oss.rb:10
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/elastic/homebrew-tap/Formula/metricbeat-full.rb:10
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/elastic/homebrew-tap/Formula/metricbeat-oss.rb:10
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/elastic/homebrew-tap/Formula/packetbeat-full.rb:10
Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
/opt/homebrew/Library/Taps/elastic/homebrew-tap/Formula/packetbeat-oss.rb:10
When installing from this tap, it would be convenient to issue a warning or display a Caveat to verify that no existing config directory conflicts exist.
Assuming a clean install from from a non-elastic tap (currently this installs 6x):
brew install elasticsearch
And then a subsequent uninstall (perhaps because 7x was desired)
brew uninstall elasticsearch
The config directory is left behind at /usr/local/etc/elasticsearch/
Then, when running
brew install elastic/tap/elasticsearch-full
The following will occur:
➜ ~ elasticsearch
Exception in thread "main" java.lang.RuntimeException: starting java failed with [1]
output:
[0.003s][error][logging] Error opening log file 'logs/gc.log': No such file or directory
[0.003s][error][logging] Initialization of output 'file=logs/gc.log' using options 'filecount=32,filesize=64m' failed.
error:
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Invalid -Xlog option '-Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m', see error log for details.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
at org.elasticsearch.tools.launchers.JvmErgonomics.flagsFinal(JvmErgonomics.java:118)
at org.elasticsearch.tools.launchers.JvmErgonomics.finalJvmOptions(JvmErgonomics.java:86)
at org.elasticsearch.tools.launchers.JvmErgonomics.choose(JvmErgonomics.java:59)
at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:92)
Java:
➜ ~ java -version
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_232-b09)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.232-b09, mixed mode)
Not a big issue - clearing out the dirs mentioned in the Caveats clears it up - but a sanity check in the formula might save somebody some time down the road.
I found that only logstash not links config/ to etc/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.