Egit error connecting to remote repo - eclipse

Im having some difficulties connecting my project in eclipse with my remote repo with EGit.
I have already created a local git repo and now I want to connect it to github, but when I add the URI and use a https protocol I get:
"Internal error; consult Eclipse error log."
And I get this message in the Eclipse error log:
Error validating org.eclipse.egit.ui.internal.components.RepositorySelectionPage
How can I fix this?
What I do is that I go to remotes, right click it and select "Create remote...".
I then change the URI, and I add "https://github.com/Lumberfella/angularApp.git" to the URI input box, and the Host and Repository path auto fills themselves to:
Host: github.com
Repository path: /Lumberfella/angularApp.git
and In the connection section I have https as the Protocol.
When I do this, its already giving me an error at the top of the "Select URI" window saying: "internal error; consult Eclipse error log." which is what I posted above.
Im using EGit version 3.3.1

I tried out you repository, and it seemed that repository is empty. I am not entirely sure about this answer, but I believe, you cannot use the read-only http urls on empty repositories (e.g. they have no branches to pull).
This theory is further supported by the exception trace I have found in the Error log view:
Caused by: org.eclipse.jgit.api.errors.InvalidRemoteException: Invalid remote: test
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:136)
at org.eclipse.egit.core.op.FetchOperation.run(FetchOperation.java:127)
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:100)
... 64 more
Caused by: org.eclipse.jgit.errors.NoRemoteRepositoryException: test: not found.
at org.eclipse.jgit.transport.TransportLocal$1.open(TransportLocal.java:131)
at org.eclipse.jgit.transport.TransportBundleFile$1.open(TransportBundleFile.java:106)
at org.eclipse.jgit.transport.Transport.open(Transport.java:556)
at org.eclipse.jgit.transport.Transport.open(Transport.java:316)
at org.eclipse.jgit.transport.Transport.open(Transport.java:287)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:120)
... 66 more
Basically, the trace says, it cannot get contents from the remote repository.

I was not able to make it work by adding a remote repository by adding the https or ssh inside eclipse in remotes.
But since I was able to make a working local repository, I figured all I needed to do was download the Git Shell and add a new remote repository that way.
For some reason this totally worked and it also automaticly connected the remote repository to eclipse, so Im now able to push directly from eclipse to both the local and the remote repository (or which ever I would like to).

Related

Eclipse git error when pushing to remote: Transport Error: Cannot get remote repository refs

I started a Static Web Project in Eclipse to share the project in a remote Git repository as a backup and to possibly share with others.
Created a git repository in the project's folder C:\workspace\projectname.
Committed (added/staged) everything in the C:\workspace\projectname including the .project file and everything in the C:\workspace\projectname\.settings directory as initial commit (because I thought I want to be able to clone the project again from the repository in the future).
Created a remote repository at rocketgit due to its simpler features and ToS.
After everything had been commited, I right clicked the project's repository in the Git Repository view in Eclipse, clicked Remote -> Push.
I entered https as protocol, rocketgit.com as host, users/username/repositoryname as repository path. Entered my username and password, clicked Next.
But a Problem Occurred dialog shows up, with detail `Transport Error:
Cannot get remote repository refs.
https://rocketgit.com/users/username/repositoryname: https://rocketgit.com/users/username/repositoryname/info/refs?service=git-upload-pack not found`.
How do I resolve this? What does this error mean? Can someone explain a solution. Thanks
users\username\repositoryname as repository path.
"users\username\repositoryname" looks like a path on your disk, not to a remote repo URL.
A proper URL would be https://yourServer/<user>/<reponame>, or ssh://git#yourServer/<user>/<reponame>.
I don't know which one RockertGit does support, but using GitHub, GitLab or BitBucket would work.

svn URL access forbidden for unknown reason

I'm trying to create a new project in svn using subclipse from STS/Eclipse. It works fine with existing projects, this is just a project for experimentation. When I try to check in the new project, I get this error message
mkdir --parents -m "Initial import." https://utilities.mycompany.com/svn/repo/springMvcTest
URL access forbidden for unknown reason
svn: access to '/svn/repo/!svn/ver/10618/' forbidden
Filesystem has no item
svn: URL 'https://utilities.mycompany.com/svn/repo/test' non-existent in that revision
Any idea how to fix this?
It would seemingly be a problem on the server. I can only guess based on the info available but it is possible the server Apache process that the Subversion server runs in does not have write access to the repository location on the native filesystem of the server.

Permission denied while connecting to the repository using subeclipse

I am trying to connect to a repository location using subeclipse. But every time, I try to connect to the location I get the following error :-
svn: E175002: Permission denied: connect
svn: E175002: OPTIONS request failed on '/{repository_location}/'
I have also tried using subversive but that does not seem to work out as well.
Note: The repository is at a remote server to which I am connected via VPN. I am able to browse through the repository using the browser and using the same username and password
that I am using with subeclipse. I am also able to check in and check out the code by using tortoise SVN client. The issue that I am facing is only from within eclipse (i.e. using subeclipse)
Was working under the same conditions (VPN to a office network) when I experienced the same problem. Even though I could browse the repo in the browser, svn plugin gave me 'svn: E175002: Permission denied'. Also had no problems without VPN.
adding
-Djava.net.preferIPv4Stack=true
to eclipse.ini worked for me

share a project to svn

I am not sure how to share a project in Apache Subversion (SVN).
I created an SVN repository named testsvn on Ubuntu linux.
I am running Eclipse IDE on another Windows system where I have installed Subclipse and
I want to share Eclipse project with the Subversion.
E.g. Team | Share project | SVN | Create a new repository
Then I give the url as http://192.168.10.1/testsvn but I get an error as
svn: E175002: connection refused by the server
svn: E175002: OPTIONS request failed on '/testsvn'
Can anyone help me how to fix the problem..
Thank you
We encountered the same error from our SVN server when running an ANT script to perform an automated checkout. My initial thought was that anonymous reads were disallowed but that didn't make sense considering our configuration. Here was our console output:
[svn] svn: E175002: connection refused by the server
[svn] svn: E175002: OPTIONS request failed on '/svn/branch_201212131157_3.1.6'
[svn] Connection refused: connect
[svn] <Checkout> failed.
It turned out the host URL our ANT client was attempting to connect on was https:// when we weren't offering SSL on the SVN server. This was an internal server but providing the full domain name with the host was also added to the URL. Although, the relative hostname (name of the machine) alone should have been sufficient.
You should add your svn repository URL in New > SVN Repository but not create a new one in Team > Share Project (apparently, you cannot create it remotely). See step by step instructions here.

EGit push operation giving error: "Error occurred during unpacking the remote end"

Error occurred during unpacking the remote end
Steps, which I followed:
On system A (remote):
Installed EGit
Create a project
Share that project
Create repository
Add and commit that project to repository
(share the repository folder)
On system B (local):
Install EGit
Import project (by cloning remote repository)
select clone (not add)
give the path of remote repository like 192.168.10.28\Git\repo
check the branch
give destination path(local)
follow simple steps and import the project
Modify the code
commit it to local repository
Now go to repository view and push the local repository content to the remote 1
ERROR window pops up saying
"Can't connect to any repository: \192.168.100.28\Git\repo (An internal Exception occurred during push: \192.168.100.28\Git\repo: Pipe closed)"
The only "pipe closed" error on Egit is mentioned in bug 314107 and isn't related to your case.
The only suspicious element in your scenario is the address of your remote repo.
With the file protocol, I would specify:
file:///192.168.100.28/Git/repo.git
As the OP Abhay comments, the destination folder was write protected, which was enough to trigger that error message.
This issue is not specific to Egit. It occurs when git cannot write to the destination folder on the remote system. This could be, as noted in another answer, that the folder did not have the correct permissions. It could also be for other reasons, such as in my case where the file system had reached full capacity.