Alternative to Git Sync

Hi,

Context:
I was a happy user of the Git Sync plugin. I used it to sync our current Grav site to Gitlab, and then we connected our translation tool to Gitlab so that we could translate/localize our site.

Unfortunately, our hosting provider made Git as an additional, very expensive, feature, so I decided to move to another hosting that offers Git, but -no matter how I set Git global configuration - I get this error:

"fatal: unable to create thread: Resource temporarily unavailable fatal: the remote end hung up unexpectedly send-pack: unexpected disconnect while reading sideband packet fatal: the remote end hung up unexpectedly error: failed to push some refs to ’

I don’t think this can be solved, because we’re on a shared hosting and I suppose we have limitations in the use of Git, so I’m exploring alternatives.

Question:

How can you sync the /pages/ folder from a Grav installation to a Git repo on Gitlab without using the Git Sync plugin?

I thought about creating a scenario in Make.com, but afaik Grav doesn’t have a Rest API that can be used with no-code tools.

TIA.

Marco

Hi @marcocevoli ,

While my technical knowledge of Git is very limited one thing that sometimes is an issue with shared hosting is the Git version (which may be quite old on a shared hosting setup)… I think GitSync expects Git 2.9 and above, perhaps you could confirm with your shared hosting co with that?

If the above does not produce the desired results, perhaps move to another shared hosting service that supports Git? I use Reclaim Hosting (https://www.reclaimhosting.com/) with Git Sync and things once setup work very well. I think Reclaim still offers a European Server option, but not sure Hosting Location - General Hosting / cPanel - Reclaim Hosting Community Forums.

Oh, and also if I recall Git Sync also requires some additional PHP functions which sometimes are not enabled by default, here is more info on that topic: Call to undefined function Grav\Plugin\GitSync\exec() · Issue #223 · trilbymedia/grav-plugin-git-sync · GitHub

Thanks, Paul. Indeed I have Git v. 2.43.5. I’ll see if I can update it and if this solves the issue.

We don’t have the exec error, so I think PHP functions are correctly set.

Moving to another shared hosting won’t be possible. We’ve just moved from the old one to the new one, and it’s not refundable.

2.43 is higher than 2.9 :slightly_smiling_face:

1 Like

Duh. Mental note to self: Never reply to a post when you’re tired. :slight_smile:

ok, after lot of tinkering, still no success. I tried:

  • deleting all .git folders
  • creating a new, empty repo on Gitlab
  • uninstalling and reinstalling Git Sync plugin

At some point I got the Fetch head... issue, but eventually I managed to get rid of it.

Yet, I keep getting the error

"fatal: unable to create thread: Resource temporarily unavailable fatal: the remote end hung up unexpectedly send-pack:..."

I’m giving up and I’m back to square 1: looking for an alternative.

TIA,

Marco

A-ok @marcocevoli . FYI, I did a bit more hunting around and thought this issue might be another possible lead: fatal: unable to create thread: Resource temporarily unavailable fatal · Issue #198 · trilbymedia/grav-plugin-git-sync · GitHub

Sure, this probably won’t solve the problem, as I understand it’s on the server side, but today, while browsing the web, I found something like this:

Thanks, Paul. I appreciate your help. I already came across that page, and tried all possible solution to no avail… :frowning:

Good to know. I’ll give it a try and report back here. Thanks.