Skip to content

Connecting via RCON has issues #19

@shinytreecko

Description

@shinytreecko

In my mail file, the cronjob gave this error. There are 2 servers running on this computer and they both have the same errors but just with different ports (the one I'm showing is port 25525 with Minecraft12345 as the password and the other one uses 25575 with the same password). I allowed the ports through UFW, but didn't port forward on my router since as far as I know I would only need to do that if I gave my external IP address to the script. When the server is started in the docker container, it says "RCON running on 0.0.0.0:25525". I tried making the cronjob use 0.0.0.0:25525:Minecraft12345 but it still prints out the exact same error messages as below saying it's using localhost. I was going to try without a password but I just realized RCON doesn't work without a password. My servers are running in docker containers and all required ports are exposed.

Subject: Cron wes@wgserver /var/lib/pterodactyl/volumes/backup.sh -c -s localhost:25525:Minecraft*12345 -w$

/var/lib/pterodactyl/volumes/backup.sh: connect: Connection refused
/var/lib/pterodactyl/volumes/backup.sh: line 180: /dev/tcp/localhost/25525: Connection refused
^[[0;33mWARNING:^[[0m RCON connection failed: Could not connect to localhost:25525
/var/lib/pterodactyl/volumes/backup.sh: connect: Connection refused
/var/lib/pterodactyl/volumes/backup.sh: line 180: /dev/tcp/localhost/25525: Connection refused
^[[0;33mWARNING:^[[0m RCON connection failed: Could not connect to localhost:25525
tar: .: file changed as we read it
^[[0;31mFATAL:^[[0m Archive command exited with nonzero exit code 1
/var/lib/pterodactyl/volumes/backup.sh: connect: Connection refused
/var/lib/pterodactyl/volumes/backup.sh: line 180: /dev/tcp/localhost/25525: Connection refused
^[[0;33mWARNING:^[[0m RCON connection failed: Could not connect to localhost:25525
/var/lib/pterodactyl/volumes/backup.sh: connect: Connection refused
/var/lib/pterodactyl/volumes/backup.sh: line 180: /dev/tcp/localhost/25525: Connection refused
^[[0;33mWARNING:^[[0m RCON connection failed: Could not connect to localhost:25525
/var/lib/pterodactyl/volumes/backup.sh: connect: Connection refused
/var/lib/pterodactyl/volumes/backup.sh: line 180: /dev/tcp/localhost/25525: Connection refused
^[[0;33mWARNING:^[[0m RCON connection failed: Could not connect to localhost:25525

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions