# GroundControll rollback possible?

**URL:** <https://forums.maslowcnc.com/t/groundcontroll-rollback-possible/1424>\
**Category:** Software\
**Created:** [December 9, 2017, 12:53am UTC](https://forums.maslowcnc.com/t/groundcontroll-rollback-possible/1424 "2017-12-09T00:53:22Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![vertex](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/vertex/32/972_2.png) [@vertex](https://forums.maslowcnc.com/u/vertex)\
**Post date:** [December 9, 2017, 12:53am UTC](https://forums.maslowcnc.com/t/groundcontroll-rollback-possible/1424/1 "2017-12-09T00:53:22Z")

</div>

As GC and firmware versions go together is there a way to rollback the GC version if an update turns out to break things, and people want to go back to their previous working version.

Or should an older firmware be enough?

also for this reason it eventually would make sense if GC could upload the matching firmware to the Arduino

---

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [December 9, 2017, 1:10am UTC](https://forums.maslowcnc.com/t/groundcontroll-rollback-possible/1424/2 "2017-12-09T01:10:15Z")

</div>

you would need to roll back both, just grab the old version and replace the  
current one the same way you would do an upgrade (if you are using git to  
populate things, checkout a specific version tag instead of the newest version)

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [December 9, 2017, 1:14am UTC](https://forums.maslowcnc.com/t/groundcontroll-rollback-possible/1424/3 "2017-12-09T01:14:17Z")

</div>

The releases pages for both GC and Firmware list previous versions. If you’re troubleshooting, you should probably roll both back together until you find a combination that doesn’t have the issue you’re investigating, then look at what changed in each subsequent release to try to narrow the source down.

---

<div class="post-metadata">

**Author:** ![Bee](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/bee/32/2160_2.png) [@Bee](https://forums.maslowcnc.com/u/Bee)\
**Post date:** [December 9, 2017, 1:40am UTC](https://forums.maslowcnc.com/t/groundcontroll-rollback-possible/1424/4 "2017-12-09T01:40:08Z")

</div>

@vertex

> **[MaslowCNC/Firmware](https://github.com/MaslowCNC/Firmware/releases)**
>
> Maslow Firmware. Contribute to MaslowCNC/Firmware development by creating an account on GitHub.

> **[MaslowCNC/GroundControl](https://github.com/MaslowCNC/GroundControl/releases)**
>
> This is the Ground Control software used to control the Maslow CNC Machine - MaslowCNC/GroundControl

You should write a script to backup the GC directory , before making changes, forward or backward.

Thank you

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [December 9, 2017, 1:45am UTC](https://forums.maslowcnc.com/t/groundcontroll-rollback-possible/1424/5 "2017-12-09T01:45:25Z")

</div>

> [@Bee](#):
>
> backup the GC directory

Is a backup necessary in this instance? The previous version links will bring folders with their version number in their name; they shouldn’t overwrite subsequent versions, yes?

---

<div class="post-metadata">

**Author:** ![Bee](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/bee/32/2160_2.png) [@Bee](https://forums.maslowcnc.com/u/Bee)\
**Post date:** [December 9, 2017, 1:47am UTC](https://forums.maslowcnc.com/t/groundcontroll-rollback-possible/1424/6 "2017-12-09T01:47:54Z")

</div>

It should include your .ini and is always a good practice. Good habits lead to good results.

Thank you

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [December 9, 2017, 1:50am UTC](https://forums.maslowcnc.com/t/groundcontroll-rollback-possible/1424/7 "2017-12-09T01:50:33Z")

</div>

I believe the .ini file is in the user’s home directory, not in the GC directory. Is that not so on Linux?

---

<div class="post-metadata">

**Author:** ![Bee](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/bee/32/2160_2.png) [@Bee](https://forums.maslowcnc.com/u/Bee)\
**Post date:** [December 9, 2017, 1:54am UTC](https://forums.maslowcnc.com/t/groundcontroll-rollback-possible/1424/8 "2017-12-09T01:54:06Z")

</div>

I’ll have to investigate. As a backup script it should round it all up and package it. I appreciate you pointing it out.

Thank you

---

<div class="post-metadata">

**Author:** ![vertex](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/vertex/32/972_2.png) [@vertex](https://forums.maslowcnc.com/u/vertex)\
**Post date:** [December 9, 2017, 7:34pm UTC](https://forums.maslowcnc.com/t/groundcontroll-rollback-possible/1424/9 "2017-12-09T19:34:37Z")

</div>

I see, this is a bit more complicated as I had in mind.

I forgot to mention that this is for my VM

I’m trying to figure out a way how to accomplish this on my VM Ubuntu build.

The goal is to make it easy enough for everyone to use.

Upgrading is simple enough, but if a user gets into trouble after an upgrade then rolling back will be a struggle. Specially for people who never used Linux.

For me the extra obstacle is maintainabillity of the VM… If it is not easy to maintain then it will fail since users then need support, and i don’t have time for that on top of maintainance.

My apologies for not mentioning that this was for the VM.  
Also i try to do this 100% from git if that can be done.

And slowly i see myself drowning in all this. And i’m barely getting started.

Maybe i have to re-think this VM, or just wait for a real installer.

Another question.  
Is it possible to use git to install a specific version.

Say, 0.98 worked good for user X. Is it then possible to clone 0.98 from git?

This is still early stages so maybe i want far to much at this point in time. 🙂

---

<div class="post-metadata">

**Author:** ![Bee](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/bee/32/2160_2.png) [@Bee](https://forums.maslowcnc.com/u/Bee)\
**Post date:** [December 9, 2017, 7:52pm UTC](https://forums.maslowcnc.com/t/groundcontroll-rollback-possible/1424/10 "2017-12-09T19:52:21Z")

</div>

This is why you would want a set of scripts. You do the work and point the users at the scripts.

Thank you

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [December 9, 2017, 7:59pm UTC](https://forums.maslowcnc.com/t/groundcontroll-rollback-possible/1424/11 "2017-12-09T19:59:40Z")

</div>

> [@vertex](#):
>
> rolling back will be a struggle

Rolling back doesn’t need to be a struggle. Each new release comes in its own folder, with the release number in the name. To use v0.98, you cd into folder GroundControl-0.98 and do the ‘python main.py’ thing. If you want to script it, get your script to list all the folders like ‘GroundControl-v\*’ and let the user choose which one to run.

---

<div class="post-metadata">

**Author:** ![vertex](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/vertex/32/972_2.png) [@vertex](https://forums.maslowcnc.com/u/vertex)\
**Post date:** [December 9, 2017, 8:13pm UTC](https://forums.maslowcnc.com/t/groundcontroll-rollback-possible/1424/12 "2017-12-09T20:13:46Z")

</div>

Hmmm ok thats sounds good!

Any idea how that works with Git?

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [December 9, 2017, 8:23pm UTC](https://forums.maslowcnc.com/t/groundcontroll-rollback-possible/1424/13 "2017-12-09T20:23:05Z")

</div>

If you use the [Git Releases](https://github.com/MaslowCNC/GroundControl/releases) page to download the ‘Source code (.zip)’ for each release as your update method, you’ll have the folder structures I’m describing. If you’re using the git command line executable, the process is more complicated and probably not the easy kind of thing you’re looking for.

---

<div class="post-metadata">

**Author:** ![vertex](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/vertex/32/972_2.png) [@vertex](https://forums.maslowcnc.com/u/vertex)\
**Post date:** [December 9, 2017, 8:49pm UTC](https://forums.maslowcnc.com/t/groundcontroll-rollback-possible/1424/14 "2017-12-09T20:49:16Z")

</div>

I used  
git clone

I see there is a .dmg for mack users, would it be an option to have a .deb as well?  
To me a .deb makes more sense then .dmg. As i would hesitate to put a mac in a dusty workshop.

On a distro users should not be manually downloading stuff. I want to keep the commandline involved a bit, so that new users get a taste of that, still i try to install direct from a repository to make sure that everything ends up in the right place.

the winmac style of manually download a package ‘somewhere’ and then install it ‘one way or another’ looses against  
`install _package_ from <URL>`  
the latter provides some consistency.

I just have to be carefull that i keep time available to learn all the Maslow stuff myself. If I need to spend all my time on building a distro then i never get to use the Maslow. … 🙂

---

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [December 9, 2017, 8:59pm UTC](https://forums.maslowcnc.com/t/groundcontroll-rollback-possible/1424/15 "2017-12-09T20:59:59Z")

</div>

you clone via the normal process, then go to the directory and do

git checkout v0.98

and you will now have v0.98 there. Just don’t do a git pull after that until you  
are ready to move to the most current version.

---

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [December 9, 2017, 9:05pm UTC](https://forums.maslowcnc.com/t/groundcontroll-rollback-possible/1424/16 "2017-12-09T21:05:19Z")

</div>

Please don’t do this.

use git to clone the repository and git pull to get newer versions.

Then you have every version ever and can just use git checkout to get the  
version you want.

By the time you download two zip releases, you will have used more bandwith than  
using git to download every version ever.

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [December 9, 2017, 9:20pm UTC](https://forums.maslowcnc.com/t/groundcontroll-rollback-possible/1424/17 "2017-12-09T21:20:06Z")

</div>

Bandwidth or simplicity, it’s a choice. How would you script saving and presenting a reference for previous releases so a less confident user could move back to a previous version?

---

<div class="post-metadata">

**Author:** ![vertex](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/vertex/32/972_2.png) [@vertex](https://forums.maslowcnc.com/u/vertex)\
**Post date:** [December 9, 2017, 9:23pm UTC](https://forums.maslowcnc.com/t/groundcontroll-rollback-possible/1424/18 "2017-12-09T21:23:40Z")

</div>

> [@dlang](#):
>
> Just don’t do a git pull after that until you
> 
> are ready to move to the most current version

But that is a bit problematic… A user needs to try this and be able to roll back if it fails.  
I’ll read up on the checkout command.

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [December 9, 2017, 9:26pm UTC](https://forums.maslowcnc.com/t/groundcontroll-rollback-possible/1424/19 "2017-12-09T21:26:22Z")

</div>

> [@dlang](#):
>
> git checkout v0.98

Sorry, you’ve already answered my question. Reading on a cell phone really _is_ sub-optimal.

---

<div class="post-metadata">

**Author:** ![vertex](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/vertex/32/972_2.png) [@vertex](https://forums.maslowcnc.com/u/vertex)\
**Post date:** [December 9, 2017, 9:35pm UTC](https://forums.maslowcnc.com/t/groundcontroll-rollback-possible/1424/20 "2017-12-09T21:35:58Z")

</div>

I can’t help but think that i’m having the wrong approach somehow.

git is dev tinkering  
but end users need stuff that is no longer in the dev domain.

bleeding edge needs a lot of first aid.

I should be running real releases only and stay away from bleeding edge somehow, also with safety in mind…

I’m listening to a git tutorial right now to see if i can get my head around that checkout command. 🙂

[Next page](https://forums.maslowcnc.com/t/groundcontroll-rollback-possible/1424.md?page=2)
