Github FTP Deploy: fatal: Not a Git project? Exiting... On GitHub Actions Tab while running the workflow - github

I am trying to deploy my changes to live server using GitHub via ftp workflow but it keeps on failing on
'fatal: Not a Git project? Exiting...'
FTP-Deploy-Action Error Log:
Forced mode enabled.
Auto init if needed.
Using syncroot ./ if exists.
Insecure SSL/TLS connection allowed
fatal: Not a Git project? Exiting... <------------------------- fails from here
The process '/usr/bin/git' failed with exit code 8
>
I did 'git init' as stated in helpful articles but that didn't helped.
I re-clone the git repo and pushed the changes again and still having the same issue with the repo.
It was working fine until now.
Thank you for your time.

This was due to a docker image being updated and is now resolved. See the github issue for more information https://github.com/SamKirkland/FTP-Deploy-Action/issues/345
No updates to your github action are required to use the new (patched) version.

It's allready fixed :)
See here: https://github.com/SamKirkland/FTP-Deploy-Action/issues/345#issuecomment-1353339618

Related

Github CLI - Unable to find remote helper for 'https'

Github CLI is throwing the following error when I try to make a PR from the command line.
fatal: Unable to find remote helper for 'https'
exit status 128
I've tried the steps on this question and git clone works fine for me. I'm also able to see the status of PRs by using gh pr status
Does anyone have any ideas why this might be happening?
This is all set. After installing the library, I just needed to reboot my machine.

cannot get remote repository refs in eclipse

Introduction:
Main Repo: Repo1.
After forking it, my repo is : ForkedRepo1
In Eclipse-Git, I cloned my ForkedRepo1.
Until Thursday, I was able to commit & push without any issue.
Then suddenly, on Thursday, I got the error:
Cannot get remote repository refs
Reason:
ssh://<forkedrepo1: session.connect:
java.netSocketTimeoutException: Read timed out
I have a SSH key.
Nothing as altered in my system, so I am not sure what happened.
To make matters worse, I deleted my Remote(origin) in eclipse-git and when I try to add it back, I get the same error - java.net.SockettimeoutException: Read timed out.
However, via git bash, I can commit a file and push it to the local branch in GitHub.
I hope this info is enough to give me some idea.
FYI: I am working on a existing project, so when I push a file up for review, it worked successfully. It is just that I cannot now do it in eclipse.
Then try, as described here, to switch to an HTTPs URL.
You can then cache your GitHub credentials (GitHub username/password) in a credential helper, generally already configured (see git config credential.helper)
It is probably caused by the removal of weak cryptographic standards.
You need a recent Java 8 revision (i.e. 1.8.0_161), a recent version of EGit (such as 4.10.0.201712302008-r) and you probably need also to restart (just once) Eclipse with the -clean parameter.

hg-git repository not found

I would like to configure my Mercurial project to be able to push it into gitHub repository.
While using command:
hg push git+ssh://git#github.com/myusername/myproject.git
I receive a msg:
abort: repository git+ssh://git#github.com/myusername/myproject.git
not found!
I already check and establish SSH connection, and it looks ok:
Hi myusername! You've successfully authenticated, but GitHub does not
provide shell access.
my respository url copied from github (it's a fork from other open-source project): https://github.com/myusername/myproject.git
What else I should check? Why I have an information that it doesn't exist while, in fact, it does? Where can be a problem?
Thanks to rfkortekaas I found a problem with hg-git setup.
In ~/.hgrc there has to be:
[extensions]
hgext.bookmarks =
hggit =
Are you sure that you have enabled and setup the hg-git extension correctly. This error also appears if the extension is not correctly setup.
Can you try it with a local git repository to phase-out github as a possible error.
I'm not sure you can push in Git if you didn't clone your repository from a Git one before using hg-git. It seems me that hg-git manages a .git locally.

Eclipse can not push to Github

I have installed EGit and create a repo and push it to github using the following steps:
Step1:
Step2:
Step3:
Step4:
Step5:
Step6:
I get the following error:
Can't connect to any repository: https://github.com/mleoking/JavaGnuplotHybrid.git (https://github.com/mleoking/JavaGnuplotHybrid.git: error occurred during unpacking on the remote end: index-pack abnormal exit)
I have also tried to use ssh but it even does not allow me to pass step3. With http I can pass step3.
Thanks for help.
Found the problems by myself:
I simply deleted the git repository for my project and then create a fresh new git repository following this guide: http://wiki.eclipse.org/EGit/User_Guide/Getting_Started
And then still use the same steps, using https rather than ssl. I successfully committed it to github: https://github.com/mleoking/JavaGnuplotHybrid
I do not really know where was the problem. But eventually the above steps work.
Please use the ssh address of your repository. http is read-only.
git#github.com:mleoking/JavaGnuplotHybrid.git
On custom linux repos it could be a permissions error:
cd <path_to_git_folder.git>
chmod -R 777 *

An internal Exception occurred during push: cannot store objects

Hello I am new to Git and trying to setup server part and client part.
On a Server side I have ssh access and Git version 1.5
On a Client side I have eclipse with eGit.
I created git repo on a server side via usual means: git init and added simple html file.
Using eGit I checkout the repo and everything seems to be going well. I made changes on a client side, committed it and decided to push back to the server.
Now I have all permissions set but still get following error:
I don't know how to fix it and error message doesn't provide much details.
Please help.
Thank you!
For me, on Windows eclipse, I had an error like this:
An internal Exception occurred during push: github.com/***/***/service=git-receive-pack not found
I just reconfigured the eclipse and added my github account information and store it. Then it worked. Team->Remove->Configure push to upstream->URI, Change->Add authentication details
Ok, I resolved my issue following way:
1) I changed configuration for remote fetch and pull from sftp to ssh
2) Once I did step 1. I got different error:
When I tried to push changes from Terminal I got following:
git push origin
Password:
bash: git-receive-pack: command not found
fatal: The remote end hung up unexpectedly
3) Found answer to the above error: git-upload-pack: command not found, how to fix this correctly
4) On my old server path to the git is: "/usr/local/git/bin" So I added it to .bashrc file.
Once I done that, everything started to work:
The possible issues are:
1. The source code might not be committed in the first place. Please try committing and see.
2. There is some issue with github authentication. Please re authenticate the credentials and try using: Team->Remove->Configure push to upstream->URI, Change->Add authentication