Closed jhorath closed 4 years ago
Because backups are on by default, it may be that the system is taking an initial backup. Try turning backups off in the config file to see if that fixes it. When you run bedrock_server.exe directly do people get kicked or does it work fine?
It works fine
On Thu, Feb 13, 2020 at 10:54 PM Brendon notifications@github.com wrote:
Because backups are on by default, it may be that the system is taking an initial backup. Try turning backups off in the config file to see if that fixes it. When you run bedrock_server.exe directly do people get kicked or does it work fine?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ravetroll/BedrockService/issues/3?email_source=notifications&email_token=ALQPYIE3GBWZCKJ5FB54PETRCYPY7A5CNFSM4KT5P642YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELXSHLA#issuecomment-586097580, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALQPYIAXEHBZVE4ZO2DVY2LRCYPY7ANCNFSM4KT5P64Q .
how long should the initial back up take?
On Thu, Feb 13, 2020 at 11:47 PM Jason Horath jhorath@gmail.com wrote:
It works fine
On Thu, Feb 13, 2020 at 10:54 PM Brendon notifications@github.com wrote:
Because backups are on by default, it may be that the system is taking an initial backup. Try turning backups off in the config file to see if that fixes it. When you run bedrock_server.exe directly do people get kicked or does it work fine?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ravetroll/BedrockService/issues/3?email_source=notifications&email_token=ALQPYIE3GBWZCKJ5FB54PETRCYPY7A5CNFSM4KT5P642YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELXSHLA#issuecomment-586097580, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALQPYIAXEHBZVE4ZO2DVY2LRCYPY7ANCNFSM4KT5P64Q .
The backup takes as long as it takes to copy the worlds folder to another folder.
Have you tried running with the backups turned off?
I haven’t yet. I am in the process of testing now with one.
From: Brendon notifications@github.com Sent: Thursday, February 13, 2020 11:50 PM To: ravetroll/BedrockService BedrockService@noreply.github.com Cc: jhorath jhorath@gmail.com; Author author@noreply.github.com Subject: Re: [ravetroll/BedrockService] server running but players get kicked (#3)
The backup takes as long as it takes to copy the worlds folder to another folder.
Have you tried running with the backups turned off?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ravetroll/BedrockService/issues/3?email_source=notifications&email_token=ALQPYIFBDN7MKWVKUDNQ6J3RCYWI7A5CNFSM4KT5P642YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELXVAUA#issuecomment-586109008 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ALQPYIGHK66LJYTLYUBN7G3RCYWI7ANCNFSM4KT5P64Q . https://github.com/notifications/beacon/ALQPYIEBVS3HKVIJC65Z43TRCYWI7A5CNFSM4KT5P642YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELXVAUA.gif
If you make sure the service is stopped and then run bedrockservice.exe, you will be able to see what its doing in a command window. To test backups, set the intervalMinutes to 1 and watch what it says in the command window. You should be able to see bedrock_server.exe messages indicating its starting and stopping every couple of minutes. If that appears to be working, then stop it, reset the intervalMinutes to something more sensible like 1440 for a day or 10080 for a week, and check to make sure it doesn't keep trying to stop and start every couple of minutes. If it tries to stop and start every couple of minutes even though the interval is a lot longer there may be in an incompatibility with the filesystem not reporting the modified time correctly on the backup directory.
OK. I will do that. I will know something late this AM.
On Fri, Feb 14, 2020 at 6:22 AM Brendon notifications@github.com wrote:
If you make sure the service is stopped and then run bedrockservice.exe, you will be able to see what its doing in a command window. To test backups, set the intervalMinutes to 1 and watch what it says in the command window. You should be able to see bedrock_server.exe messages indicating its starting and stopping every couple of minutes. If that appears to be working, then stop it, reset the intervalMinutes to something more sensible like 1440 for a day or 10080 for a week, and check to make sure it doesn't keep trying to stop and start every couple of minutes. If it tries to stop and start every couple of minutes even though the interval is a lot longer there may be in an incompatibility with the filesystem not reporting the modified time correctly on the backup directory.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ravetroll/BedrockService/issues/3?email_source=notifications&email_token=ALQPYIB4CTVZ4UMLKWJONS3RC2EGVA5CNFSM4KT5P642YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELY3KGY#issuecomment-586265883, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALQPYIF6DDGAYHKEUVPWVPLRC2EGVANCNFSM4KT5P64Q .
OK, I got a chance to test this and it works perfect after changing the config to say Backup=false. The timer was already set to 1440. So are you saying that when I initially installed it with the timer set at 1440 in the config it is normal for players to get kicked until the backup is complete?
So I can just run with backup false for the time being. That’s not a problem.
How about multiple servers at once. What all lines do I need to change in the config and to keep up with it easier can I rename the .exe to match the server name?
From: Brendon notifications@github.com Sent: Friday, February 14, 2020 6:22 AM To: ravetroll/BedrockService BedrockService@noreply.github.com Cc: jhorath jhorath@gmail.com; Author author@noreply.github.com Subject: Re: [ravetroll/BedrockService] server running but players get kicked (#3)
If you make sure the service is stopped and then run bedrockservice.exe, you will be able to see what its doing in a command window. To test backups, set the intervalMinutes to 1 and watch what it says in the command window. You should be able to see bedrock_server.exe messages indicating its starting and stopping every couple of minutes. If that appears to be working, then stop it, reset the intervalMinutes to something more sensible like 1440 for a day or 10080 for a week, and check to make sure it doesn't keep trying to stop and start every couple of minutes. If it tries to stop and start every couple of minutes even though the interval is a lot longer there may be in an incompatibility with the filesystem not reporting the modified time correctly on the backup directory.
— You are receiving this because you authored the thread. Reply to this email directly, https://github.com/ravetroll/BedrockService/issues/3?email_source=notifications&email_token=ALQPYIB4CTVZ4UMLKWJONS3RC2EGVA5CNFSM4KT5P642YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELY3KGY#issuecomment-586265883 view it on GitHub, or https://github.com/notifications/unsubscribe-auth/ALQPYIF6DDGAYHKEUVPWVPLRC2EGVANCNFSM4KT5P64Q unsubscribe. https://github.com/notifications/beacon/ALQPYICBNNDDPMRAF6LB7QTRC2EGVA5CNFSM4KT5P642YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELY3KGY.gif
The way the backup function works is that it checks to see if a backup exists within the interval period from the current time. The interval period is specified in minutes (1440 implys a daily backup). When you start up for the first time and have no backups, then it will stop the server and create a backup and then restart. So when you run it for the first time i would expect it to kick players connecting immediately. once it has got that initial backup out of the way it should not kick players until the next backup is due.
I have not designed it to be able to run multiple servers and I don't think it would be possible due to a naming conflict if you tried to run multiple instances. Something to look at adding I guess.
From: Brendon notifications@github.com Sent: Friday, February 14, 2020 7:46 AM To: ravetroll/BedrockService BedrockService@noreply.github.com Cc: jhorath jhorath@gmail.com; Author author@noreply.github.com Subject: Re: [ravetroll/BedrockService] server running but players get kicked (#3)
The way the backup function works is that it checks to see if a backup exists within the interval period from the current time. The interval period is specified in minutes (1440 implys a daily backup). When you start up for the first time and have no backups, then it will stop the server and create a backup and then restart. So when you run it for the first time i would expect it to kick players connecting immediately. once it has got that initial backup out of the way it should not kick players until the next backup is due.
I’ll have to watch it then and see if that’s how it’s functioning. From memory, I believe the server had been up for over an hour before anyone joined and no matter who joined or how (WAN/LAN) it would kick them within 15-30 seconds.
I have not designed it to be able to run multiple servers and I don't think it would be possible due to a naming conflict if you tried to run multiple instances. Something to look at adding I guess.
Could it be as simple as renaming the pertinent files the same as each servers exe and then pointing to different exe location in the config ? So I’d have BedrockService 1, 2 and 3 all with their own folders for the bedrock service and pointing to different server exe?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ravetroll/BedrockService/issues/3?email_source=notifications&email_token=ALQPYIDO3E7QBWM4GUP6U5LRC2OC7A5CNFSM4KT5P642YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELZCE6Q#issuecomment-586293882 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ALQPYIFLK2A6JXTR4UQ5FODRC2OC7ANCNFSM4KT5P64Q . https://github.com/notifications/beacon/ALQPYIEN5776TZ3DYZ7GJ7LRC2OC7A5CNFSM4KT5P642YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELZCE6Q.gif
I have redesigned the app to support running multiple bedrock_server.exe instances. There are some configuration changes required as I have restructured the configuration section. Backups also work differently now, but it is possible for backups to work for all running instances too. Only 1 instance of BedrockService is required to run multiple instances of bedrock_server.exe. Let me know how it goes for you.
The installation seemed to go easy enough but after logging into the game server as a local player I get kicked within 15-20 seconds. Did I miss a step?
--edit-- Same for WAN clients