A device build error occurred on the server

Hello everyone,

I suddenly got hit by an error and after waiting for more than 15 minutes and trying again and again to build, I am putting it here.

It’s very much general and very well known error which says "A device build error occurred on the server. "

I am working on Windows and following the version and build:

Version: 3.0.0

Build: 2018.3237

I am putting here what my console says:

"

Testing credentials for ‘C:\Program Files (x86)\Corona Labs\Corona SDK\Resources\debug.keystore’: 

Picked up JAVA_TOOL_OPTIONS: -Duser.language=en

jar 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: kCoronaBuild [A device build error occurred on the server. 

Error: 

BuildID: 5aafeaaf26c99

ERROR: An error occurred during build (corona.build.7). The server returned the following message:


A device build error occurred on the server. 

Error: 

BuildID: 5aafeaaf26c99


Android build failed (5) after 9 seconds

".

Thanks for looking into it.

Regards,

 Swanand Thakur

*UPDATE*  I think you’ve got a problem with your build.settings file.

Did you try, and were you able to build any of the sample projects that come with Corona?
 
This is a quick way to test if you there may be something in your build.settings that is goofing up the build.
 
i.e. If the test apps build but yours won’t try trimming down your build.settings file and then slowly building it back up till you find the cause of the build failure.
 
If on the other hand, you cannot build the supplied examples too, then you’ve probably got a system problem or a connectivity issue or there is a build server problem (likely one of the prior).

For the record, I am using 2018.3234  and just built my current game for Android w/o any issues. So I think the build servers are OK.
 
 
PS - Maybe I missed it, but are you building for Android or iOS?  As I read the error message, it seems to imply Android, but I want to be sure.

PPS - I did miss it. Android build as last part of your error message makes it clear.

I am also having the same issue. Yesterday the build was fine. There were no changes made in the build settings of mine. 
But the samples project that came with corona were building fine. 

Build id: 2018.3237

The following message shows up with Build error#5 :

BuildID: kCoronaBuild [A device build error occurred on the server.  Error:  BuildID: 5ab00a549fbe4 ERROR: An error occurred during build (corona.build.7). The server returned the following message: --- A device build error occurred on the server.  Error:  BuildID: 5ab00a549fbe4 --- Android build failed (5) after 22 seconds

Just for clarity here is the build.settings file of mine: 
 

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",      },          googlePlayGamesAppId = "App id removed here",          supportsScreens =         {             smallScreens  = true,             normalScreens = true,             largeScreens  = true,             xlargeScreens = false,         },        },       plugins =       {                  ["CoronaProvider.native.popup.social"] =         {             publisherId = "com.coronalabs"         },         ["plugin.gpgs"] =         {             publisherId = "com.coronalabs",             supportedPlatforms = {android = true}         },         ["plugin.OneSignal"] =         {         publisherId = "com.onesignal",         },         ['plugin.toast'] =          {         publisherId = 'com.spiralcodestudio'         },                  -- Base         ['plugin.appodeal.base'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.AmazonAds'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.GoogleAdMob'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.TwitterMoPub'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.StartApp'] = { publisherId = 'com.coronalabs' },         -- Interstitial         ['plugin.appodeal.AdColony'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.AppLovin'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.Chartboost'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.FacebookAudience'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.Flurry'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.InMobi'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.IronSource'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.Mobvista'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.MyTarget'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.StartApp'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.MillenialMedia'] = { publisherId = 'com.coronalabs' },         ['plugin.appodeal.Ogury'] = { publisherId = 'com.coronalabs' },       } }       

@Sheekore,

That was a bit unclear.  

Are you able to build any sample projects now or not?

If you can, but your project still doesn’t build , follow my advice and comment out the bulk of your build.settings file and slowly add parts back in till you find out what is causing the build issue.

My guess is either a typo in your build.settings file OR one of the plugins is not building in OR some kind of conflict.

Assuming the sample projects are building, this is self-solvable or at least self-identifiable.  Once you know the trouble lines you can post a specific request about them or perhaps file a bug if it is a bug.

PS - While it is vaguely helpful for us to see the build.settings file, I can’t do anything with it to debug the problem.

PPS - If you can’t build the sample projects then something else is going on because I can build from here.  

We’re experiencing the same issue on our end. We’ve isolated the issue to the plugins.

From your build.settings, we notice that we have no overlapping plugins, yet whenever any plugins are listed, the server compilation crashes.

With debug level 1 (debugBuildProcess & debugWebServices) we see a difference in the DeviceBuildData sent to the Corona Servers.

Whenever a plugin is listed

With Google Analytics (CRASHES):

15:55:30.381  DeviceBuildData: {"isLaunchPadActive":false,"targetCertType":"distribution","targetPlatformVersion":140300,"debugBuildProcess":1,"targetDevice":0,"dailyBuildRevision":3238,"buildBucket":"ansca-templates","clientPlatform":"Win","targetAppStore":"google","targetPlatform":1,"clientDeviceId":"a287f489bf4eed1b88687bea0217db4e","plugins":{"plugin.googleAnalytics":{"publisherId":"com.coronalabs"}},"dailyBuildYear":2018,"clientProductId":"basic","appName":"Mexa-se"}

Without Google Analytics (COMPILES):

15:56:24.627  DeviceBuildData: {"isLaunchPadActive":false,"targetCertType":"distribution","targetPlatformVersion":140300,"debugBuildProcess":1,"targetDevice":0,"dailyBuildRevision":3238,"buildBucket":"ansca-templates","clientPlatform":"Win","targetAppStore":"google","targetPlatform":1,"clientDeviceId":"a287f489bf4eed1b88687bea0217db4e","plugins":[],"dailyBuildYear":2018,"clientProductId":"basic","appName":"Mexa-se"}

We have tested with all plugins our app uses and any combination causes the crash.

We assume there is some server-sided issue with the marketplace.

Right now, we’ll just wait to see if the servers get fixed as it does not seem to be a documentation change regarding how plugins should be listed in the build settings.

@everyone - I just reached out but it may be a bit before anyone sees my message. 

Meanwhile I’ll try a few experiments over here and give some feedback on the thread.

Hello Sir @roaminggamer,

Thanks for that technique to debug build.settings to recognize what is going wrong what I found is my plugins section is messing up.

Regards,

Swanand Thakur

I was able to replicate a build error using 2018.3234 and building for Android from a Windows 10 machine.

I tried to build with a variety of features and plugins:

 splashScreen = { enable = false, }, plugins = { -- non marketplace ["plugin.zip"] = { publisherId = "com.coronalabs" }, ["plugin.googleAnalytics"] = { publisherId = "com.coronalabs" }, -- \<\< TROUBLE MAKER -- marketplace FREE, not coronalabs.com ["plugin.iap\_badger"] = { publisherId = "uk.co.happymongoose", }, -- marketplace PAID, not coronalabs.com ["plugin.stripe"] = { publisherId = "com.jasonschroeder", }, }, 

I’m guessing a little here, but it looks like (maybe) Corona built plugins are causing an issue.

i.e. zip is an old plugin that doesn’t get re-built regularly, but I’m guessing that google analytics does.

I have got Appodeal plugin in my build.settings

So far, the Corona versions listed in the thread as problematic are:

  • 201?.3184
  • 2018.3234
  • 2018.3237
  • 2018.3238 

@Fira - What version are you building with?

@swanad… - I can’t test that because I don’t have an account.  That said, it is a corona built plugin (99% sure), so that agrees with my hypothesis that it may be specific to Corona built plugins.  

Note: I don’t envy these guys the complexity of the build servers setup.  

Ya because even @Fira Soft includes Appodeal plugin

FYI…

I am unable to build with 3184 with plugin.admob enabled in build.settings. Commented out, it builds.

Guys, here is a super-minimal project that fails to build as above:

https://github.com/roaminggamer/RG_FreeStuff/raw/master/AskEd/2018/03/pluginBuildIssue.zip

It builds really fast so you can quickly test if this is fixed.

Note: I also verified the issue exists in: 2018.3238 

We are investigating. I doubt this is specific to any one daily build.

Rob

@roaminggamer, we were on the latest public and it failed, switched to the most recent daily (3238) and it is still bad, given these versions have a wide spread between them, we assume the whole plugin/marketplace is broken.

We individually tested each plugin we use and all of them caused issues.

We’re currently using the github version of iap_badger so I did not test the hapymongoose plugin you listed.

Given that Google Analytics and Facebook are both affected this issue should be escalated and resolved soon.

Right now there is not much any of us can do.

Since you have contacted corona staff now we wait…

I think there is a problem with the build servers and the plugins when the build for android is done.

In my aap I use 2 plugins. I do the build for iOS without any problem, but for android only do the build if I suspend the plugins.

I hope it helps

regards

Solca

I’m able to do Android builds with plugins. Can you try now?

Rob

At this moment I only get “Building for android” nothing more

and, in the console:

Using java version “9.0.4”

Java™ SE Runtime Environment (build 9.0.4+11)

Java HotSpot™ 64-Bit Server VM (build 9.0.4+11, mixed mode)

Building Android app for solon.corona@phonemas.com with 2018.3228

Using custom build id from app bundle: 00000 (AppSettings.lua)

BUILD SUCCESSFUL

Total time: 2 seconds