{"action":"created","issue":{"url":"https://api.github.com/repos/cyberdelia/heroku-geo-buildpack/issues/32","repository_url":"https://api.github.com/repos/cyberdelia/heroku-geo-buildpack","labels_url":"https://api.github.com/repos/cyberdelia/heroku-geo-buildpack/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/cyberdelia/heroku-geo-buildpack/issues/32/comments","events_url":"https://api.github.com/repos/cyberdelia/heroku-geo-buildpack/issues/32/events","html_url":"https://github.com/cyberdelia/heroku-geo-buildpack/issues/32","id":101617519,"number":32,"title":".heroku/vendor disappears when clearing cache","user":{"login":"browniebroke","id":861044,"avatar_url":"https://avatars.githubusercontent.com/u/861044?v=3","gravatar_id":"","url":"https://api.github.com/users/browniebroke","html_url":"https://github.com/browniebroke","followers_url":"https://api.github.com/users/browniebroke/followers","following_url":"https://api.github.com/users/browniebroke/following{/other_user}","gists_url":"https://api.github.com/users/browniebroke/gists{/gist_id}","starred_url":"https://api.github.com/users/browniebroke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/browniebroke/subscriptions","organizations_url":"https://api.github.com/users/browniebroke/orgs","repos_url":"https://api.github.com/users/browniebroke/repos","events_url":"https://api.github.com/users/browniebroke/events{/privacy}","received_events_url":"https://api.github.com/users/browniebroke/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2015-08-18T09:54:15Z","updated_at":"2016-11-02T15:18:53Z","closed_at":"2016-11-01T16:52:49Z","body":"This issue is probably related to #29, but the other way round. The first deploy with purged cache breaks my application (although it completes fine), and pushing an empty deploy immediately after fixes it. I'm using this buildpack with the default Heroku Python buildpack.\n\n.buildpacks file:\n\n```\nhttps://github.com/cyberdelia/heroku-geo-buildpack.git#1.3\nhttps://github.com/heroku/heroku-buildpack-python.git#v62\n```\n\nCommands to reproduce\n\n``` bash\n> heroku repo:purge_cache\n> git commit --allow-empty -m \"Empty deploy\"\n> git push\nCounting objects: 1, done.\nWriting objects: 100% (1/1), 189 bytes | 0 bytes/s, done.\nTotal 1 (delta 0), reused 0 (delta 0)\nremote: Compressing source files... done.\nremote: Building source:\nremote:\nremote: -----> Deleting 0 files matching .slugignore patterns.\nremote: -----> Fetching custom git buildpack... done\nremote: -----> Multipack app detected\nremote: =====> Downloading Buildpack: https://github.com/cyberdelia/heroku-geo-buildpack.git\nremote: =====> Detected Framework: geos/gdal/proj\nremote:        Using geos version: 3.4.2\nremote:        Using gdal version: 1.11.1\nremote:        Using proj version: 4.8.0_1\nremote: -----> Fetching and vendoring geos\nremote: -----> Fetching and vendoring gdal\nremote: -----> Fetching and vendoring proj\nremote: -----> Vendoring geo libraries done\nremote: =====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-python.git\nremote: =====> Detected Framework: Python\nremote: -----> Running pre-compile hook\nremote: -----> Removing old data\nremote: -----> Installing runtime (python-2.7.10)\nremote: -----> Installing dependencies with pip\nremote:        Collecting boto==2.36.0 (from -r requirements.txt (line 1))\nremote:          Downloading boto-2.36.0-py2.py3-none-any.whl (1.3MB)\nremote:        Collecting celery>=3.1.17 (from -r requirements.txt (line 2))\nremote:          Downloading celery-3.1.18-py2.py3-none-any.whl (515kB)\n[...]\nremote:          Running setup.py install for icalendar\nremote:          Running setup.py install for django-ical\nremote:          Running setup.py install for duedil\nremote:          Running setup.py install for python-linkedin\nremote:          Running setup.py install for Collectfast\nremote:          Running setup.py install for bitly-api\nremote:          Running setup.py install for opbeat\nremote:        Successfully installed Collectfast-0.2.3 amqp-1.4.6 anyjson-0.3.3 billiard-3.3.0.20 bitly-api-0.3 boto-2.36.0 celery-3.1.18 dendrite-1.1.3 diff-match-patch-20121119 dj-database-url-0.3.0 django-1.6.11 django-appconf-1.0.1 django-autoslug-1.7.2 django-celery-3.1.16 django-celery-with-redis-3.0 django-compressor-1.3 django-crispy-forms-1.4.0 django-fsm-2.2.0 django-fsm-admin-1.2.1 django-fsm-log-1.2.1 django-ical-1.3 django-import-export-0.2.6 django-jsonfield-0.9.2 django-mixins-0.0.10 django-registration-1.0 django-robots-1.1 django-shortuuidfield-0.1.2 django-storages-1.1.8 djangorestframework-2.4.4 docutils-0.12 duedil-0.1.dev0 ecdsa-0.13 fabric-1.10.1 geopy-1.9.1 gunicorn-19.2.0 honcho-0.6.6 icalendar-3.9.0 kombu-3.0.26 markdown-2.6.2 mock-1.0.1 newrelic oauthlib-1.0.3 opbeat-3.0.4 paramiko-1.15.2 pillow-2.9.0 pipetools-0.2.7 pretend-1.0.8 psycopg2-2.6.1 pycrypto-2.6.1 pygal-2.0.1 pygeocoder-1.2.5 python-dateutil-2.4.2 python-linkedin-4.1 pytz-2015.4 redis-2.10.3 requests-2.5.1 requests-oauth2-0.2.0 requests-oauthlib-0.3.3 sh-1.11 shortuuid-0.4.2 six-1.9.0 south-1.0.2 tablib-0.10.0 yell-0.3.2\nremote: \nremote: -----> Preparing static assets\nremote:        Collectstatic configuration error. To debug, run:\nremote:        $ heroku run python manage.py collectstatic --noinput\nremote: \nremote: -----> Running post-compile hook\nremote: Using release configuration from last framework (Python).\nremote: -----> Discovering process types\nremote:        Procfile declares types -> celery, duedil, web\nremote: \nremote: -----> Compressing... done, 67.5MB\nremote: -----> Launching... done, v1131\nremote:        https://myapp.herokuapp.com/ deployed to Heroku\nremote: \nremote: Verifying deploy.... done.\nTo git@heroku.com:myapp.git\n   530dd4d..f0c69ac  staging -> master\n```\n\nAt this stage, my application is responding with Internal Server error and in the logs the exception raised is `ImproperlyConfigured: Could not import user-defined GEOMETRY_BACKEND \"geos\"` which means Django cannot find the geo libraries. I've noticed that the `.heroku/vendor` folder is missing on my application:\n\n```\n~ $ ls -la .heroku/\ntotal 20\ndrwx------  3 u54328 54328 4096 Aug 18 09:23 .\ndrwx------ 12 u54328 54328 4096 Aug 18 09:28 ..\ndrwx------  7 u54328 54328 4096 Aug 18 09:25 python\n-rw-------  1 u54328 54328    9 Aug 18 09:23 python-stack\n-rw-------  1 u54328 54328   14 Aug 18 09:23 python-version\n```\n\nTo get my application back up, I only need to run:\n\n```\n> git commit --allow-empty -m \"Empty deploy\"\n> git push\nCounting objects: 1, done.\nWriting objects: 100% (1/1), 188 bytes | 0 bytes/s, done.\nTotal 1 (delta 0), reused 0 (delta 0)\nremote: Compressing source files... done.\nremote: Building source:\nremote:\nremote: -----> Deleting 0 files matching .slugignore patterns.\nremote: -----> Fetching custom git buildpack... done\nremote: -----> Multipack app detected\nremote: =====> Downloading Buildpack: https://github.com/cyberdelia/heroku-geo-buildpack.git\nremote: =====> Detected Framework: geos/gdal/proj\nremote:        Using geos version: 3.4.2\nremote:        Using gdal version: 1.11.1\nremote:        Using proj version: 4.8.0_1\nremote: -----> Vendoring geo libraries done\nremote: =====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-python.git\nremote: =====> Detected Framework: Python\nremote: -----> Running pre-compile hook\nremote: -----> Removing old data\nremote: -----> Installing dependencies with pip\nremote:\nremote: -----> Preparing static assets\nremote:        Running collectstatic...\nremote:        Collected static files in 0:00:03.603913.\nremote:        Skipped 603 already synced files.\nremote:        0 static files copied.\nremote:\nremote: -----> Running post-compile hook\nremote: Using release configuration from last framework (Python).\nremote: -----> Discovering process types\nremote:        Procfile declares types -> celery, duedil, web\nremote:\nremote: -----> Compressing... done, 141.7MB\nremote: -----> Launching... done, v1132\nremote:        https://myapp.herokuapp.com/ deployed to Heroku\nremote:\nremote: Verifying deploy.... done.\nTo git@heroku.com:myapp.git\n   f0c69ac..c4b505c  staging -> master \n```\n\nAt this stage `.heroku/vendor` is back:\n\n```\n~ $ ls -la .heroku/\ntotal 24\ndrwx------  4 u53523 53523 4096 Aug 18 09:29 .\ndrwx------ 12 u53523 53523 4096 Aug 18 09:36 ..\ndrwx------  7 u53523 53523 4096 Aug 18 09:29 python\n-rw-------  1 u53523 53523    9 Aug 18 09:29 python-stack\n-rw-------  1 u53523 53523   14 Aug 18 09:29 python-version\ndrwx------  6 u53523 53523 4096 Aug 18 09:29 vendor\n```\n\nI think it started happening when I upgraded to Cedar-14 from Cedar. This is a problem because yesterday I made a normal deploy and for some reason Heroku decided to clear the cache, breaking my application.\n\nNot sure if due to the same root cause as #29 so opening a separate issue.\n"},"comment":{"url":"https://api.github.com/repos/cyberdelia/heroku-geo-buildpack/issues/comments/257896728","html_url":"https://github.com/cyberdelia/heroku-geo-buildpack/issues/32#issuecomment-257896728","issue_url":"https://api.github.com/repos/cyberdelia/heroku-geo-buildpack/issues/32","id":257896728,"user":{"login":"kennethreitz","id":119893,"avatar_url":"https://avatars.githubusercontent.com/u/119893?v=3","gravatar_id":"","url":"https://api.github.com/users/kennethreitz","html_url":"https://github.com/kennethreitz","followers_url":"https://api.github.com/users/kennethreitz/followers","following_url":"https://api.github.com/users/kennethreitz/following{/other_user}","gists_url":"https://api.github.com/users/kennethreitz/gists{/gist_id}","starred_url":"https://api.github.com/users/kennethreitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kennethreitz/subscriptions","organizations_url":"https://api.github.com/users/kennethreitz/orgs","repos_url":"https://api.github.com/users/kennethreitz/repos","events_url":"https://api.github.com/users/kennethreitz/events{/privacy}","received_events_url":"https://api.github.com/users/kennethreitz/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T15:18:53Z","updated_at":"2016-11-02T15:18:53Z","body":"Good news! I put some work into fixing it — glad to hear it is indeed fixed :)"}}
{"actor":{"display_login":"kennethreitz"}}