Welcome to the PufferPanel community forums! If you need help please register an account and post in the Support category.

Failed to bind to port on pufferpanel.



  • Greetings,

    I wanted to use this panel for my hosting services, GiraffeHosting, but when trying to make a test server on my dedicated server, it seems to get this error. The port is not in use, and port is fowarded in Azure.

    Server is starting...

    ---------Running Pre-Flight, this might take a moment or two...---------

    [[01:01:08] [Server thread/INFO]: Starting minecraft server version 1.8.8
    [01:01:08] [Server thread/INFO]: Loading properties
    [01:01:08] [Server thread/INFO]: Default game type: SURVIVAL
    [01:01:08] [Server thread/INFO]: Generating keypair
    [01:01:08] [Server thread/INFO]: Starting Minecraft server on 40.114.87.225:25500
    [01:01:08] [Server thread/INFO]: Using epoll channel type
    [01:01:08] [Server thread/WARN]: **** FAILED TO BIND TO PORT!
    [01:01:08] [Server thread/WARN]: The exception was: java.io.IOException: Error during bind(...): Cannot assign requested address
    [01:01:08] [Server thread/WARN]: Perhaps a server is already running on that port?
    [01:01:08] [Server thread/INFO]: Stopping server
    [01:01:08] [Server Shutdown Thread/INFO]: Stopping server
    [Scales] [WARNING] This server has been detected as crashed by the management daemon. The restart process is being skipped due to the frequency at which this server is crashing (< 60 seconds between crashes).

    Any help would be very helpful for me.

    Greetings,



  • What version of Scales are you using?



  • Hello, thank you for your response. I am using the version of scales that was available yesterday.

    I am not entirely sure of what version I have.

    https://40.114.87.225:5656



  • That error implies that there is already a server running on that port or that the IP that you see publicly is actually not what the server's network interface has.

    Can you use "ip addr" and "netstat -lnp" to see what IPs your server has along with the processes currently using ports



  • $ ip addr
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
    valid_lft forever preferred_lft forever
    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:0d:3a:12:cd:47 brd ff:ff:ff:ff:ff:ff
    inet 10.10.0.7/24 brd 10.10.0.255 scope global eth0
    valid_lft forever preferred_lft forever
    inet6 fe80::20d:3aff:fe12:cd47/64 scope link
    valid_lft forever preferred_lft forever
    3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:15:5d:33:ff:f6 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::215:5dff:fe33:fff6/64 scope link
    valid_lft forever preferred_lft forever
    $ netstat -lnp
    (Not all processes could be identified, non-owned process info
    will not be shown, you would have to be root to see it all.)
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 10.10.0.7:16001 0.0.0.0:* LISTEN -
    tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN -
    tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN -
    tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
    tcp 0 0 0.0.0.0:5656 0.0.0.0:* LISTEN -
    tcp6 0 0 :::80 :::* LISTEN -
    tcp6 0 0 :::22 :::* LISTEN -
    udp 0 0 0.0.0.0:68 0.0.0.0:* -
    udp 0 0 0.0.0.0:68 0.0.0.0:* -
    udp 0 0 10.10.0.7:123 0.0.0.0:* -
    udp 0 0 127.0.0.1:123 0.0.0.0:* -
    udp 0 0 0.0.0.0:123 0.0.0.0:* -
    udp 0 0 0.0.0.0:21943 0.0.0.0:* -
    udp 0 0 0.0.0.0:29217 0.0.0.0:* -
    udp 0 0 0.0.0.0:34704 0.0.0.0:* -
    udp6 0 0 fe80::215:5dff:fe33:123 :::* -
    udp6 0 0 fe80::20d:3aff:fe12:123 :::* -
    udp6 0 0 ::1:123 :::* -
    udp6 0 0 :::123 :::* -
    udp6 0 0 :::16865 :::* -
    udp6 0 0 :::52709 :::* -
    Active UNIX domain sockets (only servers)
    Proto RefCnt Flags Type State I-Node PID/Program name Path
    unix 2 [ ACC ] STREAM LISTENING 22814 - /var/run/nscd/socket
    unix 2 [ ACC ] STREAM LISTENING 22816 - /var/run/.nscd_socket
    unix 2 [ ACC ] STREAM LISTENING 11055 - /run/systemd/private
    unix 2 [ ACC ] SEQPACKET LISTENING 119 - /run/udev/control
    unix 2 [ ACC ] STREAM LISTENING 122 - /run/systemd/journal/stdout
    unix 2 [ ACC ] STREAM LISTENING 31101 1512/systemd /run/user/1001/systemd/private
    unix 2 [ ACC ] STREAM LISTENING 54992 - /run/uuidd/request
    unix 2 [ ACC ] STREAM LISTENING 60898 - /var/run/php5-fpm.sock
    unix 2 [ ACC ] STREAM LISTENING 49138 - /var/run/mysqld/mysqld.sock
    unix 2 [ ACC ] STREAM LISTENING 253 - /var/run/dbus/system_bus_socket



  • @GiraffeAttack said:

    10.10.0.7

    Yeah, your server only knows about this IP, it does not know about that external one.

    You need to have your servers bind to that IP instead of your public IP.



  • Thanks, when I do this the server starts now, but since it's not the internal IP. You can't connect to the server.



  • The binding will not cause a problem. That sounds like you have instead a firewall which is preventing the connections.



  • Ok, thanks I will try to contact Azure.


Log in to reply
 

1
Online

666
Users

708
Topics

3.2k
Posts

Looks like your connection to PufferPanel Community was lost, please wait while we try to reconnect.