Currently the developers are putting their own money into JC2-MP to keep the servers online.

Please take a few seconds of your time and disable your AdBlock plugin for our website.

Ad revenue is not going to developers, it is used purely for covering our hosting costs.

 

You are also free to donate, which removes all ads from our website!

Patch 0.3 was just released! Full changelog here: https://t.co/4A50m6IKen

1 year ago

September 19, 2018, 12:53:34 am

Author Topic: Server crashed  (Read 1041 times)

MrQWERTYU

  • Newbie
  • *
  • Posts: 23
    • View Profile
Server crashed
« on: March 30, 2018, 10:40:35 pm »
I just can not understand what the problem is. Comes a certain player, you receive the error with the Bank, after which the player buys a DEFINED transport and the server is crashing. Please, help to deal with this problem.

Quote
13:49:44 | [info ] | andfil2014 joined the server (91.78.157.140)
13:49:44 | [error] | Lua error in module Bank when running event PlayerJoin:
13:49:44 | [error] |   Runtime Error: database disk image is malformed
13:49:44 | [error] |   Callstack:
13:49:44 | [error] |     API function: in method Execute
13:49:44 | [error] |     server/bank.lua:52: in function <server/bank.lua:49>
13:49:44 | [error] |   Arguments:
13:49:44 | [error] |     player: andfil2014

13:50:22 | [info ] | [Shop] andfil2014 buy Sakura Aquila Metro ST

13:50:45 | [fatal] | Uncaught exception: database disk image is malformed
13:51:01 | [info ] | JCMP Server 0.3.0 (Build 948)
13:51:01 | [info ] | Loading configuration
13:51:01 | [info ] | Succesfully loaded configuration

Dev_34

  • Full Member
  • ***
  • Posts: 158
    • View Profile
Re: Server crashed
« Reply #1 on: April 01, 2018, 07:53:04 am »
It seems like your database is corrupt. To be sure, try executing 'pragma integrity_check' against the database.
When this happened to me, I dumped the database and recreated it, making sure not to copy over nonsensical/corrupt records.

MrQWERTYU

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Server crashed
« Reply #2 on: April 04, 2018, 10:24:55 pm »
Ohh ... I expected the problem in the database, but I still hoped until the last time that it was just a bug in the script. Well, I get to do everything on your advice. Thank you!

Dev_34

  • Full Member
  • ***
  • Posts: 158
    • View Profile
Re: Server crashed
« Reply #3 on: April 05, 2018, 09:09:23 pm »