[RESOLVED] Fatal Error With Log File

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

bastien856
Posts: 7
Joined: 17 Jul 2016, 20:08

[RESOLVED] Fatal Error With Log File

Postby bastien856 » 17 Jul 2016, 20:11

On start smartfoxserver pro with start.bat, i have error :

java.nio.file.InvalidPathException: Illegal char <:> at index 2: \C:\Users\bastien856\Desktop\SmartFoxServerPRO_1.6.6\Server\logs\smartfox_log_0.txt.lck
at sun.nio.fs.WindowsPathParser.normalize(Unknown Source)
at sun.nio.fs.WindowsPathParser.parse(Unknown Source)
at sun.nio.fs.WindowsPathParser.parse(Unknown Source)
at sun.nio.fs.WindowsPath.parse(Unknown Source)
at sun.nio.fs.WindowsFileSystem.getPath(Unknown Source)
at java.nio.file.Paths.get(Unknown Source)
at java.util.logging.FileHandler.openFiles(Unknown Source)
at java.util.logging.FileHandler.<init>(Unknown Source)
at it.gotoandplay.smartfoxserver.SmartFoxServer.initLogger(SmartFoxServer.java:496)
at it.gotoandplay.smartfoxserver.SmartFoxServer.run(SmartFoxServer.java:576)
FATAL ERROR: Could not create log files.


Shutting down server...

please help me :)
Last edited by bastien856 on 18 Jul 2016, 14:57, edited 1 time in total.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Fatal Error With Log File

Postby Lapo » 18 Jul 2016, 07:58

There's two possible reasons for this:
1) You already have another SmartFoxServer running. This usually happens if you didn't pay attention in the installation process and allowed the server to run as Windows Service. If that's the case SFS PRO is already running and trying to run a 2nd instance will cause this error. Close the 2nd instance and try to connect the AdminTool, if it works you already have the server running.

2) You don't have file write permissions in the folder where you installed SFS. This is possible if you're logged in your Windows machine as a different user than "bastien856", which is the one who has write permissions.

cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
bastien856
Posts: 7
Joined: 17 Jul 2016, 20:08

Re: Fatal Error With Log File

Postby bastien856 » 18 Jul 2016, 08:02

Hi Lapo, I read your comment and I looked everywhere but nothing because I have that one server but when I turn it happen error message :/
and in my computer i have one account just "bastien856" and i have check permission on log file and all permission is true
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Fatal Error With Log File

Postby Lapo » 18 Jul 2016, 08:18

Did you test what I suggested?
Try opening the AdminTool and connect to the server using the correct IP and port, even if you think is not running.

Does it log in?
Lapo

--

gotoAndPlay()

...addicted to flash games
bastien856
Posts: 7
Joined: 17 Jul 2016, 20:08

Re: Fatal Error With Log File

Postby bastien856 » 18 Jul 2016, 08:31

i have restart my server with "start smartfoxserver" and i have

http://www.hostingpics.net/viewer.php?id=771421consoleerror.png
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Fatal Error With Log File

Postby Lapo » 18 Jul 2016, 10:36

What Windows version is this?

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
bastien856
Posts: 7
Joined: 17 Jul 2016, 20:08

Re: Fatal Error With Log File

Postby bastien856 » 18 Jul 2016, 11:34

i have windows 10 :D
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Fatal Error With Log File

Postby Lapo » 18 Jul 2016, 13:32

bastien856 wrote:i have restart my server with "start smartfoxserver" and i have

http://www.hostingpics.net/viewer.php?id=771421consoleerror.png

Yeah, but that's not what I asked... :)
I just asked you to open the AdminTool and try to connect. If a server is already running you will be able to connect. Can you try that?

Windows 10 is fine. I have SFS PRO running on W10 and it works just fine.
Lapo

--

gotoAndPlay()

...addicted to flash games
bastien856
Posts: 7
Joined: 17 Jul 2016, 20:08

Re: Fatal Error With Log File

Postby bastien856 » 18 Jul 2016, 14:22

i have start admintool and on connect i have :

http://www.hostingpics.net/viewer.php?id=818708admintoolerror.png
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Fatal Error With Log File

Postby Lapo » 18 Jul 2016, 14:30

My suggestion at this point is to try and install the server from scratch.
Maybe uninstall the previous version if you can (e.g. if you haven't customized it), otherwise you can try to install it in a separate folder under your user's directory.

Let us know.
Lapo

--

gotoAndPlay()

...addicted to flash games
bastien856
Posts: 7
Joined: 17 Jul 2016, 20:08

Re: Fatal Error With Log File

Postby bastien856 » 18 Jul 2016, 14:42

ok i go test this :D
bastien856
Posts: 7
Joined: 17 Jul 2016, 20:08

Re: Fatal Error With Log File

Postby bastien856 » 18 Jul 2016, 14:56

OMG Really Big Thanks You Lapo, i have reinstall SFS PRO on my desktop and my server is on :D Really really really THANKS !
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: [RESOLVED] Fatal Error With Log File

Postby Lapo » 18 Jul 2016, 16:06

Cool :D
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 39 guests