Suddenly Elastica / Elastic Search errors :(

189 views
Skip to first unread message

Alan Bailward

unread,
Oct 12, 2018, 2:17:53 AM10/12/18
to AtoM Users
Suddenly when going to the browse page on my install I get a white page.  I dug around a bit and on my (Ubuntu) server elastic search wasn't running and nothing was listening on port 9200.  Long story short the package was in a removed state, I installed it again, tried to run the re-index, failed, and downgraded back to version 6.2.3 (what was installed originally (6.4.0 is the current latest version available).

Now when I go to the archive browse page I still see the white page.  In the apache error logs I see:

[Fri Oct 12 00:56:34.836660 2018] [:error] [pid 7791] [client 75.155.154.218:59608] PHP Fatal error:  Uncaught Error: Wrong parameters for Elastica\\Exception\\ResponseException([string $message [, long $code [, Throwable $previous = NULL]]]) in /var/www/history.missionarchives.com/htdocs/vendor/elastica/Elastica/Exception/ResponseException.php:34\nStack trace:\n#0 /var/www/history.missionarchives.com/htdocs/vendor/elastica/Elastica/Exception/ResponseException.php(34): Exception->__construct(Array)\n#1 /var/www/history.missionarchives.com/htdocs/vendor/elastica/Elastica/Transport/Http.php(159): Elastica\\Exception\\ResponseException->__construct(Object(Elastica\\Request), Object(Elastica\\Response))\n#2 /var/www/history.missionarchives.com/htdocs/vendor/elastica/Elastica/Request.php(171): Elastica\\Transport\\Http->exec(Object(Elastica\\Request), Array)\n#3 /var/www/history.missionarchives.com/htdocs/vendor/elastica/Elastica/Client.php(621): Elastica\\Request->send()\n#4 /var/www/history.missionarchives.com/htdocs/vendor/elastica/Elastica/Index.php(496): Elastica\\Client->request('atom/_open', 'POST', Array, Array)\n#5 /var/ww in /var/www/history.missionarchives.com/htdocs/vendor/elastica/Elastica/Exception/ResponseException.php on line 34, referer: https://searcharchives.missionarchives.com/


When I run the re-index task I get:

root@hawk500:/var/www/history.missionarchives.com/htdocs# php symfony search:populate

PHP Fatal error:  Uncaught Error: Wrong parameters for Elastica\Exception\ResponseException([string $message [, long $code [, Throwable $previous = NULL]]]) in /var/www/history.missionarchives.com/htdocs/vendor/elastica/Elastica/Exception/ResponseException.php:34

Stack trace:

#0 /var/www/history.missionarchives.com/htdocs/vendor/elastica/Elastica/Exception/ResponseException.php(34): Exception->__construct(Array)

#1 /var/www/history.missionarchives.com/htdocs/vendor/elastica/Elastica/Transport/Http.php(159): Elastica\Exception\ResponseException->__construct(Object(Elastica\Request), Object(Elastica\Response))

#2 /var/www/history.missionarchives.com/htdocs/vendor/elastica/Elastica/Request.php(171): Elastica\Transport\Http->exec(Object(Elastica\Request), Array)

#3 /var/www/history.missionarchives.com/htdocs/vendor/elastica/Elastica/Client.php(621): Elastica\Request->send()

#4 /var/www/history.missionarchives.com/htdocs/vendor/elastica/Elastica/Index.php(496): Elastica\Client->request('atom/_open', 'POST', Array, Array)

#5 /var/ww in /var/www/history.missionarchives.com/htdocs/vendor/elastica/Elastica/Exception/ResponseException.php on line 34


Fatal error: Uncaught Error: Wrong parameters for Elastica\Exception\ResponseException([string $message [, long $code [, Throwable $previous = NULL]]]) in /var/www/history.missionarchives.com/htdocs/vendor/elastica/Elastica/Exception/ResponseException.php:34

Stack trace:

#0 /var/www/history.missionarchives.com/htdocs/vendor/elastica/Elastica/Exception/ResponseException.php(34): Exception->__construct(Array)

#1 /var/www/history.missionarchives.com/htdocs/vendor/elastica/Elastica/Transport/Http.php(159): Elastica\Exception\ResponseException->__construct(Object(Elastica\Request), Object(Elastica\Response))

#2 /var/www/history.missionarchives.com/htdocs/vendor/elastica/Elastica/Request.php(171): Elastica\Transport\Http->exec(Object(Elastica\Request), Array)

#3 /var/www/history.missionarchives.com/htdocs/vendor/elastica/Elastica/Client.php(621): Elastica\Request->send()

#4 /var/www/history.missionarchives.com/htdocs/vendor/elastica/Elastica/Index.php(496): Elastica\Client->request('atom/_open', 'POST', Array, Array)

#5 /var/ww in /var/www/history.missionarchives.com/htdocs/vendor/elastica/Elastica/Exception/ResponseException.php on line 34

root@hawk500:/var/www/history.missionarchives.com/htdocs# 



Before I start purging things completely, do anyone have any ideas what's going on?  It feels like a version thing, and looking at my dpkg logs it looks like I had originally installed 6.4 and then downgraded to 6.2.3, so I purged 6.4 completely and did a fresh install of elastic search 6.2.3, but after a restart the "php symfony search:populate" command still gives the same results :( 

Dan Gillean

unread,
Oct 12, 2018, 11:06:17 AM10/12/18
to ICA-AtoM Users
Hi Alan, 

Off the bat, my first guess is that the Elasticsearch version is the issue here. 

AtoM 2.4 works with Elasticsearch 1.7. ES introduced a number of breaking changes in 2.x that prevented us from upgrading without community support for some time. Our business model (namely, releasing everything under open licenses) means that for feature development and major maintenance work, we really depend on our community for assistance, via development sponsorship or community code contributions. You can read more about our development philosophy and Artefactual's business model here: 
Nevertheless, we have wanted to complete this work for some time, and a couple of our developers worked on this over the course of last year between client projects. In the 2.5 version, we've successfully allocated time to upgrade the ES version to 5.2, which was a huge change (you can get a sense by looking at the 2 main commits here and here), but we have not yet tested 6.x.

Unfortunately, for now I would recommend downgrading your ES version. See our recommended installation instructions here: 

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory


--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To post to this group, send email to ica-ato...@googlegroups.com.
Visit this group at https://groups.google.com/group/ica-atom-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/50246e5c-b390-452d-9134-506e67da615b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alan Bailward

unread,
Oct 12, 2018, 11:59:41 PM10/12/18
to AtoM Users
Argh, of course it is.  I got confused when I tried to start it and it didn't work.... I actually dug in and found I do have 1.7 installed, but I guess I never set up the init.d scripts and this is the first time the server's been rebooted since I set it up!

Thanks again Dan.
Reply all
Reply to author
Forward
0 new messages