The elasticSearch runs fine on my centos as a non-service. I run it as "sh bin/elasticsearch". The client I installed using composer is PHP v2.0. It just won't do anything it used to do before. I used this before and I could search, index documents, make index. Right now I cannot do anything because of this error. The strangest thing is that ElasticSearch seems to be running fine, and I can also call it with curl like:
curl localhost:9200
Please advise on the PHP API failure? I tried:
1. Opening port 9200 on my centos 6 for all
2. Used every method from the book in PHP API: search, index, delete index, etc...always get the same result and an exception is thrown in the Elasticsearch/Client class:
“No alive nodes found in your cluster”
3. Changed the owner of the directory nodes to centos, apache, elasticsearch - no use.
ElasticSearch PHP client v2.0 keeps throwing "No alive nodes found in your cluster"
1.1k views Asked by Vladimir Despotovic At
1
There are 1 answers
Related Questions in PHP
- How to add the dynamic new rows from my registration form in my database?
- Issue in payment form gateway
- How to create a facet for WP gridbuilder that displays both parent and child custom fields?
- Function in anonymous Laravel Blade component
- How to change woocomerce or full wordpress currency with value from USD to AUD
- General questions about creating a custom theme Moodle CMS
- How to add logging to an abstract class in php
- error 500 on IIS FastCGI but no clue despite multiple error loggings activated
- Composer installation fails and reverts ./composer.json and ./composer.lock to original content
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Laravel: Using belongsToMany relationship with MongoDB
- window.location.href redirects but is causing problems on the webpage
- Key provided is shorter than 256 bits, only 64 bits provided
- Laravel's whereBetween method not working with two timestamps
- Implementing UUID as primary key in Laravel intermediate table
Related Questions in ELASTICSEARCH
- How does Elasticsearch do attribute filtering during knn (vector-based) retrieval?
- Elastic python to extract last 1hr tracing
- Elastic search not giving result when Hyphen is used in search text
- FluentD / Fluent-Bit: Concatenate multiple lines of log files and generate one JSON record for all key-value from each line
- Elasticsearch functional_score with parameter of type string array as input not working
- Elasticsearch - cascading http inputs from Airflow API
- AWS Opensearch - Restore snapshot - Failed to parse object: unknown field [uuid] found
- cluster block exception for system index of kibana
- What settings are best for elasticsearch query to find full word and half word
- OpenSearch - Bulk inserting Million rows from Pandas dataframe
- unable access to kibana
- PySpark elastic load fail with error SparkContext is stopping with exitCode 0
- How to use query combined to KNN with ElasticSearch?
- Facing logstash compatibility issues
- If the same document is ingested at two different times, how to have the same id in Elasticsearch
Related Questions in CENTOS6
- Migrate to CentOS Stream 9
- Installing scipy on CentOS 6 (OpenBLAS problem)
- Installing dotnet on CentOS 6.1
- Running `wsgetmail` service via Crontab job CentOS 6
- sudo ./VMware-ovftool-4.3.0-13981069-lin.x86_64.bundle /var/tmp/scllpy5Nh: line 8: ./VMware-ovftool-4.3.0-13981069-lin.x86_64.bundle: Permission denie
- How to Install FFMpeg on centos 6 in 2022?
- How to Migrate from Centos6.10 to Ubuntu20LTS
- how to fix error cannot retrieve repository metadata (repomd.xml) for repository base on centos6
- can't do yum update on centos6
- How i can correct install bit library in Python?
- ssh on CentOS6 no longer works with GitHub
- postgreSQL 8.4.20: How to solve missing oldestXID in pg_control preventing use of pg_upgrade on a legacy CentOS 6.4 server?
- Benchmarking 1.1.1.1 (be patient) socket: Too many open files (24)
- Updated java installation cannot be located in centos6
- Compile for c++14 on CentOS 6
Related Questions in ELASTICSEARCH-API
- Checking status of a logstash pipeline [no handler found for uri]
- Deleting source index after using the clone API possible?
- Any way to implement Token base (JWT) authentication in basic license of Elasticsearch
- Drupal 8 - Search with decimal number and percentage sign is not working
- Why are aliases not removed (but adding them works fine)?
- Elasticsearch query different fields with different weight
- Elastic ExistsRequst for field value and field type
- Elasticsearch Search Query using python subprocess: Illegal Argument Exception
- Succeeded to take snapshot of closed Elasticsearch index with ignore_unavailable=false
- Elasticsearch _cluster/stats api vs _stats API
- Ingesting / enriching / transforming data in one elasticsearch index with dynamic information from a second one
- Elastic Search Aggregation query parameter to visualize bar chart
- Elasticsearch SEARCH-API ignores some existing indices when searching with wildcards
- When changing the index of an Elasticsearch alias via API, do write operations immediately point to the right index after the response?
- ElasticSearch _find method to get saved objects returning "not handler found for URI [/s/<space>/api/saved_objects/_find...] and method [GET]"
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Resolved by installing a fresh latest tarball elasticsearch server and running it straight like this: sh bin/elasticsearch.