-
Notifications
You must be signed in to change notification settings - Fork 9
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
celery problem? #22
Comments
Hi! Thanks for reporting. It looks like your requirements.txt might not contain celery. Can you show me what's in /home/usr/pq/requirements.txt ? |
you're right, I added celery to requirements, now I get: [ Err Setup Postgres] --auth-local and --auth-host, the next time you run initdb. IPython 4.0.2 -- An enhanced Interactive Python. Exception occurred in "Stub" setup /home/usr/pq/tests/engine.py
--> 102 : self.services.startup(interactive=False) /home/usr/pq/tests/.hitch/virtualenv/lib/python3.4/site-packages/hitchserve/service_bundle.py
--> 192 : six.reraise(*what_happened) /home/usr/pq/tests/.hitch/virtualenv/lib/python3.4/site-packages/six.py
--> 685 : raise value.with_traceback(tb) /home/usr/pq/tests/.hitch/virtualenv/lib/python3.4/site-packages/hitchserve/service_handle.py
--> 44 : self.service.setup() /home/usr/pq/tests/.hitch/virtualenv/lib/python3.4/site-packages/hitchpython/django_service.py
--> 93 : self.manage("migrate").run() /home/usr/pq/tests/.hitch/virtualenv/lib/python3.4/site-packages/hitchserve/hitch_service.py
--> 78 : return subprocess.check_call(self.command, **kwargs) /home/usr/.pyenv/versions/3.4.3/lib/python3.4/subprocess.py
--> 561 : raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError Command '['/home/usr/pq/tests/.hitch/py3.4.3/bin/python', '-u', '/home/usr/pq/manage.py', 'migrate', '--settings=remindme.settings']' returned non-zero exit status 1 In 1: |
Change 'remindme.settings' to the settings file you want to run to run your django app. That's still a bug I need to fix: hitchtest/hitchquickstart#2 |
Ok, tried to change the remindme.settings to point to my django settings (local.py) file. I suppose my Django app is the name of my django project!? Anyway, I now get: [ Setup Django] Running migrations... IPython 4.0.2 -- An enhanced Interactive Python. Exception occurred in "Stub" setup /home/usr/pq/tests/engine.py
--> 102 : self.services.startup(interactive=False) /home/usr/pq/tests/.hitch/virtualenv/lib/python3.4/site-packages/hitchserve/service_bundle.py
--> 192 : six.reraise(*what_happened) /home/usr/pq/tests/.hitch/virtualenv/lib/python3.4/site-packages/six.py
--> 685 : raise value.with_traceback(tb) /home/usr/pq/tests/.hitch/virtualenv/lib/python3.4/site-packages/hitchserve/service_handle.py
--> 44 : self.service.setup() /home/usr/pq/tests/.hitch/virtualenv/lib/python3.4/site-packages/hitchpython/django_service.py
--> 93 : self.manage("migrate").run() /home/usr/pq/tests/.hitch/virtualenv/lib/python3.4/site-packages/hitchserve/hitch_service.py
--> 78 : return subprocess.check_call(self.command, **kwargs) /home/usr/.pyenv/versions/3.4.3/lib/python3.4/subprocess.py
--> 561 : raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError Command '['/home/usr/pq/tests/.hitch/py3.4.3/bin/python', '-u', '/home/usr/pq/manage.py', 'migrate', '--settings=pq.config.settings.local']' returned non-zero exit status 1 In 1: |
It still doesn't like your specified settings for some reason. The critical error message is here::
It's trying to run:
I think you probably needed to put in: "config.settings.local" rather than "pq.config.settings.local". |
mmh, changed it to config.setting.local looks like it gets stuck earlier now: IPython 4.0.2 -- An enhanced Interactive Python. Exception occurred in "Stub" setup /home/usr/pq/tests/engine.py
--> 102 : self.services.startup(interactive=False) /home/usr/pq/tests/.hitch/virtualenv/lib/python3.4/site-packages/hitchserve/service_bundle.py
--> 196 : raise what_happened hitchserve.hitch_exception.ServiceSuddenStopException Service 'Celery' stopped suddenly. In 1: |
This time the relevant error is here:
It looks like this might be relevant to the problem you're having: https://stackoverflow.com/questions/13555386/starting-celery-attributeerror-module-object-has-no-attribute-celery#13569129 (difficult to tell exactly without looking at the code). |
The command it's trying to run is:
In directory: /home/usr/pq |
Ok, thanks. My celery setup is indeed non-existent. Hitch looks pretty impressive. Thanks for your swift help. Will get back on this later. |
No problem. If you want to prevent hitch from running celery for now you can just comment out the lines that look like this:
It'll then not attempt to start that service. |
I trying the stub.test but get this:
[ Setup Postgres] /home/usr/.hitchpkg/postgresql-9.4.5/postgresql-9.4.5/bin/pg_ctl -D /home/usr/pq/tests/.hitch/pgdata -l logfile start
[ Err Setup Postgres] WARNING: enabling "trust" authentication for local connections
[ Err Setup Postgres] You can change this by editing pg_hba.conf or using the option -A, or
[ Err Setup Postgres] --auth-local and --auth-host, the next time you run initdb.
[ Hitch] Starting Postgres
[ Hitch] Directory: /home/usr/pq/tests/.hitch
[ Hitch] Command: /home/usr/.hitchpkg/postgresql-9.4.5/postgresql-9.4.5/bin/postgres -p 15432 -D /home/usr/pq/tests/.hitch/pgdata --unix_socket_directories=/home/usr/pq/tests/.hitch/pgdata --log_destination=stderr
[ Err Postgres] LOG: database system was shut down at 2016-01-18 21:46:01 CET
[ Err Postgres] LOG: MultiXact member wraparound protections are now enabled
[ Err Postgres] LOG: database system is ready to accept connections
[ Hitch] Postgres Loaded.
[ Err Postgres] LOG: autovacuum launcher started
[ Post Postgres] Creating users and databases...
[ Post Postgres] CREATE ROLE
[ Post Postgres] CREATE DATABASE
[ Setup Django] Running migrations...
[ Hitch] Starting Celery
[ Hitch] Directory: /home/usr/pq
[ Hitch] Command: /home/usr/pq/tests/.hitch/py3.4.3/bin/python -u -m celery worker --app=remindme --loglevel=INFO --concurrency=2
[ Err Celery] /home/usr/pq/tests/.hitch/py3.4.3/bin/python: No module named celery
WARNING: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv.
Python 3.4.3 (default, Sep 15 2015, 12:35:19)
Type "copyright", "credits" or "license" for more information.
IPython 4.0.2 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
Exception occurred in "Stub" setup
/home/usr/pq/tests/stub.test --tags feature-name
/home/usr/pq/tests/engine.py
--> 102 : self.services.startup(interactive=False)
103 :
104 : # Docs : https://hitchtest.readthedocs.org/en/latest/plugins/hitchcli.html
/home/usr/pq/tests/.hitch/virtualenv/lib/python3.4/site-packages/hitchserve/service_bundle.py
--> 196 : raise what_happened
197 : else:
198 : if interactive:
hitchserve.hitch_exception.ServiceSuddenStopException
Service 'Celery' stopped suddenly.
In 1:
The text was updated successfully, but these errors were encountered: