Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppStore and mas aren’t in synch, AppStore still shows App as upgradable #642

Closed
1 task done
antoine2711 opened this issue Nov 20, 2024 · 19 comments
Closed
1 task done

Comments

@antoine2711
Copy link

Your Environment

  • mas version: 1.8.7
  • macOS version (system_profiler SPSoftwareDataType -detailLevel mini): 14.7.1

mas Install Method

  • brew install mas (homebrew-core)

Describe the Bug

After upgrading an App with mas upgrade, the AppStore still list the App as an upgradable App.

To Reproduce

Steps to reproduce the behavior:

  1. mas upgrade
  2. Nothing happens (see screenshot).

Expected Behavior

AppStore shows the app as updated

Actual Behavior

AppStore still propose to update the App.

Screenshots, Terminal Output

image

@rgoldberg
Copy link
Contributor

This seems to be the same issue as #387. It's also noted in the README.

What are the versions that the Mac App Store reports as being newer than what's already installed?

What does each app report its version as when it is running? Get from the menu for the app).

After that, the best thing to do is to:

  • ensure that auto updates are disabled
  • don't upgrade any of the affected apps via the Mac App Store or via mas for around a day (even better, don't use either of them for anything for the whole day)
  • after the delay of around a day, check to see if the Mac App Store still thinks the apps can be updated but mas doesn't think they can be
  • if that's still the case,reload the Updates page in the Mac App Store either via keyboard (Command-r) or mouse (menu > Store > Reload Page)

@rgoldberg rgoldberg changed the title 🐛 AppStore and mas aren’t in synch, AppStore still shows App as upgradable AppStore and mas aren’t in synch, AppStore still shows App as upgradable Nov 21, 2024
@rgoldberg
Copy link
Contributor

@antoine2711 Did everything work fine after a delay?

@antoine2711
Copy link
Author

Now sure. I think it went back to a previous version… But now, it’s working (updating worked, and after going to App Store not previouly opened, it didn’t ask to upgrade).

I did get this weird thing on another computer…

image

The same App with TWO different versions…

Regards, Antoine

@antoine2711
Copy link
Author

This is after upgrade…

image

@rgoldberg
Copy link
Contributor

rgoldberg commented Nov 26, 2024

@antoine2711 You almost certainly have multiple instances of the same app installed somewhere under /Applications, which is tracked in #462.

We are limited by the Apple code we currently call to only updating one of the duplicate apps. Simplest current solution is to manually delete the extra app installations from the file system. We'll try to fix updating multiple installations of an app in the future, but it might not be able to be fixed, and we probably won't get to it for a while. See #462 (comment).

@rgoldberg
Copy link
Contributor

rgoldberg commented Nov 26, 2024

@antoine2711 It looks like all of the problems brought up in this issue are already tracked elsewhere.

If that's not the case, please let me know what remains untracked elsewhere.

If all tracked elsewhere, please let me know so I can close out this issue as a duplicate.

Thanks.

@antoine2711
Copy link
Author

antoine2711 commented Nov 28, 2024

@rgoldberg :
It seem to be a bit different.

I have never installed twice the same app. In any case, you can see that the name is the same.
I have a question: how can I get the path to an installed app?

Now, without going into AppStore, I can’t upgrade an app…

mas outdated
1295203466 Windows App (11.0.3 -> 11.0.7)
 03:58:33 [email protected]:/usr/local/
mas list
640199958   Developer             (10.7)
409183694   Keynote               (14.2)
(…)
1295203466  Windows App           (11.0.3)
409203825   Numbers               (14.2)
 03:58:41 [email protected]:/usr/local/
mas upgrade 1295203466
Upgrading 1 outdated application:
Windows App (11.0.3) -> (11.0.7)
==> Downloaded Windows App (11.0.7)
==> Installing Windows App (11.0.7)
==> Installed Windows App (11.0.7)
 03:59:12 [email protected]:/usr/local/
mas outdated
1295203466 Windows App (11.0.3 -> 11.0.7)

Regards, Antoine

@rgoldberg
Copy link
Contributor

rgoldberg commented Nov 28, 2024

This probably is occurring because Microsoft changed the name of the app from "Microsoft Remote Desktop" to "Windows App".

The solution might be to, in App Store.app:

  • open the Account page (accessible by clicking on the text at the bottom of the left pane that says the name of the Apple ID for which you're signed in in the Mac App Store)
  • check to see if either Microsoft Remote Desktop and/or Windows App is listed amongst your Purchased apps (possibly one or more times each, so look through the whole list without short-circuiting the first time you find them)
  • try to reload the page via the keyboard (Command-r) or via the menu (Store > Reload Page)
  • try mas outdated again

If that doesn't fix everything, try a dry run of an uninstall to see the paths to all the apps with the same app ID as Windows App:

sudo mas uninstall --dry-run 1295203466

This will NOT uninstall anything. sudo is required, though, even for a dry run.

@antoine2711
Copy link
Author

antoine2711 commented Nov 29, 2024

@rgoldberg :
it gave me this:
image

So, the problem is with Apple’s API, and not our mas command tool, I guess?
Thanks for the info!

Quick question: could the path also be given by the info command? Like mas info 1295203466?

Regards, Antoine

@rgoldberg
Copy link
Contributor

I assume the latter path doesn't exist on the file system, right?

If so, the problem is from the Apple API.

Did you try to "Reload Page"?

@antoine2711
Copy link
Author

I assume the latter path doesn't exist on the file system, right?

Nope. Both path exists.
image

If so, the problem is from the Apple API.

Did you try to "Reload Page"?

Didn’t go to the AppStore.
I’ll just delete the old app.

Regards, Antoine

@rgoldberg
Copy link
Contributor

So the issue is duplicate apps. Will close.

Feature request #462 already exists for the ability to update multiple apps with the same ID.

@antoine2711 antoine2711 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 29, 2024
@antoine2711
Copy link
Author

antoine2711 commented Nov 29, 2024

@rgoldberg :

Should I write a new issue to have the mas info ID give the path (or paths if more than one) of the applications installed?

Can you remove the label “awaiting user reply” and add “duplicate”?

Regards, Antoine

@rgoldberg
Copy link
Contributor

rgoldberg commented Nov 29, 2024

@antoine2711 Thanks for the offer of making an issue, but it shouldn't be necessary because:

#660 is an umbrella issue for detecting & potentially fixing odd/bad states for MAS apps. Duplicate app IDs are the first (& so far only) state mentioned in #660. Outputting app paths is included in the issue as an one way to highlight potential underlying issues like duplicate app IDs.

#626 is an umbrella issue for refactoring the whole output system (it is somewhat terse, as I wanted to document quickly, and to only include more detail if others really need it). I would like to change specific output (like outputting app paths) only after the whole system has been refactored.

I'm the only currently active mas developer, so I don't think we'll need a separate issue for app paths to ensure it's in the task queue as I will work on the larger initiatives, and it's a part of one of them.

Before I refactor the output system, I need to:

  • finish refactoring our release process
  • fix other administrative issues
  • finish fixing bugs in Swift Argument Parser shell completion script generation
  • implement mas shell completions for zsh, bash & fish
  • possibly complete other tasks

I also want to discuss various large initiatives (like release & output refactoring) & to establish task priorities with the project lead (who doesn't have much time to work on mas due to other commitments), so it might take time to get to all this.

@antoine2711
Copy link
Author

@rgoldberg : thanks for taking the time to explain all of this to me.

Keep up the good work, and I’ll continue to do my testing.

Regards, Antoine

@rgoldberg
Copy link
Contributor

@antoine2711 Thanks for using mas, and for taking the time to report & investigate issues.

If you experience other problems, or have feature requests, please let us know.

@antoine2711
Copy link
Author

Just a follow-up.

I deleted file '/Applications/Microsoft Remote Desktop.app'

And then, I tried:

mas outdated
1295203466 Windows App (11.0.3 -> 11.0.7)

I did:

mas upgrade 
Upgrading 1 outdated application:
Windows App (11.0.3) -> (11.0.7)
==> Downloaded Windows App (11.0.7)
==> Installing Windows App (11.0.7)
==> Installed Windows App (11.0.7)

But it’s still in the outdated, and can be forever upgraded. I’ll retry in 24h

Regards, Antoine

@rgoldberg
Copy link
Contributor

@antoine2711 Can you rerun the dry run of the uninstall (because the Apple data source might still think that the app you deleted is still installed)?

sudo mas uninstall --dry-run 1295203466

If the deleted path is still listed by that command, you should reload page in the Mac App Store GUI as mentioned above.

If not listed, try upgrading after waiting the 24 hours you mentioned. If that doesn't fix it, we'll have to investigate more.

@antoine2711
Copy link
Author

@antoine2711 Can you rerun the dry run of the uninstall (because the Apple data source might still think that the app you deleted is still installed)?
If the deleted path is still listed by that command, you should reload page in the Mac App Store GUI as mentioned above.

Well, I deleted the application in the Finder.

If not listed, try upgrading after waiting the 24 hours you mentioned. If that doesn't fix it, we'll have to investigate more.

I waited 24h, and now, outdated shows me nothing, so I guess it was Apple data source that didn’t realized I deleted the app in the Finder.

Regards, Antoine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants