Blynk Server Issue

Hi, everyone.
I am trying to install local server.
I download the server-0.7.1.jar from https://github.com/blynkkk/blynk-server/releases.
Then I am install Java on Linux following instructions on GitHub page.
After that I tried to install server and I could’t do it.

Now the problem

I moved server-0.7.1.jar in /var/www/blynk and in command line I wrote “java -jar /var/www/blynk/server-0.7.1.jar” and nothing happened. Then I am cancel that action(ctrl+c) and there was an error “2015-07-30 11:51:51,518 FATAL Ignoring log event after log4j was shut down”.
And now I don’t know what to do.

That’s ok. By default all logging is happens in same dir within “logs” folder, so you should see no output to console. So in other words you launched server successfully =). just check folder ./logs/blynk.log

And of course after ctrl+c you have to launch server again.

If you launch it using

java -jar /path/to/server.jar &

It will run in the background. You can check if it’s running with

ps -ef | grep jar

You’ll see it is running.

OK.
I caught it. Thx a lot!

I understand that when I close server’s command line with active line (“java -jar /var/www/blynk/server-0.7.1.jar”) then the blynk-server shuts down.

But how I can start my server automatically? I mean without opening command line and input the line above.

Yes. To avoid that you could use “screen” command with “&”.

But how I can start my server automatically? I mean without opening command line and input the line above.

Please google it with “linux autorun” :wink:

Thanks for your lightning responses!

Now I guess server is working. But when I start its in command line I see that root@Test:~# java -jar /var/www/blynk_new/test/server-0.7.1.jar &
[4] 1920
root@Test:~# Aug 04, 2015 7:09:11 AM io.netty.util.internal.ThreadLocalRandom getInitialSeedUniquifier
WARNING: Failed to generate a seed from SecureRandom within 3 seconds. Not enough entrophy?

What could it be?

And I have another problem.

The server doesn’t save users.

Hm, hard to say. Is that possible you’re running few “server.jar” files at same time? Also what hardware do you use to run server?

I use https://www.digitalocean.com/ tariff for 5$ and it has
512MB / 1 cpu
20GB SSD Disk
1TB Transfer

Guess No.

What OS? I’ll try to reproduce. We run Blynk also in digital ocean and no problems there.

Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-32-generic x86_64)

Ok, thank you for reporting. Will check soon.