1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  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

Windows Linux Server API error

Discussion in 'Server Help' started by Vamist, Jul 6, 2016.

Thread Status:
Not open for further replies.
  1. Furai

    Furai THD Team THD Team Administrator

    Messages:
    3,124
    Also as to other errors - 404...I feel that it's about modded servers.
     
  2. Furai

    Furai THD Team THD Team Administrator

    Messages:
    3,124
    Also try removing your Cache folder on servers.
     
  3. Furai

    Furai THD Team THD Team Administrator

    Messages:
    3,124
    Disabling ipv6 in settings also might do it. I've just tested my own server on my private machine with both ipv4 and ipv6 - everything worked as expected. It all bound like it should and server was in browser.

    Only thing that for sure doesn't work right now are mods from API.
     
    Last edited: Jul 7, 2016
  4. marcel5

    marcel5 Horde Gibber
    1. Zen Laboratories

    Messages:
    20
    new server with this problem
    what could that be?
    Code:
    WARNING: API call failed: Unexpected HTTP Status (expected 200) in putStatus(): 502
    I'm from the south america .

    and one more question , will not have the official servers KAG in north america ?
    (Google translate)
     
  5. Furai

    Furai THD Team THD Team Administrator

    Messages:
    3,124
    Are all of these severs on windows?
     
  6. Vamist

    Vamist THD Team THD Team Tester

    Messages:
    544
    Mine is yes, when I go home, il try disabling ipv6
     
  7. marcel5

    marcel5 Horde Gibber
    1. Zen Laboratories

    Messages:
    20
    No, my is running on Debian 9.
    I believe it is a problem that is beyond the operating system
    (Google translate)
     
  8. lisedupuis111

    lisedupuis111 Haxor

    Messages:
    82
    Some also have the same problem with Classic
     
  9. Vamist

    Vamist THD Team THD Team Tester

    Messages:
    544
    Okay, my server is back on, thank you for fixing it :^
     
  10. Furai

    Furai THD Team THD Team Administrator

    Messages:
    3,124
    Once we get all of our internal things back there will be probably patch to servers that should fix some of the API issues. @Geti
     
    Vamist likes this.
  11. marcel5

    marcel5 Horde Gibber
    1. Zen Laboratories

    Messages:
    20
    It will be not have any problem related to HTTPS
    Code:
    WARNING: API call failed: Unexpected HTTP Status (expected 200) in putStatus(): 502
    access to browser:
    api.kag2d.com:80 -> https://api.kag2d.com
    api.kag2d.com:8080 -> https://api.kag2d.com
    it is logical, api.kag2d.com:443 -> https://api.kag2d.com
    HTTP ports are going to HTTPS

    google chrome in console
    Code:
     Failed to load resource: the server responded with a status of 502 () - https://api.kag2d.com/favicon.ico
     
  12. Furai

    Furai THD Team THD Team Administrator

    Messages:
    3,124
    Game is using https for api calls. There are no files in API. It's just a python process running on daemon.
     
  13. Konfitur

    Konfitur Haxor

    Messages:
    335
    Working now ::):
    Furai stawiam piwo za nocną interwencję ::D: (i całokształt)
     
  14. marcel5

    marcel5 Horde Gibber
    1. Zen Laboratories

    Messages:
    20
    Well,
    if Vamist are using windows and went back to work.
    in Game API always used for HTTPS connections.
    then the linux version has to be some problem with the API
    or firewall you should this blocking my region because of ddos attacks!
    ip of my region 189-68-74-190.dsl.telesp.net.br.

    so the server does not appear in the list, but if you access it by IP in the game can be played normally. (note : now it is off)
     
  15. Konfitur

    Konfitur Haxor

    Messages:
    335
    marcel my server is online atm on debian
     
  16. Furai

    Furai THD Team THD Team Administrator

    Messages:
    3,124
    Just random guess, maybe some ssl/openssl libraries missing?

    Can you curl at all https://api.kag2d.com?

    Code:
    curl https://api.kag2d.com
    
    EDIT:
    You could as well try these:
    Code:
    curl http://ds-whoami.kag2d.com
    Code:
    curl http://v4-whoami.kag2d.com
    Code:
    curl http://v6-whoami.kag2d.com
     
  17. marcel5

    marcel5 Horde Gibber
    1. Zen Laboratories

    Messages:
    20
    curl https://api.kag2d.com

    {
    "admins": "shadlington [shadlington@thd.vg], flieslikeabrick [flieslikeabrick@thd.vg], f
    urai [furai@thd.vg]",
    "statusMessage": "Welcome to the KAG API. This is under heavy development and is not ye
    t intended for public use/consumption. As features are completed, documentation will be a
    vailable at https://wiki.kag2d.com/. Contact any of the admins in the 'admins' list with
    any questions.",
    "version": "V0"
    }

    openssl 1.0.2h-1
    libssl 1.0.0 and libssl 1.0.2
    --- Double Post Merged, Jul 7, 2016, Original Post Date: Jul 7, 2016 ---
    conclusion can be my internet provider is in trouble .
    --- Double Post Merged, Jul 7, 2016 ---
    curl http://ds-whoami.kag2d.com {"IPv4Address":"189.68.66.165"}
    curl http://v4-whoami.kag2d.com {"IPv4Address":"189.68.66.165"}
    curl http://v6-whoami.kag2d.com curl: (7) Couldn't connect to server
     
  18. Konfitur

    Konfitur Haxor

    Messages:
    335
    try disabling ipv6 in autoconfig. it might be incorrectly configured on your system
     
  19. marcel5

    marcel5 Horde Gibber
    1. Zen Laboratories

    Messages:
    20
    I think my autoconfig is already disabled. Look

    Code:
    # BEGIN CONFIG VARIABLES
    g_debug = 1                                                              # Sets the level of debug information (0 - none).
    g_locale = en                                                            # Sets the translation language - minimal support currently, more coming!
    g_externaleditor =                                                       # Sets the external script editor eg. for Sublime Text 'sublime_text.exe %s:%i:%i'
    k_rendersync = 0                                                         # Sync rendering FPS with game ticks ~ 30FPS
    g_sort = 2                                                               # Type of sorting in the server browser
    g_filterplayerlower = 0                                                  # Lower bound of players to filter on in the server browser
    g_filterplayerupper = 100                                                # Upper bound of players to filter on in the server browser
    g_filtergold = 0                                                         # How to filter on modded servers in the server browser
    g_filterpass = 2                                                         # How to filter on passworded servers in the server browser
    g_filtermode =                                                           # Which gamemode to filter on in the server browser
    g_filtercategory = 0                                                     # Filter by Cooperative/Competitive game modes
    g_videorecording = 0                                                     # If set to 1 will hide most of the interface for a clean video recording.
    m_width = 256                                                            # Map generator width
    m_height = 128                                                           # Map generator height
    m_seed = 0                                                               # Map generator seed. Pick a random number. 0 will be random each time
    auth_autologin = 0                                                       # Should authentication be automatic on game start with saved password.
    auth_login =                                                             # THD Account authentication login
    auth_remember = 0                                                        # THD Account authentication remembered
    sv_gamemode = CTF                                                        # The gamemode launched on start of dedicated server. This usually is the DIRECTORY name under Base/Rules!
    sv_mapcycle =                                                            # The default map cycle loaded on server start. See Base/Maps/mapcycle.cfg.example for an example. Leave blank if you want Rules to load their own cycle.
    sv_mapcycle_shuffle = 0                                                  # Shuffle the map cycle or use maps in order?
    sv_mapautocycle = 1                                                      # Auto-cycle on next map to next map in list
    sv_gravity = 9.81                                                        # Sets the global physics gravity.
    g_registrationtime = 0                                                   # Time of players account registration.
    sv_canpause = 1                                                          # Determines whether the server can pause and sleep while there are no players to save CPU load.
    sv_test = 0                                                              # This determines if the server is in development testing mode. For usage in scripts.
    sv_restart_on_update = 0                                                 # The server closes and restarts itself if game update is detected - only done on map changes.
    g_measureperformance = 0                                                 # Measures script performance. Reset to 0 after game restart. Use performance or performance2 console command to show.
    v_bpp = 32                                                               # Requires v_restart to take effect.
    v_driver = 0                                                             # Rendering driver (0 - null, 1 - software, 2 - software+, 5 - ogl).
    v_vsync = 1                                                              # Vertical synchronization of video with monitor.
    v_uncapped = 0                                                           # Set to 1 to not cap framerate at 30FPS; set to 0 if GPU is overheating
    v_showfps = 0                                                            # Show the current FPS on screen.
    v_showminimap = 1                                                        # Show minimap or not. Might solve performance issues.
    g_playerlistkey = 9                                                      # The key used for showing the players list.
    g_screenshotkey = 115                                                    # The key used for taking screenshots.
    g_reportbugkey = 116                                                     # The key used for sending screen bug reports.
    g_tutorialkey = 112                                                      # The key used for showing help.
    v_postprocess = 0                                                        # Use fullscreen post processing effects.
    v_fastrender = 0                                                         # Degrades visual quality for speed
    v_smoothsprites = 0                                                      # Uses a filter to smoothen sprite pixels
    v_smoothmap = 0                                                          # Uses a filter to smoothen map pixels
    v_screenshotquality = 100                                                # screenshotquality 92
    v_drawhud = 1                                                            # v_drawhud 1
    g_fixedcamera = 0                                                        # Uses a fixed camera on player. Disabling this makes the camera Soldat-like.
    g_kidssafe = 0                                                           # Turns on/off violence & gore.
    g_noswears = 0                                                           # Turns on/off the swear filter.
    cl_chatbubbles = 1                                                       # Turns on/off chat bubbles hovering when players chat.
    v_camera_ints = 1                                                        # Snaps camera position to whole integer value.
    v_no_renderscale = 0                                                     # Disables the resolution scaling effects
    s_soundon = 0                                                            # Determines if the sound engine starts or not. Requires restart to turn sound on/off.
    s_volume = 0.25                                                          # Sets the overall sound volume.
    s_musicvolume = 0.25                                                     # Sets the music volume.
    s_effects = 0                                                            # Use sound effects or not.
    s_system = 0                                                             # Sets the sound system (0 autodetect;   1 DirectSound 8; 2 DirectSound; 3 Win MM; 4 ALSA; 5 Core Audio; 6 No sound.
    s_showmixer = 0                                                          # Shows the music mixer debug.
    s_gamemusic = 1                                                          # Plays music in game
    s_ambientmusic = 0                                                       # Ambient music while playing game.
    s_menumusic = 1                                                          # Menu music on or off.
    s_swapchannels = 0                                                       # Swaps audio channels.
    security_whitelist_active = 0                                            # Set to 1 to allow only the names in the whitelist or 0 to disallow the names in the blacklist
    security_whitelist = Security/whitelist.cfg                              # The file with the whitelist config
    security_blacklist = Security/blacklist.cfg                              # The file with the blacklist config
    security_ignorelist = Security/ignorelist.cfg                            # The file with the ignorelist config
    security_seclevs = Security/seclevs.cfg                                  # The file with the seclev config
    security_banflags = griefer abuser impersonation                         # Ban flags to observe but be lenient about - once expired these users will be allowed back in.
    security_strictflags = hacker                                            # Ban flags to observe absolutely, anyone with a history of these will be banned permanently.
    n_graph = 0                                                              # Shows the network activity graph.
    sv_maxplayers = 16                                                        # Maximum number of players allowed ingame.
    sv_enable_joinfull = 0                                                   # If set to 1 then privileged users (join_full seclev feature) may join the server when full.
    sv_reservedslots = 0                                                     # Number of reserved slots (additional slots on top of the max, accessible only to privileged players).
    sv_ip = 0                                                                # Server communication IP address, this is where it listens for incoming clients. This is the IP address clients can connect to. Set to 0 for automatic detection.
    sv_ipv6 = 0                                                              # Server communication IPv6 address, this is where it listens for incoming clients. This is the IPv6 address bound for anything but game traffic (currently). Set to 0 for automatic detection.
    sv_tcpr = 0                                                              # Whether to enable the TCP RCON server on sv_port. Default: 0.
    sv_tcpr_everything = 0                                                   # Whether to print the entire console log to tcpr, or just stuff sent specifically from scripts with tcpr(). Default: 1
    sv_print_tcpr_specific = 0                                               # Whether to print tcpr specific stuff to the console. Default: 0
    sv_register = 1                                                          # Whether or not to register this server with the master list.  You likely only want this set to 0 if this is a firewalled private server.
    sv_sendminimap = 1                                                       # Sends minimap to API. If this is set to 0 the minimap won't appear in servers browser.
    sv_preferAF = 4                                                          # Server AF preference for whether clients connect using IPv4 or IPv6. Set to 0 for clients to use whichever performs better when both are available
    sv_enableIPv6 = 0                                                        # Whether to use IPv6 globally. Set to 0 to disable IPv6 globally including for API calls (NOT RECOMMENDED!).
    sv_port = 50301                                                          # Server communication port, this is where it listens for incoming clients. Remember to open this port in your firewall.
    cl_port = 50328                                                          # Client communication port.
    sv_password =                                                            # Sets the server password.
    sv_rconpassword = marcel                                               # Sets the server remote console password.
    disable_seclevoutput = 1                                                 # If set to 1 then loading seclevs will not print them out.
    sv_allow_globals_mods = 0                                                # If set to 1 global moderators and admins can kick/ban players on server.
    sv_deltapos_modifier = 0                                                 # Controls the threshold for delta packet updating. Value higher than 1 will reduce bandwidth, lower increase.
    sv_compression = 1                                                       # Compress network data or not. Disabling compression may improve performance. DO NOT change this while running the server!
    sv_fastdeltas = 0                                                        # Faster deltas mean less CPU intensive but more bandwidth used.
    cl_name =                                                                # Sets the players nickname.
    cl_clantag =                                                             # Sets the players clan name.
    cl_classnum = 0                                                          # Sets the players class number.
    cl_team = 1                                                              # Sets the players team number.
    cl_sex = 0                                                               #
    cl_head = 255                                                            #
    cl_hat = 0                                                               #
    cl_joinaddress = 127.0.0.1:50301                                         # Client only! Join address for the GUI box in menu.
    cl_password =                                                            # GUI: Join password.
    sv_maxping = 1000                                                        # Max ping allowed on server after which player is kicked. Large ping players will slow down server.
    sv_maxping_warnings = 1000                                               # Because of ping spikes, warnings are issued if a player has ping over max number.
    sv_pingkick_time = 1000                                                  # The amount of time in seconds to kick someone for if they're over ping.
    sv_maxhack_warnings = 25                                                 # Maximum amount of warnings where server thinks player is hacking.
    sv_alloweditor = 0                                                       # If set to 1 players that have RCON can start map editor on server
    sv_name = Marcel's Server                                                # Sets the server name displayed in server browser.
    sv_info =                                                                # Sets the server info displayed in server browser.
    sv_global_bans = 1                                                       # Determines whether the server uses the THD accounts global ban data.
    sv_verify_mods = 0                                                       # Set to true to if you want this server's mods to be API-Verified (must be registered and distributed directly by the developer), else false.
    sv_visiblity_scale = 1.25                                                # Scales the area where other blobs are determined to be visible by the player.
    sv_max_localplayers = 1                                                  # Maximum number of local players.
    sv_bots = 0                                                              # Number of bots (might not be used by server).
    cl_ask_to_download = 1                                                   # Prompts for mods download when joining server.
    cl_popup_shown = 0                                                       # Manages offers on menu startup.
    u_transparency = 255                                                     # Transparency of the game interface.
    u_showtutorial = 1                                                       # Show controls tutorial
    u_shownames = 1                                                          # Show team member names above head
    u_agreedterms = 1                                                        # Agreed to terms
    c_dimension_x = 1                                                        # Width of console in percents of screen.
    c_dimension_y = 0.9                                                      # Height of console in percents of screen.
    c_linespacing = 1                                                        # Space between lines in console.
    c_indent = 1                                                             # Left indentation of messages in console.
    c_key = 36                                                               # The key for opening and closing the console.
    c_history_size = 20                                                      # Number of console commands stored in history.
    c_halign = 2                                                             # Horizontal alignment of console 0-left, 1-center, 2-right.
    c_valign = 0                                                             # Vertical alignment of console 0-top, 1-middle, 2-bottom.
    cc_linespacing = 1                                                       # Space between lines in console.
    cc_indent = 8                                                            # Left indentation of messages in console.
    cc_key = 84                                                              # The key for opening and closing the chat.
    cc_key_team = 89                                                         # The key for opening and closing the chat in team mode.
    cc_history_size = 25                                                     # Number of console commands stored in history.
    cc_halign = 2                                                            # Horizontal alignment of console 0-left, 1-center, 2-right.
    cc_valign = 2                                                            # Vertical alignment of console 0-top, 1-middle, 2-bottom.
    cc_killfeed = 0                                                          # Show kill feed in chat console?
    g_reloadfiles_count = 0                                                  # How many files to tick forward the file reloader each frame. High numbers will cause lag.
    g_reloadfiles_wait = 0                                                   # How long to wait between updates to the file reloader.
    g_rendergraph = 0                                                        # Debug/optimization info. Turns on/off the rendering time graph.
    g_particlegraph = 0                                                      # Debug/optimization info. Turns on/off particle performance graph.
    g_physicsgraph = 0                                                       # Debug/optimization info. Turns on/off the physics time graph.
    g_scriptsgraph = 1                                                       # Debug/optimization info. Turns on/off the scripts time graph.
    # END OF CONFIG
    
    --- Double Post Merged, Jul 7, 2016, Original Post Date: Jul 7, 2016 ---
    I already I disabled the kernel IPV6 , but the problem persists
     
  20. Furai

    Furai THD Team THD Team Administrator

    Messages:
    3,124
    Code:
    sv_preferAF = 4
    ^ set that to 0.

    Though it was ok as 4.
     
Thread Status:
Not open for further replies.