question

aleksandrkruchinin avatar image
aleksandrkruchinin asked

Сonsole is not saved in the log

I have Custom server and output information to the console (Errors and warnings). But if i make shutdown in web interface I don't always get information from the console.

Sometimes console with full data:

{"log":"Running Startup Script\n","stream":"stdout","time":"2022-04-02T10:27:55.974025Z"}

....

{"log":"myprog start \r\n","stream":"stdout","time":"2022-04-02T10:28:28.1623917Z"} {"log":"Run!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n","stream":"stdout","time":"2022-04-02T11:45:37.0616024Z"} {"log":"Game on!!!!!!!!!!!!!!!!\r\n","stream":"stdout","time":"2022-04-02T11:45:37.0616024Z"}

... other data

But sometimes only:

{"log":"Running Startup Script\n","stream":"stdout","time":"2022-04-02T10:27:55.974025Z"}

....

{"log":"myprog start \r\n","stream":"stdout","time":"2022-04-02T10:28:28.1623917Z"}

without any data

What could be the reason if the console is not saved in the log? What should I check?

(If server crush - the log always full)

Custom Game Servers
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Gosen Gao avatar image
Gosen Gao answered

If there are no other logs since this line,

{"log":"myprog start \r\n","stream":"stdout","time":"2022-04-02T10:28:28.1623917Z"}

That's probably because the program is stuck somewhere and can't continue to run. So there is no other logs show up. You can test your build locally with LocalMultiplayerAgent to see what is the reason.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

aleksandrkruchinin avatar image aleksandrkruchinin commented ·

No. Game server is working. Other logs are written to a file

0 Likes 0 ·
Gosen Gao avatar image Gosen Gao aleksandrkruchinin commented ·

There is a long time interval between these two logs,

{"log":"myprog start \r\n","stream":"stdout","time":"2022-04-02T10:28:28.1623917Z"}

{"log":"Run!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n","stream":"stdout","time":"2022-04-02T11:45:37.0616024Z"}

which may be the reason why sometimes there are logs and sometimes no logs. Because if you shut down the server quickly, the next log may not start to be generated.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.