Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

get IG deployment back on track #410

Closed
chadwhitacre opened this issue Nov 20, 2015 · 28 comments
Closed

get IG deployment back on track #410

chadwhitacre opened this issue Nov 20, 2015 · 28 comments

Comments

@chadwhitacre
Copy link
Contributor

Something is gummed up.

@techtonik
Copy link
Contributor

IG?

@techtonik
Copy link
Contributor

Ah, this site.

@chadwhitacre
Copy link
Contributor Author

Where is #243? ;-)

@chadwhitacre
Copy link
Contributor Author

screen shot 2015-11-20 at 1 21 46 pm

@chadwhitacre
Copy link
Contributor Author

-----> Python app detected
-----> Uninstalling stale dependencies
       Uninstalling misaka-1.0.2:
         Successfully uninstalled misaka-1.0.2
/app/.heroku/python/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
-----> Installing dependencies with pip
       Collecting mistune==0.7.1 (from -r requirements.txt (line 11))
/app/.heroku/python/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
         Downloading mistune-0.7.1-py2.py3-none-any.whl
       Collecting mistune-contrib==0.1 (from -r requirements.txt (line 12))
  Could not find a version that satisfies the requirement mistune-contrib==0.1 (from -r requirements.txt (line 12)) (from versions: )
No matching distribution found for mistune-contrib==0.1 (from -r requirements.txt (line 12))
 !     Push rejected, failed to compile Python app

@chadwhitacre
Copy link
Contributor Author

Ring any bells, @techtonik?

@chadwhitacre
Copy link
Contributor Author

What is mistune-contrib for? Do we actually need it?

@chadwhitacre
Copy link
Contributor Author

I tried http://stackoverflow.com/questions/9713183/recompile-heroku-slug-without-push-or-config-change in case there is some caching or something going on ...

[gratipay] $ git commit --allow-empty -m "empty commit"
[master 2b64158] empty commit
[gratipay] $ gp heroku master
fatal: 'heroku' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
[gratipay] $ git remote add heroku [email protected]:inside-gratipay-com.git
[gratipay] $ gp heroku master
Counting objects: 67, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (67/67), done.
Writing objects: 100% (67/67), 1.53 MiB | 0 bytes/s, done.
Total 67 (delta 44), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: !       Cedar-10 is deprecated. Please update to Cedar-14: https://devcenter.heroku.com/articles/cedar-14-migration
remote: 
To [email protected]:inside-gratipay-com.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:inside-gratipay-com.git'
[gratipay] $ 

@chadwhitacre
Copy link
Contributor Author

The legacy Cedar-10 stack has been deprecated and reached its end-of-life on November 4, 2015. Applications may continue running, however you will not be able to push to your application without upgrading to Cedar-14 first.

https://devcenter.heroku.com/articles/cedar-14-migration

@chadwhitacre
Copy link
Contributor Author

[gratipay] $ heroku stack:set cedar-14
Stack set. Next release on inside-gratipay-com will use cedar-14.
Run `git push heroku master` to create a new release on inside-gratipay-com.
[gratipay] $ gp heroku master
Counting objects: 67, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (67/67), done.
Writing objects: 100% (67/67), 1.53 MiB | 0 bytes/s, done.
Total 67 (delta 44), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: -----> Installing runtime (python-2.7.6)
remote: -----> Installing dependencies with pip
remote:        Collecting aspen==0.37 (from -r requirements.txt (line 1))
remote: /app/.heroku/python/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
remote:   InsecurePlatformWarning
remote:          Downloading aspen-0.37-py27-none-any.whl (74kB)
remote:        Collecting filesystem-tree==1.0.1 (from -r requirements.txt (line 2))
remote:          Downloading filesystem_tree-1.0.1.tar.gz
remote:        Collecting first==2.0.1 (from -r requirements.txt (line 3))
remote:          Downloading first-2.0.1-py2.py3-none-any.whl
remote:        Collecting mimeparse==0.1.3 (from -r requirements.txt (line 4))
remote:          Downloading mimeparse-0.1.3.tar.gz
remote:        Collecting dependency-injection==1.1.0 (from -r requirements.txt (line 5))
remote:          Downloading dependency_injection-1.1.0.tar.gz
remote:        Collecting algorithm==1.0.0 (from -r requirements.txt (line 6))
remote:          Downloading algorithm-1.0.0.tar.gz
remote:        Collecting MarkupSafe==0.18 (from -r requirements.txt (line 7))
remote:          Downloading MarkupSafe-0.18.tar.gz
remote:        Collecting Jinja2==2.7.1 (from -r requirements.txt (line 8))
remote:          Downloading Jinja2-2.7.1.tar.gz (377kB)
remote:        Collecting aspen-jinja2==0.3 (from -r requirements.txt (line 9))
remote:          Downloading aspen-jinja2-0.3.tar.bz2
remote:        Collecting simplejson==2.3.2 (from -r requirements.txt (line 10))
remote:          Downloading simplejson-2.3.2.tar.gz (50kB)
remote:        Collecting mistune==0.7.1 (from -r requirements.txt (line 11))
remote:          Downloading mistune-0.7.1-py2.py3-none-any.whl
remote:        Collecting mistune-contrib==0.1 (from -r requirements.txt (line 12))
remote:   Could not find a version that satisfies the requirement mistune-contrib==0.1 (from -r requirements.txt (line 12)) (from versions: )
remote:   Some insecure and unverifiable files were ignored (use --allow-unverified mistune-contrib to allow)
remote: No matching distribution found for mistune-contrib==0.1 (from -r requirements.txt (line 12))
remote:
remote:  !     Push rejected, failed to compile Python app
remote:
remote: Verifying deploy...
remote:
remote: !       Push rejected to inside-gratipay-com.
remote:
To [email protected]:inside-gratipay-com.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:inside-gratipay-com.git'
[gratipay] $

@chadwhitacre
Copy link
Contributor Author

make env works locally. Why?

@chadwhitacre
Copy link
Contributor Author

@techtonik Can you fix this?

@rohitpaulk
Copy link
Contributor

This does look similar to gratipay/gratipay.com#3260...

@techtonik
Copy link
Contributor

@whit537 yes, sorry for delay. Will do ASAP.

@techtonik
Copy link
Contributor

@whit537 probably deployment thing doesn't use make env, because make env uses packages from /vendor and this log shows that pip downloads packages.

@techtonik
Copy link
Contributor

@whit537 mistune-contrib is needed for TOC rendering - see 6287db7

@techtonik
Copy link
Contributor

@whit537 where did you get that 'gp' command from?

@techtonik
Copy link
Contributor

Ok. Looks like it git push of yours.

Reading https://devcenter.heroku.com/articles/development-configuration ...
Reading https://devcenter.heroku.com/articles/slug-compiler ...

@techtonik
Copy link
Contributor

@techtonik
Copy link
Contributor

@techtonik
Copy link
Contributor

Looks like we need to create a custom buildpack to take advantage of vendorized dependencies.

https://www.petekeen.net/introduction-to-heroku-buildpacks

@techtonik
Copy link
Contributor

Created an issue - heroku/heroku-buildpack-python#261

@techtonik
Copy link
Contributor

@whit537 - should be fixed now - lepture/mistune-contrib#3 (comment)

@techtonik
Copy link
Contributor

I can confirm it is fixed now - https://gratitest.herokuapp.com/ - but I will still try the way with custom builpack. The only problem is that it looks like it is impossible to set/add buldpacks without command line tools.

@chadwhitacre
Copy link
Contributor Author

@whit537 where did you get that 'gp' command from?
Ok. Looks like it git push of yours.

Sorry, yes, I have some aliases set up in my .bashrc:

# git shortcuts
alias ci="git commit"
alias co="git checkout"
alias gb="git branch"
alias gbm="git branch --merged"
alias gd="git diff" 
alias gf="git fetch" 
alias gg="git log --graph --decorate --abbrev-commit"
alias gm="git merge" 
alias gp="git push" 
alias gr="git rebase" 
alias grh="git reset --hard"
alias gs="git status --short"
alias gt="git tag"

I should've expanded that when pasting here.

@chadwhitacre
Copy link
Contributor Author

We're back! Looks like lepture/mistune-contrib#3 (comment) fixed it. !m @techtonik

screen shot 2015-11-21 at 11 55 56 am

@techtonik
Copy link
Contributor

I still think we need to roll out our own buildpack.

@chadwhitacre
Copy link
Contributor Author

@techtonik That sounds like overkill to me, but we can discuss on #415. :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants