karamelchef / karamel

Reproducing Distributed Systems and Experiments on Cloud
http://www.karamel.io
Apache License 2.0
39 stars 22 forks source link

Experiments does not create the cookbook in Github #136

Open ashansa opened 8 years ago

ashansa commented 8 years ago

I am using karamel 0.1 on OS X and I can reproduce the issue by following the steps below.

  1. Start Karamel
  2. Select Menu > Experiment
  3. Add the inputs required for the word count sample as instructed in http://www.karamel.io/?q=content/design-experiment-karamel
  4. Click on 'Press to Save'
screen shot 2015-11-12 at 8 51 20 pm

An empty repository was created in my Github account and following was the error log in the karamel.log

INFO [2015-11-12 19:51:15,120] se.kth.karamel.webservice.calls.AbstractCall: Received request to set github credentials.... ERROR [2015-11-12 19:51:19,085] se.kth.karamel.webservice.calls.AbstractCall: ! se.kth.karamel.common.exception.KaramelException: Problem cloning repo: git@github.com:userName/wordcount.git: Auth fail ! at se.kth.karamel.backend.github.GithubApi.cloneRepo(GithubApi.java:291) ~[karamel-core-0.1.jar:na] ! at se.kth.karamel.backend.github.GithubApi.createRepoForUser(GithubApi.java:254) ~[karamel-core-0.1.jar:na] ! at se.kth.karamel.client.api.KaramelApiImpl.initGithubRepo(KaramelApiImpl.java:286) ~[karamel-core-0.1.jar:na] ! at se.kth.karamel.client.api.KaramelApiImpl.commitAndPushExperiment(KaramelApiImpl.java:312) ~[karamel-core-0.1.jar:na] ! at se.kth.karamel.webservice.calls.experiment.PushExperiment.pushExperiment(PushExperiment.java:38) ~[karamel-ui-0.1.jar:na] ! at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_60-ea] ! at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_60-ea] ! at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_60-ea] ! at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_60-ea] ! at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) [jersey-server-1.18.1.jar:1.18.1] ! at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) [jersey-server-1.18.1.jar:1.18.1] ! at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) [jersey-server-1.18.1.jar:1.18.1] ! at io.dropwizard.jersey.guava.OptionalResourceMethodDispatchAdapter$OptionalRequestDispatcher.dispatch(OptionalResourceMethodDispatchAdapter.java:37) [dropwizard-jersey-0.7.0.jar:0.7.0] ! at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302) [jersey-server-1.18.1.jar:1.18.1]

jimdowling commented 8 years ago

Firstly, i recommend working with the latest snapshot version when testing experiments. It's more mature.

The error it's failing with is "authentication failed" for github when trying to clone a repo. Maybe you tried to load an experiment but didn't supply your credentials? Try the 0.2-snapshot version, hopefully should resolve your problems...

ashansa commented 8 years ago

I did try with both versions and I experienced the same issue. The empty repository is created in Github which requires my credentials and the error occurs when it tries to clone the repository. Should I have any additional credential settings for cloning?

When debugging I found that the exception occurs here.

https://github.com/karamelchef/karamel/blob/master/karamel-core/src/main/java/se/kth/karamel/backend/github/GithubApi.java#L284