I foolishly upgraded my mac to mojave and once I did my elasticsearch (that I installed through Homebrew) stopped working. Since then I have reinstalled it several times and I continue to receive this error:
Exception in thread "main"
org.elasticsearch.bootstrap.BootstrapException:
java.nio.file.FileSystemLoopException:
/usr/local/etc/elasticsearch/elasticsearch
Likely root cause: java.nio.file.FileSystemLoopException:
/usr/local/etc/elasticsearch/elasticsearch
When I try and start it using brew services I get:
/Users/***/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist:
service already loaded
Error: Failure while executing; '/bin/launchctl bootstrap gui/501
/Users/****/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist'
exited with 133.
The only way I can get elasticsearch to start currently is running it through docker
Has anyone else seen this issue?
Related
I am trying to install Elasticsearch 7.16.2 on windows server but while installation I am getting below error.
Installing service : "elasticsearch-service-x64"
Using ES_JAVA_HOME (64-bit): "C:\Program Files\Java\jdk-17.0.1"
-Des.networkaddress.cache.ttl=60;-Des.networkaddress.cache.negative.ttl=10;-XX:+AlwaysPreTouch;-Xss1m;-Djava.awt.headless=true;-Dfile.encoding=UTF-8;-Djna.nosys=true;-XX:-OmitStackTraceInFastThrow;-XX:+ShowCodeDetailsInExceptionMessages;-Dio.netty.noUnsafe=true;-Dio.netty.noKeySetOptimization=true;-Dio.netty.recycler.maxCapacityPerThread=0;-Dio.netty.allocator.numDirectArenas=0;-Dlog4j.shutdownHookEnabled=false;-Dlog4j2.disable.jmx=true;-Dlog4j2.formatMsgNoLookups=true;-Djava.locale.providers=SPI,COMPAT;--add-opens=java.base/java.io=ALL-UNNAMED;-XX:+UseG1GC;-Djava.io.tmpdir=C:\Users\jioapp\AppData\Local\Temp\2\elasticsearch;-XX:+HeapDumpOnOutOfMemoryError;-XX:+ExitOnOutOfMemoryError;-XX:HeapDumpPath=data;-XX:ErrorFile=logs/hs_err_pid%p.log;-Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m;-Xms31744m;-Xmx31744m;-XX:MaxDirectMemorySize=16642998272;-XX:InitiatingHeapOccupancyPercent=30;-XX:G1ReservePercent=25
Failed installing 'elasticsearch-service-x64' service
Thanks,
Shashikant
Whoever has the same problem, try 'elasticsearch-service.bat remove'. I actually had the same error, checked the log files and it said that the service already existed and that's why it was failing to install. Once I removed it I was able to reinstall it and then I had issues starting it but I think it was because of some typos in the elasticsearch.yml file.
If that doesn't work, maybe try 'elasticsearch-service.bat manager' for some information and check your environment variables.
For work, the development stack we use is nginx + php + apache + mariadb, and using mac (with m1 chip).
I set up the development environment using brew.
The installation of the services was successful and even running the brew doctor command I am not shown any errors.
However, I have a problem with starting mariadb, that is when I launch brew services start mariadb with mariadb latest, that is 10.6, I get the message of service started successfully, but when I do brew services under mariadb it service status is stopped.
I am new to mac os, I have tried to search online but everything I have tried so far has not worked.
Do you have any suggestions or advice?
EDIT:
if i try to start service with mysql.server startcommand, i've this error:
Starting MariaDB
.211209 11:55:38 mysqld_safe Logging to '/opt/homebrew/var/mysql/Mac-mini-di-Ezio.local.err'.
211209 11:55:38 mysqld_safe Starting mariadbd daemon with databases from /opt/homebrew/var/mysql
/opt/homebrew/bin/mysql.server: line 264: kill: (73339) - No such process
ERROR!
I am trying to start a Spring project using a PSQL database.
I have installed PSQL using Homebrew but,
When i run :
brew services start postgresql
I get this error:
Error: Failure while executing; /bin/launchctl bootstrap gui/501 /Users/[myusername]/Library/LaunchAgents/homebrew.mxcl.postgresql.plist exited with 5.
I am following this tutorial:
https://medium.com/#viviennediegoencarnacion/getting-started-with-postgresql-on-mac-e6a5f48ee399
Using a mac which is up to date.
Any help is greatly appreciated!
So my postgres service was started apparently.
Therefore when i was trying to start it again it causes an error.
Fix was to stop it and re run.
This error is due to the fact the server is already running. We need to stop and start it.
For Mac Users:
brew services stop postgresql
brew services start postgresql
EDIT: This may be a track, but it doesn't happen for me again since I updated to Monterey and running PSQL13
A full computer restart did solve it for me.
PS: I think the problem is related to the checkbox on log off "Reopen windows when logging back in".
I installed the new version of Docker toolbox on a fresh machine. The install stated it was a success, yet when I start up the Docker Quickstart Terminal app, I get an odd error.
AppleEvent timed out.
Terminal got an error: AppleEvent timed out. (-1712)
Googling this error proved to be fruitless.
I uninstalled and reinstalled
I restarted
I uninstalled, restarted, changed networks, and so on.
Has anyone else had these errors?
OSX YOSEMITE
Running OSX 10.9.2, I just ran brew upgrade mongo which upgraded my mongo to version 2.6
As per the instructions I've run
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
But now when I run mongo it says
MongoDB shell version: 2.6.0
connecting to: test
2014-05-05T10:07:22.769+1000 warning: Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused
2014-05-05T10:07:22.770+1000 Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146
exception: connect failed
Things I've tried:
I've seen this covered on other SX questions and people have suggested creating a /data/db folder but this wasn't needed previously and I don't want to lose the data from my old instance of mongo. Regardless, I tried it, and chowned it to allow read/write from my user account, but that made no difference. (FYI my data lives in /usr/local/var/mongodb/ which is typical I believe for OSX.)
A lot of the other questions also assume Linux rather than Mac, or they wade off into PHP land which is not relevant to me.
I've also tried rebooting my Mac.
I fixed it by forcing home-brew to restart it.
brew services restart mongodb
and voila
$ mongo
MongoDB shell version: 2.6.0
connecting to: test
>
now works a treat.