ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

Sorry! The configured backend (pro) does not know about ionic upload.

Open HugoHeneault opened this issue 9 years ago • 40 comments

Description: I'm not able to upload a build to my pro deploy instance.

Steps to Reproduce:

  1. Login to your account with the ionic CLI : ionic login
  2. Add your SSH key
  3. Run ionic upload --note="Test Deploy"
  4. 💥

Output:

ionic upload --note="Test Deploy" 

[ERROR] Sorry! The configured backend (pro) does not know about ionic upload.

My ionic info:

cli packages: (/Users/hugo/dev/ourco/mobile/node_modules)

    @ionic/cli-utils  : 1.9.2
    ionic (Ionic CLI) : 3.9.2

global packages:

    Cordova CLI : 7.0.1

local packages:

    @ionic/app-scripts : 2.1.4
    Cordova Platforms  : android 6.2.3 browser 4.1.0 ios 4.4.0 ios_bk 4.4.0
    Ionic Framework    : ionic-angular 3.4.2-201707210037

System:

    Android SDK Tools : 26.0.2
    ios-deploy        : 1.9.1
    Node              : v7.10.1
    npm               : 4.2.0
    OS                : macOS Sierra
    Xcode             : Xcode 8.3.3 Build version 8E3004b

HugoHeneault avatar Aug 22 '17 13:08 HugoHeneault

Same here:

Output:

ionic upload

[ERROR] Sorry! The configured backend (pro) does not know about ionic upload.

My ionic info:

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.9.2
    ionic (Ionic CLI) : 3.9.2

global packages:

    Cordova CLI : 7.0.1 
    Gulp CLI    : CLI version 3.9.1 Local version 3.9.1

local packages:

    Cordova Platforms : android 6.2.3
    Ionic Framework   : ionic1 1.3.3

System:

    Node  : v6.11.2
    npm   : 3.10.10 
    OS    : macOS Sierra
    Xcode : Xcode 8.3.3 Build version 8E3004b 

BALOTIAS avatar Aug 23 '17 10:08 BALOTIAS

Hi all,

Same error reported for me: myApp$ ionic upload [ERROR] Sorry! The configured backend (pro) does not know about ionic upload.

    You can switch backends with ionic config set -g backend.

ionic info gives:

cli packages: (/.../myApp/node_modules)

@ionic/cli-utils  : 1.9.2
ionic (Ionic CLI) : 3.9.2

local packages:

@ionic/app-scripts : 2.1.3
Ionic Framework    : ionic-angular 3.6.0

System:

Node : v6.11.1
npm  : 3.10.10 
OS   : Linux 4.4

monkeytronics avatar Aug 25 '17 03:08 monkeytronics

@monkeytronics @HugoHeneault @MBALOTA I'm also having this issue. Didi you guys solve it?

srphpprogrammer avatar Aug 25 '17 04:08 srphpprogrammer

No, we ended up only using git for now... :(

HugoHeneault avatar Aug 25 '17 07:08 HugoHeneault

Same here, try to run the command :

ionic config set -g backend

but I get this error :

nicolas$ ionic config set -g backend [ERROR] value must not be empty.

what keyword do we need to add in order to use the cloud backend ?

ngware avatar Aug 25 '17 08:08 ngware

Ok so I found out a solution, type :

ionic config set -g backend legacy

to get back to the cloud backend and be able to use the ionic upload command. If you want to go back to the pro version just type :

ionic config -set backend pro

ngware avatar Aug 25 '17 09:08 ngware

The problem is the accounts created on the pro backend don't work on the legacy one.

HugoHeneault avatar Aug 25 '17 10:08 HugoHeneault

@HugoHeneault No, we ended up only using git for now... :(

This is my first time using Ionic Pro. I followed docs but I'm still stuck with error. How were you able to upload your code to the Ionic Pro? Push from git-hub to Ionic Pro? It'll be really helpful if you could explain the steps to deploy it to ionic cloud?

srphpprogrammer avatar Aug 26 '17 06:08 srphpprogrammer

That is something I didn't like personally. :(

Now doing this force me to either get a paid private repository or make my code public on GitHub.

The Ionic team should have kept the upload service until 31 Jan.

patwaswapnil avatar Aug 26 '17 19:08 patwaswapnil

@patwaswapnil The upload service is still up but you need to use the old backed. You juste have to push to ionic as stated on the pro dashboard:

1. Install the latest Ionic CLI

npm install -g ionic@latest

2. Connect your app to Ionic Pro

START A NEW APP

ionic start --pro-id YOUR_ID
cd test

OR : CONNECT EXISTING APP

ionic link --pro-id YOUR_ID

3. Push your code up to the dashboard!

git push ionic master

4. Add your own external Repository as the default origin (optional)

git remote add origin [YOUR_REPOSITORY_URL]
git push --set-upstream origin master

HugoHeneault avatar Aug 28 '17 12:08 HugoHeneault

I think others have summed it up nicely. For Ionic Pro, ionic upload is just git push ionic master.

@patwaswapnil

Now doing this force me to either get a paid private repository or make my code public on GitHub.

The Ionic team should have kept the upload service until 31 Jan.

Nope, having the ionic git remote doesn't force you to do either of those things. Your code is "pushed" to our servers instead of uploaded. Github has nothing to do with git push ionic master.

If you switch the CLI back with the commands @ngware stated, you get ionic upload back, but on Jan 31st it won't work anymore.

imhoffd avatar Aug 29 '17 21:08 imhoffd

@dwieeb The problem is some plugins (as Cocoa) doesn't work on Deploy build environment. So uploading a build from our side would fix the problem.

HugoHeneault avatar Aug 30 '17 10:08 HugoHeneault

@HugoHeneault Can you elaborate? This may be a feature request for Ionic Pro.

imhoffd avatar Aug 30 '17 16:08 imhoffd

Sure: we're having issues when pushing a new snapshot using git push ionic branch : cocoapods is required for building or app (for the notifications plugin), but not installed on your build environment on Deploy. So the build is failing online (working with the npm run build fallback, but not completely (APK images won't have the push plugin :()

HugoHeneault avatar Aug 30 '17 16:08 HugoHeneault

I can create a separate issue if you want. Here or on the deploy plugin?

HugoHeneault avatar Aug 30 '17 16:08 HugoHeneault

Deploy can't update the APK/IPA on devices. It can only update non-binary files such as web assets. Package is probably what you're referring to, which would require an app store update.

Package does not yet support cocoapods, but it's a highly requested feature and I'm sure it'll be in soon.

You may get a more official response from our support page (I don't work on Pro full-time, just the CLI): https://ionic.zendesk.com/hc/en-us/requests/new?ticket_form_id=632048

imhoffd avatar Aug 30 '17 17:08 imhoffd

I already tried the support, which is quite slow. :( I know, but Deploy is using cordova prepare, which is trying to use cocoapods. So if you're build is using cocoapods, you can't create any prod builds on Deploy. :(

HugoHeneault avatar Aug 30 '17 18:08 HugoHeneault

I created an issue one https://github.com/ionic-team/ionic-plugin-deploy/issues/138 but the repo does't seem updated for a while... :(

HugoHeneault avatar Aug 30 '17 18:08 HugoHeneault

@dwieeb, My bad, I had confused this with PhoneGap build flow, Thank you so much for clarifying it.

patwaswapnil avatar Aug 31 '17 07:08 patwaswapnil

@patwaswapnil No worries!

@HugoHeneault Deploy shouldn't use cordova prepare when you do git push ionic master. I see it running npm run build. What does it do for you?

imhoffd avatar Aug 31 '17 19:08 imhoffd