Thread: Donations are down

Results 1 to 18 of 18
  1. #1
    Banned CryoKeen's Avatar
    Join Date
    Aug 2001
    Location
    United States
    Posts
    4,455

    Exclamation Donations are down

    well they have been for a couple of days, not updating and recent donations don't seem to be applying

  2. #2
    What a beautiful duwang. Metal's Avatar
    Join Date
    Dec 2007
    Location
    Minnesota
    Posts
    95

    Re: Donations are down

    I too have noticed that donator status is down for everyone, not just myself. This applies to select linux servers and seems to be an issue with connecting to wherever the
    authentication for donators is kept. Hopefully this can be fixed before donations end up having to be hard-coded into the mod.

    Known Servers with Issue:
    - The Sharknest
    - Cartman2000's Svencoop
    Last edited by Metal; 04-08-2015 at 06:32 PM.

  3. #3
    Banned Solokiller's Avatar
    Join Date
    Sep 2004
    Location
    Belgium
    Posts
    3,314

    Re: Donations are down

    Do any servers have sv_disable_online_api set to 1? If so, their donor database lookup will use the hardcoded list only.

  4. #4
    Banned CryoKeen's Avatar
    Join Date
    Aug 2001
    Location
    United States
    Posts
    4,455

    Re: Donations are down

    Thanks Solokiller we will look into this as soon as we can! Thanks!

  5. #5
    Administrator AdamR's Avatar  
    Manager
    Join Date
    Mar 2004
    Location
    Cardiff, South Wales [UK]
    Posts
    8,569

    Re: Donations are down

    Tried on my home server, Zebrahut, and Potato servers -- donation status received fine. The database end is also logging successful requests.

    This sounds very server specific. Which servers are you playing on?
    Adam "Adambean" Reece
    Sven Co-op team

    Also on: Steam | Facebook | Twitter | YouTube | Twitch
    Released AMXX plug-ins: Bind number slots | NextMap with Sven Co-op fix | Sven Co-op administrator icons

  6. #6
    What a beautiful duwang. Metal's Avatar
    Join Date
    Dec 2007
    Location
    Minnesota
    Posts
    95

    Re: May be just a linux host issue

    Quote Originally Posted by AdamR View Post
    Tried on my home server, Zebrahut, and Potato servers -- donation status received fine. The database end is also logging successful requests.

    This sounds very server specific. Which servers are you playing on?
    Snarkcafe - Works
    Multiplay UK - Works
    Mine - Does not work
    Cartman2000's - Does not work
    Arkservers - Works
    Windows based listen servers - Works

    The only thing I'm seeing in common with the servers that don't seem to get the API to work is that they are Linux based.
    I do appreciate your effort in checking this as it seemed to cover a large majority of servers. (At least populated ones).

    Perhaps there's something we're missing in the set-up phase for the server?

  7. #7
    Game tester  
    Programmer
    Join Date
    Oct 2009
    Location
    Finland
    Posts
    199

    Re: May be just a linux host issue

    Quote Originally Posted by Metal View Post
    The only thing I'm seeing in common with the servers that don't seem to get the API to work is that they are Linux based.
    zebra hut seems to work, and it runs on linux. O_o

  8. #8
    What a beautiful duwang. Metal's Avatar
    Join Date
    Dec 2007
    Location
    Minnesota
    Posts
    95

    Re: May be just a linux host issue

    Quote Originally Posted by Zodemon View Post
    zebra hut seems to work, and it runs on linux. O_o
    I know by default Linux servers seem to have every port shut, perhaps the one the API uses is blocked by that means.
    I'd rather not open up everything, what port does the donation API use?

  9. #9
    Administrator AdamR's Avatar  
    Manager
    Join Date
    Mar 2004
    Location
    Cardiff, South Wales [UK]
    Posts
    8,569

    Re: Donations are down

    Your dedicated server needs to be able to make an outbound http connection to get donor statuses online. This is not usually blocked.

    It is also possible that cartman's server deliberately switches off online API.
    Adam "Adambean" Reece
    Sven Co-op team

    Also on: Steam | Facebook | Twitter | YouTube | Twitch
    Released AMXX plug-ins: Bind number slots | NextMap with Sven Co-op fix | Sven Co-op administrator icons

  10. #10
    What a beautiful duwang. Metal's Avatar
    Join Date
    Dec 2007
    Location
    Minnesota
    Posts
    95

    Re: Donations are down

    Quote Originally Posted by AdamR View Post
    Your dedicated server needs to be able to make an outbound http connection to get donor statuses online. This is not usually blocked.

    It is also possible that cartman's server deliberately switches off online API.
    Confirmed as bug 2390, thanks for the help Solokiller and Dynamite

    Though I don't know if this bug is also the reason behind Cartman's server not having the API enabled.
    Last edited by Metal; 05-08-2015 at 04:44 AM. Reason: Thanks #svencoop IRC

  11. #11
    What a beautiful duwang. Metal's Avatar
    Join Date
    Dec 2007
    Location
    Minnesota
    Posts
    95

    Re: Donations are down

    So is there a workaround for the bug?

    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=14.04
    DISTRIB_CODENAME=trusty
    DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS"
    NAME="Ubuntu"
    VERSION="14.04.3 LTS, Trusty Tahr"
    sudo nc gameinfo.svencoop.com 80 -vz
    Connection to gameinfo.svencoop.com 80 port [tcp/http] succeeded!

  12. #12
    Administrator AdamR's Avatar  
    Manager
    Join Date
    Mar 2004
    Location
    Cardiff, South Wales [UK]
    Posts
    8,569

    Re: Donations are down

    If you let me know the public facing IP address of your game server I can see if anything out of the usual is in the service logs.
    Adam "Adambean" Reece
    Sven Co-op team

    Also on: Steam | Facebook | Twitter | YouTube | Twitch
    Released AMXX plug-ins: Bind number slots | NextMap with Sven Co-op fix | Sven Co-op administrator icons

  13. #13
    What a beautiful duwang. Metal's Avatar
    Join Date
    Dec 2007
    Location
    Minnesota
    Posts
    95

    Re: Donations are down

    Quote Originally Posted by AdamR View Post
    If you let me know the public facing IP address of your game server I can see if anything out of the usual is in the service logs.
    68.47.124.207

  14. #14
    Administrator AdamR's Avatar  
    Manager
    Join Date
    Mar 2004
    Location
    Cardiff, South Wales [UK]
    Posts
    8,569

    Re: Donations are down

    Looks like it's not sending its' game version correctly so our service is assuming 4.8 (correctly), but it's reporting its' IP address as 127.0.0.1. That's the real issue.

    There must be a misconfiguration with your system IP address (possibly a host name issue or adapter preference?). Our game server library asks the host operating system for which IP address it is bound to, so if your host OS is reporting 127.0.0.1 there isn't much the game library can do about that.

    Other game servers doing this (since 20th July):

    • 98.246.139.18: Cartman-2000's server
    • 195.191.250.139: KOOI7EPATUB - HLDM.ORG
    Adam "Adambean" Reece
    Sven Co-op team

    Also on: Steam | Facebook | Twitter | YouTube | Twitch
    Released AMXX plug-ins: Bind number slots | NextMap with Sven Co-op fix | Sven Co-op administrator icons

  15. #15
    What a beautiful duwang. Metal's Avatar
    Join Date
    Dec 2007
    Location
    Minnesota
    Posts
    95

    Re: Donations are down

    Quote Originally Posted by AdamR View Post
    Looks like it's not sending its' game version correctly so our service is assuming 4.8 (correctly), but it's reporting its' IP address as 127.0.0.1. That's the real issue.

    There must be a misconfiguration with your system IP address (possibly a host name issue or adapter preference?). Our game server library asks the host operating system for which IP address it is bound to, so if your host OS is reporting 127.0.0.1 there isn't much the game library can do about that.

    Other game servers doing this (since 20th July):

    • 98.246.139.18: Cartman-2000's server
    • 195.191.250.139: KOOI7EPATUB - HLDM.ORG
    Sorry for taking so long to respond, just fixed it when I had free time; it's a very quick and easy fix for all Linux users.

    1.) As root, using either vim or nano; open /etc/hosts
    Code:
    sudo nano /etc/hosts
    2.) change all instances of 127.0.0.1 to read your external ip.
    Code:
    #127.0.0.1      mx.sharknest.net mx localhost
    #127.0.1.1      Katyusha
    68.47.124.207 mx.sharknest.net mx localhost
    68.47.124.207 Katyusha
    3.) save the edits.
    Code:
    CTRL + O or CTRL + X for nano, wq! for vim.
    4.) reboot the linux machine.
    Code:
    sudo reboot now
    I appreciate everyone's time and patience in trying to diagnose the issue.

  16. #16
    warrior spy-warrior's Avatar  
    Contributor
    Join Date
    Nov 2006
    Location
    Europe, France, Paris
    Posts
    2,959

    Re: Donations are down


    https://developer.valvesoftware.com/wiki/Command_Line_Options#Useful_console_variables_2

    +ip <address> - Specifies the IP when multiple network cards are installed. Required for VAC2 operation.
    Note:Usually you do not need to specify this.
    netstat -an

    change ip localhost -> x.x.x.x

    https://developer.valvesoftware.com/wiki/Master_Server_Query_Protocol
    Last edited by spy-warrior; 20-08-2015 at 11:43 AM.
    Patience is a virtue greatly needed by those who attempt great things.
    La patience est une vertu fort nécessaire à ceux qui tentent de réaliser de grandes choses.

    Server SvenCoop
    I love the mods svencoop
    World time zone & Look clocks

  17. #17
    Administrator AdamR's Avatar  
    Manager
    Join Date
    Mar 2004
    Location
    Cardiff, South Wales [UK]
    Posts
    8,569

    Re: Donations are down

    Quote Originally Posted by Metal View Post
    Sorry for taking so long to respond, just fixed it when I had free time; it's a very quick and easy fix for all Linux users.

    1.) As root, using either vim or nano; open /etc/hosts
    Code:
    sudo nano /etc/hosts
    2.) change all instances of 127.0.0.1 to read your external ip.
    Code:
    #127.0.0.1      mx.sharknest.net mx localhost
    #127.0.1.1      Katyusha
    68.47.124.207 mx.sharknest.net mx localhost
    68.47.124.207 Katyusha
    3.) save the edits.
    Code:
    CTRL + O or CTRL + X for nano, wq! for vim.
    4.) reboot the linux machine.
    Code:
    sudo reboot now
    I appreciate everyone's time and patience in trying to diagnose the issue.
    I'd generally configure the hosts file to point to the address held by adapters denoted in "ifconfig", as not all computers hold on to a public address. You don't need to reboot at the end either. The changes you make to the hosts file takes effect right away.
    Adam "Adambean" Reece
    Sven Co-op team

    Also on: Steam | Facebook | Twitter | YouTube | Twitch
    Released AMXX plug-ins: Bind number slots | NextMap with Sven Co-op fix | Sven Co-op administrator icons

  18. #18
    Registered User
    Join Date
    Mar 2012
    Posts
    522

    Re: Donations are down

    Quote Originally Posted by AdamR View Post
    Your dedicated server needs to be able to make an outbound http connection to get donor statuses online. This is not usually blocked.
    Some of the more anal Linux distros with selinux and firewalls won't allow applications that aren't a web browser make outgoing connections of any type without making specific rules that allow it.

    I know Fedora does stuff like this. I have to do all sorts of annoying things with selinux and firewalld to allow both UDP and TCP connections out of HLDS.

    Quote Originally Posted by AdamR View Post
    Looks like it's not sending its' game version correctly so our service is assuming 4.8 (correctly), but it's reporting its' IP address as 127.0.0.1. That's the real issue.

    There must be a misconfiguration with your system IP address (possibly a host name issue or adapter preference?). Our game server library asks the host operating system for which IP address it is bound to, so if your host OS is reporting 127.0.0.1 there isn't much the game library can do about that.
    On Linux, if you don't manually specify the IP address with "+ip 1.2.3.4" on the HLDS launch parameters, it will usually grab whatever the first network interface in the system is. In most cases this is "lo" or the loopback interface which has an IP address of 127.0.0.1. But even though it grabs the lo interface, it will still broadcast out all network interfaces in most cases.

    This is why a Linux server may report its IP address is 127.0.0.1 but still work on the internet. If you want to strictly bind it to a real ethernet interface, like eth0, you'll have to add "+ip <ethernet ip>" to the launch options of the server. just make sure that the network interface IP never changes because HLDS will stop working if it does and you'll have to go back to the launch options and fix it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •