Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP scrapers that use composer are all failed #1204

Open
LoveMyData opened this issue Jan 31, 2019 · 7 comments
Open

PHP scrapers that use composer are all failed #1204

LoveMyData opened this issue Jan 31, 2019 · 7 comments
Assignees

Comments

@LoveMyData
Copy link

LoveMyData commented Jan 31, 2019

It was working until some upgrade performed in the backend in Dec.

Error message

Injecting configuration and compiling...
 �[1G       �[1G-----> PHP app detected
 �[1G-----> Bootstrapping...
 �[1G       
 �[1G       !     ERROR: Failed to download minimal PHP for bootstrapping.
� [1G       Please try again, or contact support if this problem persists.
 �[1G 

And maybe relating to this with heroku

Examples of scrapers that use composer and not working:
https://morph.io/planningalerts-scrapers/townsville
https://morph.io/planningalerts-scrapers/tweed-shire
https://morph.io/planningalerts-scrapers/albury

Example of scraper doesn't use composer and working:
https://morph.io/planningalerts-scrapers/hurstville

@LoveMyData LoveMyData changed the title A lot of PHP scrapers failed PHP scrapers that use composer are all failed Feb 4, 2019
@jamezpolley jamezpolley self-assigned this Feb 7, 2019
@jamezpolley
Copy link
Member

I've been able to reproduce this in my dev environment.

@jamezpolley
Copy link
Member

So at minimum we're going to have to jump to heroku-16 which has quite a different set of packages. I don't know how this will affect things and I don't really have a good way to test this before we roll it out everywhere. I can easily test things on my dev instance, but I'm not going to be able to test everything..

@mlandauer
Copy link
Member

@jamezpolley I'm pretty sure it's possible to change the buildpacks without upgrading to heroku-16.

See for example https://github.com/openaustralia/buildstep/blob/master/Dockerfile#L11. That install a new buildpack that isn't there by default. I strongly suspect you can use the same or similar command to upgrade an existing buildpack.

@mlandauer
Copy link
Member

However, having said that it will obviously be necessary soon to upgrade to heroku-16 if cedar-14 is near its end-of-life. Maybe it can be done in stages to minimise potential disruption and catch small errors soon?

@gobnat
Copy link

gobnat commented Oct 15, 2020

Is there a fix to this issue or do no php scrapers work at this time?

@jamezpolley
Copy link
Member

Is there a fix to this issue or do no php scrapers work at this time?

It's not well documented, but we've added support for herokuish:18 as a build platform. To use it, add a platform file to your repo like this: https://github.com/planningalerts-scrapers/bankstown/blob/master/platform

@gobnat
Copy link

gobnat commented Oct 21, 2020

Is there a fix to this issue or do no php scrapers work at this time?

It's not well documented, but we've added support for herokuish:18 as a build platform. To use it, add a platform file to your repo like this: https://github.com/planningalerts-scrapers/bankstown/blob/master/platform

I've tried that fix and it does not resolve the issue. It does change the the error slightly to this (I've left in all the "tofu" characters morph seems to be adding. I'm not sure why they are appearing):

�[0m �[91m-----> �[0m�[91mBootstrapping... �[0m�[91m�[1;31m ! ERROR: �[0m �[91m-----> �[0m�[91mBootstrapping... �[0m�[91m�[1;31m ! ERROR: �[0m�[91mFailed to download minimal PHP for bootstrapping! ! ! This is most likely a temporary internal error. If the problem �[0m �[91m-----> �[0m�[91mBootstrapping... �[0m�[91m�[1;31m ! ERROR: �[0m�[91mFailed to download minimal PHP for bootstrapping! ! ! This is most likely a temporary internal error. If the problem �[0m�[91m ! persists, make sure that you are not running a custom or forked ! version of the Heroku PHP buildpack which may need updating.

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

No branches or pull requests

4 participants