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

Unsupported OAuth provider github for Ready-To-Run project #3523

Closed
codergabs opened this issue Dec 27, 2016 · 19 comments
Closed

Unsupported OAuth provider github for Ready-To-Run project #3523

codergabs opened this issue Dec 27, 2016 · 19 comments
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.

Comments

@codergabs
Copy link

codergabs commented Dec 27, 2016

[Short description of problem here]
I have installed che on windows
che is running and workspaces are creating.
But when i am trying to create ready to run projects.
JAVA stack, web-java-spring project
It's throwing error
Unsupported OAuth provider github

Che version:
Version :5.0.0-M8Revision :1c15a44844c96ff9
Additional information:
I have tried the resolution mentioned on
#1694
But of no help.

Can someone give me some pointers

@ghost ghost added the kind/question Questions that haven't been identified as being feature requests or bugs. label Dec 27, 2016
@ghost
Copy link

ghost commented Dec 27, 2016

@codergabs this is a warning that you have not configured GitHub oAuth. This warning does not affect you unless you want to clone and push to your private GitHub repos or use SSH.

Here are instructions on configuring oAuth - https://eclipse-che.readme.io/docs/git#section-github-oauth

@codergabs
Copy link
Author

codergabs commented Dec 27, 2016

@eivantsov I am getting this when trying to set up ready to run projects.
Why I have to set it up for ready to run sample projects for che, I installed it before, then it did run without these configurations.
And I have configured the settings mentioned on https://eclipse-che.readme.io/docs/git#section-github-oauth without any luck
Github
Homepage URL
http://192.168.99.100:8080
Authorization callback URL
http://192.168.99.100:8080/wsmaster/api/oauth/callback

che.oauth.github.clientid=b2485c7d0fbf5c1e04a0
che.oauth.github.clientsecret=f0f67a725e1bec3ab55cd20275e1554430af214e
che.oauth.github.authuri= https://github.com/login/oauth/authorize
che.oauth.github.tokenuri= https://github.com/login/oauth/access_token
che.oauth.github.redirecturis= http://192.168.99.100:${SERVER_PORT}/wsmaster/api/oauth/callback

Then getting error on the following step
Once the oauth is setup, SSH keys are generated and uploaded automatically for GitHub at Profile > Preferences > SSH > VCS by clicking the 'Octocat' icon.

Did I miss anything?

@ghost
Copy link

ghost commented Dec 27, 2016

@codergabs how did you apply your oAuth config? What happens when you click the octocat button?

@ghost
Copy link

ghost commented Dec 27, 2016

@codergabs how did you apply GitHub oAuth config?

@codergabs
Copy link
Author

codergabs commented Dec 27, 2016

@eivantsov I went to the che.properties file and modified it.

@ghost
Copy link

ghost commented Dec 27, 2016

@codergabs how did you start Che on Windows? Can you please elaborate? Your config hasn't been applied.

@codergabs
Copy link
Author

@eivantsov
I started che using following command
docker run --rm -t -v /var/run/docker.sock:/var/run/docker.sock -v /che:/che eclipse/che start
on boot2docker terminal

@ghost
Copy link

ghost commented Dec 27, 2016

@codergabs where did you edit che.properties then?

@codergabs
Copy link
Author

codergabs commented Dec 27, 2016

@eivantsov
I went into the che container and updated the file
./home/user/che/tomcat/webapps/wsmaster/WEB-INF/classes/codenvy/che.properties
./home/user/che/conf/che.properties
./data/conf/che.properties

Not exactly sure, which file to update, so updated all of them

Then clicked github octocat icon with no luck

@codergabs
Copy link
Author

@eivantsov
Please review the following steps
So need to stop che
create che.properties file at /c/Users/username/che.properties with the details
che.oauth.github.clientid=b2485c7d0fbf5c1e04a0
che.oauth.github.clientsecret=f0f67a725e1bec3ab55cd20275e1554430af214e
che.oauth.github.authuri= https://github.com/login/oauth/authorize
che.oauth.github.tokenuri= https://github.com/login/oauth/access_token
che.oauth.github.redirecturis= http://192.168.99.100:${SERVER_PORT}/wsmaster/api/oauth/callback
export "CHE_CONF=/c/Users/goba/che.properties"
start che

@ghost
Copy link

ghost commented Dec 27, 2016

@codergabs here are instructions that will work:

  1. Start Che this way. Mind this volume mount:

/с/users/Username/che:/che
Username is your windows user. Create a folder named che in your %USERPROFILE%. After Che starts, you should see some files and folders there.

docker run --rm -t -v /var/run/docker.sock:/var/run/docker.sock -v /с/users/Username/che:/che eclipse/che start

  1. Stop Che:

docker run --rm -t -v /var/run/docker.sock:/var/run/docker.sock -v /с/users/Username/che:/che eclipse/che stop

  1. Open %USERPROFILE%\che\che.env, look for GitHub oAuth section and add your oAuth info. Save the file:
########################################################################################
#####                                                                              #####
#####                                     OAUTH                                    #####
#####                                                                              #####
#
# You can configure a 3rd party provider's oAuth, which will be used for your users when.
# they initiate Git actions from within Che.
#
  1. Start Che:

docker run --rm -t -v /var/run/docker.sock:/var/run/docker.sock -v /с/users/Username/che:/che eclipse/che start

@codergabs
Copy link
Author

@eivantsov
Followng the procedure I could set up the github oAuth, not getting the Unsupported OAuth provider github error
But still couldn't add sample project into workspace.
It's throwing error
"Internal Server Error: https://github.com/che-samples/web-java-spring.git: cannot open git-upload-pack"

@ghost
Copy link

ghost commented Dec 27, 2016

That's a connectivity issue. Are you behind a proxy?

@codergabs
Copy link
Author

@eivantsov
No, and I could ping github.com from che container

@codergabs
Copy link
Author

@eivantsov
I could pull now, It's working!!!
Some network Issue it seems.
Thank you so much

@ghost
Copy link

ghost commented Dec 27, 2016

Can you git clone manually when in a terminal in a workspace container?

git clone https://github.com/che-samples/web-java-spring.git

@ghost
Copy link

ghost commented Dec 27, 2016

@codergabs GitHub is acting up for me as well. Hopefully, it'll be ok.

@ghost
Copy link

ghost commented Dec 27, 2016

I am closing the issue.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.
Projects
None yet
Development

No branches or pull requests

1 participant