Local server log location

I’m wondering, if anyone using local server has the same issue: Today, while testing the debugging server versions I’ve noted, that Blynk log files are directed to

{current_dir}/${sys:logs.folder}

The server after startup prints it’s usual:

Blynk Server 0.38.3-SNAPSHOT successfully started.
All server output is stored in folder '/home/blynk/data/logs' file.

And YES, files are created there, but they are empty…
Instead, all logs are redirected to the above:
scn2

Why is that??

What do you have in the server.properties file?

I have…

#folder for logs.
logs.folder=./logs

And so far all my logs seem to be where they should be…

image

I am running server-0.38.2-java8.jar and it boots up as…

gunner@AspireOne ~ $
Blynk Server 0.38.3-SNAPSHOT successfully started.
All server output is stored in folder '/home/gunner/logs' file.

I have full path:

#folder for logs.
logs.folder=/home/blynk/data/logs

Shouldn’t be a problem, but will check…
currently on some new snapshot version, but I think this folder was already there before changing from 0.38.2

OK, now that I rebooted, I see I have a new logs folder in the wrong spot (from where it used to be??)… and just starting to fill with data…

image

Arrrggg… :stuck_out_tongue_winking_eye:

image

1 Like

COOL!! But at least it’s a “logs” folder. You want mine ${sys:logs.folder}, he??

Hey, perhaps your CURRENT FOLDER changed?

I was blissfully content in knowing all was where it should be (and never needing to look at them anyhow) before looking into this… serves me right :crazy_face:

Yay… sometimes it is better to NOT KNOW…

I will try to “downgrade” and see if the “test build” is the issue…

1 Like

OK, changed my server.properties to…

#folder for logs.
logs.folder=/home/gunner/Blynk/logs

And it seems to be working proper… again…

Not sure if this will help or just hinder your attempts :stuck_out_tongue:

Also, I am using the server build from around (10:00) PST yesterday (24th)

WTF!?? Again the same on the SAME server as yours…! The folder for logs IS created, but all logs are found in this $%^*&$ “thing”… WHO BROKE MY SERVER!!?

Yeah… sure it helps… It just means my “setup” got f…

@Gunner, what is your java version (java -version )

I am actually deleting all old folders and logs to be sure that I am not looking at ghosts… as can happen if I don’t remember to refresh my WinSCP screen

gunner@AspireOne ~/Blynk $ java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) Client VM (build 25.121-b13, mixed mode)
1 Like

So perhaps this is my “issue”?:

root@orangepi-pc2:/home/blynk# java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
root@orangepi-pc2:/home/blynk#

I don’t see how the Java version could be an issue?

white-flag

OK, I give up!!!

server.properties:

#by default System.getProperty("java.io.tmpdir")/blynk used
data.folder=

#folder for logs.
logs.folder=./logs

server console output :

root@orangepi-pc2:~#
Blynk Server 0.38.3-SNAPSHOT successfully started.
All server output is stored in folder '/home/blynk/logs' file.

And the log location:

scn3

Now there is NO the logs folder at all. Everything is in this #%%${whatever}

Neither do I… But… what else??

Let it be, where it wants to be. HE IS THE BOSS, right??

At least I know why the folder has a name as such.
Here is the (example) line of Blynk Server source code:

<RollingFile name="userLog" fileName="${sys:logs.folder}/blynk.log"

yes, the ${sys:logs.folder} is there
So i guess only @Dmitriy could know why it is, as it is…

1 Like

I recall having the same issue, a while back a dev asked me for the log info and it turned out to be empty, after digging around I found it in the same spot you have it. I’ll check what my current log status is…

And now it gets interesting… Yes, please- check and report. If you could- the Java version console printout too.

The weird part is, for a veerry long time logs where they should be.

the log is found here:
/home/pi/logs
while I expected it here:
/home/pi/blynk/data

pi@wolph42:~ $ java -version
java version “1.8.0_65”
Java™ SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot™ Client VM (build 25.65-b01, mixed mode)

I see I’m running behind…

edit. Also checked the server.properties:
logs.folder=./logs

edit: changed to logs.folder=./blynk/logs and rebooting.

edit3: and…nothing changed. log is in the same folder and server.properties are set back to .\logs… (yes I did hit the save button) weird stuff.

edit4: ok changed it again. closed it. opened it. Still was ./blynk/logs then stopped server and started server and…we’re back to .\logs

Its not really a problem for me but at least now you have my $0.02

Yup, not much, but every penny counts :wink:
Your logs are in correct folder which itself seems to be in incorrect (?) location. Mine tries to be a clever guy, who doesn’t want to listen to mine orders. It creates folder structure, but writes to its own, choosen location. Ok, I’m stupid, “he’s” right.

This is known issue. Probably due to “trace/debug” level of logging. Will try to fix it soon.