Dedicated server issues (SOLVED)

  1. 8 years ago

    I'm having some issues running an ALiVE mission on a Linux dedicated server. I am able to run other missions with all the same mods except for ALiVE, and I am able to run my ALiVE mission from the main game, so I think it's something specific to the server. When the mission starts (after role selection), there are a bunch of warnings/errors in the console relating to the ALiVE plugin:

    5:36:47 
     5:36:47            +MMMMMMMMMMMMMMM
     5:36:47          ..MMMMMMMMMMMMMMMM.
     5:36:47           ~MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
     5:36:47           MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
     5:36:47          +MMMMMMMM~MMMMMMMM~~~~~~$MMMMMMMMM=~~~~~~~~~~=7MMMMMMM$~~~~==~~~~~~~~~~~~~~~~$MMM. 
     5:36:47          MMMMMMMMM MMMMMMMM.     IMMMMMMMMM.    .Z      MMMMMMM.    .M                IMMMM   
     5:36:47         7MMMMMMMMN MMMMMMMM.     IMMMMMMMMM......M.      MMMMM..   .+M     .          7MMMM.  
     5:36:47         MMMMMMMMM  MMMMMMMM.     IMMMMMMMMMMMMMMMMM.     MMMMM     .MM     .MMMMMMMMMMMMMMMM  
     5:36:47        +MMMMMMMMM  MMMMMMMM.     IMMMMMMMMM.    .MM?      MMM     .MMM     .~~~~~~~~~MMMMMMM   
     5:36:47       .MMMMMMMMMMMMMMMMMMMM.     IMMMMMMMMM.    .MMM     .MMM.   ..MMM               MMMMMMMM  
     5:36:47       IMMMMMMMMMMMMMMMMMMMM.     IMMMMMMMMM.    .MMMM    . M     .MMMM     .        .MMMMMMMM  
     5:36:47      .MMMMMMMMMMMMMMMMMMMMM.     IMMMMMMMMM.    .MMMMI..   =     MMMMM     .MMMMMMMMMMMMMMMMMM.. 
     5:36:47      $MMMMMMMMM+   MMMMMMMM.                    .MMMMM..        :MMMMM     ............MMMMMMM.  
     5:36:47      MMMMMMMMMM    MMMMMMMM.                    .MMMMMM.      . MMMMMM                 MMMMMMMM   
     5:36:47     IMMMMMMMMMM    MMMMMMMM.                    .MMMMMM:      .MMMMMMM                .MMMMMMMM.   
     5:36:47 
     5:36:47 ALiVE Global INIT
     5:36:47 ALiVE Global Init Timer Started
     5:36:47 ALiVE [m_0|30] Module ALiVE_sys_data INIT
     5:36:47 "THERE IS A PROBLEM WITH THE ALIVE PLUGIN!"
     5:36:47 ALIVE_SYS_DATA START PLUGIN: SYS_DATA_ERROR
     5:36:47 "THERE IS A PROBLEM WITH THE ALIVE PLUGIN!"
     5:36:47 "THERE IS A PROBLEM WITH THE ALIVE PLUGIN!"
     5:36:47 Error in expression <peName _config == "STRING" || (_initmsg select 1 == "ERROR" && _initmsg select 2>
     5:36:47   Error position: <select 1 == "ERROR" && _initmsg select 2>
     5:36:47   Error Generic error in expression
     5:36:47 File x\alive\addons\sys_data\fnc_dataInit.sqf, line 107
     5:36:47 ALiVE [m_1|40] Module ALiVE_require INIT
     5:36:47 ALiVE [m_2|41] Module ALiVE_sys_newsfeed INIT
     5:36:47 ALiVE [m_2|41] Module ALiVE_sys_newsfeed INIT COMPLETE TIME:  0.000991821
     5:36:47 ALiVE [m_3|42] Module ALiVE_sys_adminactions INIT
     5:36:47 ALiVE [m_3|42] Module ALiVE_sys_adminactions INIT COMPLETE TIME:  0.00100708
     5:36:47 ALiVE [m_4|45] Module ALiVE_SYS_LOGISTICS INIT
     5:36:47 ALIVE AI Distributor exiting, no headless clients [] or not server false
     5:36:49 ALiVE [m_5|60] Module ALiVE_sys_profile INIT
     5:36:49 ALiVE SETTING UP MAP (HARD CODED): Chernarus
     5:36:49 Error in expression < sqrt((_result select 0) ^ 2 + (_result select 1) ^ 2) / 0.68;
    };
    _err = format[>
     5:36:49   Error position: <select 1) ^ 2) / 0.68;
    };
    _err = format[>
     5:36:49   Error Zero divisor
     5:36:49 File x\alive\addons\x_lib\functions\map\fnc_getMapBounds.sqf, line 35
     5:36:49 ALiVE MAP BOUNDS: 16000
     5:36:49 Error in expression <map bounds config entry not vaild - %1",_result];
    if (not (typeName _result == ">
     5:36:49   Error position: <_result];
    if (not (typeName _result == ">
     5:36:49   Error Undefined variable in expression: _result
     5:36:49 File x\alive\addons\x_lib\functions\map\fnc_getMapBounds.sqf, line 37
     5:36:49 "ALiVE - Starting Garbage Collector..."
     5:36:51 "THERE IS A PROBLEM WITH THE ALIVE PLUGIN!"
     5:36:51 ALiVE [m_5|60] Module ALiVE_sys_profile INIT COMPLETE TIME:  2.414
     5:36:51 ALiVE [m_6|90] Module ALiVE_mil_placement INIT
     5:36:51 Performance warning: Very large search for 345062 (>320 m)
     5:36:52 Performance warning: Unsucessfull search for 345062 was very large (8224 m)
     5:36:52 ALiVE [m_7|90] Module ALiVE_mil_placement INIT

    I've tried testing the mission with and without the @AliveServer component enabled - the errors continue to occur without, but I am at least able to spawn in-game (but enemies seem to spawn invisible, or under the terrain). Any ideas?

    Modset used:
    CBA_A3
    ALiVE
    AliveServer (server only)
    CUP Terrains - Core
    CUP Terrians - Maps
    RHS:AFRF
    RHS:USF

    Running on Debian 8.3 (jessie) 64-bit & latest stable version of ARMA 3.

  2. Edited 8 years ago by johnalive

    Update - I looked around the forums for other topics with this issue (something I should have done before posting) and came across this post. I tried the suggested fixes mentioned in that thread (installing libcurl3:i386 and moving @AliveServer to @aliveserver), but the original error(s) still persist.

    john@gameshost:/opt/arma3server/serverfiles/@aliveserver$ ldd ALiVEPlugIn.so
            linux-gate.so.1 (0xf77a4000)
            libcurl.so.4 => /usr/lib/i386-linux-gnu/libcurl.so.4 (0xf753b000)
            libm.so.6 => /lib/i386-linux-gnu/i686/cmov/libm.so.6 (0xf74f5000)
            libc.so.6 => /lib/i386-linux-gnu/i686/cmov/libc.so.6 (0xf7347000)
            /lib/ld-linux.so.2 (0xf77a7000)
            libidn.so.11 => /usr/lib/i386-linux-gnu/libidn.so.11 (0xf7312000)
            librtmp.so.1 => /usr/lib/i386-linux-gnu/librtmp.so.1 (0xf72f2000)
            libssh2.so.1 => /usr/lib/i386-linux-gnu/libssh2.so.1 (0xf72c4000)
            libssl.so.1.0.0 => /usr/lib/i386-linux-gnu/i686/cmov/libssl.so.1.0.0 (0xf7266000)
            libcrypto.so.1.0.0 => /usr/lib/i386-linux-gnu/i686/cmov/libcrypto.so.1.0.0 (0xf7099000)
            libgssapi_krb5.so.2 => /usr/lib/i386-linux-gnu/libgssapi_krb5.so.2 (0xf7048000)
            libkrb5.so.3 => /usr/lib/i386-linux-gnu/libkrb5.so.3 (0xf6f72000)
            libk5crypto.so.3 => /usr/lib/i386-linux-gnu/libk5crypto.so.3 (0xf6f3e000)
            libcom_err.so.2 => /lib/i386-linux-gnu/libcom_err.so.2 (0xf6f39000)
            liblber-2.4.so.2 => /usr/lib/i386-linux-gnu/liblber-2.4.so.2 (0xf6f28000)
            libldap_r-2.4.so.2 => /usr/lib/i386-linux-gnu/libldap_r-2.4.so.2 (0xf6ece000)
            libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xf6eb1000)
            libpthread.so.0 => /lib/i386-linux-gnu/i686/cmov/libpthread.so.0 (0xf6e95000)
            libgnutls-deb0.so.28 => /usr/lib/i386-linux-gnu/libgnutls-deb0.so.28 (0xf6d53000)
            libhogweed.so.2 => /usr/lib/i386-linux-gnu/libhogweed.so.2 (0xf6d21000)
            libnettle.so.4 => /usr/lib/i386-linux-gnu/libnettle.so.4 (0xf6cec000)
            libgmp.so.10 => /usr/lib/i386-linux-gnu/libgmp.so.10 (0xf6c5d000)
            libgcrypt.so.20 => /lib/i386-linux-gnu/libgcrypt.so.20 (0xf6bac000)
            libdl.so.2 => /lib/i386-linux-gnu/i686/cmov/libdl.so.2 (0xf6ba7000)
            libkrb5support.so.0 => /usr/lib/i386-linux-gnu/libkrb5support.so.0 (0xf6b99000)
            libkeyutils.so.1 => /lib/i386-linux-gnu/libkeyutils.so.1 (0xf6b94000)
            libresolv.so.2 => /lib/i386-linux-gnu/i686/cmov/libresolv.so.2 (0xf6b7d000)
            libsasl2.so.2 => /usr/lib/i386-linux-gnu/libsasl2.so.2 (0xf6b5f000)
            libp11-kit.so.0 => /usr/lib/i386-linux-gnu/libp11-kit.so.0 (0xf6b1c000)
            libtasn1.so.6 => /usr/lib/i386-linux-gnu/libtasn1.so.6 (0xf6b07000)
            libgpg-error.so.0 => /lib/i386-linux-gnu/libgpg-error.so.0 (0xf6af3000)
            libffi.so.6 => /usr/lib/i386-linux-gnu/libffi.so.6 (0xf6aeb000)
  3. I just went through the instructions a second time, but the server does not seem to be connecting to the War Room (and the errors are still coming up) and the plugin is not generating any log files. I'm not really interested in mission persistence or War Room stats at the moment, just want to get the mission to work, but I'm assuming @AliveServer is required for ALiVE mission to work properly?

    Here is some more log information:
    Configuration: pastebin
    Server .rpt: pastebin

    Also, I agree that the indexing on CUP Chernarus is a bit off - there are a few villages that are ignored by the civ placements modules and there are thousands of performance warnings in the .rpt (which I left out).

  4. Nope @aliveserver is only needed for War Room persistence. Try removing it for now and test again.

  5. Tupolov

    Show in context Administrator
    Edited 8 years ago by Tupolov

    is this an Eden mission?

    TBH we have not done much testing on Linux, so it could be related to some issue there.

  6. I tried getting a mission on Takistan to work, and it failed with similar results. Here is a log file . One error I noticed that occurred on both attempts was:

    11:10:56 Starting mission:
    11:10:56  Mission file: co_conquer_takistan (__cur_mp)
    11:10:56  Mission world: Takistan
    11:10:56  Mission directory: mpmissions\__cur_mp.Takistan\
    11:10:57 Warning Message: No entry 'bin\config.bin/CfgWorlds.Takistan'.

    Perhaps its an issue with the map itself (or how the linux server is loading it) and not ALiVE? The missions work fine when hosted locally on Windows and in the editor.

  7. Edited 8 years ago by johnalive

    I can confirm that the map is on the server, and that I've added CUP Terrains Core & Maps to the -mod line. I also tested with them in the -servermods line as well as settings -world=Takistan, and nothing changed. Here is the launch command for the server currently:

    ./arma3server -ip=10.0.0.6 -port=2302 -cfg=/opt/arma3server/serverfiles/cfg/arma3-server.network.cfg -config=/opt/arma3server/serverfiles/cfg/arma3-server.server.cfg -mod=mods/\@CBA_A3\;mods/\@ALiVE\;mods/\@CUP_Terrains_Core\;mods/\@CUP_Terrains_Maps\;mods/\@rhs_afrf\;mods/\@rhs_usf;mods/\@Leights_OPFOR_Pack_OFFICIAL -servermod=mods/\@CUP_Terrains_Core;mods/\@CUP_Terrains_Maps -bepath= -autoinit -loadmissiontomemory -world=Takistan

    Could it be something to do with the forward slash in 'bin\config.bin/CfgWorlds.Takistan' and Linux?

  8. The error occurs only on mission start on the Linux dedicated server - it does not happen in the editor (Windows client).

    I've tried moving the mods to the root folder - no effect.

  9. Edited 8 years ago by johnalive

    I've fixed the issue, and it turns out it wasn't ALiVE related at all - on Linux, all mod folders and filenames must be entirely lowercase, otherwise they simply won't work. This is an easy fix:

    shopt -s globstar
    rename -v -f 'y/A-Z/a-z/' mods/**

    (shopt enables the ** recursive operator in bash)

    Thanks for all your help trying to troubleshoot this!