Jump to content
  • 0

Bec does not restart with the server


Psygomin

Question

I have an issue with BEC restarting when the server does. I have the scheduler setup i get my messages and even the warning messages for the server restarting then the server restarts. the server comes back up and BEC does not i have to manually start it again. when it all works is only when i manually start both the server and bec thru my server hosts "manager". what am i missing?

 

the time out value in my bec config has been changed from 60 to 120 to try to fix this but it didnt work.  i can post the code for my config.cfg, scheduler.xml and my restart.bat if need be. just dont want to paste alot of code right off.

 

oh and if it helps any servers hosted on DayZPriv

Link to comment
Share on other sites

Recommended Posts

  • 0
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

<Scheduler>
	
	<!-- Restart (Every 6 hours) -->	
	<job id="0">
	<time>05:30:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>0</loop> 
	<cmd>say -1 Server will restart in 30 minutes</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
	<job id="1">
	<time>05:50:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>0</loop> 
	<cmd>say -1 Server will restart 10 minutes</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
    <job id="2">
	<time>05:55:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>0</loop> 
	<cmd>say -1 Server will restart 5 minutes Please Land Now and Log out!</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
    <job id="3">
	<time>05:59:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day> 
	<loop>0</loop> 
	<cmd>say -1 Server will restart 1 minute</cmd>    
	<cmdtype>0</cmdtype>            
    </job>

    <job id="4">
	<time>06:00:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>0</loop> 
	<cmd>C:/dayz server manager/Instance10/epoch/serverRestart.bat</cmd>    
	<cmdtype>1</cmdtype>            
    </job>
	
	<job id="5">
    <time>00100</time>
    <delay>000010</delay>
    <day>1,2,3,4,5,6,7</day>
    <loop>1</loop> 
    <cmd>say -1 Please Remember to Be Respectful</cmd>    
    <cmdtype>0</cmdtype> 
	</job>
	
	<job id="6">
    <time>001005</time> 
    <delay>000010</delay>
    <day>1,2,3,4,5,6,7</day>
    <loop>1</loop> 
    <cmd>say -1 If you enjoy playing on this server, Help Keep it Live, ask Admin How!</cmd>    
    <cmdtype>0</cmdtype> 
	</job>

	<job id="7">
    <time>001010</time> 
    <delay>000010</delay>
    <day>1,2,3,4,5,6,7</day>
    <loop>1</loop> 
    <cmd>say -1 2 Types of Missions. With AI and Without. Check Your map For Details!</cmd>    
    <cmdtype>0</cmdtype> 
	</job>	

	<job id="8">
    <time>001020</time>
    <delay>000010</delay>
    <day>1,2,3,4,5,6,7</day>
    <loop>1</loop> 
    <cmd>say -1 Thanks For Playing PsyDayZ Epoch on Panthera!</cmd>    
    <cmdtype>0</cmdtype> 
	</job>
	
	<!-- noon restart -->
	
	<job id="9">
	<time>11:30:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>0</loop> 
	<cmd>say -1 Server will restart in 30 minutes</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
	<job id="10">
	<time>11:50:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>0</loop> 
	<cmd>say -1 Server will restart 10 minutes</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
    <job id="11">
	<time>11:55:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>0</loop> 
	<cmd>say -1 Server will restart 5 minutes Please Land Now and Log out!</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
    <job id="12">
	<time>11:59:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day> 
	<loop>0</loop> 
	<cmd>say -1 Server will restart 1 minute</cmd>    
	<cmdtype>0</cmdtype>            
    </job>

    <job id="13">
	<time>12:00:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>0</loop> 
	<cmd>C:/dayz server manager/Instance10/epoch/serverRestart.bat</cmd>    
	<cmdtype>1</cmdtype>            
    </job>
	
	<!-- 6pm restart -->
	
	<job id="14">
	<time>17:30:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>0</loop> 
	<cmd>say -1 Server will restart in 30 minutes</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
	<job id="15">
	<time>17:50:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>0</loop> 
	<cmd>say -1 Server will restart 10 minutes</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
    <job id="16">
	<time>17:55:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>0</loop> 
	<cmd>say -1 Server will restart 5 minutes Please Land Now and Log out!</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
    <job id="17">
	<time>17:59:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day> 
	<loop>0</loop> 
	<cmd>say -1 Server will restart 1 minute</cmd>    
	<cmdtype>0</cmdtype>            
    </job>

    <job id="18">
	<time>18:00:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>0</loop> 
	<cmd>C:/dayz server manager/Instance10/epoch/serverRestart.bat</cmd>    
	<cmdtype>1</cmdtype>            
    </job>
	
	<!-- Midnight restart -->
	
	<job id="19">
	<time>23:30:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>0</loop> 
	<cmd>say -1 Server will restart in 30 minutes</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
	<job id="20">
	<time>23:50:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>0</loop> 
	<cmd>say -1 Server will restart 10 minutes</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
    <job id="21">
	<time>23:55:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>0</loop> 
	<cmd>say -1 Server will restart 5 minutes Please Land Now and Log out!</cmd>    
	<cmdtype>0</cmdtype>            
    </job>
	
    <job id="22">
	<time>23:59:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day> 
	<loop>0</loop> 
	<cmd>say -1 Server will restart 1 minute</cmd>    
	<cmdtype>0</cmdtype>            
    </job>

    <job id="23">
	<time>00:00:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>0</loop> 
	<cmd>C:/dayz server manager/Instance10/epoch/serverRestart.bat</cmd>    
	<cmdtype>1</cmdtype>            
    </job>
</Scheduler>



Link to comment
Share on other sites

  • 0
    <job id="23">
	<time>00:00:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>0</loop> 
	<cmd>C:/dayz server manager/Instance10/epoch/serverRestart.bat</cmd>    
	<cmdtype>1</cmdtype>            
    </job>

should be like this:

    <job id="23">
	<time>00:00:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>0</loop> 
	<cmd>C:\dayz server manager\Instance10\epoch\serverRestart.bat</cmd>    
	<cmdtype>1</cmdtype>            
    </job>
Link to comment
Share on other sites

  • 0

Run bec as a service

not sure i understand this.   is this the #shutdown stuff ive been seeing? also keep in mind that this is hosted not run on my own box

 

changed the / to \ and still doesnt work right. still works when i manually start bec and the server only restarts once and bec doesnt come back up with it....

Link to comment
Share on other sites

  • 0

im quite not sure if he has access to any of these things or is even able to set his own service on his hoster?...

 

Ive been having the same issue and Have been talking to the DayZ Priv admins about it.

 

Turns our the BEC Master hosts are having some trouble aparently...here is what they told me-

 

"It's that the BE master servers are down so its unable to communicate. This has been happening the last few days and should resolve itself after while."

 

pretty much we are all just going to have to wait it out. 

Link to comment
Share on other sites

  • 0

so why dont you then first ask the hoster about this issue?

ive mentioned it many times and i was directed to the internet

@echo off

echo Killing Process epoch10.exe
PING -n 6 127.0.0.1>nul
echo.
taskkill /f /im "epoch10.exe"
echo.
echo Process epoch10.exe Ended...
echo.
PING -n 6 127.0.0.1>nul
echo.
echo Restarting epoch10.exe
cd "C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead"
START "" "C:\Dayz Server manager\Instance10\epoch\epoch10.exe" -beta=Expansion\beta;Expansion\beta\Expansion -mod=@dayz_Epoch;@Dayz_Epoch_Server10;@panthera;@ibr_plants;@ibr_rn "-config=C:\Dayz Server Manager\Instance10\epoch\server.cfg" "-cfg=C:\Dayz Server Manager\Instance10\epoch\basic.cfg" "-name=C:\Dayz Server Manager\Instance10\epoch" "-profiles=C:\Dayz Server Manager\Instance10\epoch" -port=2100

echo Restarting BEC...
PING -n 16 127.0.0.1>nul
cd "C:\Dayz Server Manager\Instance10\epoch\bec"
start epoch10_BEC.exe -f Config.cfg


Link to comment
Share on other sites

  • 0

 

ive mentioned it many times and i was directed to the internet

@echo off

echo Killing Process epoch10.exe
PING -n 6 127.0.0.1>nul
echo.
taskkill /f /im "epoch10.exe"
echo.
echo Process epoch10.exe Ended...
echo.
PING -n 6 127.0.0.1>nul
echo.
echo Restarting epoch10.exe
cd "C:\Program Files (x86)\Steam\SteamApps\common\Arma 2 Operation Arrowhead"
START "" "C:\Dayz Server manager\Instance10\epoch\epoch10.exe" -beta=Expansion\beta;Expansion\beta\Expansion -mod=@dayz_Epoch;@Dayz_Epoch_Server10;@panthera;@ibr_plants;@ibr_rn "-config=C:\Dayz Server Manager\Instance10\epoch\server.cfg" "-cfg=C:\Dayz Server Manager\Instance10\epoch\basic.cfg" "-name=C:\Dayz Server Manager\Instance10\epoch" "-profiles=C:\Dayz Server Manager\Instance10\epoch" -port=2100

echo Restarting BEC...
PING -n 16 127.0.0.1>nul
cd "C:\Dayz Server Manager\Instance10\epoch\bec"
start epoch10_BEC.exe -f Config.cfg


 

Read the post above this one. I just said why this is happening

Link to comment
Share on other sites

  • 0

 

masterservers... so everybody who uses bec should have this problem then?

cant really say that i have any problem with it...

 

can you try to add this to your bec startparameters and check it out?

--dsc

 

My bad I replied to you cuz I thought you were the one with the problem. 

 

but I mean, atm my BEC is working fine, it has gone a day or two without missing restarts and stuff like that but before that I was not restarting and my messages weren't showing up. But I'm just spreading the word from what the officials have told me. 

Link to comment
Share on other sites

  • 0

mine isnt working either ive had dayz priv guys trying to fix it but it will only restart once

 

Yeah that is what was happening to me, I have about a 50 message long ticket with them telling me they have "Ajusted" it.

 

Also another fix to this might be the following:

 

-Open and sign into the Server Manager

 

-Click start SERVER 

 

-Wait exactly 1 MINUTE and then click start BEC client. (I usually open up the clock on my computer and just watch it for a whole minute)

 

They tell me that sometimes the server starts up too quick? makes no sense to me but aparently after the first restart it doesn't detect that the server is back up so it shuts itself down. They fixed this for me by adjusting the start up wait time for battleye which is somewhere in the config folder of ur BEC and just made it longer.

Link to comment
Share on other sites

  • 0

Yeah that is what was happening to me, I have about a 50 message long ticket with them telling me they have "Ajusted" it.

 

Also another fix to this might be the following:

 

-Open and sign into the Server Manager

 

-Click start SERVER 

 

-Wait exactly 1 MINUTE and then click start BEC client. (I usually open up the clock on my computer and just watch it for a whole minute)

 

They tell me that sometimes the server starts up too quick? makes no sense to me but aparently after the first restart it doesn't detect that the server is back up so it shuts itself down. They fixed this for me by adjusting the start up wait time for battleye which is somewhere in the config folder of ur BEC and just made it longer.

ive done that just wonder if it needs to be longer. i belive its at 120 right now

Link to comment
Share on other sites

  • 0

how long does your server need to start up?

shouldnt be much more than 20-30 seconds i guess...

you can start bec right after the server is up...

 

maybe you should change your host.... what i see here they arent very professional...

DayZ Priv is really good, the battleye is just having some issues that I think are already fixed for me atealst. 

Link to comment
Share on other sites

  • 0

I like dayz priv they always help me with my issues that i cant resolve on here.

i think for some reason its not starting bec up again after it does the auto restart if anyone knows a way to force that?

 

I have been on this issue for a while if you guys haven't noticed hahaaa, anyway the reason it does not start up after first restart because it starts itself back up too quickly and it doesn't see that the server is back up yet, so it shuts itself down. If you go into ur bec folder-> Config -> Congig.cfg 

 

these are my settings - 

[Bec]
Ip = 127.0.0.1
Port = 2040
BePath = C:\Dayz Server Manager\Instance4\epoch\BattlEye
LogDir = Instance4
Admins = Admins.xml
Commands = Commands.xml 

[Misc]
ServerExeName = epoch4.exe
ConsoleColor = 0f
Timeout = 120
KickLobbyIdlers = 0
Scheduler = Scheduler.xml
Link to comment
Share on other sites

  • 0

so i have to manually turn on bec everytime after it does its one auto restart?

No no no, trust me keep at the problem with dayz priv, i honestly dont know what they did for me to fix the problem but i can find out. It only took them a real day or so of tickets to mess with some settings and get it working
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...