I'm setting up a standalone CommcareHQ instance based on the instructions here:
https://github.com/dimagi/commcare-hq/blob/master/PRODUCTION-INSTALL.md
Is there a more up to date set of instructions for installing CommcareHQ standalone?
Among other things, it references the bootstrap script which is deprecated by the looks.
One particular issue I'm having is
django.db.utils.OperationalError: fe_sendauth: no password supplied
When running:
env CCHQ_IS_FRESH_INSTALL=1 /home/commcarehq/bin/python manage.py migrate --noinput
I can access the DB while logged in as commcarehq (no password required).
EDIT if I assign a password to the commcarehq psql user the script runs to a point but then halts on this error:
Applying userreports.0009_rename_ucr_tables...Traceback (most recent call last):
File "manage.py", line 207, in
execute_from_command_line(sys.argv)
File "/home/commcarehq/local/lib/python2.7/site-packages/django/core/management/init.py", line 364, in execute_from_command_line
utility.execute()
File "/home/commcarehq/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 "/home/commcarehq/local/lib/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/commcarehq/local/lib/python2.7/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/home/commcarehq/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 204, in handle
fake_initial=fake_initial,
File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/migrations/executor.py", line 115, in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/migrations/executor.py", line 145, in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/migrations/executor.py", line 244, in apply_migration
state = migration.apply(state, schema_editor)
File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/migrations/migration.py", line 129, in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/migrations/operations/special.py", line 193, in database_forwards
self.code(from_state.apps, schema_editor)
File "/home/commcarehq/commcare-hq/corehq/apps/userreports/migrations/0009_rename_ucr_tables.py", line 65, in _assert_migrated
for engine_id, data_sources in _data_sources_by_engine_id().items():
File "/home/commcarehq/commcare-hq/corehq/apps/userreports/migrations/0009_rename_ucr_tables.py", line 50, in _data_sources_by_engine_id
for ds in StaticDataSourceConfiguration.all():
File "/home/commcarehq/commcare-hq/corehq/apps/userreports/models.py", line 838, in all
for wrapped in cls._all():
File "/home/commcarehq/commcare-hq/corehq/apps/userreports/models.py", line 1271, in _filter_by_server_env
for wrapped in configs:
File "/home/commcarehq/commcare-hq/corehq/apps/userreports/models.py", line 830, in __get_all
for wrapped, path in provider_fn():
File "/home/commcarehq/commcare-hq/corehq/apps/callcenter/data_source.py", line 28, in call_center_data_source_configuration_provider
domains = [domain for domain in get_call_center_domains() if domain.use_fixtures]
File "/home/commcarehq/commcare-hq/corehq/apps/callcenter/utils.py", line 76, in get_call_center_domains
'call_center_config.use_fixtures'])
File "/home/commcarehq/commcare-hq/corehq/apps/es/es_query.py", line 226, in run
es_instance_alias=self.es_instance_alias,
File "/home/commcarehq/commcare-hq/corehq/elastic.py", line 258, in run_query
raise ESError(e)
corehq.elastic.ESError: TransportError(406, u'Content-Type header [] is not supported')
Any help would be appreciated!