1. Welcome to LilyPad. Download the project, explore the forums, and create your own LilyPad network.


    If you use the software and enjoy it or have a question, or would like to contribute to the future of the software directly or through resources, please sign up and join our little community.

simple setup - help me

Discussion in 'Support' started by idespam, May 14, 2014.

  1. idespam

    idespam New Member

    Hello.

    I can access any server I add to domain: "", but not those the domains I try to access as domain: localhost:2556x or by domain: IP:2556x. With or without " around them. Please point out what I'm doing wrong.
    • proxy: version 76
    • connect: version: 32
    • spigot: spigot-1.7.9-R0.1-SNAPSHOT.jar
    • bukkit-connect: Implementation-Version: 67
    • bukkit-portal: Implementation-Version: 21
    • bukkit-portalcommand: Implementation-Version: 12
    BOX-1
    • proxy
    • connect
    • spigot-0 (hub)
    • spigot-1
    BOX-2
    • spigot-2
    • spigot-3
    Code (text):
    ## /home/mc/proxy/proxy.yml
    connect:
      address: 127.0.0.1:5091
      credentials:
        username: hub-proxy
        password: whatever
    proxy:
      bind: :25565
      routes:
      - domain: ""
        server: spigot-0
      - domain: localhost:25566
        server: spigot-0
      - domain: localhost:25567
        server: spigot-1
      - domain: BOX-2-IP:25565
        server: spigot-2
      - domain: BOX-2-IP:25566
        server: spigot-3
      locale:
        full: whatever
        offline: whatever
        loggedIn: whatever
        lostConn: whatever
        shutdown: whatever
      motd: whatever
      maxPlayers: 1
      authenticate: true
     
    Code (text):
    ## /home/mc/connect/connect.yml
    bind: :5091
    logins:
    - username: hub-proxy
      password: whatever
    - username: spigot-0
      password: whatever
    - username: spigot-1
      password: whatever
    - username: spigot-2
      password: whatever
    - username: spigot-3
      password: whatever
     
    Code (text):
    ## /home/mc/hub-lobby/plugins/LilyPad-PortalCommand/config.yml
    quick-commands: true
    allowed-servers:
    - spigot-0
    - spigot-1
    - spigot-2
    - spigot-3
    messages:
      server-offline: '&f[&7Server&f] This server is currently &4offline&f. Try again
        later!'
      allowed-servers: '&fYou can connect to the following servers: {servers}'
      server: '&6{name}&f'
     
    Please note that if I replace
    Code (text):
    - domain: ""
        server: spigot-0
     
    with
    Code (text):
    - domain: ""
        server: spigot-1
     
    I do connect to spigot-1, but that's the only way I can access it right now.
    Last edited: May 14, 2014
  2. idespam

    idespam New Member

    logs at server restart:
    Code (text):
    ## lilypad-connect
    Connect server, authorized: hub-proxy.d3adf82e40f5884b80302b3e0de2b318 ip: 127.0.0.1
    Connect server, roled as proxy: hub-proxy ip: 127.0.0.1
    Connect server, authorized: spigot-1.f850a34910f5d88180abe411317374e0 ip: 127.0.0.1
    Connect server, roled as server: spigot-1 ip: 127.0.0.1
     
    Code (text):
    ## spigot-1 console
    [21:33:51 INFO]: [Connect] Connected to the cloud
    When I do /server spigot-1 or /spigot-1 nothing happens. No error, no log entry.
  3. Tzeentchful

    Tzeentchful Member Contributor

    Lilypad does not accept ports for a domain.
    The only way to get what you want is to have a proxy running for each port you want to bind to.
    • Like Like x 1
    • Informative Informative x 1
  4. The_Zip

    The_Zip Active Member Resource Contributor

    So man, I set up a similar set up to yours, because everything looked perfectly fine to me. Here are all my configs:

    Proxy:
    Code (text):
    connect:
      address: localhost:5091
      credentials:
        username: hub-proxy
        password: test
    proxy:
      bind: :25565
      routes:
      - domain: ""
        server: spigot-0
      - domain: localhost:25556
        server: spigot-0
      - domain: localhost:25557
        server: spigot-1
      locale:
        full: whatever
        offline: whatever
        loggedIn: whatever
        lostConn: whatever
        shutdown: whatever
      motd: whatever
      maxPlayers: 1
      authenticate: true
    Connect:
    Code (text):
    bind: localhost:5091
    logins:
    - username: hub-proxy
      password: test
    - username: spigot-0
      password: whatever
    - username: spigot-1
      password: whatever
    Bukkit-Connect:
    Code (text):
    settings:
      address: 127.0.0.1
      port: 5091
      credentials:
        username: spigot-0
        password: whatever
     
    LilyPad Portal Connect:
    Code (text):
    quick-commands: true
    allowed-servers:
    - spigot-0
    - spigot-1
    messages:
      server-offline: '&f[&7Server&f] This server is currently &4offline&f. Try again
        later!'
      allowed-servers: '&fYou can connect to the following servers: {servers}'
      server: '&6{name}&f'
     
    In which I than realized, I had no idea of this (as @Tzeentchful so kindly pointed out) that you can't bind the port. Therefor, I changed it to a domain and to not binding any ports. My domain config looks like this:

    Code (text):
    [CODE]connect:
      address: localhost:5091
      credentials:
        username: hub-proxy
        password: test
    proxy:
      bind: :25565
      routes:
      - domain: ""
        server: spigot-0
      - domain: "idespam0.thezip.us"
        server: spigot-0
      - domain: "idespam1.thezip.us"
        server: spigot-1
      locale:
        full: whatever
        offline: whatever
        loggedIn: whatever
        lostConn: whatever
        shutdown: whatever
      motd: whatever
      maxPlayers: 1
      authenticate: true
    [/CODE]

    Though I haven't got the chance to really test that out yet. On the other note, which should be the /server issue and won't matter with the binding. My set up successfully used /server .

    Code (text):
    [06:49:43 INFO]: The_Zip issued server command: /server
    [06:49:52 INFO]: The_Zip issued server command: /server spigot-1
    [06:49:58 INFO]: The_Zip lost connection: Disconnected
    [06:49:58 INFO]: The_Zip left the game.
    [06:52:00 INFO]: UUID of player The_Zip is c66f83cb-c58e-3d2c-a482-ecd361902b99
    [06:52:00 INFO]: The_Zip[/127.0.0.1:57540] logged in with entity id 1605 at ([world] -245.62039120081116, 68.0, -130.8017183532275)
    [06:52:00 INFO]: The_Zip lost connection: Disconnected
    [06:52:00 INFO]: The_Zip left the game.
    Sorry I don't have more time to go more in-depth with this, though this probably didn't help at all.

    I hope it helped!
    • Friendly Friendly x 1
  5. idespam

    idespam New Member

    If Tzeentchful is right, it explains a lot and we got to set up subdomains for our servers.

    Then the question is different. How do you set up lilypad if you run multiple spigots on each of your boxes and the only references to those spigots is xx.xx.xx.xx:xxxxx?
    Last edited: May 14, 2014
  6. idespam

    idespam New Member

    This does not make any sense... it is extremely inefficient to run one spigot per box, as it is a single-thread java app.

    We run 4 spigots per box. I can not believe that Lilypad is not prepared to support that. It must be me, who does not understand the config.
  7. Tzeentchful

    Tzeentchful Member Contributor

    @idespam i don't think you understand how lilypad works. This is not bungee where you need to define the server by it's ip and port. Lilypad is a completely distributed system.

    When you start up some spigot server(on any server) it authenticates to lilypad's connect server saying im running on x.x.x.x:xxxxx
    So when someone connects to the proxy it will look at the incoming domain they are joining from EG: 'hub.tzeentchful.net' so in your proxy's config you say that the domain 'hub.tzeentchful.net' goes to the server authenticated with the username 'hub'. The proxy then grabs the IP for that server by asking the connect server(there is caching so it doesn't have to ask every time) and sets up the connection to that server.
    I think where you got confused is on the routes section of the config. The domain is the domain the that player is connecting from not where they will be connecting to on your backend.

    Code (text):
    proxy:
      bind: :25565
      routes:
      - domain: ""
        server: server
      - domain: hub.tzeentchful.net
        server: hub
      - domain: prison.tzeentchful.net
        server: prison

     
    • Agree Agree x 1
  8. idespam

    idespam New Member

    Yes, you are right. Someone outside of this forum already helped me out and I had my facepalm moment of the day. It took me a week of massive frustration to learn how cool LilyPad is, I'm curious, what percent of the people starting to experiment with it will be this persistent. Perception is reality. It does not matter how great the software is. What matters is the experience the user has. And user experience is sadly always dominated by the weakest part of the package - documentation in this case.

    I will gladly contribute, I know programmers look at documentation as an inferior task.
    Last edited: May 15, 2014
  9. The_Zip

    The_Zip Active Member Resource Contributor

    I love @Coelho 's response (adding Documentation to the tab bar).

    Me and @Matt have been working on a Wiki, which hopefully should be the answer to the problem. I suggested XenCarta , though haven't heard anything back on it.
    • Like Like x 1

Share This Page