Mos update sluggish

  1. My goal is: To fix the sluggish behavior in mos tool after my mos update or roll back to 2.18.0

  2. My actions are: I recently ran mos update. I thought this would update from the previous mos version 2.18.0 to 2.19.0.

mos update

  1. The result I see is: I see the mos tool lists 74~brew on my system (OSx). I see the tool slow down and become sluggish after some use. I also see some corrupt printout characters in the console.

I have tried removing it and reinstalling:

brew uninstall mos

brew install mos

  1. My expectation & question is: I would like to know if my update ran properly. Is it normal to see 74~brew for the version number? If not, how do I correct this and get a clean install or roll back?

I dunno about brew or Mac, on other systems you just pass the specific version you request to the update command. This procedure also should leave a backup file (.bak or whatever) that you can rename to have the prior version.
mos update 2.18.0 should get you what you want

Hello @scaprile,
Thank you for the suggestion. I tried the command mos update 2.18.0 and restarted the mos tool and also tried a computer reboot. I don’t see anything different on my end. Still lists 74~brew is the mos tool version. Maybe I am looking in the wrong place for the mos version, it is top right in the osx mos tool window. I started getting a core dump about the same time I updated so I want to roll back to 2.18.0 to rule the update out.

macbook@James-MBP ~ % mos update 2.18.0
Changing update channel from "latest" to "release"
Running brew update
Running brew tap cesanta/mos
Running brew uninstall -f mos-latest
Running brew install mos
Warning: Treating mos as a formula. For the cask, use homebrew/cask/mos
Warning: cesanta/mos/mos 74 is already installed and up-to-date.
To reinstall 74, run:
brew reinstall mos

I also tried uninstalling and reinstalling with the same result.

brew uninstall mos
brew install mos

My best guess is that my issue has to do with the update channel “latest” and “release”. It appears as though it is set to “latest”. My guess is this is preventing the roll back?

The 74~brew mos tool command line entry becomes unresponsive after a time. I did not see this with 2.18.0
Thanks for your help, Jim

Your channel was switched to release when you specified 2.18.0.
What does mos version return ?

$ mos version
The Mongoose OS command line tool
Version: 2.18.0
Build ID: 20200820-195153/2.18.0-g1ec8595
Update channel: release

(though this is Linux)

% mos update 2.18.0
Changing update channel from "latest" to "release"
Running brew update
Running brew tap cesanta/mos
Running brew uninstall -f mos-latest
Running brew install mos
Warning: Treating mos as a formula. For the cask, use homebrew/cask/mos
Warning: cesanta/mos/mos 74 is already installed and up-to-date.
To reinstall 74, run:
brew reinstall mos
%

% mos version
The Mongoose OS command line tool
Version: 74
Build ID: 74~brew
Update channel: latest

So it is staying on update channel - latest

Thanks again for your help

I would think that the upgrade failed somehow

Dear @scaprile,
Yes I agree, I think the update took me to 74~brew, and failed to update to 2.19.0. I can’t figure out why how to fix these. Everything I’ve tried to roll back takes me to 74~brew. All my builds now crash after a short time.
Thanks, Jim

Try to do the following

brew uninstall mos
brew untap cesanta/mos

If you have a M1 (or Intel) Mac

brew tap cesanta/mos
brew install mos

If you are on Intel, you can do like I have done a few years ago (I’m still on Catalina)

curl -fsSL https://mongoose-os.com/downloads/mos/install.sh | NO_BREW=1 /bin/bash

Close the terminal session and open a new one after that.

This way I can do

mos update # updates the current version release or latest
mos update release # switch latest
mos update latest # switch to current release
mos update 2.18.0 # switch to a specific version

Dear @nliviu,
I must be doing something wrong. Still seeing the same results:

mos version
The Mongoose OS command line tool
Version: 74
Build ID: 74~brew
Update channel: latest

% brew uninstall mos
Warning: Treating mos as a formula. For the cask, use homebrew/cask/mos
Uninstalling /usr/local/Cellar/mos/74... (5 files, 23MB)

% brew untap cesanta/mos
Untapping cesanta/mos...
Untapped 2 formulae (29 files, 191.4KB).

% brew tap cesanta/mos
==> Tapping cesanta/mos
Cloning into '/usr/local/Homebrew/Library/Taps/cesanta/homebrew-mos'...
remote: Enumerating objects: 24, done.
remote: Counting objects: 100% (24/24), done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 1112 (delta 5), reused 22 (delta 4), pack-reused 1088
Receiving objects: 100% (1112/1112), 131.80 KiB | 957.00 KiB/s, done.
Resolving deltas: 100% (285/285), done.
Tapped 2 formulae (28 files, 190.3KB).
% brew install mos
Warning: Treating mos as a formula. For the cask, use homebrew/cask/mos
==> Installing mos from cesanta/mos
==> Downloading https://mongoose-os.com/downloads/homebrew/bottles-mos/mos-74.catalina.bot
Already downloaded: /Users/xxx/Library/Caches/Homebrew/downloads/ab1c0a7db6c1f1e08a1bcf4e468d9ffa5ce3b2044e65200c6a0ad9c8c2809601--mos-74.catalina.bottle.tar.gz
==> Pouring mos-74.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/mos/74: 5 files, 23MB

% curl -fsSL https://mongoose-os.com/downloads/mos/install.sh | NO_BREW=1 /bin/bash
Downloading https://mongoose-os.com/downloads/mos-release/mac/mos ...
######################################################################## 100.0%
Installing into /Users/xxx/.mos/bin/mos ...
pflag: help requested
The Mongoose OS command line tool
Version: 2.19.0
Build ID: 20210111-224057/2.19.0-gb8341b5
Update channel: release
SUCCESS: /Users/xxx/.mos/bin/mos is installed.
Run '/Users/xxx/.mos/bin/mos --help' to see all available commands.
Run '/Users/xxx/.mos/bin/mos' without arguments to start a simplified Web UI installer.

% mos version
The Mongoose OS command line tool
Version: 74
Build ID: 74~brew
Update channel: latest

% mos update 2.18.0
Changing update channel from "latest" to "release"
Running brew update
Running brew tap cesanta/mos
Running brew uninstall -f mos-latest
Running brew install mos
Warning: Treating mos as a formula. For the cask, use homebrew/cask/mos
Warning: cesanta/mos/mos 74 is already installed and up-to-date.
To reinstall 74, run:
  brew reinstall mos

% mos version      
The Mongoose OS command line tool
Version: 74
Build ID: 74~brew
Update channel: latest

Don’t mix brew and curl install. After

brew uninstall mos
brew untap cesanta/mos

use only one of the methods I’ve mentioned.

Hello @nliviu ,
Interesting as it seems the the brew sequence does not allow the update per the CLI entries as expected. Here is the brew sequence:

% brew uninstall mos
Warning: Treating mos as a formula. For the cask, use homebrew/cask/mos
Uninstalling /usr/local/Cellar/mos/74... (5 files, 23MB)

% brew untap cesanta/mos
Untapping cesanta/mos...
Untapped 2 formulae (29 files, 191.4KB).

% brew tap cesanta/mos
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 1 formula.
==> Tapping cesanta/mos
Cloning into '/usr/local/Homebrew/Library/Taps/cesanta/homebrew-mos'...
remote: Enumerating objects: 24, done.
remote: Counting objects: 100% (24/24), done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 1112 (delta 5), reused 22 (delta 4), pack-reused 1088
Receiving objects: 100% (1112/1112), 131.80 KiB | 529.00 KiB/s, done.
Resolving deltas: 100% (285/285), done.
Tapped 2 formulae (28 files, 190.3KB).

% brew install mos 
Warning: Treating mos as a formula. For the cask, use homebrew/cask/mos
==> Installing mos from cesanta/mos
==> Downloading https://mongoose-os.com/downloads/homebrew/bottles-mos/mos-74.catalina.bot
Already downloaded: /Users/xxx/Library/Caches/Homebrew/downloads/ab1c0a7db6c1f1e08a1bcf4e468d9ffa5ce3b2044e65200c6a0ad9c8c2809601--mos-74.catalina.bottle.tar.gz
==> Pouring mos-74.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/mos/74: 5 files, 23MB

% mos version
The Mongoose OS command line tool
Version: 74
Build ID: 74~brew
Update channel: latest
% 

% mos update 2.18.0
Changing update channel from "latest" to "release"
Running brew update
Running brew tap cesanta/mos
Running brew uninstall -f mos-latest
Running brew install mos
Warning: Treating mos as a formula. For the cask, use homebrew/cask/mos
Warning: cesanta/mos/mos 74 is already installed and up-to-date.
To reinstall 74, run:
  brew reinstall mos

% mos version
The Mongoose OS command line tool
Version: 74
Build ID: 74~brew
Update channel: latest
% 

:slight_smile: Here is the curl sequence which seems to be working. I need t see now if this fixes my crashes:

% brew uninstall mos
Warning: Treating mos as a formula. For the cask, use homebrew/cask/mos
Uninstalling /usr/local/Cellar/mos/74... (5 files, 23MB)

% brew untap cesanta/mos
Untapping cesanta/mos...
Untapped 2 formulae (29 files, 191.4KB).

% curl -fsSL https://mongoose-os.com/downloads/mos/install.sh | NO_BREW=1 /bin/bash
Downloading https://mongoose-os.com/downloads/mos-release/mac/mos ...
######################################################################## 100.0%
Installing into /Users/xxx/.mos/bin/mos ...
Adding /Users/xxx/.mos/bin to your PATH in /Users/jimsmacbook/.profile
The Mongoose OS command line tool
Version: 2.19.0
Build ID: 20210111-224057/2.19.0-gb8341b5
Update channel: release
SUCCESS: /Users/xxx/.mos/bin/mos is installed.
Run '/Users/xxx/.mos/bin/mos --help' to see all available commands.
Run '/Users/xxx/.mos/bin/mos' without arguments to start a simplified Web UI installer.

% /Users/xxx/.mos/bin/mos version
The Mongoose OS command line tool
Version: 2.19.0
Build ID: 20210111-224057/2.19.0-gb8341b5
Update channel: release
%

Thank you for the help

When you download with curl you install the files in your user dir. That is yours and the program can update those files.
When you use the brew stuff, my impression is that the system is not allowing you to perform the update, It should correctly inform you that you don’t have the necessary permissions, but it doesn’t.

Dear @scaprile and @nliviu,
I believe that the mos update that took version 2.18.0 to 74~brew was the source of these issues. Note that I believe my other post to be related to the 74~brew as well:

Also note that he update was prompted in the mos tool and the mos installation was per the mos instructions for MAC OSx:
https://mongoose-os.com/docs/mongoose-os/quickstart/setup.md
Thank you both for your help, Jim