Author Topic: 2 instances running?  (Read 10902 times)

xep22

  • Newbie
  • *
  • Posts: 6
    • View Profile
2 instances running?
« on: February 25, 2019, 08:08:21 PM »
hi, I recognized that  users get 2 welcome-messages, from the name of my Bot and JTS3ServerMod. I stopped my Bot, but they still get it from "JTS3ServerMod", but I dont have other instances running?! how is that possible ?

Code: [Select]
ts@root:~/JTS3ServerMod$ ./jts3servermod_startscript.sh stop
No JTS3ServerMod running (jts3servermod.pid is missing)!

Stefan1200

  • Administrator
  • *****
  • Posts: 2244
    • View Profile
Re: 2 instances running?
« Reply #1 on: February 25, 2019, 08:26:43 PM »
How many bots answer, if you write !botinfo in the server chat?
Do you have multiple welcome messages configured at one bot?

xep22

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: 2 instances running?
« Reply #2 on: February 26, 2019, 09:06:10 PM »
just my bot name

Stefan1200

  • Administrator
  • *****
  • Posts: 2244
    • View Profile
Re: 2 instances running?
« Reply #3 on: February 26, 2019, 09:24:50 PM »

xep22

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: 2 instances running?
« Reply #4 on: February 26, 2019, 09:46:41 PM »
just 1  bot: "teamspeakGuide", so my bot name, not "JTS3ServerMod".

I have two welcome messages, for guests and members. Both get the messages both, but each of them the correct message.

edit: lol, I see that I the bot name changes every reconnect, now I got the welcome message from "JTS3ServerMod" and !botinfo says JTS3ServerMod, new reconnect to my Server and again "teamspeakGuide", new connect JTS3ServerMod...
« Last Edit: February 26, 2019, 09:53:24 PM by xep22 »

Stefan1200

  • Administrator
  • *****
  • Posts: 2244
    • View Profile
Re: 2 instances running?
« Reply #5 on: February 27, 2019, 07:12:17 AM »
Maybe the old bot is still connected and the alternative query name is set to JTS3ServerMod?
Whats in the JTS3ServerMod_InstanceManager.log and JTS3ServerMod_server.log? Are you sure, that only one java process is running?

xep22

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: 2 instances running?
« Reply #6 on: February 27, 2019, 06:25:29 PM »
here logs :

Quote
2019-02-25 20:10:06   START_MANAGER   JTS3ServerMod 6.5.4 (05.01.2019) Instance Manager started...
2019-02-25 20:10:06   SYSTEM_INFO   Operating System : Linux (version: 3.16.0-7-amd64 / arch: amd64)
2019-02-25 20:10:06   SYSTEM_INFO   Used Java Version: 1.8.0_201 (path: /usr/lib/jvm/java-8-oracle/jre)
2019-02-25 20:10:06   SYSTEM_INFO   Current directory: /home/bot/JTS3ServerMod
2019-02-25 20:10:06   LOCK_FILE   
2019-02-25 20:10:06   LOCK_FILE   ************************************************************************************************
2019-02-25 20:10:06   LOCK_FILE   Lock file still exists, it seems this JTS3ServerMod process is running twice! Please check this!
2019-02-25 20:10:06   LOCK_FILE   If you are sure, that the JTS3ServerMod process is not running twice, delete the file:
2019-02-25 20:10:06   LOCK_FILE   /home/bot/JTS3ServerMod/config/JTS3ServerMod_InstanceManager.cfg.lock
2019-02-25 20:10:06   LOCK_FILE   ************************************************************************************************
2019-02-25 20:10:06   LOCK_FILE   
2019-02-25 20:10:06   CONFIG   Loading InstanceManager config file from: /home/bot/JTS3ServerMod/config/JTS3ServerMod_InstanceManager.cfg
2019-02-25 20:10:06   CONFIG   Bot chat command !exec is disabled!
2019-02-25 20:10:06   START_INSTANCE   Start virtual bot instance bot1...

Quote
2019-02-25 20:10:06   JTS3ServerMod   STATUS   Virtual bot instance "bot1" starts now (build 6505)
2019-02-25 20:10:06   JTS3ServerMod   STATUS   Activate log level: WARNING
2019-02-25 20:10:08   JTS3ServerMod   ERROR   Throwable in teamspeakActionPerformed(): java.lang.NullPointerException

"Lock file still exists, it seems this JTS3ServerMod process is running twice" ah. and what to do now ?

Stefan1200

  • Administrator
  • *****
  • Posts: 2244
    • View Profile
Re: 2 instances running?
« Reply #7 on: February 27, 2019, 09:23:32 PM »
Maybe the Java VM was not able to delete that file. Please check with "ps -ef | grep java" if the JTS3ServerMod is running twice.

xep22

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: 2 instances running?
« Reply #8 on: February 27, 2019, 09:33:06 PM »
oh yes its running twice, how can I close the root session ?

Code: [Select]
bot        8169     1  0 Feb25 ?        00:15:12 java -jar JTS3ServerMod.jar
root     23294     1  0 Jan26 ?        04:28:12 java -jar JTS3ServerMod.jar

Stefan1200

  • Administrator
  • *****
  • Posts: 2244
    • View Profile
Re: 2 instances running?
« Reply #9 on: February 27, 2019, 09:34:53 PM »
kill 23294