question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problems with group policy and auto update feature

See original GitHub issue

I confirm (by marking “x” in the [ ] below: [x]):


Summary Disabling the auto update function doesn’t work via group policies

Environment

  • Operating System: Windows 10 1809
  • Mattermost Desktop App version: 5.1.0
  • Mattermost Server version: 6.3.9

Steps to reproduce

  • distribute group policies as described in the docs and set “EnableAutoUpdater” to “0”
  • start desktop client

Expected behavior

  • no “update available” popup and icon in the right corner

Observed behavior

  • “update available” popup and icon in the right corner

With gpresult, we confirmed that the group policy is distributed and active. We checked via regedit that the registry key is set as follows:

Path: HKEY_LOCAL_MACHINE\Software\Policies\Mattermost Key: EnableAutoUpdater Value: 0

In the user context HKEY_CURRENT_USER we didn’t find any entry like this, though.

In C:\Users\censored\AppData\Roaming\Mattermost\logs\main.log I found this error multiple times:

[2022-09-09 14:17:28.796] [info]  Found version 5.1.1 (url: 5.1.1/mattermost-desktop-setup-5.1.1-win.exe)
[2022-09-09 14:17:28.828] [info]  [Mattermost] available version 5.1.1
[2022-09-09 14:17:29.014] [info]  Log level set to: info
[2022-09-09 14:17:34.166] [info]  [<censored>___T...] finished loading https://<censored>/
[2022-09-09 14:17:35.817] [error] error: ProcessUncleanExitError: ADD command exited with code 1:
FEHLER: Die Registrierungsbearbeitung wurde vom Administrator deaktiviert.
    at mkErrorMsg (C:\Program Files\Mattermost\Desktop\resources\app.asar\index.js:51742:10)
    at ChildProcess.<anonymous> (C:\Program Files\Mattermost\Desktop\resources\app.asar\index.js:52354:10)
    at ChildProcess.emit (node:events:390:28)
    at maybeClose (node:internal/child_process:1064:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)

Also, in C:\Users\censored\AppData\Roaming\Mattermost\config.json the auto update setting is configured as follows:

"autoCheckForUpdates": true,

When I manually set this to “false”, the popups disappear. But unfortunately this isn’t a sustainable solution for my whole company.

Possible fixes n/a

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rtfm98commented, Nov 30, 2022

@devinbinnie Thanks for the follow-up. v5.2 is currently being packed into a SCCM package, so I can’t answer your question right now. As soon as we deployed v5.2 and there is an actual update available, I’ll come back to it.

0reactions
rtfm98commented, Dec 23, 2022

@devinbinnie Hi again, we deployed v5.2.1 and I can confirm that the “update available” popup is gone (even though v5.2.2 is available) 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure Windows Update for Business via Group Policy
To enable Microsoft Updates use the Group Policy Management Console go to Computer Configuration > Administrative Templates > Windows Components ...
Read more >
Updating Group Policy Settings on Windows Domain Computers
In this article we will show how to update Group Policy (GPO) settings on Windows computers in an Active Directory domain: how to...
Read more >
Some settings are managed by your organization in Windows ...
Method 4. Modify Automatic Updates settings in Group Policy. · 1. Simultaneously press the Windows image + R keys to open the Run...
Read more >
Group Policy Best Practices - Netwrix
Regular users can't switch updates off since it's an automated feature. Windows Group Policy settings can be changed to disable automatic driver updates, ......
Read more >
Configuring Automatic Updates by using local Group Policy
Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found