Unexpected error: Propagating error from GS 2 (method: createGame): BGA service error

Game development with Board Game Arena Studio
Post Reply
User avatar
SpaceLemon
Posts: 2
Joined: 06 February 2021, 15:28

Unexpected error: Propagating error from GS 2 (method: createGame): BGA service error

Post by SpaceLemon »

Hello,
In my first game "nainjaune", when the last player accept to join the game, the last player get an error message and the game never launch.
I do not have this error in BGA studio.

I do not know where to start for debugging. Does some one have an idea, or some advice to get more information ? There is a way to have the same behaviour on BGA studio ? It is a good practice to debug this problem using the production server ?

In the javascript console of the last accepted player (and global messages windows) we can see the following error message :

Code: Select all

Unexpected error:  Propagating error from GS 2 (method: createGame): BGA service error (2.boardgamearena.com 03/03 20:21:31) ly_metasite.js:2:438825
    _ae5 https://x.boardgamearena.net/data/themereleases/210301-1253/js/modules/layer/ly_metasite.js:2
    Dojo 30
    ajaxcall https://x.boardgamearena.net/data/themereleases/210301-1253/js/modules/layer/ly_metasite.js:2
    onStartGameAccept https://x.boardgamearena.net/data/themereleases/210301-1253/js/modules/layer/ly_metasite.js:2
    connect https://boardgamearena.com/:1096
    hitch Dojo
From BGA studio we can get the flowing log when clic on the both "Errors in production" buttons:

Code: Select all

------- GAMESERVER 1: LOG START -------

This game is not deployed on this gameserver.

------- GAMESERVER 1: LOG END -------

------- GAMESERVER 2: LOG START -------

This game is not deployed on this gameserver.

------- GAMESERVER 2: LOG END -------

------- GAMESERVER 3: LOG START -------

This game is not deployed on this gameserver.

------- GAMESERVER 3: LOG END -------

------- GAMESERVER 4: LOG START -------

This game is not deployed on this gameserver.

------- GAMESERVER 4: LOG END -------

------- GAMESERVER 5: LOG START -------

This game is not deployed on this gameserver.

------- GAMESERVER 5: LOG END -------

------- GAMESERVER 6: LOG START -------

This game is not deployed on this gameserver.

------- GAMESERVER 6: LOG END -------

------- GAMESERVER 7: LOG START -------

This game is not deployed on this gameserver.

------- GAMESERVER 7: LOG END -------

------- GAMESERVER 8: LOG START -------

This game is not deployed on this gameserver.

------- GAMESERVER 8: LOG END -------

------- GAMESERVER 9: LOG START -------

This game is not deployed on this gameserver.

------- GAMESERVER 9: LOG END -------
I do not kown if there are a link but this project do not have a valid BGG_ID.
I get the message in BGA studio "This game doesn't have a valid BGG_ID. Please fill in this information in the gameinfos.inc.php file and reload the game informations. "
User avatar
Bids
Posts: 72
Joined: 02 April 2019, 18:10

Re: Unexpected error: Propagating error from GS 2 (method: createGame): BGA service error

Post by Bids »

Did you fill the BGG ID?
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

Re: Unexpected error: Propagating error from GS 2 (method: createGame): BGA service error

Post by Een »

The warning about the bgg_id is just for properly referencing the game, but is not blocking (BGG is a wonderful database, but all games are not referenced there, especially traditional card games)

I checked the game creation logs (created by a server call so not available directly from the display error logs on the studio), here is the error:

Code: Select all

06/03 15:54:43 [error] [J] [job] Unexpected exception: Fatal error during nainjaune setup: Class Nainjaune not found
And indeed your class in the game deployed is "class nainJaunesl extends Table".

So it seems that there was an issue deploying the game properly (from another project ?). If it's working on the studio, first thing to try would be recreating and deploying a fresh build.
User avatar
SpaceLemon
Posts: 2
Joined: 06 February 2021, 15:28

Re: Unexpected error: Propagating error from GS 2 (method: createGame): BGA service error

Post by SpaceLemon »

Thanks a lot.
I just redeployed the game and now it is working.
User avatar
agrypelago
Posts: 12
Joined: 26 October 2020, 19:54

Re: Unexpected error: Propagating error from GS 2 (method: createGame): BGA service error

Post by agrypelago »

Hi!
I'm gonna tack on my issue to this thread so it's all in the same spot.
I'm also getting the same error:
Unexpected error: Propagating error from GS 1 (method: createGame): BGA service error (1.studio.boardgamearena.com)
but in Studio.


I use the Express Start but the game never starts by itself. When I click "Accept" I get this error:
Unexpected error: Wrong table status (init): should be 'setup'

The game is "dicedtomatoes".

What can I do to fix this?
User avatar
thoun
Posts: 1619
Joined: 10 December 2020, 22:25

Re: Unexpected error: Propagating error from GS 2 (method: createGame): BGA service error

Post by thoun »

agrypelago wrote: 08 March 2021, 15:54 Unexpected error: Wrong table status (init): should be 'setup'
This happens when you start a game already started. That's a consequence of you game not launching automatically, it's not the root cause.
I had the same message, and my only cue was dbmodel error (I read that on studio doc). Yet even with empty dbmodel, I still had the error.
On Discord, vkk suggested me to put

Code: Select all

die('step1')
on my code to see if game reach this point (error is now 'invalid syntax: step1').
If you have it, move it further until you come back to original error, you'll see where the problem is. For me it was a missing arg method, but I guess it could be anything.
Post Reply

Return to “Developers”