Following the complete output starting from the command:
python manage.py packages -o install
I hope that helps to give some clues about the problem.

Thanks! 



(ENV)root@ubuntu-512mb-fra1-01:~/arches/hipAvenches# python manage.py 
packages -o install
operation: install
package: hipAvenches
operation: setup_db
package: hipAvenches
 pg_terminate_backend
----------------------
(0 rows)

 pg_terminate_backend
----------------------
(0 rows)

DROP DATABASE
CREATE DATABASE
psql: FATAL:  database "arches_hipAvenches" does not exist
Traceback (most recent call last):
  File "manage.py", line 28, in <module>
    execute_from_command_line(sys.argv)
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/django/core/management/__init__.py"
, line 399, in execute_from_command_line
    utility.execute()
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/django/core/management/__init__.py"
, line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/django/core/management/base.py"
, line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/django/core/management/base.py"
, line 285, in execute
    output = self.handle(*args, **options)
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/arches/management/commands/packages.py"
, line 73, in handle
    self.install(package_name)
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/arches/management/commands/packages.py"
, line 126, in install
    install()
  File "/root/arches/hipAvenches/hipAvenches/setup.py", line 6, in install
    setup.install()
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/arches_hip/setup.py", 
line 18, in install
    truncate_db()
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/arches_hip/setup.py", 
line 44, in truncate_db
    management.call_command('packages', operation='setup_db')
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/django/core/management/__init__.py"
, line 159, in call_command
    return klass.execute(*args, **defaults)
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/django/core/management/base.py"
, line 285, in execute
    output = self.handle(*args, **options)
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/arches/management/commands/packages.py"
, line 76, in handle
    self.setup_db(package_name)
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/arches/management/commands/packages.py"
, line 211, in setup_db
    self.create_groups()
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/arches/management/commands/packages.py"
, line 252, in create_groups
    edit_group = Group.objects.create(name='edit')
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py"
, line 157, in create
    return self.get_queryset().create(**kwargs)
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/django/db/models/query.py"
, line 319, in create
    obj.save(force_insert=True, using=self.db)
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/django/db/models/base.py"
, line 545, in save
    force_update=force_update, update_fields=update_fields)
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/django/db/models/base.py"
, line 570, in save_base
    with transaction.commit_on_success_unless_managed(using=using, savepoint
=False):
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/django/db/transaction.py"
, line 500, in commit_on_success_unless_managed
    if connection.get_autocommit() or connection.in_atomic_block:
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/django/db/backends/__init__.py"
, line 324, in get_autocommit
    self.ensure_connection()
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/django/db/backends/__init__.py"
, line 124, in ensure_connection
    self.connect()
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/django/db/utils.py", 
line 99, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/django/db/backends/__init__.py"
, line 124, in ensure_connection
    self.connect()
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/django/db/backends/__init__.py"
, line 112, in connect
    self.connection = self.get_new_connection(conn_params)
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py"
, line 114, in get_new_connection
    return Database.connect(**conn_params)
  File 
"/root/arches/ENV/local/lib/python2.7/site-packages/psycopg2/__init__.py", 
line 164, in connect
    conn = _connect(dsn, connection_factory=connection_factory, async=async)
django.db.utils.OperationalError: FATAL:  database "arches_hipAvenches" 
does not exist

(ENV)root@ubuntu-512mb-fra1-01:~/arches/hipAvenches#




On Wednesday, December 16, 2015 at 5:04:04 AM UTC+1, Adam Cox wrote:
>
> Hi Anjo, it does sound like something is wrong.  I just wanted to mention 
> that detail about error messages because it may look as though the initial 
> installation begins with an error, but it's really just a note.  The 
> message would just read
> NOTICE: database "arches_my_hip_app" does not exist, skipping DROP DATABASE
> and then the installation would continue from there.  But that's not 
> what's going on it your case, so it does appear that there's an issue.
>
> One thing to mention is that the template you're referring to is just for 
> the PostGIS geometry database that arches uses as a template for it's own 
> geometry tables.  If you have
> DATABASES['default']['POSTGIS_TEMPLATE'] = 'template_postgis_20'
> in your settings file, and you can confirm that that is the name of the 
> PostGIS template you see in pgAdmin, then your problem should not be coming 
> from that template, but from somewhere else.
>
> Unfortunately, I'm not sure where else to look.  If you can find post any 
> other error messages that you get, that would be useful to others that may 
> have some idea what's going on...  Screenshots are the best.
>
> Good luck!
> Adam
>
> On Tuesday, December 15, 2015 at 11:59:54 AM UTC-6, Anjo Weichbrodt wrote:
>>
>> Hi Adam,
>>
>> thank you so much for your quick reply. 
>>
>> The installation finishes with the *django.db.utils.OperationalError: 
>> FATAL: database “arches_my_hip_app” does not exist’ *To me it looks like 
>> the entire error message. When checking the entries with *pgAdmin* I can 
>> find 'template_postgis_20'.
>>
>> In your answer you said that:
>>
>>> The very first time that you install a package, you should get a warning 
>>> that the *arches_my_hip_app *database does not exist, but the 
>>> installation should proceed properly without any problem.
>>
>>
>> Do you suggest that the error message is normal and there might not be a 
>> problem?
>>
>> Thanks in advance,
>> Anjo
>>
>> On Tuesday, December 15, 2015 at 6:12:12 PM UTC+1, Adam Cox wrote:
>>>
>>> Hi Anjo, was that the entirety of your error message?  If not, could you 
>>> post the whole thing?  The very first time that you install a package, you 
>>> should get a warning that the *arches_my_hip_app *database does not 
>>> exist, but the installation should proceed properly without any problem.
>>>
>>> On Tue, Dec 15, 2015 at 7:30 AM, Anjo Weichbrodt <[email protected]> 
>>> wrote:
>>>
>>>> Dear all,
>>>>
>>>> When I would like to create a database with the command:
>>>>
>>>> (ENV)$ python manage.py packages -o install
>>>>
>>>>
>>>> I get the following error message:
>>>> *django.db.utils.OperationalError: FATAL: database “arches_my_hip_app” 
>>>> does not exist’*
>>>>
>>>> The template was created with the name ‘template_postgis_20'. I 
>>>> followed the *Arches *and *Arche-Hip* installation guide through the 
>>>> installation.
>>>>
>>>> I am running *Arches *on 
>>>>
>>>>
>>>> *Ubuntu 14.04.3 x64*Thank you for your help,
>>>> Anjo
>>>>
>>>> -- 
>>>> -- To post, send email to [email protected]. To unsubscribe, 
>>>> send email to [email protected]. For more information, 
>>>> visit https://groups.google.com/d/forum/archesproject?hl=en
>>>> --- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "Arches Project" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>

-- 
-- To post, send email to [email protected]. To unsubscribe, send 
email to [email protected]. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to