Jump to content
  • 0
Sign in to follow this  
canditw

make_connection: connect failed (socket #5, error)

Question

This have been happening to me frequently, the server runs fine with players in and out like normal but once in ahwile I will get this error and players who are trying to login will get *Server Closed (1)*, and a simple restart will fix this. But what seems to be causing this error? It usually happens after a day or two while the server is running.
 

 

 Char-server 'ARO' has disconnected.
[status]: Attempting to connect to Char Server. Please wait.
[status]: Connecting to xxx.xxx.xxx:6121
[Error]: make_connection: connect failed (socket #6, error 111: Connection refused)!
 

Somehow the char server crashed midway and goes into an endless loop of reconnection.

Update:
tried to check with a gdb core dump.

Got this error from the core file via gdb

Core was generated by './char-server'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f13f8bda06a in vfprintf () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.166.el6_7.7.x86_64 keyutils-libs-1.4-5.el6.x86_64 krb5-libs-1.10.3-42.el6.x86_64 libcom_err-1.41.12-22.el6.x86_64 libselinux-2.0.94-5.8.el6.x86_64 mysql-libs-5.1.73-5.el6_6.x86_64 nss-softokn-freebl-3.14.3-23.el6_7.x86_64 openssl-1.0.1e-42.el6_7.2.x86_64 pcre-7.8-7.el6.x86_64 zlib-1.2.3-29.el6.x86_64

bt full

#0  0x00007f13f8bda06a in vfprintf () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007f13f8c05752 in vsnprintf () from /lib64/libc.so.6
No symbol table info available.
#2  0x0000000000451743 in StringBuf_Vprintf (self=0x7f13f753ce34,
    fmt=0x46cc28 "SELECT `party_id` FROM `%s` WHERE `name`='%s'",
    ap=0x7ffc3bb168a0) at strlib.c:1025
        apcopy = {{gp_offset = 16, fp_offset = 48,
            overflow_arg_area = 0x7ffc3bb16980,
            reg_save_area = 0x7ffc3bb168c0}}
        n = <value optimized out>
        off = <value optimized out>
        size = 5498
        __func__ = "StringBuf_Vprintf"
#3  0x00000000004475b4 in Sql_QueryV (self=0x7f13f753ce34,
    query=<value optimized out>, args=0x7ffc3bb168a0) at sql.c:255
No locals.
#4  0x0000000000446deb in Sql_Query (self=<value optimized out>,
    query=<value optimized out>) at sql.c:241
        res = 1001482432
        args = {{gp_offset = 16, fp_offset = 48,
            overflow_arg_area = 0x7ffc3bb16980,
            reg_save_area = 0x7ffc3bb168c0}}
---Type <return> to continue, or q <return> to quit---
#5  0x000000000043f0dd in inter_party_search_partyname (
    str=0x7f13fa8a5044 "\"asdsad\"") at int_party.c:305
        esc_name = "\\\"asdsad\\\"\000\366\023\177\000\000\000\000\000\000\000\000\000\000\061_\237\371\023\177\000\000\000\000\000\000\000\000\000\000\064\316S\367\023\177\000\000P"
        data = <value optimized out>
        p = 0x0
#6  0x000000000043ff60 in mapif_parse_CreateParty (fd=6,
    name=0x7f13fa8a5044 "\"asdsad\"", item=0, item2=0, leader=0x7f13fa8a505e)
    at int_party.c:488
        p = <value optimized out>
        __func__ = "mapif_parse_CreateParty"
#7  0x0000000000440281 in mapif_parse_CreateParty (fd=6,
    name=0x7f13fa8a5044 "\"asdsad\"", item=0, item2=0, leader=0x7f13fa8a505e)
    at int_party.c:499
        newname = 0x7f13f6316284 "asdsad"
        p = <value optimized out>
        __func__ = "mapif_parse_CreateParty"
#8  0x0000000000440281 in mapif_parse_CreateParty (fd=6,
    name=0x7f13fa8a5044 "\"asdsad\"", item=0, item2=0, leader=0x7f13fa8a505e)
    at int_party.c:499
        newname = 0x7f13f6316254 "asdsad"
        p = <value optimized out>

 

And it goes on about the same thing getting about 10,000+ worth of this error or maybe even more. It just goes on forever.

any clues on this?

Edited by canditw

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.