Jump to content
RAGE Multiplayer Community

Problem with migrating to 1.1


leeeo
 Share

Recommended Posts

I, have sources of server on 0.3.7.
It works fine, but when i'm tryin to run "ragemp-server"(1.1 executable file), i have got an error like this:
 

[DONE] "RP" package has been loaded.
[INFO] Starting packages...
[DONE] Server packages have been started.
[DONE] Started resource transfer server at 22006 port.
[DONE] Client-side packages weight: 2188.233398 MB (uncompressed: 2828.972900 MB).
[INFO] Initializing networking...
[DONE] Networking has been started: (IPv4-only) at 127.0.0.1:22005
[DONE] The server is ready to accept connections.
Error: connect ETIMEDOUT
    at PoolConnection.Connection._handleConnectTimeout (/root/testServer/node_modules/mysql/lib/Connection.js:409:13)
    at Object.onceWrapper (events.js:420:28)
    at Socket.emit (events.js:314:20)
    at Socket._onTimeout (net.js:482:8)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7)
    --------------------
    at Protocol._enqueue (/root/testServer/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at Protocol.handshake (/root/testServer/node_modules/mysql/lib/protocol/Protocol.js:51:23)
    at PoolConnection.connect (/root/testServer/node_modules/mysql/lib/Connection.js:116:18)
    at Pool.getConnection (/root/testServer/node_modules/mysql/lib/Pool.js:48:16)
    at Object.mysql.executeQuery (/root/testServer/packages/RP/modules/mysql.js:230:14)
    at init (/root/testServer/packages/RP/index.js:69:15)
    at Object.<anonymous> (/root/testServer/packages/RP/index.js:147:1)
    at Module._compile (internal/modules/cjs/loader.js:1076:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Module.load (internal/modules/cjs/loader.js:941:32) {
  errorno: 'ETIMEDOUT',
  code: 'ETIMEDOUT',
  syscall: 'connect',
  fatal: true
}
TypeError: Cannot read property 'release' of undefined
    at /root/testServer/packages/RP/modules/mysql.js:257:28
    at Handshake.onConnect (/root/testServer/node_modules/mysql/lib/Pool.js:58:9)
    at Handshake.<anonymous> (/root/testServer/node_modules/mysql/lib/Connection.js:526:10)
    at Handshake._callback (/root/testServer/node_modules/mysql/lib/Connection.js:488:16)
    at Handshake.Sequence.end (/root/testServer/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)
    at Protocol.handleNetworkError (/root/testServer/node_modules/mysql/lib/protocol/Protocol.js:369:14)
    at PoolConnection.Connection._handleNetworkError (/root/testServer/node_modules/mysql/lib/Connection.js:418:18)
    at PoolConnection.Connection._handleConnectTimeout (/root/testServer/node_modules/mysql/lib/Connection.js:414:8)
    at Object.onceWrapper (events.js:420:28)
    at Socket.emit (events.js:314:20)
/root/testServer/packages/RP/modules/vehicleInfo.js:10
        rows.forEach(function (item) {
             ^

TypeError: Cannot read property 'forEach' of undefined
    at Query._callback (/root/testServer/packages/RP/modules/vehicleInfo.js:10:14)
    at Query.Sequence.end (/root/testServer/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)
    at /root/testServer/node_modules/mysql/lib/Pool.js:205:13
    at Handshake.onConnect (/root/testServer/node_modules/mysql/lib/Pool.js:58:9)
    at Handshake.<anonymous> (/root/testServer/node_modules/mysql/lib/Connection.js:526:10)
    at Handshake._callback (/root/testServer/node_modules/mysql/lib/Connection.js:488:16)
    at Handshake.Sequence.end (/root/testServer/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)
    at Protocol.handleNetworkError (/root/testServer/node_modules/mysql/lib/protocol/Protocol.js:369:14)
    at PoolConnection.Connection._handleNetworkError (/root/testServer/node_modules/mysql/lib/Connection.js:418:18)
    at PoolConnection.Connection._handleConnectTimeout (/root/testServer/node_modules/mysql/lib/Connection.js:414:8)
terminate called without an active exception
Aborted (core dumped)

 

Link to comment
Share on other sites

1.1 wouldn't cause this, you have connection errors to your database

 

Error: connect ETIMEDOUT
    at PoolConnection.Connection._handleConnectTimeout (/root/testServer/node_modules/mysql/lib/Connection.js:409:13)

This isn't RAGE:MP related it's saying it timed out trying to connect to your server.|

 

TypeError: Cannot read property 'release' of undefined

This is based off your MySQL code so again MySQL related

 

TypeError: Cannot read property 'forEach' of undefined
    at Query._callback (/root/testServer/packages/RP/modules/vehicleInfo.js:10:14)

This you're trying to use forEach on something that isn't defined.

If you have just dropped 0.3.7 code into 1.1 it most likely won't work. You need to check over your code and check these specific lines that it says. Except the first two errors, those are MySQL related so you need to check your MySQL server.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...