Server install on Pi Problem

What ever I do I keep receiving …Thread-7 FATAL Ignoring log event after log4j was shut down
on start up. loads of them!
java 8 and server 0.10.2.
I’m not a Pi user as such, although I have it running as an MQTT broker just fine. I did kill this to make sure there were no interactions.
Any advice would be welcome … thanks

Could you please show me content of your “logs/blynk.log” file?

The log file shows …
05:32:33.422 INFO - Using data dir ‘/home/pi/Blynk’
05:32:33.440 DEBUG - Starting reading user DB.
05:32:33.797 DEBUG - Reading user DB finished.
05:32:34.270 INFO - Initializing mail transport. Username : example@gmail.com. SMTP host : smtp.gmail.com:587
05:32:35.575 DEBUG - hard.socket.idle.timeout = 15
05:32:35.576 INFO - Plain tcp/ip hardware server port 8442.
05:32:35.582 WARN - ATTENTION. Certificate /root and key /root paths not valid. Using embedded certs. This is not secure. Please replace it with your own certs.
05:32:38.125 INFO - SSL hardware port 8441.
05:32:38.150 INFO - Enabling SSL for application.
05:32:38.151 WARN - ATTENTION. Server certificate paths cert : ‘/root’, key : ‘/root’ - not valid. Using embedded server certs and one way ssl. This is not secure. Please replace it with your own certs.
05:32:39.280 DEBUG - app.socket.idle.timeout = 600
05:32:39.282 INFO - Application server port 8443.
05:32:39.301 INFO - Administration server port 8777.
05:32:39.610 ERROR - java.net.BindException: Address already in use
05:32:39.878 INFO - Catch shutdown hook. Trying to save users and close threads.

I see that the admin server port is being used by something else here. Maybe my using Bitvise SSH? Not really sure here.

I don’t think the administration server is really needed for daily operations. The 8443 app server should be all you need to connect from the app to your Pi. Can you telnet to the box on 8443?

Exactly. You could easily change it. Instructions here.

Hmmmm.
I am running as per the instructions. java -jar server-0.10.2…jar -dataFolder etc, so I would assume the defaults are being used.
I am not aware of instigating any admin?
If I add a server.properties file and change the admin port to any number, it still logs that it is already in use?
The server is not an issue in windows for me, but I would rather like the convenience of the pi.

I do apologise for my ignorance here, but I am trying.

Why is that? Just try another port. Or find who uses 8777 and kill it =).

Hi Blynk,

could you please help me with Blynk server install on raspberry pi2. The problem is that i can’t run server, because everytime i try to run server my terminal gives me error message:
pi@raspberrypi ~ $ java -jar server-0.10.2.jar -dataFolder /home/pi/Blynk
Error starting Blynk server. Stopping.
2015-10-27 15:52:34,135 Thread-7 FATAL Ignoring log event after log4j was shut down
2015-10-27 15:52:34,140 Thread-7 FATAL Ignoring log event after log4j was shut down
2015-10-27 15:52:34,143 Thread-7 FATAL Ignoring log event after log4j was shut down
2015-10-27 15:52:34,145 Thread-7 FATAL Ignoring log event after log4j was shut down
2015-10-27 15:52:34,147 Thread-7 FATAL Ignoring log event after log4j was shut down
2015-10-27 15:52:34,149 Thread-7 FATAL Ignoring log event after log4j was shut down

thank you

@MariusK Hello. I suppose you have same problem as @Roffey. So check blynk.log is you see there

 ERROR - java.net.BindException: Address already in use

That means something is already using ports Blynk works on. So there are 2 things to check.
a) Check you didn’t started server before

ps -aux | grep java

If you see server java process. You should kill it. This means you haven’t close it previously;

b) Use this instruction to change ports.

Thank you Dmitriy,

it seems that i have already started server, so i had only to kill java and restart server. Works!

Just to say thanks to all and Dmitriy
To conclude my issue … All was well when I got rid of Openhab.

1 Like