Could not access remote git repository - New clone of app build works!!!!

  • 1
  • Question
  • Updated 4 years ago
I'm getting an error - Could not access remote git repository. I have been successfully pulling and building form this repo for months then suddenly it fails.

I spent hours trying to fix this without success. I decided to set up a brand new app on PG and pull from the same repo and the build works - this leads me to believe there is something fundamentally wrong with the Phonegap App on PG Build rather than a code or Git hub issue.

Has anyone else had a similar problem? I could really do with using the original app as there are a lot of people using this in Hydration and I don't want to to get everyone to re-install it.

Original app id - 1771819
New app id - 2111549
Photo of Paul J

Paul J

  • 8 Posts
  • 0 Reply Likes
  • Frustrated

Posted 4 years ago

  • 1
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Paul,
that's odd behaviour. I have no explanation why it is happening. When we get similar issues report to this forum, we suggest the project be deleted and restarted.

Jesse
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Did you make any config.xml changes prior to the last attempt?
Photo of Paul J

Paul J

  • 8 Posts
  • 0 Reply Likes
Hi Petra - only incrementing the build number but both apps pull from the exact same repo so the code is identical, it just refuses to build on the original app.

Jesse - thanks for the reply, by delete and re-start does this mean the original app (on clients handsets) will still be updated in Hydration mode - I want to avoid getting all my clients to re-install the app if possible. Or by deleting and restarting do you mean create a new app?

Thanks again,

P
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Paul, the issue is Hydration.
With hydration switched on, config changes are ignored by the build process.
A problem can also arise when defaults (like the default PGB version) are changed (by PGB maintenance crew) while hydration is switched on.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Paul,
yes, delete the original app. I don't know about having to reinstall, but I would say likely yes a re-complete install.

I should note, Phonegap Build with Hydration was not meant to work with multiple test clients. The work around would be to use a tool mean for testing with multiple live clients, like Apple's Test Flight or Hockey App. If you are just testing the UI (User Interface), I would suggest Phonegap Desktop App (note: this app is not intended for final development. It is only for testing.).

HOWEVER, Petra may have another suggestion.

Jesse
Photo of Paul J

Paul J

  • 8 Posts
  • 0 Reply Likes
Thanks Petra and Jesse, I'll continue with the working build and delete the original - it's only a couple of people who have to re-install.

I'll also look in to Test Flight (or similar) as there have been many functionality/UI style changes to the app which have been requested by the client and Hydration was a handy way to apply these changes and my clients see the results quickly.
Photo of Paul J

Paul J

  • 8 Posts
  • 0 Reply Likes
I've created a new app and pulled from the exact same repo several times last night after fixing some bugs. I then made a couple of changes this morning, pushed them to my Git account and tried to rebuild only for the same issue to happen again... I've had to create another App and start again.

I'm wondering if this is going to be a recurring problem
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Paul,
this behaviour is odd. I can only imagine that there is some issue in one or more of your files.

Seriously, I don't know what the pre-processor does on PGB. I have to imagine there are corner/edge cases that case this issue. The good news is you seem to be able to replicate the in some fashion - even though your don't know what it is.

You should be using some type of code repository. If not, I suggest you do, and the repository be on-line so that sometime in the future the PGB can find this very elusive bug.

Lastly, please move new converstations to the new forum at:
https://forums.adobe.com/community/phonegap/build, and bookmark this thread. The next time you have a build issue, point to this thread and report it on the forum. Someone on the PGB should be able to catch the bug.

Best of Luck,
Jesse
Photo of Don Rowlett

Don Rowlett

  • 1 Post
  • 0 Reply Likes
I don't know if this is related...

I wanted to change the Adobe ID that we have been using to build an app in build.phonegap.com.

I logged into build.phonegap.com with the new Adobe ID and assumed that I could just provide the repository name and be off and running.

I also received the message "could not access remote git repository https://bitbucket.org/". Remainder of URL available on request.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Don, you have given insufficient detail to say if your issue is related.