2013-01-14 9 views
6

Mam dwie aplikacje heroku, inscenizację i produkcję. Jestem w stanie przesłać mój najnowszy kod do serwera pomostowego bez problemu, jednak kiedy próbuję przesłać mój najnowszy kod do produkcji, pojawia się błąd przekroczenia limitu czasu.Heroku push powoduje błąd limitu czasu w kompilatorze slug dla django

Patrzenie na podobne błędy, które ludzie mieli, brzmi jak może to być problem z dokumentacją wymagań lub jednym z pakietów. Ale nie jestem pewien, jak zacząć to debugowanie. Używamy wielu zewnętrznych pakietów. A fakt, że działa on na jednej aplikacji Heroku, ale nie innej sprawia, że ​​zastanawiam się, jak bardzo jest to poprzednia aplikacja.

Wygląda na to, że czas oczekiwania w różnych momentach w trakcie procesu, bez żadnych innych błędów z tego, co mogę powiedzieć. Po raz pierwszy przekroczył limit czasu po uruchomieniu instalacji psycopg2, jednak ostatni raz przekroczył limit psycopg2, a następnie przekroczył limit czasu instalacji gevent.

Mam problemy i to pierwszy raz, kiedy napotkałem ten problem i ta kompilacja musi wyjść jak najszybciej. Czy ktoś ma jakieś pomysły?

Oto tyle dzienniku jak stackoverflow pozwoli mi odpowiedzieć:

  Running setup.py install for django-extensions 

     Running setup.py install for dj-database-url 

     Running setup.py install for django-grappelli 

     Running setup.py develop for ckeditor 

      Creating /app/.heroku/python/lib/python2.7/site-packages/django-ckeditor.egg-link (link to .) 
      Adding django-ckeditor 3.6.2 to easy-install.pth file 

      Installed /app/.heroku/src/ckeditor 
     Running setup.py install for django-heroku-memcacheify 

     Running setup.py install for django-tastypie 

     Running setup.py install for boto 
      package init file 'tests/db/__init__.py' not found (or not a regular file) 
      package init file 'tests/ec2/elb/__init__.py' not found (or not a regular file) 
      package init file 'tests/utils/__init__.py' not found (or not a regular file) 
      package init file 'boto/emr/tests/__init__.py' not found (or not a regular file) 

      changing mode of build/scripts-2.7/sdbadmin from 600 to 755 
      changing mode of build/scripts-2.7/elbadmin from 600 to 755 
      changing mode of build/scripts-2.7/cfadmin from 600 to 755 
      changing mode of build/scripts-2.7/s3put from 600 to 755 
      changing mode of build/scripts-2.7/fetch_file from 600 to 755 
      changing mode of build/scripts-2.7/launch_instance from 600 to 755 
      changing mode of build/scripts-2.7/list_instances from 600 to 755 
      changing mode of build/scripts-2.7/taskadmin from 600 to 755 
      changing mode of build/scripts-2.7/kill_instance from 600 to 755 
      changing mode of build/scripts-2.7/bundle_image from 600 to 755 
      changing mode of build/scripts-2.7/pyami_sendmail from 600 to 755 
      changing mode of build/scripts-2.7/lss3 from 600 to 755 
      changing mode of build/scripts-2.7/cq from 600 to 755 
      changing mode of build/scripts-2.7/route53 from 600 to 755 
      changing mode of build/scripts-2.7/s3multiput from 600 to 755 
      changing mode of build/scripts-2.7/cwutil from 600 to 755 
      changing mode of build/scripts-2.7/instance_events from 600 to 755 
      changing mode of build/scripts-2.7/asadmin from 600 to 755 
      changing mode of /app/.heroku/python/bin/sdbadmin to 755 
      changing mode of /app/.heroku/python/bin/taskadmin to 755 
      changing mode of /app/.heroku/python/bin/lss3 to 755 
      changing mode of /app/.heroku/python/bin/cq to 755 
      changing mode of /app/.heroku/python/bin/route53 to 755 
      changing mode of /app/.heroku/python/bin/cwutil to 755 
      changing mode of /app/.heroku/python/bin/pyami_sendmail to 755 
      changing mode of /app/.heroku/python/bin/instance_events to 755 
      changing mode of /app/.heroku/python/bin/s3multiput to 755 
      changing mode of /app/.heroku/python/bin/launch_instance to 755 
      changing mode of /app/.heroku/python/bin/s3put to 755 
      changing mode of /app/.heroku/python/bin/list_instances to 755 
      changing mode of /app/.heroku/python/bin/bundle_image to 755 
      changing mode of /app/.heroku/python/bin/kill_instance to 755 
      changing mode of /app/.heroku/python/bin/elbadmin to 755 
      changing mode of /app/.heroku/python/bin/fetch_file to 755 
      changing mode of /app/.heroku/python/bin/cfadmin to 755 
      changing mode of /app/.heroku/python/bin/asadmin to 755 
     Running setup.py install for django-storages 

     Running setup.py install for psycopg2 
      building 'psycopg2._psycopg' extension 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-2.7/psycopg/psycopgmodule.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/green.c -o build/temp.linux-x86_64-2.7/psycopg/green.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/pqpath.c -o build/temp.linux-x86_64-2.7/psycopg/pqpath.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/utils.c -o build/temp.linux-x86_64-2.7/psycopg/utils.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/bytes_format.c -o build/temp.linux-x86_64-2.7/psycopg/bytes_format.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/connection_int.c -o build/temp.linux-x86_64-2.7/psycopg/connection_int.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/connection_type.c -o build/temp.linux-x86_64-2.7/psycopg/connection_type.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/cursor_int.c -o build/temp.linux-x86_64-2.7/psycopg/cursor_int.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/cursor_type.c -o build/temp.linux-x86_64-2.7/psycopg/cursor_type.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/lobject_int.c -o build/temp.linux-x86_64-2.7/psycopg/lobject_int.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/lobject_type.c -o build/temp.linux-x86_64-2.7/psycopg/lobject_type.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/notify_type.c -o build/temp.linux-x86_64-2.7/psycopg/notify_type.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/xid_type.c -o build/temp.linux-x86_64-2.7/psycopg/xid_type.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/adapter_asis.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_asis.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/adapter_binary.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_binary.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/adapter_datetime.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_datetime.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/adapter_list.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_list.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/adapter_pboolean.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_pboolean.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/adapter_pdecimal.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_pdecimal.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/adapter_pint.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_pint.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/adapter_pfloat.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_pfloat.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/adapter_qstring.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_qstring.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/microprotocols.c -o build/temp.linux-x86_64-2.7/psycopg/microprotocols.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/microprotocols_proto.c -o build/temp.linux-x86_64-2.7/psycopg/microprotocols_proto.o -Wdeclaration-after-statement 
      gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.4.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080409 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/app/.heroku/python/include/python2.7 -I. -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -c psycopg/typecast.c -o build/temp.linux-x86_64-2.7/psycopg/typecast.o -Wdeclaration-after-statement 
      gcc -pthread -shared build/temp.linux-x86_64-2.7/psycopg/psycopgmodule.o build/temp.linux-x86_64-2.7/psycopg/green.o build/temp.linux-x86_64-2.7/psycopg/pqpath.o build/temp.linux-x86_64-2.7/psycopg/utils.o build/temp.linux-x86_64-2.7/psycopg/bytes_format.o build/temp.linux-x86_64-2.7/psycopg/connection_int.o build/temp.linux-x86_64-2.7/psycopg/connection_type.o build/temp.linux-x86_64-2.7/psycopg/cursor_int.o build/temp.linux-x86_64-2.7/psycopg/cursor_type.o build/temp.linux-x86_64-2.7/psycopg/lobject_int.o build/temp.linux-x86_64-2.7/psycopg/lobject_type.o build/temp.linux-x86_64-2.7/psycopg/notify_type.o build/temp.linux-x86_64-2.7/psycopg/xid_type.o build/temp.linux-x86_64-2.7/psycopg/adapter_asis.o build/temp.linux-x86_64-2.7/psycopg/adapter_binary.o build/temp.linux-x86_64-2.7/psycopg/adapter_datetime.o build/temp.linux-x86_64-2.7/psycopg/adapter_list.o build/temp.linux-x86_64-2.7/psycopg/adapter_pboolean.o build/temp.linux-x86_64-2.7/psycopg/adapter_pdecimal.o build/temp.linux-x86_64-2.7/psycopg/adapter_pint.o build/temp.linux-x86_64-2.7/psycopg/adapter_pfloat.o build/temp.linux-x86_64-2.7/psycopg/adapter_qstring.o build/temp.linux-x86_64-2.7/psycopg/microprotocols.o build/temp.linux-x86_64-2.7/psycopg/microprotocols_proto.o build/temp.linux-x86_64-2.7/psycopg/typecast.o -L/usr/lib -lpq -o build/lib.linux-x86_64-2.7/psycopg2/_psycopg.so 
/app/slug-compiler/lib/utils.rb:66:in `block (2 levels) in spawn': command='/app/slug-compiler/lib/../../tmp/buildpacks/python/bin/compile /tmp/build_2ptirkdt1juhy /app/tmp/repo.git/.cache' exit_status=0 out='' at=timeout elapsed=900.018394947052 (Utils::TimeoutError) 
    from /app/slug-compiler/lib/utils.rb:52:in `loop' 
    from /app/slug-compiler/lib/utils.rb:52:in `block in spawn' 
    from /app/slug-compiler/lib/utils.rb:47:in `popen' 
    from /app/slug-compiler/lib/utils.rb:47:in `spawn' 
    from /app/slug-compiler/lib/buildpack.rb:37:in `block in compile' 
    from /app/slug-compiler/lib/buildpack.rb:35:in `fork' 
    from /app/slug-compiler/lib/buildpack.rb:35:in `compile' 
    from /app/slug-compiler/lib/slug.rb:497:in `block in run_buildpack' 
    from /app/slug-compiler/lib/utils.rb:121:in `log' 
    from /app/slug-compiler/lib/slug.rb:748:in `log' 
    from /app/slug-compiler/lib/slug.rb:496:in `run_buildpack' 
    from /app/slug-compiler/lib/slug.rb:125:in `block (2 levels) in compile' 
    from /app/slug-compiler/lib/utils.rb:102:in `block in timeout' 
    from /usr/local/lib/ruby/1.9.1/timeout.rb:58:in `timeout' 
    from /app/slug-compiler/lib/utils.rb:102:in `rescue in timeout' 
    from /app/slug-compiler/lib/utils.rb:97:in `timeout' 
    from /app/slug-compiler/lib/slug.rb:114:in `block in compile' 
    from /app/slug-compiler/lib/utils.rb:121:in `log' 
    from /app/slug-compiler/lib/slug.rb:748:in `log' 
    from /app/slug-compiler/lib/slug.rb:113:in `compile' 
    from /app/slug-compiler/bin/slugc:85:in `block in <main>' 
    from /app/slug-compiler/lib/slug.rb:505:in `block in lock' 
    from /app/slug-compiler/lib/repo_lock.rb:44:in `call' 
    from /app/slug-compiler/lib/repo_lock.rb:44:in `run' 
    from /app/slug-compiler/lib/slug.rb:505:in `lock' 
    from /app/slug-compiler/bin/slugc:66:in `<main>' 
!  Heroku push rejected, failed to compile Python app 

Auto packing the repository for optimum performance. 
Connection to 10.217.65.204 closed by remote host. 
To [email protected]:belo.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to '[email protected]:belo.git' 
Completed with errors, see above 
+0

To rodzaj duplikat: http://stackoverflow.com/questions/14218704/heroku-push-rejected#comment19772321_14218704 –

+0

Jest podobny, ale ponieważ jest to z Python/Django zamiast rubin, a ponieważ jest to czas oczekiwania błąd, może to być potencjalnie niepowiązany problem. Od ponad roku wprowadzamy aktualizacje kodu tej aplikacji, nie napotykając na ten problem. Ponadto, ponieważ mogę bez problemu przesłać identyczny kod do naszej aplikacji heroku, nie wiem, czy to jest ta sama przyczyna. –

+0

Aby dodać trochę więcej informacji, nie przesyła ona błędu limitu czasu w tym samym miejscu za każdym razem, jak pierwotnie sądzono. Ostatnim razem, gdy go spróbowałem, udało się uruchomić instalację psycopg2, ale upłynął limit czasu w środku instalacji gevent. –

Odpowiedz

6

Istnieje teraz poprawne, ale nieudokumentowane rozwiązanie tego problemu (historia github pokazuje, że została wprowadzona w lutym 2013): zmienna środowiskowa COMPILE_TIMEOUT. Ustawić go jak tak na timeout 50 minut (domyślnie jest to '900', lub 15 minut):

$ heroku config:set COMPILE_TIMEOUT=3000 

(uwaga: trzeba user-env-compile obsługuje tę funkcję)

UPDATE: proszę przeczytaj komentarze na temat this answer dla ważnej aktualizacji - krótka historia, Heroku zaleca kontaktowanie się z pomocą techniczną bezpośrednio w tych przypadkach, a TIMEOUT COMPILE_ przestaje działać lub nigdy nie działało jako rozwiązanie tego konkretnego problemu.

+0

Wartość jest podawana w sekundach, prawda? Wspomniałeś o "pięciominutowym przekroczeniu limitu czasu", ale czy 3000 nie oznaczałoby "50-minutowego przekroczenia limitu czasu"? – jeremywoertink

+1

@jeremywoertink Ups! Masz rację. Będę edytować odpowiedź. Liczba jest wysyłana przez 'Timeout.timeout()' Rubiego, więc to zdecydowanie w kilka sekund. –

1

słyszałem z powrotem ze wsparcia Heroku. W moich szczególnych okolicznościach problemem było to, że mamy po prostu zbyt wiele zależności w wymaganiach. Jest to projekt na dużą skalę i wykorzystujemy wiele zewnętrznych modułów, a instalacja i tworzenie kopii zajęły zbyt wiele czasu.

Rozwiązaniem było skomentowanie połowy naszych wymagań i naciśnięcie, a następnie cofnięcie komentarzy i ponowne naciśnięcie.

Oto odpowiedź od Heroku:

To dużo z zależnościami!

Polecam naciskając tylko jedną połowę twoich zależności, a potem jeszcze raz z wszystkimi. Wtedy nie osiągniesz limitu czasu.

Po zainstalowaniu są one buforowane, więc nie powinieneś ponownie w to zaglądać.

+1

Wow, co nie świetne rozwiązanie. Mamy około 50 niezależnych zależności (wraz z ich zależnościami) i często się w to wrabiam. Przez większość czasu nie jest źle, ale około 10 naszych zależności to znaczniki github naszych własnych widełek innych bibliotek, a za każdym razem, gdy jedna z tych zmian trzeba przepłukać pamięć podręczną, zmieniając środowisko wykonawcze Python, aby zmodernizować całość. rzecz. I wtedy to pojawia się. Lubię Heroku na wiele rzeczy, ale takie rzeczy sprawiają, że zaczynam "wow naprawdę?" –

+0

@GregHinch Istnieje teraz poprawka; zobacz moją nową odpowiedź na to pytanie. –

Powiązane problemy