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.

Cannot clone git project eclipse/che from a Che factory

See original GitHub issue

Description

got this error in the wsagent logs:

2017-10-20 10:12:46,939[io-4401-exec-10]  [ERROR] [c.a.c.r.RuntimeExceptionMapper 46]   - Internal Server Error occurred, error time: 2017-10-20 
10:12:46                                                                                                                                         
java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /projects/che/.git/refs/remotes/origin/<D0><A1>HE-5335.lock
       at sun.nio.fs.UnixPath.encode(UnixPath.java:147)                                                                                         
        at sun.nio.fs.UnixPath.<init>(UnixPath.java:71)                                                                                          
        at sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:281)                                                                            
        at java.io.File.toPath(File.java:2234)                                                                                                   
        at org.eclipse.jgit.util.FileUtils.rename(FileUtils.java:261)                                                                            
        at org.eclipse.jgit.internal.storage.file.LockFile.commit(LockFile.java:457)                                                             
        at org.eclipse.jgit.internal.storage.file.RefDirectoryUpdate.doUpdate(RefDirectoryUpdate.java:122)                                       
        at org.eclipse.jgit.lib.RefUpdate$1.execute(RefUpdate.java:517)                                                                          
        at org.eclipse.jgit.lib.RefUpdate.updateImpl(RefUpdate.java:640)                                                                         
        at org.eclipse.jgit.lib.RefUpdate.update(RefUpdate.java:512)                                                                             
        at org.eclipse.jgit.lib.BatchRefUpdate.execute(BatchRefUpdate.java:354)                                                                  
        at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:224)                                                             
        at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)                                                                
        at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1179)                                                                       
        at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128)                                                                         
        at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:201)                                                                        
        at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:135)                                                                         
        at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:84)                                                                          
        at org.eclipse.che.git.impl.jgit.JGitConnection.executeRemoteCommand(JGitConnection.java:2121)                                           
        at org.eclipse.che.git.impl.jgit.JGitConnection.clone(JGitConnection.java:595)                                                           
        at org.eclipse.che.api.git.GitProjectImporter.cloneRepository(GitProjectImporter.java:247)                                               
        at org.eclipse.che.api.git.GitProjectImporter.importSources(GitProjectImporter.java:178)                                                 
        at org.eclipse.che.api.project.server.ProjectManager.doImportProject(ProjectManager.java:522)                                            
        at org.eclipse.che.api.project.server.ProjectManager.importProject(ProjectManager.java:486)                                              
        at org.eclipse.che.api.project.server.ProjectService.importProject(ProjectService.java:405)                                              
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                           
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)                                                         
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)           

It looks like the branch CHE-5335 is not well encoded. We can find back the branch in Github UI by searching for HE-5335 (without the first C letter) https://github.com/eclipse/che/branches/all?utf8=✓&query=HE-5335

Reproduction Steps

Create a workspace from a factory that clone eclipse/che project. The workspace is created but it cannot clone eclipse/che

OS and version:

Diagnostics:

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
skabashnyukcommented, Oct 23, 2017

Shall we test with new jgit 4.9 https://github.com/eclipse/che/issues/6884?

0reactions
vinokurigcommented, Dec 21, 2017

Can not reproduce

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to clone repo in ssh or https in 5.12 - EGit / JGit - Eclipse
git operations from the commandline worked fine. So I decided to try and start fresh and removed the local branch and repo from...
Read more >
Can't clone Git repository in azure DevOps using HTTPs protocol
sslVerify=false in Git configuration) ... I copy it from DevOps. on my private laptop, same eclipse and URL, can clone Git repository.
Read more >
Hudson » Cannot Clone from Git/Stash - Eclipse
The issue was resolved by going into the advanced options under source code management and check the "Use Command line git to clone"...
Read more >
EGit / JGit » Can't import Git Projects - Eclipse
I got a problem with adding a git project into eclipse. ... The Git Project works, I can clone it from console -...
Read more >
Eclipse and Cross Platform: Unable to clone Git repository ...
You could try using normal EGit. It is already included in the Eclipse version you use. If you can't get it to work...
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