# Make\_supervisor error

**URL:** <https://forum.dimagi.com/t/make-supervisor-error/4932>\
**Category:** Developers\
**Created:** [January 30, 2018, 5:38am UTC](https://forum.dimagi.com/t/make-supervisor-error/4932 "2018-01-30T05:38:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Harper1](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/j/a698b9/32.png) [@John\_Harper1](https://forum.dimagi.com/u/John_Harper1)\
**Post date:** [January 30, 2018, 5:38am UTC](https://forum.dimagi.com/t/make-supervisor-error/4932/1 "2018-01-30T05:38:22Z")

</div>

I am at a forest for the trees moment I think. I have a new development environment loaded and I am wanting to set up supervisor conf files for this environment but I am getting errors on the make\_supervisor step

the error I am getting is below I would normally use the deploy folder for the template folders but the cloud repository has replaced it........correct?

Any ideas on what I may have miss-configured?

the command used is this  
for i in 'ls /home/commcarehq/commcare-hq/commcare-cloud/fab/fab/services/templates/'; do /home/commcarehq/commcare-hq/bin/python manage.py make\_supervisor\_conf --conf\_file $i --conf\_destination services/supervisor --params '{"project":"commcarehq", "environment": "prod", "code\_current": "/home/commcarehq/commcare-hq/", "django\_bind": "127.0.0.1", "django\_port": 8000, "flower\_port": 5555, "log\_dir":"/tmp", "virtualenv\_current":"/home/commcarehq/", "sudo\_user": "commcarehq", "celery\_params": {"concurrency": 1}}'; done

which I have ran as the commcarehq user in the home/commcarehq/commcare-hq folder.......

perhaps i should run this as another superuser?

commcarehq@devops:~/commcare-hq$ for i in 'ls /home/commcarehq/commcare-hq/commcare-cloud/fab/fab/services/templates/';  
do /home/commcarehq/commcare-hq/bin/python manage.py make\_supervisor\_conf --conf\_file $i --conf\_destination services/s  
upervisor --params '{"project":"commcarehq", "environment": "prod", "code\_current": "/home/commcarehq/commcare-hq/", "d  
jango\_bind": "127.0.0.1", "django\_port": 8000, "flower\_port": 5555, "log\_dir":"/tmp", "virtualenv\_current":"/home/commc  
arehq/", "sudo\_user": "commcarehq", "celery\_params": {"concurrency": 1}}'; done  
/home/commcarehq/commcare-hq/local/lib/python2.7/site-packages/couchdbkit/resource.py:26: ImportWarning: Not importing directory '/home/commcarehq/commcare-hq/restkit': missing **init**.py  
from restkit import Resource, ClientResponse  
/home/commcarehq/commcare-hq/local/lib/python2.7/site-packages/restkit/conn.py:14: ImportWarning: Not importing directory '/home/commcarehq/commcare-hq/socketpool': missing **init**.py  
from socketpool import Connector  
/home/commcarehq/commcare-hq/local/lib/python2.7/site-packages/kombu/transport/django/models.py:29: RemovedInDjango20Warning: on\_delete will be a required arg for ForeignKey in Django 2.0. Set it to models.CASCADE on models and in existing migrations if you want to maintain the current default behavior. See [Model field reference | Django documentation | Django](https://docs.djangoproject.com/en/1.11/ref/models/fields/#django.db.models.ForeignKey.on_delete)  
queue = models.ForeignKey(Queue, related\_name='messages')  
/home/commcarehq/commcare-hq/local/lib/python2.7/site-packages/captcha/fields.py:4: RemovedInDjango20Warning: Importing from django.core.urlresolvers is deprecated in favor of django.urls.  
from django.core.urlresolvers import reverse, NoReverseMatch  
2018-01-30 05:24:38,536 INFO Raven is not configured (logging is disabled). Please see the documentation for more information.  
usage: manage.py make\_supervisor\_conf [-h] [--version] [-v {0,1,2,3}]  
[--settings SETTINGS]  
[--pythonpath PYTHONPATH] [--traceback]  
[--no-color] [--conf\_file CONF\_FILE]  
[--conf\_destination CONF\_DESTINATION]  
[--conf\_destination\_filename CONF\_DESTINATION\_FILENAME]  
[--params PARAMS]  
manage.py make\_supervisor\_conf: error: unrecognized arguments: /home/commcarehq/commcare-hq/commcare-cloud/fab/fab/services/templates/  
commcarehq@devops:~/commcare-hq$
