PhoneGap Build Troubleshooter

From Lianjapedia
Jump to: navigation, search

See Building Lianja Mobile business database Apps for PhoneGap Build instructions.

The PhoneGap Build Log will provide progress messages during the build process so you can see what is going on.

PhoneGap Build Service


Please check below for unexpected error messages and solutions.

If your message is not listed here, please submit a ticket with details of the error message so that it can be investigated by the Lianja Support Team and added to this troubleshooter.

Error index.html not found

Building PhoneGap App lianja_mobiledemo for Android Phone
Generating PhoneGap App files
Logging into the remote PhoneGap build service
[phonegap] logged in as username
[phonegap] you are logged in
Performing remote PhoneGap build
[phonegap] compressing the app...
[phonegap] uploading the app...
   [error] {"error":"Error index.html not found"}   [error] 
Remote PhoneGap build failed.

This message has been seen on systems running McAfee LiveSafe, Windows Defender and Microsoft Security Essentials.

If you see this message and are running a different AV product, please try the solution below and let us know whether this solves the problem for you or not.

Solution

Temporarily turn off Real-Time Scanning / Protection while you are doing the PhoneGap Build.

For example, for McAfee LiveSafe:

  • Right-click on the McAfee LiveSafe icon in the Windows taskbar.
  • Select 'Change settings' -> 'Real-Time Scanning'
  • Click 'Turn Off' and select the resume time, e.g. 15 minutes.
  • Real-Time Scanning can be turned back on as soon as your PhoneGap Build has completed.

Request path contains unescaped characters

Building PhoneGap App lianja_mobiledemo for Android Phone
Generating PhoneGap App files
Logging into the remote PhoneGap build service
_http_client.js:73    throw new TypeError('Request path contains unescaped characters.');
^TypeError: Request path contains unescaped characters.
at new ClientRequest (_http_client.js:73:11)
at Object.exports.request (http.js:49:10)
at TunnelingAgent.exports.request (https.js:136:15)
at TunnelingAgent.createSocket
(C:\Users\Username\AppData\Roaming\npm\node_modules\phonegap\
node_modules\phonegap-build\node_modules\
phonegap-build-api\node_modules\request\tunnel.js:116:25)
at TunnelingAgent.createSecureSocket [as createSocket]
(C:\Users\Username\AppData\Roaming\npm\node_modules\phonegap\
node_modules\phonegap-build\node_modules\
phonegap-build-api\node_modules\request\tunnel.js:188:41)
at TunnelingAgent.addRequest
(C:\Users\Username\AppData\Roaming\npm\node_modules\phonegap\
node_modules\phonegap-build\node_modules\
phonegap-build-api\node_modules\request\tunnel.js:80:8)
at new ClientRequest (_http_client.js:154:16)
at Object.exports.request (http.js:49:10)
at Object.exports.request (https.js:136:15)
at Request.start
(C:\Users\Username\AppData\Roaming\npm\node_modules\phonegap\
node_modules\phonegap-build\node_modules\
phonegap-build-api\node_modules\request\main.js:516:30)
Performing remote PhoneGap build
[phonegap] PhoneGap/Build Login
[phonegap] Sign up at [4mbuild.phonegap.com[24m[33m [warning] GitHub accounts are \
unsupported[32m  [prompt] enter username: 
Remote PhoneGap build complete.
Note that you may need to wait for your build to complete as the PhoneGap build service \
queues the build requests which may
 take a while when it is heavily loaded.
Click "VIEW APPS" to visit the PhoneGap Build Service website then download your App \
onto your mobile device using a QR Code Reader.

Solution

Check your installed PhoneGap version: open a Windows command window and issue the following command:

phonegap -v

If the version returned is 6.3.0, issue the following command to install a compatible version of PhoneGap:

npm install phonegap@6.2.9 -g

If a different version is returned, please let us know so that it can be investigated by the Lianja Support Team and added to this troubleshooter.

Error app XXXXXXXX not found

Where XXXXXXXX is a number:

Building PhoneGap App name-of-your-app for Android Phone
Generating PhoneGap App files into /opt/lianja/mobileapps/apps/
name-of-your-app/android/phone
Logging into the remote PhoneGap build service
[phonegap] logged in as name-of-your-user
[phonegap] you are logged in
Performing remote PhoneGap build
[phonegap] compressing the app...
[phonegap] uploading the app...
[error] {"error":"app XXXXXXXX not found"} [error] 
Remote PhoneGap build failed.

This error has been seen on Linux systems following a deletion/purge of Apps from the PhoneGap Build Service.

Solution

Delete the /opt/lianja/mobileapps/apps/name-of-your-app directory and then build again.

PhoneGap Build Service Temporary Issues

  • Click the SERVICE STATUS> button to open the PhoneGap Build Service Status page in your default browser.
  • Also see the Lianja Mobile App Development Forum for any PhoneGap Build Service temporary issues we are aware of and fixes or workarounds. These forum posts will be flagged with a '!' icon.