Page 1 of 1

Start.bat is not working

Posted: 29 May 2020, 21:52
by l00t
Anytime I open the bat file this is what comes up when it tries to start.


java.io.IOException: Couldn't get lock for /C:/Program Files (x86)/SmartFoxServe
rPRO_1.6.6/Server/logs/smartfox_log_%g.txt
at java.util.logging.FileHandler.openFiles(FileHandler.java:372)
at java.util.logging.FileHandler.<init>(FileHandler.java:306)
at it.gotoandplay.smartfoxserver.SmartFoxServer.initLogger(SmartFoxServe
r.java:496)
at it.gotoandplay.smartfoxserver.SmartFoxServer.run(SmartFoxServer.java:
576)
FATAL ERROR: Could not create log files.


Shutting down server...

java.io.FileNotFoundException: bannedUsers.sfs (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at it.gotoandplay.smartfoxserver.lib.ShutdownManager.run(ShutdownManager
.java:52)
Press any key to continue . . .

Re: Start.bat is not working

Posted: 30 May 2020, 14:03
by Lapo
Hi,
this is because under Windows you don't have write permissions in the "Program Files" folder.
You need to install the server under your own User folder so that write permissions are granted.

Hope it helps

Re: Start.bat is not working

Posted: 06 Jun 2020, 18:27
by l00t
Lapo wrote:Hi,
this is because under Windows you don't have write permissions in the "Program Files" folder.
You need to install the server under your own User folder so that write permissions are granted.

Hope it helps

Are you talking about the server folder? Because it's in the sfs program files.

Re: Start.bat is not working

Posted: 07 Jun 2020, 09:46
by Lapo
You have installed SFS2X under "C:\Program Files (x86)\..." which doesn't provide file write permissions.
Please uninstall SFS2X and re-install it back in a folder under your User directory, which typically is C:\Users\<YourUserNam>\

Thanks

Re: Start.bat is not working

Posted: 12 Jun 2020, 00:15
by l00t
But I use SfS Pro

Re: Start.bat is not working

Posted: 12 Jun 2020, 07:24
by Lapo
It's the same thing. The permission issue is due to your operating system (Windows) not what version of SFS you're using :)