I haven’t touched my app in a while now and just got the time to try and experimenting with it again.
I installed a local server, and it worked before, but it appears I have a new version of the app installed now and I don’t get tokens for any of my project so I can’t connect to the arduino from the app.
on the app I can see I’m running a 2.8.5 version… I’m not sure if it’s the server’s version or the app.
is there a way to update the server I have or do I need to remove everything I have? because it took me a while to install that server… (since you don’t have any good guide on how to do it… or at least I didn’t find any good one…
also about the app… should I uninstall? and reinstall? and is there a link where I can get the latest links?
You didn’t mention the type of device you are running your Local Server on, but these are the steps I take to update mine (running on a Netbook with Mint Linux). NOTE: I didn’t actually need to update, which is why it is ver 0.22.1 at the beginning and end
@Dmitriy The server was running all the time I haven’t touched my app.
I’ll try from scratch but will I need to do it from scratch each time the server has a new release?
Right now I’m in the middle of a degree that is why I don’t have time to use it regularly. but when I’ll finish I’m going to work on a lot of projects all the time… it’s going to be nice to know that it won’t be a hassle each time a new server release comes out.
Thanks.
@Gunner I’m running the server from a windows PC. and I haven’t found any good guide that explain exactly what to do and what can go wrong… I’ll try again tho and see.
Thanks anyways.
Thankfully I know my way around a Windows PC a bit better than a Linux one… and after a bit of guesswork, I was able to setup a basic Blynk Local Server on my PC.
First, kill any current java processes you have running (the old 3 finger salute CTRL-ALT-DEL into the task manager):
Then locate the folder that you are currently running your Blynk server from (important if you want to keep your current login and projects) and copy your downloaded server-0.22.2.jar file into it… in my case I simply created a new d:\blynk and copied the downloaded file into it.
Then open a command prompt and maneuver to that same folder. Run this command (accounting for your own folder name and location java -jar server-0.22.2.jar -dataFolder d:\blynk
You should see a message like this:
That should get your server updated and still include your existing login and projects… Don’t forget to also update your app and any libraries for your MCU (arduino, etc). NOTE that some of those older projects might have widgets that are not functioning quite right, due to updates and all, you might have to remove and reinstall or reset some of them.
Also… unless you have already setup email on your previous server, you will have to long press on the auth code (within the app) to get it copied to the devices clipboard… then somehow transfer that to your PC (email yourself, use Google Keep, etc.) for use in your Arduino sketch.
No. There is migration process involved between server versions. For example you can’t migrate from 0.15.0 to 0.22.0. We do not support back compatibility for such huge version difference. That’s why after your “I haven’t touched my app in a while” I thought it is better to go with clean start. You can try update and in general it may work. You may proceed with @Gunner link.
My local server is 0.3.9…
If there is a migration process how do I do it? for future reference… I’ll do what gunner is suggesting… and hope it work now… but I’m thinking about the future.
You don’t need to do anything. It will happen automatically. However we only guarantee migration between near versions. from 0.20 to 0.21, from 0.21 to 0.22 etc.
Just did all that you said in here and it looks like it’s working… my problem now is that my user isn’t registered (looks like it was removed or maybe the server doesn’t find it or something…) and when I’m trying to insert all the information again it says that: oops an error occurred (404 or something).
I’m realizing that my project are gone so that didn’t help to put it where the blynk server was running but maybe it’s like @Dmitriy said and it can’t move from older servers. which is fine but now I have nothing because I can’t even login…