Unable to "update code" from GitLab (no SSH)

  • 1
  • Problem
  • Updated 4 years ago
Hi guys,

I'm trying to run "update code" from the build.phonegap.com interface for my project. The Git repo is pointing to something like this:
https://username:password@gitlab.com/...

Getting the error in red:
"Unable to create app: unable to clone/checkout repository https://username:password@gitlab.com/... (feature/branch-name)"

This was working till 1-2 days ago, but not now. This still works when run from command line. I never setup SSH keys for the username in question.

Is there something on Phonegap Build's end that is preventing this, unintentional or otherwise?

Cheers,

Satoshi
Photo of Satoshi Payne

Satoshi Payne

  • 8 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Satoshi,
Unless you have a paid account, you can only have one (1) private build. Are you trying to build more than one app with the PRIVATE setting?
Jesse
Photo of Satoshi Payne

Satoshi Payne

  • 8 Posts
  • 0 Reply Likes
Hi Jesse,

Just the 1 app we have at this stage (we will get a paid account once we have another client requiring app development services). No other apps on the account.

Nothing has changed on our end since the last successful build (Phone Gap build has our latest committed code, but we are worried about future changes we need to make).

We have since tried changing the account password for the respective GitLab user and updated the pull URL accordingly, but this was done after this issue came to light.

Cheers,

Satoshi
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
Okay Satoshi,
I am not understanding what you are saying.

To be clear what I am saying, you ONLY get 1 private app - at a time. If you have more than one (1) private app, delete the one you do not want. And you can build one (1) private app.

Jesse
Photo of Satoshi Payne

Satoshi Payne

  • 8 Posts
  • 0 Reply Likes
Hi Jesse,

That's all and fine. However, as mentioned, we only have 1 app. Sorry for any confusion,

Cheers,

Satoshi
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
Ok Satoshi,

This could be the last question. What do you mean when you say: This still works when run from command line.

Phonegap Build does not use the command line, except when using the Phonegap Build APi

Please clarify.
Jesse
Photo of Satoshi Payne

Satoshi Payne

  • 8 Posts
  • 0 Reply Likes
Hi Jesse,

I mean the git clone/pull command:
git clone https://username:password@gitlab.com/...

Runs on command line successfully. This seems to rule out potential authentication issues to the Git repository itself and therefore appears to be a problem with the Phone Gap Build service.

Cheers,

Satoshi
Photo of Satoshi Payne

Satoshi Payne

  • 8 Posts
  • 0 Reply Likes
I just made a new app in Phone Gap Build just now and the git pull seems to be working there. However, it's still not working in the other app, showing the same error message as before.

All the settings are the same except the new app is marked private. Could my Phone Gap Build app have become corrupted? Is there a way to reset it? If not, I will have to move my keys to the new app which will be a tedious task.

Cheers,

Satoshi
Photo of Satoshi Payne

Satoshi Payne

  • 8 Posts
  • 0 Reply Likes
Oh the keys are account wide, that's convenient enough.

UPDATE: it seems I can't uncheck the "private app" option unless the repo sits on Github. Weird because this was working 2 days ago. Was there a recent change?
Photo of Satoshi Payne

Satoshi Payne

  • 8 Posts
  • 0 Reply Likes
CONFIRMED: I had to recheck "private app" and the git pull worked again.

Seems like this "private app" option now can't be unchecked unless the repo sits on Github. That's unfortunate, but at least problem solved.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Satoshi,
Okay. I think there is some background issue. That is, I think Phonegap made a change or some change you made is causing the issue. This is the least of issues, because there is no way for me to help you fix this.

I think because you have public apps working, you should have at least one (1) app working. This is what we are told. As such, I'm going to ask Phonegap Staff to look at this.

FWIW: There is another forum that will be open soon. You may want to post there and point to this message. In the meantime, I will send a message to the Phonegap Staff. But i will be morning before the see this. It is 9pm in California - where the staff is. Here is the link:

https://forums.adobe.com/community/phonegap/build

Jesse
Photo of Satoshi Payne

Satoshi Payne

  • 8 Posts
  • 0 Reply Likes
Hi Jesse,

Thanks for following this up. Hopefully will hear back soon. I'm seeing the error message:
"Public applications must be backed by a public GitHub repository."

When I try to uncheck the "private app" option.

Does the "private app" setting have any bearing on apps that are intended to be released to App Store or Google Play?

Cheers,

Satoshi
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Satoshi,

Does the "private app" setting have any bearing on apps that are intended to be released to App Store or Google Play?


No. The private app setting is only intended for you to keep your source code private. That is, since your source code is not public, then you source code cannot be viewed on source code.

A "private app" has no bearing on what happens on the App Store or Google Play.

To be clear, once your app is built and in the "App" store or Google play, the javascript is public, unless you encrypt it or use some other means that is available to Android. Of course, the app is shipped with zip (file compression), but that can be changed by changing the extension from .apk to .zip.

FWIW: I've already sent a message to phonegap staff.

I hope this is clear.
Jesse
Photo of Brett

Brett, OFFICIAL REP

  • 547 Posts
  • 54 Reply Likes
public apps can only be from public github repos.