Build error 5

Hi

I am using 2019.3474

I have tried for last 2 days and I am getting the same build error message. I have also tried by repairing the installation and the problem still persists. I built corona apps before using the same pc.

Using custom Build Id 00000 Excluding specified files from build:     excluding: Icon.png    excluding: Icon-Small-\*.png    excluding: Icon\*@2x.png BuildID: 5cb70d371e96a WebServices: downloading build ERROR: download failed to open URL: The operation timed out ERROR: failed to download build: http://builds.coronalabs.com/5cb70d371e96a-built.zip?AWSAccessKeyId=ACCESS KEY VALUE &Expires=1555500479&Signature=SIGNATURE VALUE ERROR: download failed to open URL: The operation timed out Android build failed (5) after 142 seconds

Is anyone facing the same issue or know what could be the issue?

Thanks in advance

I am using 3470 and I built yesterday multiple times without any issues. Do you have a firewall somewhere or anything else that might be blocking the coronalabs url?

@agramonte

I recently changed place. I will try in a different network connection.
 

I am also getting the same error. I did not get the error 2-3 days back. What should I do?

I am using my usual setting.

Post your build.settings

Post your entire console log from a build that is failing

NOTE: I still didn’t check whether my build is successful in another network connection. I will try out at the end of this month.

This is my current settings and response i get.
build.settings

-- -- For more information on build.settings see the Corona SDK Build Guide at: -- https://docs.coronalabs.com/guide/distribution/buildSettings -- settings = { orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "portrait", supported = { "portrait", }, }, excludeFiles = { -- Include only the necessary icon files on each platform iphone = { "Icon-\*dpi.png", }, android = { "Icon.png", "Icon-Small-\*.png", "Icon\*@2x.png", }, },    -- -- Android Section -- android = { usesPermissions = { "android.permission.INTERNET",       "android.permission.ACCESS\_COARSE\_LOCATION",       "android.permission.ACCESS\_NETWORK\_STATE",       "android.permission.ACCESS\_FINE\_LOCATION",       "com.android.vending.CHECK\_LICENSE",       "android.permission.VIBRATE",       "android.permission.WRITE\_EXTERNAL\_STORAGE",       "android.permission.GET\_ACCOUNTS",       "com.android.vending.BILLING",      },          googlePlayGamesAppId = "VALUE HERE",   },       plugins =       {                  ["CoronaProvider.native.popup.social"] =         {             publisherId = "com.coronalabs"         },         ["plugin.gpgs.v2"] =          {             publisherId = "com.coronalabs",             supportedPlatforms = { ["android"] = true }         },         ['plugin.toast'] =          {         publisherId = 'com.spiralcodestudio'         },         ["plugin.google.iap.v3"] =         {             publisherId = "com.coronalabs"         },                  ['plugin.appodeal.beta.base'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.beta.AdColony'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.beta.AppLovin'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.beta.Chartboost'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.beta.Flurry'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.beta.GoogleAdMob'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.beta.InMobi'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.beta.IronSource'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.beta.Mobvista'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.beta.MyTarget'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.beta.Ogury'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.beta.StartApp'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.beta.TwitterMoPub'] = { publisherId = 'com.coronalabs' },       } }       

Error output 

Testing credentials for 'E:\xto.keystore':  Picked up JAVA\_TOOL\_OPTIONS: -Duser.language=en jar signed. Warning:  The signer's certificate is self-signed. Using custom build id from app bundle: 00000 (AppSettings.lua) Using custom Build Id 00000 Excluding specified files from build:     excluding: Icon.png    excluding: Icon-Small-\*.png    excluding: Icon\*@2x.png BuildID: 5cb970d42a07e WebServices: downloading build ERROR: download failed to open URL: The operation timed out ERROR: failed to download build: http://builds.coronalabs.com/5cb970d42a07e-built.zip?AWSAccessKeyId=VALUE HERE&Expires=1555657050&Signature=VALUE HERE ERROR: download failed to open URL: The operation timed out Android build failed (5) after 140 seconds

I’m checking with the team to see if they are aware of any issues. I just did builds for Android and iOS and didn’t see any errors, so maybe it’s a connectivity problem.

You can always try building sample apps and see if that works, comment out various plugins to see if one of them may be the particular problem.

Rob

Hi

@Rob
Thank you for the suggestion. 

I have rechecked with building the included sample app for animation and the build was fine. I didn’t get any errors so I found that network isn’t the issue. 

I have tried commenting out the beta.appodeal plugin and the build was working. I think there is some issue with the appodeal plugin build. I have tried including only the 3 beta base plugins but still I was getting the same build error 5 and I have also tried only the release 3 base plugins and still was getting the error.

['plugin.appodeal.beta.base'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.GoogleAdMob'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.StartApp'] = { publisherId = 'com.coronalabs' },

If you could please check what might be the issue regarding the appodeal plugin

Just built my app for Android and iOS using .3470 using my usual appodeal configuration and it worked. Can you try removing StartApp?

– Appodeal

        [‘plugin.appodeal.beta.base’] = { 

            publisherId = ‘com.coronalabs’,

            supportedPlatforms = { iphone=true, android=true }

        },

        [‘plugin.appodeal.beta.FacebookAudience’] = { 

            publisherId = ‘com.coronalabs’,

            supportedPlatforms = { iphone=true, android=true }

        },

        [‘plugin.appodeal.beta.AmazonAds’] = { 

            publisherId = ‘com.coronalabs’,

            supportedPlatforms = { iphone=true, android=true }

        },

        [‘plugin.appodeal.beta.GoogleAdMob’] = { 

            publisherId = ‘com.coronalabs’,

            supportedPlatforms = { iphone=true, android=true }

        }

“iPhone Developer: Adrian Gomez (xxxx)”

Apr 20 09:43:20.811 iOS build succeeded in 113 seconds

Apr 20 09:37:41.660 Using java version “1.8.0_151”

                    Java™ SE Runtime Environment (build 1.8.0_151-b12)

                    Java HotSpot™ 64-Bit Server VM (build 25.151-b12, mixed mode)

Apr 20 09:37:42.492 Building Android app for xxxxx with 2019.3470

Apr 20 09:37:43.924 Using custom build id from app bundle: 00000 (AppSettings.lua)

Apr 20 09:37:45.282 BUILD SUCCESSFUL

                    Total time: 0 seconds

Apr 20 09:39:05.818 Excluding specified files from build: 

                       excluding: LaunchScreen.storyboardc

                       excluding: Icon.png

                       excluding: Icon-*dpi.png

                       excluding: Images.xcassets

                    BuildID: 5cbb20ba1f850

Apr 20 09:39:13.006      [echo]  “creating unsigned.apk” 

Apr 20 09:39:13.007 

Apr 20 09:39:16.567 BUILD SUCCESSFUL

                    Total time: 6 seconds

Apr 20 09:39:16.660 Android build succeeded in 92 seconds

@agramonte

Thank you for the suggestion.

I have tried checking individual plugins and found that only this following combination works but sometimes the build would fail, but by restarting the simulator the build was again successful:

NOTE: sometimes mytarget plugin would give a successful build.

Working

['plugin.appodeal.beta.base'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.GoogleAdMob'] = { publisherId = 'com.coronalabs' },

BUT if I included any of the following plugins I get the build error:

Not Working

      --  ['plugin.appodeal.beta.AdColony'] = { publisherId = 'com.coronalabs' },       --  ['plugin.appodeal.beta.AppLovin'] = { publisherId = 'com.coronalabs' },       --  ['plugin.appodeal.beta.AmazonAds'] = { publisherId = 'com.coronalabs' },       --  ['plugin.appodeal.beta.Chartboost'] = { publisherId = 'com.coronalabs' },        -- ['plugin.appodeal.beta.Flurry'] = { publisherId = 'com.coronalabs' },        -- ['plugin.appodeal.beta.InMobi'] = { publisherId = 'com.coronalabs' },        -- ['plugin.appodeal.beta.IronSource'] = { publisherId = 'com.coronalabs' },        -- ['plugin.appodeal.beta.Mobvista'] = { publisherId = 'com.coronalabs' },         --['plugin.appodeal.beta.MyTarget'] = { publisherId = 'com.coronalabs' },        -- ['plugin.appodeal.beta.Ogury'] = { publisherId = 'com.coronalabs' },        -- ['plugin.appodeal.beta.StartApp'] = { publisherId = 'com.coronalabs' },        -- ['plugin.appodeal.beta.TwitterMoPub'] = { publisherId = 'com.coronalabs' },

Is there a reason you’re using the beta version?

@Rob

Yes, I am using the beta version for the hasUserConsent parameter in appodeal.init(), for the GDPR compliance.

Hi

Is there any update on this issue? I have tried rebuilding in 2019.3476 and still getting the same error. Only if I include these plugin then there aren’t any issue. But I if I include other parts of the appodeal beta plugin, the error persists. 

['plugin.appodeal.beta.base'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.GoogleAdMob'] = { publisherId = 'com.coronalabs' },

Please, try again: I just tried to build with all the Appodeal plugins, it worked fine. We had build server issues before

Thank you for looking into this issue while being busy with the major upgrade of corona build system.

Now the build works fine with the following modules: 

['plugin.appodeal.beta.base'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.Chartboost'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.GoogleAdMob'] = { publisherId = 'com.coronalabs' },

But if I include any of the following modules I get the same build error 5:

['plugin.appodeal.beta.AdColony'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.AmazonAds'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.Flurry'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.InMobi'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.IronSource'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.MyTarget'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.Ogury'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.beta.StartApp'] = { publisherId = 'com.coronalabs' },

Update

I am getting build error 5 for even the sample codes with debug keystore. I am using jdk 12.0.1

Here is the message I get

Copyright (C) 2009-2019  C o r o n a   L a b s   I n c . Version: 3.0.0 Build: 2019.3476 Platform: GenericAndroidDevice / x64 / 10.0 / Intel(R) UHD Graphics 630 / 4.5.0 - Build 25.20.100.6446 / 2019.3476 / en\_US | US | en\_US | en Loading project from:   C:\Program Files (x86)\Corona Labs\Corona\Sample Code\Physics\Bridge Project sandbox folder: C:\Users\er\AppData\Local\Corona Labs\Corona Simulator\Sandbox\bridge-8B5B7E0F39DDDA034080FD0DF6A81F5A\Documents Testing credentials for 'D:\erw\Security\debug.keystore':  Picked up JAVA\_TOOL\_OPTIONS: -Duser.language=en jar signed. Warning:  The signer's certificate is self-signed. The timestamp will expire on 2028-01-18. Using custom build id from app bundle: 00000 (AppSettings.lua) Using custom Build Id 00000 BuildID: 5ccf0719bf499 WebServices: downloading build ERROR: download failed to open URL: The operation timed out ERROR: failed to download build: http://builds.coronalabs.com/5ccf0719bf499-built.zip?AWSAccessKeyId=AKIAIMSD7JG23DSGPRIA&Expires=1557071691&Signature=qpHM9zDrBra3rEn1iyqT5%2BqL8Xk%3D ERROR: download failed to open URL: The operation timed out Android build failed (5) after 53 seconds

Update
 

Builds are working fine now. 

But the appodeal plugin still remains an issue. Now if I inlcude chartboost plugin the build fails. Now with these plugins build works, I have tested them around 5 times and the build were successful.

 ['plugin.appodeal.beta.base'] = { publisherId = 'com.coronalabs' },  ['plugin.appodeal.beta.AdColony'] = { publisherId = 'com.coronalabs' },  ['plugin.appodeal.beta.GoogleAdMob'] = { publisherId = 'com.coronalabs' },

Only when I include the following plugins the build fails:

        ['plugin.appodeal.beta.AmazonAds'] = { publisherId = 'com.coronalabs' },        ['plugin.appodeal.beta.Chartboost'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.beta.FacebookAudience'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.beta.Flurry'] = { publisherId = 'com.coronalabs' },        ['plugin.appodeal.beta.InMobi'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.beta.IronSource'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.beta.MyTarget'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.beta.Ogury'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.beta.StartApp'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.beta.TwitterMoPub'] = { publisherId = 'com.coronalabs' },         

I have tested including one plugin at a time to see which one causes the build to fail.

Can you run this command from the command line and try your build again? You will need to quit and relaunch the simulator. This may provide more information in the console log from the build.

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

Rob

If also send the project I can try and build it. I have built a couple projects the last few days and don’t have this problem. Actually other than that period of time where the builds were broken for a few days, I have never had this issue.

@agramonte

Thank you very much for willing to help me. I will build a test project with all the same build settings and message you personally with the project.