Greetings, I'm following the installation guide here
https://github.com/PublicMapping/DistrictBuilder/blob/master/docs/INSTALL#L370
I'm not sure whether to run 9.b first or configure Geoserver first. So
I tried executing 9.b first, it ran overnight
and I see this in the log file (I don't find these .sld files under /
projects/DistrictBuilder/sld)
could not be loaded. Please confirm that the
style files are named according to the "geolevel_subject.sld"
convention, and try again.
No style file found for pmp:demo_block_govtot
ERROR:
Could not configure geoserver:
Could not assign style to layer 'pmp:demo_block_govtot'.
Please check the configuration settings, and try again.
HTTP Status: 404
Geoserver configuration complete.
Created template plan "Congressional"
Created template plan "State House"
Created template plan "State Senate"
Created Plan named "Blank" for LegislativeBody "Congressional"
Created Plan named "Blank" for LegislativeBody "State House"
Created Plan named "Blank" for LegislativeBody "State Senate"
Created Plan named "Blank" for LegislativeBody "Community Map"
56175,1 Bot
Any ideas as to why I'm seeing above 'could not configure geoserver'
messages?I thought it could be because of the fact that I didn't
properly configure geoserver so I thought I should configure geoserver
again and then run above command again. So I ran the following command
from the installation doc
sudo python ./setup.py -V -G ../../docs/config.xsd ../../docs/
config.xml
and it threw the following error
WARNING: Sync your config file to your app configuration or
use the -f switch with setup to force changes
Traceback (most recent call last):
File "./setup.py", line 455, in <module>
main()
File "./setup.py", line 134, in main
management.call_command('setup', config=args[1],
verbosity=verbose, geolevels=geolevels, views=views,
geoserver=geoserver, templates=templates, nesting=nesting,
static=static, bard=bard, bard_templates=bard_templates)
File "/usr/lib/pymodules/python2.7/django/core/management/
__init__.py", line 166, in call_command
return klass.execute(*args, **defaults)
File "/usr/lib/pymodules/python2.7/django/core/management/base.py",
line 220, in execute
output = self.handle(*args, **options)
File "/projects/DistrictBuilder/django/publicmapping/redistricting/
management/commands/setup.py", line 185, in handle
srid = qset[0].geom.srid
File "/usr/lib/pymodules/python2.7/django/db/models/query.py", line
190, in __getitem__
return list(qs)[0]
IndexError: list index out of range
ubuntu@ip-10-212-139-175:/projects/DistrictBuilder/django/publicmapping
$
Any ideas why the above error could happen? Also, I'm sorry but I'm
little confused as to which should be run first? I'm assuming that
following
- Geoserver
- Celery
- Apache
- Bard
should be configured before running 9.b i.e. > sudo ./setup.py ../../
docs/config.xsd ../../docs/config.xml
?
Please pardon my ignorance. All help is really appreciated.
Thanks!