Error from Arches container image built yesterday from master:
(ENV) root@06a7d6571621:/web_root/arches# python manage.py es
index_database
Indexing concepts
Status: Passed, In Database: 490, Indexed: 490, Took: 0 seconds
Indexing resource type 'Group'
Traceback (most recent call last):
File "manage.py", line 27, in <module>
execute_from_command_line(sys.argv)
File
"/web_root/ENV/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 364, in execute_from_command_line
utility.execute()
File
"/web_root/ENV/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/web_root/ENV/local/lib/python2.7/site-packages/django/core/management/base.py",
line 283, in run_from_argv
self.execute(*args, **cmd_options)
File
"/web_root/ENV/local/lib/python2.7/site-packages/django/core/management/base.py",
line 330, in execute
output = self.handle(*args, **options)
File "/web_root/arches/arches/management/commands/es.py", line 76, in
handle
index_database.index_db(clear_index=options['clear_index'],
batch_size=options['batch_size'])
File "/web_root/arches/arches/app/utils/index_database.py", line 25, in
index_db
index_resources(clear_index=clear_index, batch_size=batch_size)
File "/web_root/arches/arches/app/utils/index_database.py", line 44, in
index_resources
index_resources_by_type(resource_types, clear_index=clear_index,
batch_size=batch_size)
File "/web_root/arches/arches/app/utils/index_database.py", line 84, in
index_resources_by_type
result_summary['indexed'] = se.count(index='resources', body=q.dsl)
File "/web_root/arches/arches/app/search/search.py", line 214, in count
count = self.es.count(**kwargs)
File
"/web_root/ENV/local/lib/python2.7/site-packages/elasticsearch/client/utils.py",
line 76, in _wrapped
return func(*args, params=params, **kwargs)
File
"/web_root/ENV/local/lib/python2.7/site-packages/elasticsearch/client/__init__.py",
line 1112, in count
doc_type, '_count'), params=params, body=body)
File
"/web_root/ENV/local/lib/python2.7/site-packages/elasticsearch/transport.py",
line 318, in perform_request
status, headers_response, data = connection.perform_request(method,
url, params, body, headers=headers, ignore=ignore, timeout=timeout)
File
"/web_root/ENV/local/lib/python2.7/site-packages/elasticsearch/connection/http_urllib3.py",
line 186, in perform_request
self._raise_error(response.status, raw_data)
File
"/web_root/ENV/local/lib/python2.7/site-packages/elasticsearch/connection/base.py",
line 125, in _raise_error
raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code,
error_message, additional_info)
elasticsearch.exceptions.RequestError: RequestError(400,
u'parsing_exception', u'request does not support [_source]')
On Thu, 4 Apr 2019 at 13:22, Ben O'Steen <[email protected]> wrote:
> Ah, that is a good point. Yes I am on master (which still believes itself
> to be 4.4.1 in the logs hence me replying)
>
> On Thu, 4 Apr 2019 at 13:04, Adam Cox <[email protected]> wrote:
>
>> Hey all, isn't 4.4.1 ES 5.x and master branch right now is ES 6.2? That's
>> what has worked for me, and using the wrong ES version broke things...
>> though I'm not in a position to double this right now.
>>
>> Adam
>>
>> On Thu, Apr 4, 2019, 3:50 PM Ben O'Steen <[email protected]> wrote:
>>
>>>
>>> I am running it as docker containers so am just using the default
>>> elasticsearch container.
>>>
>>> On Thu, 4 Apr 2019, 11:34 , <[email protected]> wrote:
>>>
>>>> Hi Ben,
>>>>
>>>> did you also have problems with Elasticsearch 6.6.2 not running because
>>>> of file/folder permissions?
>>>>
>>>> Jens
>>>>
>>>> On Thursday, 4 April 2019 19:12:12 UTC+1, Ben O'Steen wrote:
>>>>
>>>>> I can confirm I hit the same issue and error running 'python manage.py
>>>>> es index_database'. I hadn't filed an issue about it as I too had just
>>>>> upgraded ES in my environment too and wanted to eliminated operator error
>>>>> first. The command that seems to be the root of the issue was:
>>>>> 'result_summary['indexed'] = se.count(index='resources', body=q.dsl)' for
>>>>> me.
>>>>>
>>>>> Ben
>>>>>
>>>>> On Thu, 4 Apr 2019 at 10:32, <[email protected]> wrote:
>>>>>
>>>>>> Hi folks,
>>>>>>
>>>>>> I upgraded Arches to 4.4.1 which worked fine. Then I became bold and
>>>>>> upgraded my server to the latest ubuntu version 18.04 LTS.
>>>>>> After a rough ride I (almost) got it to work.
>>>>>> A major problem was Elasticsearch 6.6.2 not running because of
>>>>>> insufficient rights.
>>>>>> I solved this by giving read-write/execute permission to the entire
>>>>>> folder (# chmod -R 777 /home/ubuntu/Projects/elasticsearch-6.6.2) - I
>>>>>> know
>>>>>> it's heavy handed, but it worked!
>>>>>>
>>>>>> However I did not succeed in re-indexing my existing project
>>>>>> databases.
>>>>>> python manage.py
>>>>>> migrate - worked
>>>>>> es delete_indexes - worked
>>>>>> es setup_indexes - worked
>>>>>> *es index_database* - FAILED
>>>>>>
>>>>>> The resulting error was:
>>>>>>
>>>>>> File
>>>>>> "/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/base.py",
>>>>>> line 125, in _raise_error
>>>>>> raise HTTP_EXCEPTIONS.get(status_code,
>>>>>> TransportError)(status_code, error_message, additional_info)
>>>>>> elasticsearch.exceptions.RequestError: RequestError(400,
>>>>>> u'parsing_exception', u'request does not support [_source]')
>>>>>>
>>>>>> Does anyone have an idea how to fix this and re-index existing
>>>>>> databases?
>>>>>>
>>>>>> Cheers
>>>>>> Jens
>>>>>>
>>>>>> --
>>>>>> -- To post, send email to [email protected]. To
>>>>>> unsubscribe, send email to [email protected]. For more
>>>>>> information, visit
>>>>>> https://groups.google.com/d/forum/archesproject?hl=en
>>>>>> ---
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Arches Project" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to [email protected].
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>> --
>>>> -- To post, send email to [email protected]. To
>>>> unsubscribe, send email to [email protected].
>>>> For more information, visit
>>>> https://groups.google.com/d/forum/archesproject?hl=en
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Arches Project" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> --
>>> -- To post, send email to [email protected]. To
>>> unsubscribe, send email to [email protected].
>>> For more information, visit
>>> https://groups.google.com/d/forum/archesproject?hl=en
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Arches Project" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> -- To post, send email to [email protected]. To
>> unsubscribe, send email to [email protected].
>> For more information, visit
>> https://groups.google.com/d/forum/archesproject?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Arches Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
--
-- To post, send email to [email protected]. To unsubscribe, send
email to [email protected]. For more information,
visit https://groups.google.com/d/forum/archesproject?hl=en
---
You received this message because you are subscribed to the Google Groups
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.