-
-
Notifications
You must be signed in to change notification settings - Fork 556
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
Drupal Console installation fails frequently (at least on Drupal VM) #3233
Comments
@geerlingguy yes, we had issues with the github limit. I will investigate how to fix this issue. |
@geerlingguy any hint how to avoid the github limit restriction? I will try to do some investigation this weekend and next week during MidCamp. |
@jmolivas - If you don't currently use OAuth to authenticate to the API, I think the rate limit is very low, like 60 requests per hour. If you use OAuth, then the limit is bumped to 5000/hour: |
It looks like you may need to make some changes to:
Specifically, right now, it seems you query the GitHub API for the download, then fetch the download through drupalcomposer.org. Two options would be to either cache the entire download for something like an hour (though this could lead to annoying behavior when releasing new versions), or authenticate that request to the GitHub API. It doesn't look like there's any authentication currently. |
Not familiar with how DrupalVM works to install stuff but Composer already does several things to work around the rate limiting. You might use it to pull it down or look at how it works to work around the problem. |
Hitting this a lot today as well (possibly due to people setting up dev environments at DrupalCon...): when I visit the installer page manually, I get:
|
Another solution is to enable caching for |
This is no longer present using v1.9.0 |
Seems to be a topic again? I was getting a 500 server error since yesterday... |
I am also getting a 500 error since yesterday. |
@gavett @bits-of-static I don't believe there was ever really any issue with drupal-console but with drupal-vm's travis jobs that was failing when it hit the drupal-console part. If you're running into a similar problem I'd suggest looking into composer's token documentation |
Thank you for the suggestion, I will try it. It does look like others are still having the issue as well: #4262 |
I have followed the instructions, without success. To make sure I have all the necessary rights, also created a full-access oauth key. I was not surprised about the lack of success, since my https://github.com/settings/tokens page, reported the token as never used. Any suggestions here? P.S.: on the https://www.previousnext.com.au/blog/managing-composer-github-access-personal-access-tokens blog, the following question was asked:
Which could be a reason why the token does not get used. DrupalVM installation is non interactive after all. |
Neither does setting |
My current workaround:
|
Issue title
[ installation ] Installation frequently fails with 500 server error
Problem/Motivation
During routine CI tests for Drupal VM, as well as installations on individuals' computers quite frequently, I get a 500 error when calling https://drupalconsole.com/installer
How to reproduce
More succinctly:
HTTP Error 500: Internal Server Error
(From https://travis-ci.org/geerlingguy/drupal-vm/jobs/211786816#L1274)
The task in Ansible is basically calling a curl on that URL, trying to download the resultant output to
/usr/local/bin/drupal
.Solution
It's possible we could maybe adapt the role Drupal VM uses to use Composer instead, but I wonder if we'd run into any similar issues.
Someone had mentioned, though, that Drupal Console might be hitting GitHub API rate limits?
The text was updated successfully, but these errors were encountered: