question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with Git Committing in 4.5.1

See original GitHub issue

A few days ago I ported an existing instance of Che to 4.5.1. It worked initially, but today when I booted up it downloaded a new docker container even though there was a snapshot. Now it’s telling me I can’t commit because my name and email are not set in the preferences area. I am able to start up the workspace and run other commands, but Git no longer works. This is the error that shows up:

2016-08-11 15:29:40,237[nio-4401-exec-9] [ERROR] [o.e.c.a.g.LocalGitUserResolver 54] - Failed access: http://che-host:9090/wsmaster/api/preferences?token, method: GET, response code: 404, message: There is no any resources matched to request path /preferences org.eclipse.che.api.core.ServerException: Failed access: http://che-host:9090/wsmaster/api/preferences?token, method: GET, response code: 404, message: There is no any resources matched to request path /preferences at org.eclipse.che.RemotePreferenceDao.getPreferences(RemotePreferenceDao.java:88) ~[wsagent-local-4.5.1.jar:4.5.1] at org.eclipse.che.api.git.LocalGitUserResolver.getUser(LocalGitUserResolver.java:49) ~[che-core-api-git-4.5.1.jar:4.5.1] at org.eclipse.che.git.impl.jgit.JGitConnection.getUser(JGitConnection.java:1653) [che-core-git-impl-jgit-4.5.1.jar:4.5.1] at org.eclipse.che.git.impl.jgit.JGitConnection.commit(JGitConnection.java:528) [che-core-git-impl-jgit-4.5.1.jar:4.5.1] at org.eclipse.che.api.git.GitService.commit(GitService.java:177) [che-core-api-git-4.5.1.jar:4.5.1] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_45] at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_45] at org.everrest.core.impl.method.DefaultMethodInvoker.invokeMethod(DefaultMethodInvoker.java:154) [everrest-core-1.12.3.jar:na] at org.everrest.core.impl.method.DefaultMethodInvoker.invokeMethod(DefaultMethodInvoker.java:141) [everrest-core-1.12.3.jar:na] at org.everrest.core.impl.RequestDispatcher.doInvokeResource(RequestDispatcher.java:289) [everrest-core-1.12.3.jar:na] at org.everrest.core.impl.RequestDispatcher.invokeSubResourceMethod(RequestDispatcher.java:280) [everrest-core-1.12.3.jar:na] at org.everrest.core.impl.RequestDispatcher.dispatch(RequestDispatcher.java:205) [everrest-core-1.12.3.jar:na] at org.everrest.core.impl.RequestDispatcher.dispatch(RequestDispatcher.java:95) [everrest-core-1.12.3.jar:na] at org.everrest.core.impl.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:64) [everrest-core-1.12.3.jar:na] at org.everrest.core.impl.EverrestProcessor.process(EverrestProcessor.java:134) [everrest-core-1.12.3.jar:na] at org.everrest.core.servlet.EverrestServlet.service(EverrestServlet.java:63) [everrest-core-1.12.3.jar:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) [servlet-api.jar:na] at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:286) [guice-servlet-4.1.0.jar:na] at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:276) [guice-servlet-4.1.0.jar:na] at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:181) [guice-servlet-4.1.0.jar:na] at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91) [guice-servlet-4.1.0.jar:na] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85) [guice-servlet-4.1.0.jar:na] at org.eclipse.che.filters.AbstractEnvironmentInitializationFilter.doFilter(AbstractEnvironmentInitializationFilter.java:55) [wsagent-local-4.5.1.jar:4.5.1] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82) [guice-servlet-4.1.0.jar:na] at org.apache.catalina.filters.CorsFilter.handleSimpleCORS(CorsFilter.java:301) [catalina.jar:8.0.32] at org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:169) [catalina.jar:8.0.32] at org.eclipse.che.api.core.cors.CheCorsFilter.doFilter(CheCorsFilter.java:59) [che-core-api-core-4.5.1.jar:4.5.1] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82) [guice-servlet-4.1.0.jar:na] at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120) [guice-servlet-4.1.0.jar:na] at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:135) [guice-servlet-4.1.0.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [catalina.jar:8.0.32] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [catalina.jar:8.0.32] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) [catalina.jar:8.0.32] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [catalina.jar:8.0.32] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [catalina.jar:8.0.32] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [catalina.jar:8.0.32] at ch.qos.logback.access.tomcat.LogbackValve.invoke(LogbackValve.java:189) [logback-access-1.1.2.jar:na] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [catalina.jar:8.0.32] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) [catalina.jar:8.0.32] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) [tomcat-coyote.jar:8.0.32] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) [tomcat-coyote.jar:8.0.32] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500) [tomcat-coyote.jar:8.0.32] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456) [tomcat-coyote.jar:8.0.32] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_45] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util.jar:8.0.32] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45] Caused by: java.io.IOException: Failed access: http://che-host:9090/wsmaster/api/preferences?token, method: GET, response code: 404, message: There is no any resources matched to request path /preferences at org.eclipse.che.api.core.rest.DefaultHttpJsonRequest.doRequest(DefaultHttpJsonRequest.java:276) ~[che-core-api-core-4.5.1.jar:4.5.1] at org.eclipse.che.api.core.rest.DefaultHttpJsonRequest.request(DefaultHttpJsonRequest.java:155) ~[che-core-api-core-4.5.1.jar:4.5.1] at org.eclipse.che.RemotePreferenceDao.getPreferences(RemotePreferenceDao.java:85) ~[wsagent-local-4.5.1.jar:4.5.1] ... 48 common frames omitted

I’m not sure if it’s related, but after upgrading to 4.5.1 I can no longer access my workspace terminal from the command line either. Here is the error from that:WebSocket connection to 'ws://192.168.99.6:32778/pty' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

Che version: 4.5.1 **OS and version:**Centos 7 Docker version: 1.12 Che install: Server (zip) local

Additional information:

  • Problem started happening recently, didn’t happen in an older version of Che: Yes
  • Problem can be reliably reproduced, doesn’t happen randomly: Yes

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cstack89commented, Sep 6, 2016

I think it’s best that I go ahead and do that. No time recently to experiment. Looking forward to checking out the new versions.

0reactions
JamesDrummondcommented, Sep 6, 2016

@cstack89 Please let us know if there is anything we can do to resolve this issue. Many things have changed(for the better) with che 4.6 and now 4.7. You can always close this issue and reopen it when you have had time to test with the newer versions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to create a snapshot in XCode 4.5.1 after update the
update the new push.default option in ~/.gitconfig ,; want to create a snapshot in an Xcode project. Then I will encounter the problem...
Read more >
Committing, pushing, pulling and resolving conflicts with git ...
This tutorial shows how multiple developers can work on shared code via a git repository using Eclipse 4.5.1. You will see how to...
Read more >
2.2 Git Basics - Recording Changes to the Repository
Typically, you'll want to start making changes and committing snapshots of those changes into your repository each time the project reaches a state...
Read more >
installer: bump NetFx version requirement from 4.5.1 -> 4.6.1 ...
We already require Fx4.6.1, but the installer checks for Fx4.5.1 Signed-off-by: Zak Kohler git@y2kbugger.com I used the lower of the two 4.6.1 checks...
Read more >
Chapter 6 Git and GitHub | The Unix Workbench - Sean Kross
When making a Git commit, we need to write a commit message which is specified after the -m flag. The message should briefly...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found