this morning , I was afraid, I had lost my project !
my local server was ok,
so I took a look at blynk administration, Users list : 0 project ,oh shit !!
this is the solution :
go to C:\home\pi\Blynk\backup
right click and copy the last file before the crash : “username@blynk.cc.Blynk.user.2018-01-24”**
paste into C:\home\pi\Blynk
and rename as "username@blynk.cc.Blynk.user"
Yes I am using my computer running on windows 10
the command is StartBlynkServer.cmd
.
.
.
.
. @echo on
echo Server latest version on folder is %latestjar%
java -jar server-0.29.3-java8.jar -dataFolder /home/pi/Blynk
IF /I “%ERRORLEVEL%” NEQ “0” (
ECHO Server failed to started
)
This path’s doesn’t exist on a Windows machine and when you restart the server you lose all your data, except the backup. Do you see a warning on the server when you start it?
Not in that form with forward slashes in the path. I know Blynk did some work in this area because lots of none Unix users messed up the path.
You need to see what the server is doing when it boots up. There used to be a message warning you that you messed up your path, data will be held in a Windows temp directory that will vanish as some point.
At least take a look at your logs.
Blynk might have fixed path issue for Windows users but normally the command for you would be:
08:52:51.704 INFO - Using data dir '\home\pi\Blynk'
08:52:53.143 INFO - Region : local. Host : 192.168.144.2.
08:52:55.407 INFO - Initializing gmail smtp mail transport. Username : ********@gmail.com. SMTP host : smtp.gmail.com:587
08:52:55.666 INFO - Didn't find custom user certificates.
08:52:55.668 INFO - Didn't find Let's Encrypt certificates.
08:52:55.668 WARN - You didn't specified 'server.host' or 'contact.email' properties in server.properties file. Automatic certificate generation is turned off. Please specify above properties for automatic certificates retrieval.
08:52:55.668 WARN - ATTENTION. Server certificate paths (cert : 'C:\Users\alexis\Documents\Arduino\blynk server', key : 'C:\Users\alexis\Documents\Arduino\blynk server') not valid. Using embedded server certs and one way ssl. This is not secure. Please replace it with your own certs.
08:53:00.222 INFO - Hardware plain tcp/ip server listening at 8442 port.
08:53:00.227 INFO - Hardware SSL server listening at 8441 port.
08:53:00.243 INFO - Application server listening at 8443 port.
08:53:00.255 INFO - HTTP API and WebSockets server listening at 8080 port.
08:53:00.269 INFO - HTTPS API, WebSockets and Admin page server listening at 9443 port.
08:53:00.280 INFO - Mqtt hardware server listening at 8440 port.
08:53:01.416 INFO - alexis@blynk.cc hardware joined.
08:54:35.091 WARN - Error getting IP. null
08:54:35.091 INFO - alexis@blynk.cc hardware joined.
08:58:40.959 INFO - Using data dir '\home\pi\Blynk'
08:58:41.894 ERROR- Error parsing file '\home\pi\Blynk\alexis@blynk.cc.Blynk.user'. Error : Illegal character ((CTRL-CHAR, code 0)): only regular white space (\r, \n, \t) is allowed between tokens
at [Source: (File); line: 1, column: 2]
08:58:41.899 INFO - Region : local. Host : 192.168.144.2.
08:58:48.219 INFO - Initializing gmail smtp mail transport. Username : *****@gmail.com. SMTP host : smtp.gmail.com:587