File "/usr/lib/python2.7/urllib.py", line 87, in urlopen
return opener.open(url)
File "/usr/lib/python2.7/urllib.py", line 213, in open
return getattr(self, name)(url)
File "/usr/lib/python2.7/urllib.py", line 469, in open_file
return self.open_local_file(url)
File "/usr/lib/python2.7/urllib.py", line 483, in open_local_file
raise IOError(e.errno, e.strerror, e.filename)
IOError: [Errno 20] Not a directory: '/home/ubuntu/tilestache.cfg/cache'
[2018-07-02 13:50:42 +0000] [26013] [INFO] Worker exiting (pid: 26013)
[2018-07-02 13:50:42 +0000] [26009] [INFO] Shutting down: Master
[2018-07-02 13:50:42 +0000] [26009] [INFO] Reason: Worker failed to boot.
cache_dict = json_load(urlopen(url_root + "/cache"))" seems to be adding "/cache" to the url... interesting... so what if I change the name of the local file to 'cache' and see what happens...
$ gunicorn --bind localhost:8888 "TileStache.Goodies.ExternalConfigServer:WSGIServer('/home/ubuntu/')"
[2018-07-02 13:34:55 +0000] [25963] [INFO] Starting gunicorn 19.4.5
[2018-07-02 13:34:55 +0000] [25963] [INFO] Using worker: sync
[2018-07-02 13:34:55 +0000] [25967] [INFO] Booting worker with pid: 25967
[2018-07-02 13:34:55 +0000] [25967] [ERROR] Exception in worker process:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 515, in spawn_worker
worker.init_process()
File "/usr/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 122, in init_process
self.load_wsgi()
File "/usr/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 130, in load_wsgi
self.wsgi = self.app.wsgi()
File "/usr/lib/python2.7/dist-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load
return self.load_wsgiapp()
File "/usr/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/lib/python2.7/dist-packages/gunicorn/util.py", line 377, in import_app
app = eval(obj, mod.__dict__)
File "<string>", line 1, in <module>
File "/home/ubuntu/.local/lib/python2.7/site-packages/TileStache/Goodies/ExternalConfigServer.py", line 132, in __init__
config = ExternalConfiguration(url_root, cache_dict, cache_responses, dirpath)
File "/home/ubuntu/.local/lib/python2.7/site-packages/TileStache/Goodies/ExternalConfigServer.py", line 105, in __init__
self.cache = TileStache.Config._parseConfigCache(cache_dict, dirpath)
File "/home/ubuntu/.local/lib/python2.7/site-packages/TileStache/Config.py", line 322, in _parseConfigCache
raise Exception('Missing required cache name or class: %s' % json_dumps(cache_dict))