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

Updating an article throwing error #245

Closed
icecreamsandwich opened this issue Feb 14, 2019 · 7 comments
Closed

Updating an article throwing error #245

icecreamsandwich opened this issue Feb 14, 2019 · 7 comments

Comments

@icecreamsandwich
Copy link

icecreamsandwich commented Feb 14, 2019

Whenever am updating an article it gives me error as follows. However then node is updating.

Whoops, looks like something went wrong. 1/1 NoNodesAvailableException in StaticNoPingConnectionPool.php line 51: No alive nodes found in your cluster in StaticNoPingConnectionPool.php line 51 at StaticNoPingConnectionPool->nextConnection() in Transport.php line 71 at Transport->getConnection() in Transport.php line 89 at Transport->performRequest('POST', '/_all/_bulk', array(), '{"update":{"_id":2,"_index":"laravel","_type":"articles_index"}}{"doc":{"id":2,"author_id":1,"category_id":2,"slug":"what-is-lorem-ipsum","title":"What is Lorem Ipsum?","subtitle":"dddd","content":"<p><strong>Lorem Ipsum<\\/strong>&nbsp;is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum<\\/p>","html_content":"<p><strong>Lorem Ipsum<\\/strong>&nbsp;is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum<\\/p>","article_image":"","meta_keywords":"lorem","meta_description":"lorem","is_published":1,"published_at":"2019-02-13 12:15:00","layout":"layouts.frontend","created_at":"2019-02-13 19:41:10","updated_at":"2019-02-14 05:52:28"},"doc_as_upsert":true}', array()) in Connection.php line 229

And I couldn't change the draft status of a node to pubished too.

image

@mariocoski
Copy link
Owner

is your ElasticSearch service up and running? did you try curl localhost:9200 and other REST operations aside of via blogger interface?

@icecreamsandwich
Copy link
Author

I installed elasticsearch dependancy via composer: ran composer require elasticsearch/elasticsearch ^2.2 from the project directory. I didn't do any REST operations (I think you mean updating or creating content via CURL). Can you please suggest how it can be done using postman client?
BTW I am using windows 10 and WAMP server.

@mariocoski
Copy link
Owner

Did you install elasticsearch service i.e. via elastic search script which is present in the repo:
https://github.com/mariocoski/laravel-blogger/blob/master/elastic.sh
? You need alive elasticsearch node to perform any operations in the blogger... to test it please use curl and see whether it works ...
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-elasticsearch-on-ubuntu-16-04

@icecreamsandwich
Copy link
Author

As I said am using windows 10 in the system. The mentioned the installation in elastic.sh shell script is for Ubuntu. Is there any alternative for the script in windows?

@mariocoski
Copy link
Owner

@icecreamsandwich
Copy link
Author

@mariocoski Nice and perfect. It's working fine now.

image

@mariocoski
Copy link
Owner

Amazing! :)

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

2 participants