Tony Posted October 3, 2021 Share Posted October 3, 2021 With the announcement of CubeCart 6.5.0 Beta 1, I would like to give it a go, especially the Elasticsearch offering. But my current hosting is not 'powerful' enough to run this so I was wondering if this Cubercart version will allow to run the Elasticsearch service from externally? If yes, yay! Also does it support this ? https://aws.amazon.com/opensearch-service/ Thanks. Link to comment Share on other sites More sharing options...
Al Brookbanks Posted October 3, 2021 Share Posted October 3, 2021 Hi Tony, Beta 2 will be available early next week worth waiting. Can't see any reason why it won't work with Opensearch. It should just be a matter of adding a line to you includes/global.inc.php file. Set the domain and port. I don't know if authentication is needed but this isn't something that is supported yet. Please let me know. $glob['elasticsearch_hosts'] = array('localhost:9200'); Link to comment Share on other sites More sharing options...
Tony Posted October 3, 2021 Author Share Posted October 3, 2021 Thank you, will wait for Beta 2 and then give it a test. Cheers! Link to comment Share on other sites More sharing options...
havenswift-hosting Posted October 3, 2021 Share Posted October 3, 2021 @Tony it isn’t really anything to do with your hosting being “powerful enough” but ES can only be installed at a server level and I would guess no hosting company (other than Al and myself as we will both have this available on our platforms) will ever have this installed on a shared hosting plan and would therefore need a dedicated server / VPS. Using an external service is interesting but would 100% need authentication from a security point of view and does add additional expense and more importantly an additional layer of complexity via a third party Ian Link to comment Share on other sites More sharing options...
Tony Posted October 4, 2021 Author Share Posted October 4, 2021 Hi Ian, Thanks for your insight, but you don't know my hosting setup. I do have the ability of installing ES (confirmed with them), just that I don't have a beefier server to perform for huge traffic. I'm wondering if it's doable as my visitor numbers are very low (I'd say 1k users a week or so) so the amount of time they use the search box will be lower. All I need to do is to tweak to see if it can work, or like mentioned earlier, I use external cloud provider to offset the load. Would be a good way for me to test & feedback. Link to comment Share on other sites More sharing options...
Al Brookbanks Posted October 4, 2021 Share Posted October 4, 2021 Just now, Tony said: Hi Ian, Thanks for your insight, but you don't know my hosting setup. I do have the ability of installing ES (confirmed with them), just that I don't have a beefier server to perform for huge traffic. I'm wondering if it's doable as my visitor numbers are very low (I'd say 1k users a week or so) so the amount of time they use the search box will be lower. All I need to do is to tweak to see if it can work, or like mentioned earlier, I use external cloud provider to offset the load. Would be a good way for me to test & feedback. Looking forward to hearing how you get on. Link to comment Share on other sites More sharing options...
Tony Posted October 4, 2021 Author Share Posted October 4, 2021 Have set it up, currently running locally (as I can't find a way to use AWS, will investigate later) but I am not 100% sure if it works? In your other post, you say: Once installed it can be enabled via the Advanced section of your Store Settings. Finally, you'll need to index your current inventory. To do this visit the Elasticsearch tab in the Maintenance section of your store control panel. Once indexed it should maintain itself. Both does not exists. can you confirm this? I upgraded from 6.4.4 to 6.5.0-b2 on my test server and I edited the global.inc.php file to add the line. But for your steps above does not exists at all so I am unsure if it's running? Thanks, Link to comment Share on other sites More sharing options...
Al Brookbanks Posted October 4, 2021 Share Posted October 4, 2021 Well that's wierd. Are you sure all the files uploaded over your existing ones. It should show like this... Link to comment Share on other sites More sharing options...
Tony Posted October 4, 2021 Author Share Posted October 4, 2021 Yupper, extracted and uploaded over existing installation. Selected 'Yes' to overwrite any existing files. Link to comment Share on other sites More sharing options...
Al Brookbanks Posted October 4, 2021 Share Posted October 4, 2021 Are you running a custom admin skin? Link to comment Share on other sites More sharing options...
Tony Posted October 4, 2021 Author Share Posted October 4, 2021 No, it's a pure testing store - all files are not modified from download (apart from global.inc.php) Link to comment Share on other sites More sharing options...
bsmither Posted October 4, 2021 Share Posted October 4, 2021 If you uploaded and allowed the upload to overwrite, perhaps it is the case that the new package has the admin folder and file still named "admin", whereas your properly installed package has had its admin folder and file renamed to the randomized hash suffix syntax. If so, you will need to rename the new package's admin folder and file to be what the existing folder and file is (after deleting or renaming the older admin folder and file). Link to comment Share on other sites More sharing options...
Al Brookbanks Posted October 4, 2021 Share Posted October 4, 2021 1 minute ago, bsmither said: If you uploaded and allowed the upload to overwrite, perhaps it is the case that the new package has the admin folder and file still named "admin", whereas your properly installed package has had its admin folder and file renamed to the randomized hash suffix syntax. If so, you will need to rename the new package's admin folder and file to be what the existing folder and file is (after deleting or renaming the older admin folder and file). That makes a lot of sense. Link to comment Share on other sites More sharing options...
Tony Posted October 4, 2021 Author Share Posted October 4, 2021 @bsmither can we have a fistbump? That was it, thank you! Totally forgotten about that, doh! Anyway, enabled it, rebuilt the ES cache and tested the search. Observation: 1) It didn't find/lists the products as I typed 2) I pressed the Enter button once I typed in the word within the search box and on the next page, it gave me a blank page I will investigate more. Link to comment Share on other sites More sharing options...
Al Brookbanks Posted October 5, 2021 Share Posted October 5, 2021 If you want to send me access I'd be happy to check it over. Link to comment Share on other sites More sharing options...
Al Brookbanks Posted October 6, 2021 Share Posted October 6, 2021 How are you getting on Tony? Happy to help if you need it. I'd love to see you up and running. Link to comment Share on other sites More sharing options...
Tony Posted October 6, 2021 Author Share Posted October 6, 2021 Putting this on hold for a bit - 2 x kids and wife (apart from me) are ill. Argh! I might sneak in some work on this later this week & will let you know. Thanks for the offer. Link to comment Share on other sites More sharing options...
Al Brookbanks Posted October 6, 2021 Share Posted October 6, 2021 Oh no. Hope they get better soon. Link to comment Share on other sites More sharing options...
Tony Posted October 6, 2021 Author Share Posted October 6, 2021 I've given up with the ES install on my hosting account, some stumbling blocks somewhere, so trying the free AWS account for Opensearch, however I was able to choose the Elasticsearch v7.1 as the option to set up. But it uses https:// rather than ip/hostname - how will that work with the Array string in the config file? Seeing it's free to set up if you set it up for t2.small.search - perhaps you can test this yourself too? Happy to work together with you on this if you like, @Al Brookbanks. Link to comment Share on other sites More sharing options...
Al Brookbanks Posted October 6, 2021 Share Posted October 6, 2021 I don't have much interest in Amazon I'm afraid. What the problem with local install? Link to comment Share on other sites More sharing options...
Tony Posted October 6, 2021 Author Share Posted October 6, 2021 11 hours ago, Al Brookbanks said: What the problem with local install? Mainly this AH01215: PHP Fatal error: Uncaught Elasticsearch\\Common\\Exceptions\\NoNodesAvailableException: No alive nodes found in your cluster in /home/xxxxx/apps/xxxxx/classes/elasticsearch/elasticsearch/elasticsearch/src/Elasticsearch/ConnectionPool/StaticNoPingConnectionPool.php:64, referer: https://xxxxx.co.uk/ AH01215: #0 /home/xxxxxx/apps/xxxxxx/classes/elasticsearch/elasticsearch/elasticsearch/src/Elasticsearch/Transport.php(82): Elasticsearch\\ConnectionPool\\StaticNoPingConnectionPool->nextConnection(), referer: https://xxxxxx.co.uk/ AH01215: #1 /home/xxxxxx/apps/xxxxxx/classes/elasticsearch/elasticsearch/elasticsearch/src/Elasticsearch/Transport.php(99): Elasticsearch\\Transport->getConnection(), referer: https://xxxxxx.co.uk/ AH01215: #2 /home/xxxxxx/apps/xxxxxx/classes/elasticsearch/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php(297): Elasticsearch\\Transport->performRequest(), referer: https://xxxxxx.co.uk/ AH01215:#3 /home/xxxxxx/apps/xxxxxx/classes/elasticsearch/react/promise/src/FulfilledPromise.php(28): Elasticsearch\\Connections\\Connection->Elasticsearch\\Connections\\{closure}(), referer: https://xxxxxx.co.uk/ AH01215: #4 /home/xxxxxx/apps/xxxxxx/classes/ela in /home/xxxxxx/apps/xxxxxx/classes/elasticsearch/elasticsearch/elasticsearch/src/Elasticsearch/ConnectionPool/StaticNoPingConnectionPool.php on line 64, referer: https://xxxxxx.co.uk/ I was able to verify that the Nodes are up and running when I queried it in SSH. Link to comment Share on other sites More sharing options...
sack123 Posted October 13, 2021 Share Posted October 13, 2021 After option 3. It show below screen. It stay 100% like that and refreshing again ask for rebuilt. & Cubecart store page search option No result searching. Any idead whats wrongs ? After Rebuilt Link to comment Share on other sites More sharing options...
Al Brookbanks Posted October 13, 2021 Share Posted October 13, 2021 5 hours ago, sack123 said: After option 3. It show below screen. It stay 100% like that and refreshing again ask for rebuilt. & Cubecart store page search option No result searching. Any idead whats wrongs ? After Rebuilt This looks like Beta 1? Can you try the Beta 2. If you want to send access to [email protected] I'll be happy to take a look for you. Link to comment Share on other sites More sharing options...
Tony Posted October 13, 2021 Author Share Posted October 13, 2021 @Al Brookbanks Any thoughts of the error I posted a few days ago? Thank you. Link to comment Share on other sites More sharing options...
Al Brookbanks Posted October 13, 2021 Share Posted October 13, 2021 34 minutes ago, Tony said: @Al Brookbanks Any thoughts of the error I posted a few days ago? Thank you. "No alive nodes found in your cluster." Sounds like Elasticsearch hasn't been installed properly or has config issues. Loads of help if you Google it. I dont think it's a fault in CubeCart Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.