Ionic Pro: ERROR: Job failed: exit status 1


#1

Here is what I am getting on failed builds, happened earlier today, fixed itself and now again failing. Looks like an issue on their end:

Running with gitlab-ci-multi-runner 9.1.0 (0118d89)
on IonicJS Runner 2 (7981969b)
Using Shell executor…
Running on ip-10-2-14-88…
Cloning repository…
Cloning into ‘/home/gitlab-runner/builds/7981969b/0/project-1’…
Checking out 12724826 as master…
Skipping Git submodules setup
$ fetch-updates
Running after script…
$ clean-up
Cleaning up files…
Successful clean up
ERROR: Job failed: exit status 1


Ionic Pro, Ionic v1: Error EACCESS when packaging
#2

What is your local ionic info output?

The error output above is pretty much useless, no information at all what could be happening or really going wrong :confused:

Ionic Pro is a hosted and closed source service, so there is not much we, the community, can help you with. There is a FAQ and common/known issues at https://ionic.zendesk.com/hc/en-us/sections/115003254647-FAQ-Common-Issues You can - and should - contact support at http://ionicframework.com/support#support


#3

ionic info output below, I think the problem is with the fetch-updates line, I think it is timing out (a guess based on watching the logs as they happen, via their web admin ui). I opened a ticket with them, lets see how long till I get a response. Right now I don’t think Ionic PRO is ready for production deployment. Tomorrow I will start looking at CodePush. Now that they are getting rid of Push and Auth it leaves me only using Deploy.


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 

local packages:

@ionic/app-scripts : 2.1.4
Cordova Platforms  : android 6.2.3 ios 4.4.0
Ionic Framework    : ionic-angular 3.6.1

System:

ios-deploy : 1.9.1 
Node       : v8.4.0
npm        : 5.4.0 
OS         : macOS Sierra
Xcode      : Xcode 8.3.3 Build version 8E3004b

#4

Hello, I have the exact same issue.

Ionic Pro log

Running with gitlab-ci-multi-runner 9.1.0 (0118d89)
  on IonicJS Runner 2 (7981969b)
Using Shell executor...
Running on ip-10-2-152-170...
Cloning repository...
Cloning into '/home/gitlab-runner/builds/7981969b/0/project-1'...
Checking out aacf4eae as master...
Skipping Git submodules setup
$ fetch-updates
Running after script...
$ clean-up
Cleaning up files...
Successful clean up
ERROR: Job failed: exit status 1
TermsPrivacy Policy© 2017 Drifty Co.  v0.0.340
IonicDocsBlogHelp & SupportStatus

Ionic Info

cli packages: (D:\Projects\Ionic2\BlueBillingMeterReader\src\node_modules)

    @ionic/cli-utils  : 1.10.2
    ionic (Ionic CLI) : 3.10.3

global packages:

    Cordova CLI : not installed

local packages:

    @ionic/app-scripts : 1.3.7
    Cordova Platforms  : android 6.2.3
    Ionic Framework    : ionic-angular 3.2.1

System:

    Android SDK Tools : 26.0.2
    Node              : v6.10.3
    npm               : 3.10.10
    OS                : Windows 10

#5

All this is probably not responsible for the failure to build on Ionic Pro - you should contact support! - but:

That is old and should be upgraded, note the breaking changes in the changelog for 2.x

Is this true?


#6

Cordova CLI is installed

Later Edit:

After updating app-scripts it started building:

Running with gitlab-ci-multi-runner 9.1.0 (0118d89)
  on IonicJS Snapshot Runner (6c67ff43)
Using Shell executor...
Running on ip-10-2-14-88...
Cloning repository...
Cloning into '/home/gitlab-runner/builds/6c67ff43/0/project-1'...
Checking out 46c264cb as master...
Skipping Git submodules setup
$ fetch-updates
Checking for build process updates...
$ build-app
Fetching build dependencies...
Running: npm install

Build finished with success! Thank you @Sujan12


#7

Strange that ionic info doesn’t recognize this.

Awesome. Ionic Pro should work on that error message… but maybe it was also coincidence. Who knows.


#8

It seems that it was only a coincidence, I had to reset the branch I was working on and it works with an older app-scripts version. Ionic Pro might have had an issue with their build script


#9

I think it is a coincidence, just triggered a new build with no changes and it worked. This is worrying :frowning:


#10

What does support have to say about it?


#11

Sorry for the delay, here is what they said

Ok, I now have an update on this. It seems to have been caused by a brief outage. There was then another outage yesterday, due to an AWS issue.
We don’t have any reason to believe this will recur, but please let us know if you see any more problems.
Thanks!


#12

It’s working now ?

For me, always the same problem…

Running with gitlab-ci-multi-runner 9.1.0 (0118d89)
  on Prod Snapshot Builds 1 (c9648220)
Using Shell executor...
Running on ip-10-2-50-5...
Cloning repository...
Cloning into '/home/gitlab-runner/builds/c9648220/2/project-1'...
Checking out 9c6af159 as master...
Skipping Git submodules setup
$ fetch-updates
Checking for build process updates...
$ build-app
Fetching build dependencies...
Running after script...
$ clean-up
Cleaning up files...
Successful clean up
ERROR: Job failed: exit status 1

EDIT: Ok I retry with the same code and now the build worked… Very strange…


#14

I had a problem first:

Error: /usr/src/app/src/pages/news/news.ts has a @IonicPage decorator, but it does not have a corresponding “NgModule” at /usr/src/app/src/pages/news/news.module.ts Error: /usr/src/app/src/pages/news/news.ts has a decorator, but it does not have a corresponding “NgModule” at /usr/src/app/src/pages/news/news.module.ts at new BuildError (/usr/src/app/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28) at /usr/src/app/node_modules/@ionic/app-scripts/dist/deep-linking.js:57:u7121:

After removing @IonicPage from the TC file, there was a problem:

Running with gitlab-ci-multi-runner 9.1.0 (0118d89) on Prod Snapshot Builds 1 (c9648220) Using Shell executor… Running on ip-10-2-25-214… Cloning repository… Cloning into ‘/home/gitlab-runner/builds/c9648220/2/project-1’… Checking out a73e7bbc as ElprofApp… Skipping Git submodules setup $ fetch-updates Checking for build process updates… $ build-app Fetching build dependencies… Running after script… $ clean-up Cleaning up files… Successful clean up ERROR: Job failed: exit status 1

ionic info

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

@ionic/cli-utils  : 1.15.2
ionic (Ionic CLI) : 3.15.2

global packages:

cordova (Cordova CLI) : 7.1.0 

local packages:

@ionic/app-scripts : 3.0.0
Cordova Platforms  : android 6.3.0 ios 4.5.2
Ionic Framework    : ionic-angular 3.7.1

System:

ios-deploy : 1.9.2 
Node       : v6.11.3
npm        : 5.4.2 
OS         : OS X Yosemite

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro

tell me how to solve this problem?


#15

I have the same problem @pavelask, Did you solve it?


#16

@wellermiranda No, the problem remains …


#17

I am having the same problem.

cli packages: (C:\Users\rogeraleite\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 7.0.1

local packages:

@ionic/app-scripts : 3.1.5
Cordova Platforms  : none
Ionic Framework    : ionic-angular 3.9.2

System:

Node : v7.9.0
npm  : 5.9.0-next.0
OS   : Windows 10

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro