Re: [Arches] Re: Error when trying to start celery

2021-02-12 Thread Alexei Peters
Hi Angela, Sorry, I see now what you're talking about. I wasn't looking at the management command. So, having that set to use the ELASTICSEARCH_PREFIX is probably a mistake. Instead of running the command you can run what the command runs. "celery -A {your project name} worker -l info" That

Re: [Arches] Re: Error when trying to start celery

2021-02-11 Thread Alexei Peters
Hi Angela, After you copy that file over, you'll need to edit a couple of lines in that file: THESE LINES: os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") app = Celery("arches") SHOULD CHANGE TO THIS: os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{my project name}.settings") app =

Re: [Arches] Re: Error when trying to start celery

2021-02-10 Thread Angela Labrador
Hi Alexei, I'm back! I have copied the new celery.py file over into my project directory as suggested above, however, I still get the same error. Error: Unable to load celery application. The module XXX was not found. where XXX = {settings.ELASTICSEARCH_PREFIX} The only celery management

Re: [Arches] Re: Error when trying to start celery

2021-01-29 Thread Alexei Peters
Hi Angela, It looks like you identified the issue. Older projects weren't created with that celery file and that explains the problem you're seeing. Copying that file over to your project should solve the problem. This was most likely an oversight in our upgrade announcement (although I can't be

Re: [Arches] Re: Error when trying to start celery

2021-01-29 Thread Angela Labrador
Hi Alexei, Yep, I'm running the command local to where the manage.py file is located (running the command just like any other python manage.py command with no dir in front of the command). But -- I think you just identified the problem! I do not have a celery.py file within my-project folder

Re: [Arches] Re: Error when trying to start celery

2021-01-29 Thread Alexei Peters
Hi Angela, Just to be clear the command should be run from the directory where the "manage.py" file is located. EG: you CAN'T do this --> python somedir/manage.py celery start Also, does your celery file look something like this? from __future__ import absolute_import, unicode_literals import os

Re: [Arches] Re: Error when trying to start celery

2021-01-27 Thread Angela Labrador
Hi Alexei, Correct. I am running python manage.py celery start from within [my_project] folder, as per docs , which results in the Error: Unable to load celery application. The module [ my

Re: [Arches] Re: Error when trying to start celery

2021-01-26 Thread Alexei Peters
Hi Angela, I assume that you're running the "python manage.py celery start" command from your project and not from the root of the Arches code base correct? The command also assumes that you haven't rename your folders in your project directory. -Alexei Director of Web Development - Farallon

[Arches] Re: Error when trying to start celery

2021-01-25 Thread Angela Labrador
Hi Lindsay, Thanks for checking in -- no, I haven't really solved it. I've got a workaround, but would appreciate any ideas or explanations so I can understand how celery is supposed to be configured (or so that we can update the docs if they need to be edited). Angela On Tuesday, January

[Arches] Re: Error when trying to start celery

2021-01-19 Thread Lindsey Gant
Hi Angela, Were you able to find a solution to your celery error? If not, let me see if someone in the group can follow up. Thanks, Lindsey GCI Arches Project Team On Thursday, January 14, 2021 at 2:30:56 PM UTC-8 ala...@gmail.com wrote: > Hello all, > > I'm testing an upgrade to Arches 5.1