1. If you have a problem and need help, create a new thread with a title that briefly describes the problem.
    Do not use titles like 'Help!' or 'I have a problem!'
    Dismiss Notice
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Server Cant Run: API CALL FAILED

Discussion in 'General Help' started by Froghead48, Jun 23, 2012.

  1. Froghead48

    Froghead48 Haxor

    Messages:
    703
  2. FliesLikeABrick

    FliesLikeABrick THD Team THD Team Administrator Global Moderator

    Messages:
    952
    ok that all looks fine - if you try the server again now, does it work?​
     
  3. Froghead48

    Froghead48 Haxor

    Messages:
    703
    i tried it earlier and it said API call failed, now it just gets to
    [09:04:46] Config loaded from 'Scripts/dedicated_autoconfig.gm'
    [09:04:46] * Config loaded from 'Scripts/config.gm'
    [09:04:46] Loading security from Base/Scripts/securitysetup.cfg
    [09:04:46] Whitelist inactive.
    [09:04:46] Blacklist empty.
    [09:04:46] Creating video device...
    [09:04:46] Checking driver support...
    [09:04:46] Initializing new video device...
    [09:04:46] Irrlicht Engine version 1.8.0-alpha
    [09:04:46] Microsoft Windows Vista Home Premium Edition Service Pack 2 (Build 6002)
    [09:04:46] Joystick support is enabled and 0 joystick(s) are present.
    [09:04:46] Precaching files...
    [09:04:46] ...Precaching files.
    [09:04:46] Loading config defines Scripts/defines.cfg
    [09:04:46] Creating world from file ''
    [09:04:46] Loading names from Scripts/NameGen_OldEnglish.cfg...
    [09:04:46] Server created on 72.224.30.9:50301
    [09:04:47] WARNING: An issue was encountered while detecting the server's external IPv4/IPv6 address(es): Your server appears to be IPv4 and IPv6 enabled. If you want to bind a specific address, you must have both sv_ip and sv_ipv6 configured
    [09:04:47] WARNING: As a result, sv_register has been forced to 0 and will not show up in the server list!
    [09:04:47] Server activated.
    [09:04:47] Loading game rules from Rules/TEST/gamemode.cfg...
    [09:04:47] Loaded team 0 'GUI/emblem1.png'
    [09:04:47] Loaded team 0 class 0 'GUI/archer_icon.png'
    [09:04:47] Loaded team 0 class 1 'GUI/knight_icon.png'
    [09:04:47] Loaded team 0 class 2 'GUI/builder_icon.png'
    [09:04:47] Loaded team 1 'GUI/emblem2.png'
    [09:04:47] Loaded team 1 class 0 'GUI/builder_icon.png'
    [09:04:47] Loaded team 1 class 1 'GUI/knight_icon.png'
    [09:04:47] Loaded team 1 class 2 'GUI/archer_icon.png'
    [09:04:47] Loaded team 2 ''
    [09:04:47] Loaded team 2 class 0 'GUI/builder_icon.png'
    [09:04:47] Loaded team 2 class 1 'GUI/knight_icon.png'
    [09:04:47] Loaded team 2 class 2 'GUI/archer_icon.png'
    [09:04:47] Loaded team 3 ''
    [09:04:47] Loaded team 3 class 0 'GUI/builder_icon.png'
    [09:04:47] Loaded team 3 class 1 'GUI/knight_icon.png'
    [09:04:47] Loaded team 3 class 2 'GUI/archer_icon.png'
    [09:04:47] Loaded team 4 ''
    [09:04:47] Loaded team 4 class 0 'GUI/builder_icon.png'
    [09:04:47] Loaded team 4 class 1 'GUI/knight_icon.png'
    [09:04:47] Loaded team 4 class 2 'GUI/archer_icon.png'
    [09:04:47] Loaded team 5 ''
    [09:04:47] Loaded team 5 class 0 'GUI/builder_icon.png'
    [09:04:47] Loaded team 5 class 1 'GUI/knight_icon.png'
    [09:04:47] Loaded team 5 class 2 'GUI/archer_icon.png'
    [09:04:47] Loaded team 6 ''
    [09:04:47] Loaded team 6 class 0 'GUI/builder_icon.png'
    [09:04:47] Loaded team 6 class 1 'GUI/knight_icon.png'
    [09:04:47] Loaded team 6 class 2 'GUI/archer_icon.png'
    [09:04:47] Config file not found 'Rules/TEST/team8.cfg Rules/TEST/team9.cfg'
    [09:04:47] Loading blob config from Entities/Actors/Bison.cfg...
    [09:04:47] Loading blob config from Entities/Actors/Greg.cfg...
    [09:04:47] Loading blob config from Entities/Actors/Migrant.cfg...
    [09:04:47] Loading blob config from Entities/Actors/Skeleton.cfg...
    [09:04:47] Loading blob config from Entities/Actors/Wraith.cfg...
    [09:04:47] Loading blob config from Entities/Actors/Zombie.cfg...
    [09:04:47] Loading blob config from Entities/Actors/ZombieKnight.cfg...
    [09:04:47] Loading blob config from Entities/Effects/Light.cfg...
    [09:04:47] Loading blob config from Entities/Items/Boulder.cfg...
    [09:04:47] Loading blob config from Entities/Items/Crate.cfg...
    [09:04:47] Loading blob config from Entities/Items/Keg.cfg...
    [09:04:47] Loading blob config from Entities/Items/Lantern.cfg...
    [09:04:47] Loading blob config from Entities/Items/LanternB.cfg...
    [09:04:47] Loading blob config from Entities/Items/LanternG.cfg...
    [09:04:47] Loading blob config from Entities/Items/LanternR.cfg...
    [09:04:47] Loading blob config from Entities/Items/Rope.cfg...
    [09:04:47] Loading blob config from Entities/Items/SKeg.cfg...
    [09:04:47] Loading blob config from Entities/Items/TreasureChest.cfg...
    [09:04:47] Loading blob config from Entities/Managers/ZombieDirector.cfg...
    [09:04:47] Loading blob config from Entities/Rooms/CTF_Room.cfg...
    [09:04:47] Loading blob config from Entities/Rooms/FullCTF_Room.cfg...
    [09:04:47] Loading blob config from Entities/Rooms/Portal.cfg...
    [09:04:47] Loading blob config from Entities/Rooms/Sandbox_Room.cfg...
    [09:04:47] Loading blob config from Entities/Rooms/Zombie_Room.cfg...
    [09:04:47] Loading blob config from Entities/Structures/Door.cfg...
    [09:04:47] Loading blob config from Entities/Structures/Pulley.cfg...
    [09:04:47] Loaded WAR default config
    [09:04:47] Config finished loading from Scripts/Server/dedicated_autostart.gm
    [09:04:47] *Match Ended*
    [09:04:48] *Match Started*
    [09:04:50]
    [09:04:50] ********* WARNING *********
    [09:04:50]
    [09:04:50] sv_allow_globals_mods is set to 1. This means GLOBAL GUARDS AND ADMINS can administer your server and kick players to help prevent griefing. If you do not accept this, please turn this variable to 0.
    [09:04:50]
    [09:04:50] Server variables can be changed in Base/Scripts/dedicated_autoconfig.gm (by default)
    and doesnt do anything else. it doesnt show up on the server list either.
     
  4. FliesLikeABrick

    FliesLikeABrick THD Team THD Team Administrator Global Moderator

    Messages:
    952
    Edit your configuration and set sv_ip=`0` (e.g. take out the IP address you put in there), you don't need to bind a specific IP address in your situation and it will only cause headache if you do
     
  5. Froghead48

    Froghead48 Haxor

    Messages:
    703
    LOL. i tried that before and nothing happend. thanks alot, it working......for now :)
     
  6. Men_In_Black

    Men_In_Black Catapult Fodder

    Messages:
    2
    Hi back FilesLikeABrick !

    I have the same problem, but i CAN't see my server.
    I'm using default Minecraft port (because i can't forward by unkown reasons the KAG default port 50301).
    (using 25565 as communication port, but i do not changed the 50328 port)
    I can't see my server in the server list.
    I must use Hamachi to host in private mode :/
    So, the port isn't a problem?
    It's saying API call failed and i can't see my server in the Master Server List ( i didn't changed any port of the master server )
     
  7. kaizokuroof

    kaizokuroof Agkubuk|'Kaizokuroof' Cilobakil, Roofpointy Global Moderator Forum Moderator Donator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    909
    Extremely old thread, but I had the same/similar issue. I found the way around it was disabling Ipv6 from the server

    Here is a guide for ubuntu: http://www.noobslab.com/2012/05/disable-ipv6-if-your-internet-is.html

    If you run Debian it's exactly the same, only I think Vim or Nano is installed by default.

    I then opened my dedicated_autoconfig.cfg file and disabled Ipv6 from there as well. Smooth sailing, no more API calls failing and my server is appearing in the list.

    Cheers.
     
  8. FliesLikeABrick

    FliesLikeABrick THD Team THD Team Administrator Global Moderator

    Messages:
    952
    Do not disable IPv6... it isn't doing any harm even if you don't have IPv6 connectivity. If you're having problems with the KAG server and it seems IPv6-related, you're most likely using a VPS host who is setting up their VPSes with broken IPv6 default routes. You can confirm this if "ip -6 ro sh | grep -c default" returns 1 instead of 0.

    the KAG server has an option to disable ipv6, something like sv_ipv6 = 0 to disable. This option may not work currently, I need to fix it.
     
  9. kaizokuroof

    kaizokuroof Agkubuk|'Kaizokuroof' Cilobakil, Roofpointy Global Moderator Forum Moderator Donator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    909
    Just disabling this option in the configs did not work for me. Since disabling Ipv6 I've had no problems, but you're probably right with it being my provider, after all you are the dev, HOWEVER, I've been using this provider for the last 5 months and used a number of VPS' that have never had this problem, maybe they slipped up? Anywho, it worked for me so I figured I'd share what happened.

    Appreciate you taking the time to reply!

    To those of you that may do what I did, do so at your own risk you've been warned! :)

    Cheers.

    BTW, I should add that I did have an IPv6 address, but the problem was the server wasn't attaching to it and I was getting millions of API errors, hence the disable.
     
  10. FliesLikeABrick

    FliesLikeABrick THD Team THD Team Administrator Global Moderator

    Messages:
    952
    What was the IPv6 address? anything starting with fe80 is not a "real" address that is going to be used.

    Did you run KAG on the previous providers? 99% of game servers don't try to use v6 this way and wouldn't be impacted by the provider doing something silly
     
  11. kaizokuroof

    kaizokuroof Agkubuk|'Kaizokuroof' Cilobakil, Roofpointy Global Moderator Forum Moderator Donator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    909
    The previous provider was the exact same provider, I've just switched plans a few times and consequently been provided with new VPS' each time. I've run KAG on all of them without a hitch (for the most part :D)

    ...

    I've taken a look, and it appears you're right. Looks like my Ipv6 wasn't real after all.

    Code:
              inet6 addr: 2400:c400::125:63:51:153/118 Scope:Global
              inet6 addr: fe80::216:3eff:fe0d:1eec/64 Scope:Link
    
    I guess that's why it couldn't attach to the IP.

    Cheers for your help :)
     
  12. FliesLikeABrick

    FliesLikeABrick THD Team THD Team Administrator Global Moderator

    Messages:
    952
    2400:c400 is a real v6 address. if they put that there, leave it there and make them fix their ipv6! It is very beneficial to us (the devs) if you can use IPv6
     
  13. Froghead48

    Froghead48 Haxor

    Messages:
    703
    Thank god for FLAB, or we would have no servers.....

    Also, this is happend to me again, but i have not changed any of the files from before o_o
     
  14. DarkDragonBoy

    DarkDragonBoy Haxor

    Messages:
    47
    I have the same problem for classic, but i do not know what all these 1pv6's are. I know this is years old just trying to get it up and running...