Closed setsimmo closed 4 years ago
Thanks for reporting this issue. Can you:
user_settings.py
pip freeze
import errno
import os
from .wooey_settings import *
# This file is where the user can override and customize their installation of wooey
INSTALLED_APPS += ( )
WOOEY_ALLOW_ANONYMOUS = True
INSTALLED_APPS += ( 'django_celery_results', 'kombu.transport.filesystem', )
CELERY_RESULT_BACKEND = 'django-db'
CELERY_BROKER_URL = 'filesystem://'
def ensure_path(path): try: os.makedirs(path) except Exception as e: if e.errno == errno.EEXIST: pass else: raise return path
broker_dir = ensure_path(os.path.join(BASE_DIR, '.broker')) CELERY_BROKER_TRANSPORT_OPTIONS = { "data_folder_in": ensure_path(os.path.join(broker_dir, "out")), "data_folder_out": ensure_path(os.path.join(broker_dir, "out")), "data_folder_processed": ensure_path(os.path.join(broker_dir, "processed")), }
CELERY_TRACK_STARTED = True WOOEY_CELERY = True CELERY_SEND_EVENTS = True CELERY_IMPORTS = ('wooey.tasks',)
WOOEY_REALTIME_CACHE = 'default' CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.db.DatabaseCache', 'LOCATION': 'wooey_cache_table', } }
MEDIA_ROOT = os.path.join(BASE_DIR, 'user_uploads')
MEDIA_URL = '/uploads/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATIC_URL = '/static/'
#
#
#
#
#
#
#
#
#
AUTHENTICATION_BACKEND = 'django.contrib.auth.backends.ModelBackend'
2. CentOS 7
3.
amqp==2.2.2 anyjson==0.3.3 appdirs==1.4.3 arrow==0.10.0 billiard==3.5.0.3 celery==4.1.1 certifi==2017.4.17 clinto==0.2.1 Django==1.11.13 django-auth-ldap==1.5.0 django-autoslug==1.9.3 django-celery==3.2.2 django-celery-results==1.0.1 esp-snow-cli==0.9.4 esp-snow-lib==0.9.7 feedparser==5.2.1 jsonfield==2.0.2 kombu==4.2.0 ldap==1.0.2 ldap3==2.5 lxml==4.1.0 pyasn1==0.4.2 pyasn1-modules==0.2.1 python-dateutil==2.6.1 python-ldap==3.0.0 pytz==2018.4 pyvmomi==6.5.0.2017.5.post1 PyYAML==3.12 pyzabbix==0.7.4 requests==2.13.0 six==1.11.0 terminaltables==3.1.0 vine==1.1.4 wooey==0.10.0 xmltodict==0.11.0 zabbix-api==0.4 ZabbixSender==0.2.7
Oh, I bet it is because the command python manage.py createcachetable
has not been run. Try running that. It may need to be added to the bootstrap script.
No, the bootstrap script does run it (https://github.com/wooey/Wooey/blob/94b5bdd670175c9817e6bdac9be5f28e8cdd0f5a/wooey/backend/command_line.py#L113). But can you try running it again?
After running the command I don't get the error anymore! But my job still never completes/does anything:
[23/May/2018 20:08:19] "GET / HTTP/1.1" 200 23622
[23/May/2018 20:08:20] "GET /jobs/queue/all/json HTTP/1.1" 200 102
[23/May/2018 20:08:35] "GET /scripts/the-easy-button-tm/ HTTP/1.1" 200 232154
[23/May/2018 20:08:36] "GET /jobs/queue/all/json HTTP/1.1" 200 102
[23/May/2018 20:08:45] "POST /scripts/the-easy-button-tm/ HTTP/1.1" 200 52
[23/May/2018 20:08:45] "GET /jobs/6/ HTTP/1.1" 200 34495
[23/May/2018 20:08:45] "GET /jobs/queue/all/json HTTP/1.1" 200 342
[23/May/2018 20:08:48] "GET /jobs/6/jsonhtml HTTP/1.1" 200 123
[23/May/2018 20:08:52] "GET /jobs/6/jsonhtml HTTP/1.1" 200 123
[23/May/2018 20:08:54] "GET /jobs/6/jsonhtml HTTP/1.1" 200 123
[23/May/2018 20:08:57] "GET /jobs/6/jsonhtml HTTP/1.1" 200 123
[23/May/2018 20:09:00] "GET /jobs/6/jsonhtml HTTP/1.1" 200 123
[23/May/2018 20:09:00] "GET /jobs/queue/all/json HTTP/1.1" 200 342
It just gets stuck in the queue with no output or conclusion...
To clarify, this was working properly for me in wooey 0.9.x, I upgraded and rebuilt the project "wooify -p easy_button" after moving the old project to easy_button_old. So it's starting with a clean slate, but not working properly.
Did you migrate after upgrading via python manage.py migrate
?
Yes, I did.
To add another detail -- I am currently running wooey with Python 3.6.5 (didn't see in the documentation anywhere the recommended version of Python).
I will test on that when I have some time. Here are some ideas: 1) You have some packages from your previous install that shouldn't interfere, but might (django-celery is one). Can you try with a clean environment? 2) How are you running celery? 3) Can you look at the broker messages?
Hi,
Just setup wooey for the first time and imported a simple script, but can't seem to get it to run anything. Whenever I run the script, it fails to ever complete or error out, and I see the following output to stdout by the runserver proc: