I got update notification from Sprint Tool Suite or STS. I updated the packages as it asked for and did not pay attention to what exactly got updated. After the update, remote git operations i.e. push/pull are failing with following error. Git integration was working fine before the update and git commands do work properly from command line. STS still shows repository name and does recognize that project is connected to git
Can't connect to any repository: user#server:repository
(user#server:repository: connection failed)
I see following error getting logged in .log file of the workspace
org.eclipse.jgit.api.errors.TransportException:
user#server:repository: connection failed at
org.eclipse.jgit.api.PushCommand.call(PushCommand.java:180) at
org.eclipse.egit.core.op.PushOperation.run(PushOperation.java:215) at
org.eclipse.egit.ui.internal.push.PushJob.performJob(PushJob.java:84)
at
org.eclipse.egit.ui.internal.jobs.RepositoryJob.run(RepositoryJob.java:57)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Caused
by: org.eclipse.jgit.errors.TransportException:
user#server:repository: connection failed at
org.eclipse.jgit.transport.JschSession$JschProcess.(JschSession.java:156)
at org.eclipse.jgit.transport.JschSession.exec(JschSession.java:92)
at
org.eclipse.jgit.transport.TransportGitSsh$SshPushConnection.(TransportGitSsh.java:332)
at
org.eclipse.jgit.transport.TransportGitSsh.openPush(TransportGitSsh.java:174)
at
org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:160)
at org.eclipse.jgit.transport.Transport.push(Transport.java:1310) at
org.eclipse.jgit.api.PushCommand.call(PushCommand.java:169) ... 4
more
Spring Tool Suite
Version: 3.9.1.RELEASE
Build Id: 201710111144
Platform: Eclipse Neon.3 (4.6.3)
I have a similar problem since the updates, but running on Eclipse Oxygen 1a.
I've created an issue with Spring Ide.
https://github.com/spring-projects/spring-ide/issues/210
Related
I can use git fine from command line, I can use fine git from NetBeans IDE, and I can use git fine from IntelliJ IDEA.
But I cannot use git in any instance of Eclipse (either pure Eclipse for Java IDE, or IBM Rational Application Developer which based on Eclipse). SSH keys configured same as for other IDEs and are valid.
I suspect problem at some OS level, maybe Eclipse stores some global settings somewhere and all instance reuse them. Tried to delete %USERPROFILE%/.eclipse -- did not help.
The error in .log is like that (again, keys are valid and properly configured in SSH2 Preferences dialog in Eclipse):
!ENTRY org.eclipse.egit.ui 4 0 2019-03-29 13:01:45.024
!MESSAGE git#git.assembla.com:xxx.git: git#git.assembla.com: Permission denied (publickey,keyboard-interactive).
!STACK 0
org.eclipse.jgit.api.errors.TransportException: git#git.assembla.com:xxx.git: git#git.assembla.com: Permission denied (publickey,keyboard-interactive).
[UPDATED on 04/02/19]
as you can see github.com was not even added to known hosts, i.e. it was not attempted to connect.
typical error.
command line git works
adding user id git to ssh protocol connection type does not help.
Ok, playing with Visual Studio Code I stumbled on the same problem and was able to fix it, so I tried to apply solution to Eclipe and it started working for me.
Not sure why the original problem started, but now I found at least a workaround and can use Git from the Eclipse.
To remind what I had in Eclipse:
org.eclipse.core.runtime.CoreException: Invalid remote: origin
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:106)
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI$1.runInWorkspace(FetchOperationUI.java:123)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.jgit.api.errors.InvalidRemoteException: Invalid remote: origin
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:136)
at org.eclipse.egit.core.op.FetchOperation.run(FetchOperation.java:134)
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:103)
... 3 more
Caused by: org.eclipse.jgit.errors.NoRemoteRepositoryException: git XXXXXXXXXXXXXXXXXXX: Permission denied (publickey).
at org.eclipse.jgit.transport.TransportGitSsh.cleanNotFound(TransportGitSsh.java:208)
at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.(TransportGitSsh.java:288)
at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:161)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)
The solution was to start SSH agent first (to avoid asking passphrase) and then in the same shell session start Eclipse. Without any changes in Eclipse error gone and IDE started reaching repository.
So, the steps would be:
Open shell session (cmd.exe)
Start SSH agent (start-ssh-agent.cmd)
[In the same shell session] Start Eclipse (eclipse.exe)
My Commit and Push from my STS Eclipse to Bitbucket worked fine the last year. I don't change anything there but today I get the following error:
Does anyone why?
If I make a pull I geht the following exception:
Actually I dont know what to do, I have not changed anything concerning git in the last half year.
[EDIT]
I have installed this Eclipse Bundles:
I think this is the problem:
The POM for org.crashub:crash.shell:jar:1.3.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
Does anyone know how to solve this issue?
[EDIT2]
I have installed the new version of STS (3.7.2) and Iam also getting the same Exception:
org.eclipse.jgit.api.errors.TransportException: invalid advertisement of
at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:223)
at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:159)
at org.eclipse.egit.core.op.ListRemoteOperation.run(ListRemoteOperation.java:99)
at org.eclipse.egit.ui.internal.components.RefSpecPage$3.run(RefSpecPage.java:254)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Caused by: org.eclipse.jgit.errors.PackProtocolException: invalid advertisement of
at org.eclipse.jgit.transport.TransportHttp$HttpObjectDB.invalidAdvertisement(TransportHttp.java:746)
at org.eclipse.jgit.transport.TransportHttp$HttpObjectDB.readAdvertisedImpl(TransportHttp.java:712)
at org.eclipse.jgit.transport.TransportHttp.newDumbConnection(TransportHttp.java:328)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:306)
at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:202)
... 4 more
With Git Bash it still works fine. Does anyone have any idea how I can sole this?
I tried to set up a ssh connection in order to be able to pull git repositories with EGit in Eclipse via ssh. (I'm using Eclipse Luna).
For this I used instructions given on the Eclipse Wiki.
I went to Eclipse --> Windows --> Preferences --> General --> Network Connection --> SSH2 --> Key Management --> Generate RSA Key
and tried to export the key via the "Export via SFTP" Button. I entered
githubID#git.eclipse.org but instead of exporting my key, an error appeared on top of the window ("failed to export ssh key to remote server")
I did the whole process a few month ago (that worked) and only wanted to redo this, because pulling my repository caused an error.
Old pull Error:
ssh://githubID#git.eclipse.org/gitroot/myproject.git: Session.connect: java.io.IOException: End of IO Stream Read
I have read about an update of EGit and updated it as well as trying the whole process on a new laptop, but the error also occurs in the new laptop with a new Eclipse.
Does anybody knows a solution for my problem? Thank you in advance!
Finally I ended up asking the Eclipse Webmaster for help.
As my IP address hasn't been blocked (This might have been a solution!) I tried to use the Git Bash instead of EGit and that's worked! So it wasn't a problem with my ssh key, but with the Client, which seems to be broken.
It's more work to do all git commands manually, but finally it works.
It seems to be a bug in older versions of eGit.
Related: https://www.eclipse.org/forums/index.php/t/1096174/
However, the most recent versions of eGit are not compatible with Eclipse Luna any more.
For me, upgrading eGit to version 5.0.3, the last version compatible with Eclipse Luna by manually downloading eGit from here http://archive.eclipse.org/egit/updates-5.0.3/ and installing it from local solved the problem.
I have been using the TFS plugin for eclipse with my companies TFS server for several months. Last week, my laptop crashed while eclipse was open and a connection to the TFS was present. Now, every time I launch eclipse, I get an error stating a connection could not be made to the server, throwing a NullPointerException.
To try to fix this, I cleaned eclipse from my system and removed the installed plugin and then reinstalled eclipse and the TFS plugin. Now, I am no longer getting this connection error on launch. I added the original TFS to the list of servers in eclipse and it can see all of the projects (see http://i.imgur.com/SbgyuRx.png).
However, trying to use any of the projects leads to a screen with an error message saying Error querying workspaces: null. The error log shows the plugin in question as com.microsot.tfs.client.common, with the stack trace saying An exception stack trace is not available.
I am using the same exact plugin installation that I originally used. I have no idea why I'm getting these errors.
The error logs may be helpful. You can view them by going to Help > Team Explorer Everywhere Support, then clicking on the Logs tab.
Ultimately, though, this is probably some corrupt configuration files. TEE performs some various background tasks and I suspect one of those was interrupted in the middle of some file I/O when your computer crashed. Deleting the cache directory may be helpful:
~/.microsoft/Team Foundation
When you restart Eclipse, you should get a dialog box that indicates that your TFS server information cannot be located, but when you reconnect to that TFS server, your projects should return to being TFS managed.
I've installed bugzilla Win32InstallPackages
https://wiki.mozilla.org/Bugzilla:Win32InstallPackages
its pretty easy, just download Bugzilla-Setup-3.4.8.exe file, follow steps and keep pressing Next button. It installs everything (Apache, MySql, Perl, Bugzilla) and works perfect. Just start using bugzilla through this url localhost
Now I want to upgrade this with some stable latest release which is 4.4. I am using Bazaar repository to download at my local PC from here http://bzr.mozilla.org/bugzilla/4.4/
Bazaar explorer creates trunk folder inside C:\Bugzilla\trunk and downloaded all source code inside the trunk directory.
When I've copied all the files from trunk folder and replaced with existing files at C:\Bugzilla\ then it doesn't work.
Now I am getting following error message when I am trying to open bugzilla by writing localhost/ into address bar.
500 Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin#example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Could you please help me how to upgrade bugzilla on my local machine ?
There are upgrade instructions that can be followed. Also check your apache logs to find out what the 500 error is really about.