삽질

팰월드 0.1.5.0 버전 적용 후 RCON 안 되는 거 해결

maengis 2024. 2. 28. 21:14

사용자가 없을 때 메모리가 특정 수치 이상이면 팰월드 서버를 재시작 하게 했는데 재시작이 안 되고 있었다.

이상하다 싶어서 수동으로 스크립트 실행을 해보니 RCON이 안 떠 있어서 오류나고 있음.

 

$ python3 /home/app/palworld_restart.py
[FATAL]   Connection Error:      Connection Failed.
          Function Name:         net::connect()
          Target Hostname/IP:    localhost
          Target Port:           25575
          Socket Error Code:     111
          Socket Error Message:  Connection refused
          Suggested Solutions:
          1.  Verify that you're using the correct IP/hostname & port.
          2.  Verify that the target is online, and that the server is running.
          3.  Check your network connection.
          4.  Reset your network adapter.

 

netstat으로 확인해도 25575 포트가 없다.

버전 올리면서 설정을 강제로 바꿨나 했는데 그것도 아님.

 

https://www.reddit.com/r/Palworld/comments/1b14s4f/v0150_rcon_unable_to_connect/

 

From the Palworld community on Reddit

Explore this post and more from the Palworld community

www.reddit.com

 

구글링 해보니까 ini에서는 빼고 실행할 때 옵션으로 주면 된다고 한다.

PalWorldSettings.ini 열어서 RCONEnabled=True인 걸 RCONEnabled=False로 수정 후 저장.

난 서비스에 등록 해서 /etc/systemd/system/palworld.service 수정함.

ExecStart=/설치경로/Steam/steamapps/common/PalServer/PalServer.sh

#옵션 추가
ExecStart=/설치경로/Steam/steamapps/common/PalServer/PalServer.sh -RCONPort=25575

 

 

재시작

systemctl daemon-reload
service palworld restart

 

 

netstat으로 포트 확인

$ sudo netstat -nlp | grep 25575
tcp        0      0 0.0.0.0:25575           0.0.0.0:*               LISTEN      312804/PalServer-Li
반응형