Build fail without error code

Rob and Vlads,

I had this issue back in November and found a workaround (Corona 3163 and jdk1.6_045).  Now i have to upgrade because other tools are no longer working (googleSignIn).  At the moment, I have upgraded to Corona 3221 and jdk1.8_161.  When i attempt to build, i can’t get past the dialog box for keystore/passwords.  I get the Warning dialog ‘The password for the alias is not valid or the Java JDK was not found’.  I have read the thread, so i looked at the keytool -list output and noticed the same warning for upgrade to pks12.  With that done and no warning, i am still unable to get past the keystore password.

Corona = 3221

JDK = 1.8_161 x86

SIGALG = SHA256withRSA

Any directions would be appreciated.

I uninstalled JDK=1.8_161 x86 and installed JDK=1.8_161 64-bit.  I can launch the build process, but the build fails at the end.

Corona = 3221

JDK = 1.8_161 64-bit

SIGALG = SHA256withRSA

02:18:15.231 WebServices: download request: https://ansca-build-temp.s3.amazonaws.com/5a829f1579a9a-built.zip?AWSAccessKeyId=AKIAIMSD7JG23DSGPRIA&Expires=1518509926&Signature=wykeZk%2BTMiKZK35vks02h7gcUco%3D 02:18:15.231 WebServices: to file: C:\Users\alber\AppData\Local\Temp\Corona Labs\CLtmpa06588\output.zip 02:18:15.497 WebServices: downloading 6033298 bytes 02:18:16.853 WebServices: Download of 6033298 bytes complete in 1 second (5.75MB/s) 02:18:24.590 Android build failed (1) after 63 seconds 02:18:24.590 WebServices: Call: user.logout 02:18:24.590 params: { 02:18:24.590 "hash" = "ced168d57fb8607370a92ac19469c6de4fa4b831613c4c1259165e23c750fb80" 02:18:24.590 "domain\_name" = "developer.anscamobile.com" 02:18:24.590 "domain\_time\_stamp" = "1518509905" 02:18:24.590 "nonce" = "JseAwEqBvd" 02:18:24.590 "sessid" = "6eefa976c839f7cc51608fa79c02a4eb" 02:18:24.590 } 02:18:25.079 WebServices: Response received in 1 seconds: \<?xml version="1.0"?\> 02:18:25.079 \<methodCall\>\<methodName\>user.logout\</methodName\> 02:18:25.079 \<params\>\<param\>\<value\>\<boolean\>1\</boolean\>\</value\>\</param\> 02:18:25.079 \</params\>\</methodCall\>

Can you try to update to the 64 bit JDK?

Rob

Be glad to try anything.  I uninstalled previous jdk, installed JDK9.0.4.

I used the keytool to upgrade the keystore to PKCS12 (release_v9.keystore)

From the build dialog, after entering password for release key, and for alias, i get a dialog box with the password for that alias is not valid, or the Java JDK was not found.

I attempt to build with the older keystore (release.keystore). Corona attempts to build and fails.  Here is the console output:

16:08:22.830 Testing credentials for 'C:\Users\alber\keystores\release\_v9.keystore': 16:08:23.518 Picked up JAVA\_TOOL\_OPTIONS: -Duser.language=en 16:08:23.518 jarsigner: key associated with meadowbrook not a private key 16:12:03.526 Testing credentials for 'C:\Users\alber\keystores\release.keystore': 16:12:04.521 Picked up JAVA\_TOOL\_OPTIONS: -Duser.language=en 16:12:04.521 jar signed. 16:12:04.521 16:12:04.521 Warning: 16:12:04.521 The signer's certificate is self-signed. 16:12:04.537 WebServices: Call: system.connect (no params) 16:12:05.222 WebServices: Response received in 1 seconds: \<?xml version="1.0"?\> 16:12:05.222 \<methodCall\>\<methodName\>system.connect\</methodName\> 16:12:05.222 \<params\>\<param\>\<value\>\<struct\>\<member\>\<name\>sessid\</name\>\<value\>4179dd4ce5881ee0677c20f3e0e142ea\</value\>\</member\>\<member\>\<name\>user\</name\>\<value\>\<struct\>\<member\>\<name\>cache\</name\>\<value\>\<i4\>0\</i4\>\</value\>\</member\>\<member\>\<name\>hostname\</name\>\<value\>88.99.238.58\</value\>\</member\>\<member\>\<name\>roles\</name\>\<value\>\<struct\>\<member\>\<name\>1\</name\>\<value\>anonymous user\</value\>\</member\>\</struct\>\</value\> 16:12:05.222 \</member\>\<member\>\<name\>session\</name\>\<value\>\<string/\>\</value\>\</member\>\<member\>\<name\>uid\</name\>\<value\>\<i4\>0\</i4\>\</value\>\</member\>\<member\>\<name\>user\_role\_tokens\</name\>\<value\>Corona SDK Starter\</value\>\</member\>\<member\>\<name\>user\_role\_tokens\_id\</name\>\<value\>1\</value\>\</member\>\</struct\>\</value\> 16:12:05.222 \</member\>\</struct\>\</value\> 16:12:05.222 \</param\> 16:12:05.222 \</params\>\</methodCall\> 16:12:05.222 WebServices: Call: corona.getTime (no params) 16:12:05.723 WebServices: Response received in 0 seconds: \<?xml version="1.0"?\> 16:12:05.723 \<methodCall\>\<methodName\>corona.getTime\</methodName\> 16:12:05.723 \<params\>\<param\>\<value\>\<struct\>\<member\>\<name\>timestamp\</name\>\<value\>1518559925\</value\>\</member\>\</struct\>\</value\> 16:12:05.723 \</param\> 16:12:05.723 \</params\>\</methodCall\> 16:12:05.723 WebServices: Call: user.login2 16:12:05.723 params: { 16:12:05.723 "hash" = "591804ede843aa015c642c86084070b47e1b983126b49a560863cdb03c6e6289" 16:12:05.723 "domain\_name" = "developer.anscamobile.com" 16:12:05.723 "domain\_time\_stamp" = "1518559925" 16:12:05.723 "nonce" = "yTprNrkDxM" 16:12:05.723 "sessid" = "4179dd4ce5881ee0677c20f3e0e142ea" 16:12:05.723 "username" = "albert.l.garrett@gmail.com" 16:12:05.723 "encryptedPassword" = "6cda2debdecbd0ef51858470305e34553b91745cd9f5e36ab81dcf21c2110eb7c7254fd3ef1d69cee714e92d553ca6e8078c50ed6e87645a54e91a0e4fe2c7c3a54437e6b6c4aef5d2f895117356a11f3ca31173da46821c17121ddd880691823d5eefd2c6935ddba8e5e69b9ee5bd0e2e95ebad200874e63f96c8940d8939480b68bc657dff8776d08f02095bdd1debbf2476cb03e514aa948f9d53cbbfe74b9f3a0bb75b0df36e2abf642ac02b8e874f1fd68f280f0f4257b210563e170602b46796e6e9ec47ba79ee0893660f80eef6cc28cf05c0dd6bf5915ab968abedf84d04872344571bc1e6ddbe686823655dee6a357e23b9406132145da25cf62a0e" 16:12:05.723 "timestamp" = "5a7b9300" 16:12:05.723 } 16:12:06.361 WebServices: Response received in 1 seconds: \<2821 bytes of data elided\> 16:12:06.361 Using custom build id from app bundle: 00000 (AppSettings.lua) 16:12:06.361 16:12:06.361 Using custom Build Id 00000 16:12:06.387 Prepackage: Compiling Lua ... 16:12:06.402 Excluding specified files from build: 16:12:06.402 excluding: assets/iOS Assets 16:12:06.402 excluding: archive/\*.\* 16:12:06.402 excluding: stores/\*.\* 16:12:06.402 excluding: captures/\*.png 16:12:06.402 excluding: captures/\*.jpg 16:12:06.402 excluding: icons/\*.xcf 16:12:06.402 excluding: build/\*.\* 16:12:06.402 excluding: docs/\*.xlsx 16:12:06.402 excluding: docs/\*.doc 16:12:06.402 excluding: docs/\*.pdf 16:12:06.402 excluding: assets/\*.xcf 16:12:06.402 excluding: assets/\*.svg 16:12:06.720 Prepackage: Building server data file 16:12:07.404 DeviceBuildData: {"isLaunchPadActive":false,"targetCertType":"distribution","targetPlatformVersion":140300,"debugBuildProcess":1,"targetDevice":0,"splashScreen":{"enable":false},"dailyBuildRevision":3221,"buildBucket":"ansca-templates","clientPlatform":"Win","targetAppStore":"google","targetPlatform":1,"clientDeviceId":"ffd44295a99f66ee40b82244bb5d5d61","plugins":{"plugin.twitter":{"publisherId":"com.jasonschroeder"},"plugin.facebook.v4a":{"publisherId":"com.coronalabs"},"plugin.OneSignal":{"publisherId":"com.onesignal"},"plugin.firebase":{"publisherId":"tech.scotth"},"plugin.googleSignIn":{"publisherId":"tech.scotth"}},"dailyBuildYear":2018,"clientProductId":"basic","appName":"MeadowBrook"} 16:12:07.404 WebServices: Call: corona.build.7 16:12:07.404 params: { 16:12:07.404 "hash" = "cbf8853f305d74d886a47c1728bc1418a05db5cc45058df87f50d4aebbb3390a" 16:12:07.404 "domain\_name" = "developer.anscamobile.com" 16:12:07.404 "domain\_time\_stamp" = "1518559927" 16:12:07.404 "nonce" = "yxmUbXtXhO" 16:12:07.404 "sessid" = "49c4d270fd731b97eb1b1f11b0e34d10" 16:12:07.404 "deviceId" = "ffd44295a99f66ee40b82244bb5d5d61" 16:12:07.404 "timestamp" = "5a7b9300" 16:12:07.404 "appname" = "MeadowBrook" 16:12:07.404 "file" = \<237080 bytes of data elided\> 16:12:07.404 "device" = 0 16:12:07.404 "platform" = 1 16:12:07.404 "version" = 140300 16:12:07.404 "appPackage" = "com.meadowbrook.theapp" 16:12:07.404 "customBuildId" = "00000" 16:12:07.404 "productId" = "basic" 16:12:07.404 "clientPlatform" = "Win" 16:12:07.404 "certType" = "distribution" 16:12:07.404 "appVersion" = "1.119" 16:12:07.404 "launchPad" = 0 16:12:07.404 "json" = "{"isLaunchPadActive":false,"targetCertType":"distribution","targetPlatformVersion":140300,"debugBuildProcess":1,"targetDevice":0,"splashScreen":{"enable":false},"dailyBuildRevision":3221,"buildBucket":"ansca-templates","clientPlatform":"Win","targetAppStore":"google","targetPlatform":1,"clientDeviceId":"ffd44295a99f66ee40b82244bb5d5d61","plugins":{"plugin.twitter":{"publisherId":"com.jasonschroeder"},"plugin.facebook.v4a":{"publisherId":"com.coronalabs"},"plugin.OneSignal":{"publisherId":"com.onesignal"},"plugin.firebase":{"publisherId":"tech.scotth"},"plugin.googleSignIn":{"publisherId":"tech.scotth"}},"dailyBuildYear":2018,"clientProductId":"basic","appName":"MeadowBrook"}" 16:12:07.404 "downloadResult" = 1 16:12:07.404 } 16:12:57.350 WebServices: Response received in 50 seconds: \<?xml version="1.0"?\> 16:12:57.350 \<methodCall\>\<methodName\>corona.build.7\</methodName\> 16:12:57.350 \<params\>\<param\>\<value\>5a8362b887005\</value\>\</param\> 16:12:57.350 \</params\>\</methodCall\> 16:12:57.350 BuildID: 5a8362b887005 16:12:57.350 WebServices: Call: corona.getUrl 16:12:57.350 params: { 16:12:57.350 "hash" = "3b2161a4a9f85c5a859595415cfa8523ac8f30e0e88b9bbbc39d43321c45a198" 16:12:57.350 "domain\_name" = "developer.anscamobile.com" 16:12:57.350 "domain\_time\_stamp" = "1518559977" 16:12:57.350 "nonce" = "SMJxPHUOBT" 16:12:57.350 "sessid" = "49c4d270fd731b97eb1b1f11b0e34d10" 16:12:57.350 "buildsessionid" = "5a8362b887005" 16:12:57.350 } 16:12:57.846 WebServices: Response received in 0 seconds: \<?xml version="1.0"?\> 16:12:57.846 \<methodCall\>\<methodName\>corona.getUrl\</methodName\> 16:12:57.846 \<params\>\<param\>\<value\>https://ansca-build-temp.s3.amazonaws.com/5a8362b887005-built.zip?AWSAccessKeyId=AKIAIMSD7JG23DSGPRIA&amp;Expires=1518560007&amp;Signature=XOlYjcEI%2FJWHhJajIyOibjFzoNQ%3D\</value\>\</param\> 16:12:57.846 \</params\>\</methodCall\> 16:12:57.846 WebServices: download request: https://ansca-build-temp.s3.amazonaws.com/5a8362b887005-built.zip?AWSAccessKeyId=AKIAIMSD7JG23DSGPRIA&Expires=1518560007&Signature=XOlYjcEI%2FJWHhJajIyOibjFzoNQ%3D 16:12:57.846 WebServices: to file: C:\Users\alber\AppData\Local\Temp\Corona Labs\CLtmpa15784\output.zip 16:12:58.081 WebServices: downloading 6033295 bytes 16:12:59.646 WebServices: Download of 6033295 bytes complete in 2 seconds (2.88MB/s) 16:13:08.659 Android build failed (1) after 62 seconds 16:13:08.659 WebServices: Call: user.logout 16:13:08.659 params: { 16:13:08.659 "hash" = "ca4c362360067b7e8519860e3006db3d01aa0b25835bf612dda3c65c03411e7a" 16:13:08.659 "domain\_name" = "developer.anscamobile.com" 16:13:08.659 "domain\_time\_stamp" = "1518559988" 16:13:08.659 "nonce" = "HifjCsysxF" 16:13:08.659 "sessid" = "49c4d270fd731b97eb1b1f11b0e34d10" 16:13:08.659 } 16:13:09.133 WebServices: Response received in 1 seconds: \<?xml version="1.0"?\> 16:13:09.133 \<methodCall\>\<methodName\>user.logout\</methodName\> 16:13:09.133 \<params\>\<param\>\<value\>\<boolean\>1\</boolean\>\</value\>\</param\> 16:13:09.133 \</params\>\</methodCall\> &nbsp;

Hey, [member=‘alg’]. Did you try to build any sample with debug keystore? Can you build your project with debug keystore?

It doesn’t seem like you have issue with keystore, or at least, I don’t see any related issues in debug output… Also, are you using Windows or macOS?

Issue you have seems to differ quite a bit, also, I don’t see relevant output in the console. if you’re using Windows, try

reg ADD “HKEY_CURRENT_USER\Software\Ansca Corona\Corona Simulator\Preferences” /f /v debugBuildProcess /d 3

On macOS:

defaults write com.coronalabs.Corona_Simulator debugBuildProcess -integer 3

Vlads,

Thanks for the help…

Debug build of my project is successful.

I am using Windows 10 Pro.

With debugBuildProcess=3, corona crashes while building…

17:53:08.439 Testing credentials for 'C:\Users\alber\keystores\release.keystore': 17:53:09.450 Picked up JAVA\_TOOL\_OPTIONS: -Duser.language=en 17:53:09.450 jar signed. 17:53:09.450 17:53:09.450 Warning: 17:53:09.450 The signer's certificate is self-signed. 17:53:09.450 WebServices: Call: system.connect (no params) 17:53:09.900 WebServices: Response received in 0 seconds: \<?xml version="1.0"?\> 17:53:09.900 \<methodCall\>\<methodName\>system.connect\</methodName\> 17:53:09.900 \<params\>\<param\>\<value\>\<struct\>\<member\>\<name\>sessid\</name\>\<value\>fb568f305a36b0856d9248b32bd9bf24\</value\>\</member\>\<member\>\<name\>user\</name\>\<value\>\<struct\>\<member\>\<name\>cache\</name\>\<value\>\<i4\>0\</i4\>\</value\>\</member\>\<member\>\<name\>hostname\</name\>\<value\>88.99.238.58\</value\>\</member\>\<member\>\<name\>roles\</name\>\<value\>\<struct\>\<member\>\<name\>1\</name\>\<value\>anonymous user\</value\>\</member\>\</struct\>\</value\> 17:53:09.900 \</member\>\<member\>\<name\>session\</name\>\<value\>\<string/\>\</value\>\</member\>\<member\>\<name\>uid\</name\>\<value\>\<i4\>0\</i4\>\</value\>\</member\>\<member\>\<name\>user\_role\_tokens\</name\>\<value\>Corona SDK Starter\</value\>\</member\>\<member\>\<name\>user\_role\_tokens\_id\</name\>\<value\>1\</value\>\</member\>\</struct\>\</value\> 17:53:09.900 \</member\>\</struct\>\</value\> 17:53:09.900 \</param\> 17:53:09.900 \</params\>\</methodCall\> 17:53:09.900 WebServices: Call: corona.getTime (no params) 17:53:10.353 WebServices: Response received in 1 seconds: \<?xml version="1.0"?\> 17:53:10.353 \<methodCall\>\<methodName\>corona.getTime\</methodName\> 17:53:10.353 \<params\>\<param\>\<value\>\<struct\>\<member\>\<name\>timestamp\</name\>\<value\>1518565990\</value\>\</member\>\</struct\>\</value\> 17:53:10.353 \</param\> 17:53:10.353 \</params\>\</methodCall\> 17:53:10.353 WebServices: Call: user.login2 17:53:10.353 params: { 17:53:10.353 "hash" = "3cb588aea37a2e40e3ef21ca2267d1fcd6e76a58eaa7d89cfcf5d951a6a5a37d" 17:53:10.353 "domain\_name" = "developer.anscamobile.com" 17:53:10.353 "domain\_time\_stamp" = "1518565990" 17:53:10.353 "nonce" = "PExNPsdlag" 17:53:10.353 "sessid" = "fb568f305a36b0856d9248b32bd9bf24" 17:53:10.353 "username" = "albert.l.garrett@gmail.com" 17:53:10.353 "encryptedPassword" = "6cda2debdecbd0ef51858470305e34553b91745cd9f5e36ab81dcf21c2110eb7c7254fd3ef1d69cee714e92d553ca6e8078c50ed6e87645a54e91a0e4fe2c7c3a54437e6b6c4aef5d2f895117356a11f3ca31173da46821c17121ddd880691823d5eefd2c6935ddba8e5e69b9ee5bd0e2e95ebad200874e63f96c8940d8939480b68bc657dff8776d08f02095bdd1debbf2476cb03e514aa948f9d53cbbfe74b9f3a0bb75b0df36e2abf642ac02b8e874f1fd68f280f0f4257b210563e170602b46796e6e9ec47ba79ee0893660f80eef6cc28cf05c0dd6bf5915ab968abedf84d04872344571bc1e6ddbe686823655dee6a357e23b9406132145da25cf62a0e" 17:53:10.353 "timestamp" = "5a7b9300" 17:53:10.353 } 17:53:10.959 WebServices: Response received in 0 seconds: \<2821 bytes of data elided\> 17:53:10.959 Using custom build id from app bundle: 00000 (AppSettings.lua) 17:53:10.959 17:53:10.959 Using custom Build Id 00000 17:53:10.959 Prepackage: Compiling Lua ... 17:53:10.974 Excluding specified files from build: 17:53:10.974 excluding: assets/iOS Assets 17:53:10.974 excluding: archive/\*.\* 17:53:10.974 excluding: stores/\*.\* 17:53:10.974 excluding: captures/\*.png 17:53:10.974 excluding: captures/\*.jpg 17:53:10.974 excluding: icons/\*.xcf 17:53:10.974 excluding: build/\*.\* 17:53:10.974 excluding: docs/\*.xlsx 17:53:10.974 excluding: docs/\*.doc 17:53:10.974 excluding: docs/\*.pdf 17:53:10.974 excluding: assets/\*.xcf 17:53:10.974 excluding: assets/\*.svg 17:53:11.339 Prepackage: Building server data file 17:53:11.339 Prepackage: running: "C:\Program Files\Java\jdk-9.0.4\bin\java.exe" -Djava.class.path="C:\Program Files (x86)\Corona Labs\Corona\Resources/ant.jar;C:\Program Files (x86)\Corona Labs\Corona\Resources/ant-launcher.jar;C:\Program Files (x86)\Corona Labs\Corona\Resources/AntLiveManifest.jar" org.apache.tools.ant.launch.Launcher -v -DTEMP\_DIR="C:\Users\alber\AppData\Local\Temp\Corona Labs\CLtmpa16848" -DSRC\_DIR="C:\Users\alber\OneDrive\Developments\meadowbrook\mobile" -DBUNDLE\_DIR="C:\Program Files (x86)\Corona Labs\Corona\Resources" -DLIVE\_BUILD=NO -DLIVE\_BUILD\_MANIFEST\_FILE= -f "C:\Program Files (x86)\Corona Labs\Corona\Resources"/build.xml build-input-zip 17:53:18.523 The stdin connection has closed.

OK, Friends.  Here where I landed this time.

  1. Corona 3221

  2. JDK-9.0.4

  3. Upgraded keystore

My issue yesterday (after upgrading to JDK-9.0.4) was that the upgraded keystore with passwords didn’t work and i got the ‘your password is wrong or can’t find JDK’ message.  I assumed i was having JDK issues still… but i wasn’t…

Apparently when the keytool is used to upgrade the keystore, it unifies the password of all keystores/aliases within a file (found here https://forums.coronalabs.com/topic/71572-build-error/?hl=keystore#entry374478).  When i discovered that, and used the same password for the alias as for the keystore, everything worked.  Yay!!

NOTE 1:  When i used the old keystore, passwords worked, JDK found, build launched, but the build failed with error 1 and no other information.

NOTE 2:  I have no idea why the system crashes if i set the regedit debugBuildProcess = 3.

Vlads, Rob, thanks for taking the time to respond and offer suggestions… it is appreciated.