这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@pmvieira
Copy link
Contributor

the check will fail because curl is not installed.

Making sure that curl is indeed installed on the VM.

@pmvieira pmvieira closed this Nov 18, 2015
@pmvieira pmvieira reopened this Nov 18, 2015
@michaelshobbs
Copy link
Member

Are you certain this is necessary? I have not run into this and have not heard of anyone having this issue either.

@pmvieira
Copy link
Contributor Author

@michaelshobbs I'm afraid it is. This is what I got when I tried to deploy to the VM:

---> Attempt 1/5 Waiting for 5 seconds ...
       CHECKS expected result:
       http://localhost/_internal_/ok => ""
 !     /var/lib/dokku/plugins/enabled/checks/check-deploy: line 187: curl: command not found
 !     Check attempt 1/5 failed.
-----> Attempt 2/5 Waiting for 5 seconds ...
       CHECKS expected result:
       http://localhost/_internal_/ok => ""
 !     /var/lib/dokku/plugins/enabled/checks/check-deploy: line 187: curl: command not found
 !     Check attempt 2/5 failed.
-----> Attempt 3/5 Waiting for 5 seconds ...
       CHECKS expected result:
       http://localhost/_internal_/ok => ""
 !     /var/lib/dokku/plugins/enabled/checks/check-deploy: line 187: curl: command not found
 !     Check attempt 3/5 failed.
-----> Attempt 4/5 Waiting for 5 seconds ...
       CHECKS expected result:
       http://localhost/_internal_/ok => ""
 !     /var/lib/dokku/plugins/enabled/checks/check-deploy: line 187: curl: command not found
 !     Check attempt 4/5 failed.
-----> Attempt 5/5 Waiting for 5 seconds ...
       CHECKS expected result:
       http://localhost/_internal_/ok => ""
remote: Could not start due to 1 failed checks.
 !     /var/lib/dokku/plugins/enabled/checks/check-deploy: line 187: curl: command not found
 !     Check attempt 5/5 failed.

This can be easily reproduced by doing vagrant up and then vagrant ssh followed by any curl command. The result should be:

vagrant@dokku:~$ curl
The program 'curl' is currently not installed. You can install it by typing:
sudo apt-get install curl

I agree with you.. it's strange that no one noticed this... maybe I am doing something silly. But the steps I gave you are the exact ones I used.

@michaelshobbs
Copy link
Member

This is on master?

@pmvieira
Copy link
Contributor Author

Yes, this happened while on the master branch.

On 18 Nov 2015, at 18:17, Michael Hobbs notifications@github.com wrote:

This is on master?


Reply to this email directly or view it on GitHub.

@michaelshobbs
Copy link
Member

I'm thinking your vagrant up failed or maybe you have a really old version of the base box? You might try a vagrant destroy & vagrant up again and post that output in a gist? I can confirm a fresh vagrant up in my env includes curl.

@michaelshobbs
Copy link
Member

Oh crap. My bad. You are correct this is indeed a bug. I don't think this is the correct place to do this however. Perhaps here would make more sense: https://github.com/progrium/dokku/blob/master/Makefile#L80-L81

@michaelshobbs
Copy link
Member

Not sure what changed to cause this though....maybe it was our move to bento? /cc @josegonzalez

@josegonzalez
Copy link
Member

#1665

@michaelshobbs
Copy link
Member

Except that #1665 didn't actually remove curl from this PR's vagrant setup; just the deb version.

@michaelshobbs
Copy link
Member

Also, the dokku deb package depends on curl. So in that version you end up with curl anyway.

@michaelshobbs
Copy link
Member

Oh nevermind about #1665 I see it now in the top-level Makefile line 102 was removed. That should be added back.

@michaelshobbs
Copy link
Member

@pmvieira let me know if you're cool updating this PR to revert that regression

@pmvieira
Copy link
Contributor Author

@michaelshobbs Sure, not a problem, will do and update the PR

@michaelshobbs
Copy link
Member

gracias!

@pmvieira
Copy link
Contributor Author

That's that line added back @michaelshobbs :)

@josegonzalez
Copy link
Member

@pmvieira mind squashing?

@michaelshobbs
Copy link
Member

That's the opposite of squashing 😄

@pmvieira pmvieira force-pushed the pv/vagrant-with-curl branch from 584f661 to 1eb1e1c Compare November 19, 2015 08:55
@pmvieira
Copy link
Contributor Author

Sorry @michaelshobbs ... 😊 Should know better not to commit while sleepy

@michaelshobbs
Copy link
Member

No worries. Thanks for the PR.

michaelshobbs added a commit that referenced this pull request Nov 19, 2015
if the repo we are pushing has a CHECKS file...
@michaelshobbs michaelshobbs merged commit da91841 into dokku:master Nov 19, 2015
@josegonzalez josegonzalez changed the title if the repo we are pushing has a CHECKS file... Ensure curl is installed inside of source-based installations Nov 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants