How to restore your project on local server

hello there,

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 !! :scream::tired_face::sob:

this is the solution :
go to C:\home\pi\Blynk\backup

right click and copy the last file before the crash : “”**
paste into C:\home\pi\Blynk
and rename as ""

restart server , enjoy !!!
have a good day

1 Like

but why?
bad path?

I don’t know !
this morning I have had a windows crash with BSOD :scream:
but really I don’t see the link

You are using a Windows machine for server?

What command are you using to start the server?

Docs are based on Unix path’s.

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
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?

yes, it exists !
I have the path at the root of C drive

at the start ,
the script is minimize to the system tray icons
so I didn’t see anything
now , all is running well

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:

java -jar server-0.29.3-java8.jar -dataFolder C:\home\pi\Blynk

it 's what I have since my start with my Blynk project :
java -jar server-0.29.3-java8.jar -dataFolder /home/pi/Blynk

but I’ll change for D:\dropbox :wink::wink:

there is nothing unusual in the logs, I think the server run fine before the crash of windows

@Blynk_Coeur please show your blynk.log file. Server should automatically restore profile in case of corrupted files.

this is :

08:52:51.704 INFO - Using data dir '\home\pi\Blynk'
08:52:53.143 INFO - Region : local. Host :
08:52:55.407 INFO - Initializing gmail smtp mail transport. Username : ******** SMTP host :
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 '' or '' properties in 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 - hardware joined.
08:54:35.091 WARN - Error getting IP. null
08:54:35.091 INFO - hardware joined.
08:58:40.959 INFO - Using data dir '\home\pi\Blynk'
08:58:41.894 ERROR- Error parsing file '\home\pi\Blynk\'. 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 :
08:58:48.219 INFO - Initializing gmail smtp mail transport. Username : ***** SMTP host :

Thanks. Seems like it was a bug in restore mechanism. Fixed. With next server update it should restore automatically -

I’ll install it this afternoon