500 Internal Server Error

Hi,

Starting today, I can no longer go to my Coronium admin Panel. I receive the following error :

500 Internal Server Error

 

openresty/1.7.4.1

 

Its important to mention that our app can still use the Coronium API without errors. 

We did try to do an update, a stop and the start on the server.

Please be also aware that this problem is not related to this one : https://groups.google.com/forum/#!topic/coroniumio/yTsl5BkYknk We already had that problem in the past and we did executed the 2 commands. It was working afterward.

We have print the log message we receive :

stack traceback:

coroutine 0:

/usr/local/coronium/http/admin/view_index.lua: in function </usr/local/coronium/http/admin/view_index.lua:1>, client: xx.xx.xxx.xxx, server: , request: “GET /admin HTTP/1.1”, host: “xx.xxx.xxx.xx”

2016/02/16 15:29:57 [error] 808#0: *5105 lua entry thread aborted: runtime error: /usr/local/coronium/http/admin/view_index.lua:62: attempt to index field ‘result’ (a nil value)

PS: IP address was replaced by x…

Hope this help

Nick

Hi Nick,

I’ll take a look. It’s something to do with the admin page rendering. Where are you hosting, AWS?

Cheers.

Hi,

I am having the same issue as michaud. I am using digital ocean.

I am having troubles also, creating objects on Mongo. Some weeks ago it worked perfectly, but now when I try to create the “onlineGameTable”, it give me an error.

From terminal:

error: Server Error - Check Logs

errorCode: 500

From ssh:

2016/02/17 06:17:46 [error] 841#0: *2239 lua entry thread aborted: runtime error                                                                                                                                                             : /usr/local/coronium/lib/mod_object.lua:18: bad argument #1 to ‘decode’ (string                                                                                                                                                              expected, got nil)

stack traceback:

coroutine 0:

        [C]: in function ‘decode’

        /usr/local/coronium/lib/mod_object.lua:18: in function </usr/local/coron                                                                                                                                                             ium/lib/mod_object.lua:1>, client: “my PC ip”, server: , request: “POST /1/obj                                                                                                                                                             ects/NewDuel HTTP/1.1”, host:

“my game cloud ip”

When I try to upload almost any table it works.

Some table like :

 table = { test = "kk", test2 = { test3 = "kk"}}}

 , works nice

But the table which has all the info from my game doesn’t. 

I copy next a part from this table in json format:

“casillas”: {

        “longX”: 8,

        “longX0”: -7,

        “longY”: 8,

        “longY0”: -7,

        “x-1”: {

            “y-1”: {

                “hayCarta”: false,

                “ladoAbajo”: 2,

                “ladoArriba”: 2,

                “ladoDerecho”: 2,

                “ladoIzquierdo”: 2,

                “peonMustBlockA”: false,

                “puntoRevisado”: false,

                “walkaA”: 500,

                “walkaB”: 500,

                “x”: -60,

                “y”: -48

            },

            “y-2”: {

                “hayCarta”: false,

                “ladoAbajo”: 2,

                “ladoArriba”: 2,

                “ladoDerecho”: 2,

                “ladoIzquierdo”: 2,

                “peonMustBlockA”: false,

                “puntoRevisado”: false,

                “walkaA”: 500,

                “walkaB”: 500,

                “x”: -60,

                “y”: -96

            },

            “y-3”: {

                “hayCarta”: false,

                “ladoAbajo”: 2,

                “ladoArriba”: 2,

                “ladoDerecho”: 2,

                “ladoIzquierdo”: 2,

                “peonMustBlockA”: false,

                “puntoRevisado”: false,

                “walkaA”: 500,

                “walkaB”: 500,

                “x”: -60,

                “y”: -144

            },

            

           …

 }

 }

I thought the issue was in “number” keys, but the issue still persist.

I will try to reinstall the server. I will post what happens.

Develephant do you see something that could be causing the issue?

Thanks, and have a nice time :slight_smile:

Hi Chris,

Yes, we are on AWS.

thanks for helping us.

Nick

@Nick - Changes are propagating now. Could be soon, could be a few hours. But you should hopefully be fixed up.

Cheers.

@aramirez64 - Your JSON is not valid.

Error: Parse error on line 1:
“casillas”: {    “longX”: 8,    "l
----------^
Expecting ‘EOF’, ‘}’, ‘,’, ‘]’, got ‘:’

http://jsonlint.com

You need to add another set of brackets:

{ "casillas": { "longX": 8, "longX0": -7, "longY": 8, "longY0": -7, "x-1": { "y-1": { "hayCarta": false, "ladoAbajo": 2, "ladoArriba": 2, "ladoDerecho": 2, "ladoIzquierdo": 2, "peonMustBlockA": false, "puntoRevisado": false, "walkaA": 500, "walkaB": 500, "x": -60, "y": -48 }, "y-2": { "hayCarta": false, "ladoAbajo": 2, "ladoArriba": 2, "ladoDerecho": 2, "ladoIzquierdo": 2, "peonMustBlockA": false, "puntoRevisado": false, "walkaA": 500, "walkaB": 500, "x": -60, "y": -96 }, "y-3": { "hayCarta": false, "ladoAbajo": 2, "ladoArriba": 2, "ladoDerecho": 2, "ladoIzquierdo": 2, "peonMustBlockA": false, "puntoRevisado": false, "walkaA": 500, "walkaB": 500, "x": -60, "y": -144 } } } }

Cheers.

Thanks Chris, 

it is indeed working now. We have access to the menu on the left. However the panel at the right is blank. I imagine it is normal ?

But I am a little bit trouble by this. Even if we have installed this on our own server, there is still code running or access outside of our server ?

Nick

Ty develephant, when I reinstalled server, all issues were solved. 

I wrote here the json code wrongly without the brakets, but it was ok in my game. I dont know what happened, but it seems work all perfectly now. Anyway thanks.

Congratulations for the alliance with coronalabs, these are great news. 

Have a nice day :slight_smile:

Update: I found the issue, i think it was the size of the gameTable, I reduced it to the minimum expression, and it doesnt show any error now

@Nick - It’s used to check for updates. But I’m going to be removing it. It’s caused me too much trouble. :slight_smile:

Cheers.

I found the size limit of the table when you create a mongo object. 

The limit is between 42kB and 39kB, until 39kb I could create objects. 

@develephant

I am getting the same error message. Everything has been working fine for months and out of the blue the server stopped working. We have restarted everything but it still won’t work. Any ideas?

500 Internal Server Error

@hempfling - Will be providing a patch tonight, probably early morning.

Just to note, this error is/should not be affecting any other functionality, it’s a page display problem due to the update check getting confused during some recent domain migrations (or maybe I’m the confused one). I’m removing the update check in the patch. Why it goes 500 over that error is totally confusing.

I appreciate your patience.

Cheers.

@develephant

Once you have the patch please let Ed Maurina know because he is the one hosting it and the one who setup our server.

Also in our case we don’t get any functionality so hopefully this is the same issue the patch is going to fix.

Hi Nick,

I’ll take a look. It’s something to do with the admin page rendering. Where are you hosting, AWS?

Cheers.

Hi,

I am having the same issue as michaud. I am using digital ocean.

I am having troubles also, creating objects on Mongo. Some weeks ago it worked perfectly, but now when I try to create the “onlineGameTable”, it give me an error.

From terminal:

error: Server Error - Check Logs

errorCode: 500

From ssh:

2016/02/17 06:17:46 [error] 841#0: *2239 lua entry thread aborted: runtime error                                                                                                                                                             : /usr/local/coronium/lib/mod_object.lua:18: bad argument #1 to ‘decode’ (string                                                                                                                                                              expected, got nil)

stack traceback:

coroutine 0:

        [C]: in function ‘decode’

        /usr/local/coronium/lib/mod_object.lua:18: in function </usr/local/coron                                                                                                                                                             ium/lib/mod_object.lua:1>, client: “my PC ip”, server: , request: “POST /1/obj                                                                                                                                                             ects/NewDuel HTTP/1.1”, host:

“my game cloud ip”

When I try to upload almost any table it works.

Some table like :

 table = { test = "kk", test2 = { test3 = "kk"}}}

 , works nice

But the table which has all the info from my game doesn’t. 

I copy next a part from this table in json format:

“casillas”: {

        “longX”: 8,

        “longX0”: -7,

        “longY”: 8,

        “longY0”: -7,

        “x-1”: {

            “y-1”: {

                “hayCarta”: false,

                “ladoAbajo”: 2,

                “ladoArriba”: 2,

                “ladoDerecho”: 2,

                “ladoIzquierdo”: 2,

                “peonMustBlockA”: false,

                “puntoRevisado”: false,

                “walkaA”: 500,

                “walkaB”: 500,

                “x”: -60,

                “y”: -48

            },

            “y-2”: {

                “hayCarta”: false,

                “ladoAbajo”: 2,

                “ladoArriba”: 2,

                “ladoDerecho”: 2,

                “ladoIzquierdo”: 2,

                “peonMustBlockA”: false,

                “puntoRevisado”: false,

                “walkaA”: 500,

                “walkaB”: 500,

                “x”: -60,

                “y”: -96

            },

            “y-3”: {

                “hayCarta”: false,

                “ladoAbajo”: 2,

                “ladoArriba”: 2,

                “ladoDerecho”: 2,

                “ladoIzquierdo”: 2,

                “peonMustBlockA”: false,

                “puntoRevisado”: false,

                “walkaA”: 500,

                “walkaB”: 500,

                “x”: -60,

                “y”: -144

            },

            

           …

 }

 }

I thought the issue was in “number” keys, but the issue still persist.

I will try to reinstall the server. I will post what happens.

Develephant do you see something that could be causing the issue?

Thanks, and have a nice time :slight_smile:

Hi Chris,

Yes, we are on AWS.

thanks for helping us.

Nick

@Nick - Changes are propagating now. Could be soon, could be a few hours. But you should hopefully be fixed up.

Cheers.

@aramirez64 - Your JSON is not valid.

Error: Parse error on line 1:
“casillas”: {    “longX”: 8,    "l
----------^
Expecting ‘EOF’, ‘}’, ‘,’, ‘]’, got ‘:’

http://jsonlint.com

You need to add another set of brackets:

{ "casillas": { "longX": 8, "longX0": -7, "longY": 8, "longY0": -7, "x-1": { "y-1": { "hayCarta": false, "ladoAbajo": 2, "ladoArriba": 2, "ladoDerecho": 2, "ladoIzquierdo": 2, "peonMustBlockA": false, "puntoRevisado": false, "walkaA": 500, "walkaB": 500, "x": -60, "y": -48 }, "y-2": { "hayCarta": false, "ladoAbajo": 2, "ladoArriba": 2, "ladoDerecho": 2, "ladoIzquierdo": 2, "peonMustBlockA": false, "puntoRevisado": false, "walkaA": 500, "walkaB": 500, "x": -60, "y": -96 }, "y-3": { "hayCarta": false, "ladoAbajo": 2, "ladoArriba": 2, "ladoDerecho": 2, "ladoIzquierdo": 2, "peonMustBlockA": false, "puntoRevisado": false, "walkaA": 500, "walkaB": 500, "x": -60, "y": -144 } } } }

Cheers.

Thanks Chris, 

it is indeed working now. We have access to the menu on the left. However the panel at the right is blank. I imagine it is normal ?

But I am a little bit trouble by this. Even if we have installed this on our own server, there is still code running or access outside of our server ?

Nick

Ty develephant, when I reinstalled server, all issues were solved. 

I wrote here the json code wrongly without the brakets, but it was ok in my game. I dont know what happened, but it seems work all perfectly now. Anyway thanks.

Congratulations for the alliance with coronalabs, these are great news. 

Have a nice day :slight_smile:

Update: I found the issue, i think it was the size of the gameTable, I reduced it to the minimum expression, and it doesnt show any error now