portmaster icon indicating copy to clipboard operation
portmaster copied to clipboard

"Portmaster has detected that one or more of its own files have been corrupted"

Open sypqys opened this issue 3 months ago • 14 comments

Hello !

Image

Pre-Submit Checklist:

What happened:

What did you expect to happen?:

How did you reproduce it?:

Debug Information:

sypqys avatar Sep 03 '25 06:09 sypqys

Greetings and welcome to our community! As this is the first issue you opened here, we wanted to share some useful infos with you:

  • 🗣️ Our community on Discord is super helpful and active. We also have an AI-enabled support bot that knows Portmaster well and can give you immediate help.
  • 📖 The Wiki answers all common questions and has many important details. If you can't find an answer there, let us know, so we can add anything that's missing.

github-actions[bot] avatar Sep 03 '25 06:09 github-actions[bot]

+1. Just upgraded this morning and encountered the same issue. It seems to be working as expected, but that warning is extremely troubling, especially since it says "Insecure" on the screen.

Image

tnonate avatar Sep 06 '25 15:09 tnonate

Hello. Any additional info will be helpful for analysis. At the very least, please let us know the OS and its version, as well as the Portmaster version. The Portmaster debug info would also be really helpful.

stenya avatar Sep 06 '25 16:09 stenya

Hitting the exact same issue even after a complete uninstall/reinstall and ensuring assets.zip is deleted. Windows 11 latest cumulative and latest portmaster version (plus). log file shows this line

2025-09-06 13:53:20.356 ERR status\status.go:95 new worst state manager=Status state="{ID:updates:corrupt-installation Name:Install Corruption Message:Portmaster has detected that one or more of its own files have been corrupted. Please re-install the software. Error: invalid artifact: verify assets.zip: sha256sum mismatch Type:error Time:2025-09-06 13:53:16.2332051 -0400 EDT m=+0.194981701 Data:invalid artifact: verify assets.zip: sha256sum mismatch}"

trystan-s avatar Sep 06 '25 17:09 trystan-s

Hello. Any additional info will be helpful for analysis. At the very least, please let us know the OS and its version, as well as the Portmaster version. The Portmaster debug info would also be really helpful.

Windows 11 Home 10.0.22631 Build 22631. Portmaster 2.0.24.

Debug info looks like it might contain some personal info I'd rather not share publicly. Is there a place I can send it to? Should I reinstall before sending to make sure the errors are in the most recent debug messages?

tnonate avatar Sep 07 '25 05:09 tnonate

I was able to resolve this issue.

It was SiriusLLM or GPT that was causing the problem, I think... A conflict with Portmaster, I think...

I uninstalled it properly and reinstalled it...

I had this problem afterwards...

but since then everything has been back to normal.

Thank you

Image Image Image

sypqys avatar Sep 10 '25 12:09 sypqys

I was updated Portmaster with UniGetUI and then, the problem appear.

sypqys avatar Sep 15 '25 17:09 sypqys

Any news about this issue?

Install Corruption

Portmaster has detected that one or more of its own files have been corrupted. Please re-install the software. Error: invalid artifact: verify portmaster: sha256sum mismatch

terashy88 avatar Oct 09 '25 15:10 terashy88

Not yet, unfortunately.

Please confirm that you are using the latest PM version (2.0.25).

Could you please provide the SHA256 hashes of the Portmaster binaries? To do this, open the Windows Command Prompt (cmd) and run the following command:

for %f in ("C:\Program Files\Portmaster\*") do @certutil -hashfile "%f" SHA256

I’m interested in the command’s output.

stenya avatar Oct 09 '25 17:10 stenya

Okay, well, I could fix it by backup the config, uninstalling Portmaster, also had to delete all leftover files, reinstall it and restore the config.

Why it was broken is still a mystery.

I'm on Linux:

❯ pacman -Q |g portmaster
portmaster 2.0.0-2

terashy88 avatar Oct 10 '25 10:10 terashy88

I got the same error: Image

Running on Windows 11 Pro 24H2, Build 26100.6584. Running Portmaster 2.0.25

Image

I had updated Portmaster with UniGetUI and then the problem appeared.

Same for me. That lets me assume the winget version of Portmaster is broken?


Could you please provide the SHA256 hashes of the Portmaster binaries? To do this, open the Windows Command Prompt (cmd) and run the following command:

for %f in ("C:\Program Files\Portmaster\*") do @certutil -hashfile "%f" SHA256
SHA256 hash of C:\Program Files\Portmaster\assets.zip:
8068115b8d9e5c2059032befc22226578d0b7e676f776dab553c692497878752
CertUtil: -hashfile command completed successfully.
SHA256 hash of C:\Program Files\Portmaster\index.json:
46b11b41b74f32627d6b9a4a940808954effde2d27fe4d8d001ac83763a95a10
CertUtil: -hashfile command completed successfully.
SHA256 hash of C:\Program Files\Portmaster\portmaster-core.dll:
3e5db91a4c48278b6ab7355633306685011edc8c59eadd8c760c499a79f50254
CertUtil: -hashfile command completed successfully.
SHA256 hash of C:\Program Files\Portmaster\portmaster-core.exe:
341f8bed55657366c3271b6dc369b091fb24a39a445aa7795db3c90810c5a57a
CertUtil: -hashfile command completed successfully.
SHA256 hash of C:\Program Files\Portmaster\portmaster-kext.sys:
4d72a8b43a4a3f2e2b5598edbd64a28de8c47a4db546607164c5e48c07103329
CertUtil: -hashfile command completed successfully.
SHA256 hash of C:\Program Files\Portmaster\portmaster.exe:
ed9afffe733992c49ad3e75c5b263c2e0dd5231e600e7bb01c40373b27b1c4f5
CertUtil: -hashfile command completed successfully.
SHA256 hash of C:\Program Files\Portmaster\portmaster.zip:
0011176f80ba498a87a86ba782bdf7896f3e0289debb53e05b071a177ee96b23
CertUtil: -hashfile command completed successfully.
SHA256 hash of C:\Program Files\Portmaster\uninstall.exe:
d8c55b2c667beef02d1cf039258af12f25bd9bd407af841609d0d1e686affb81
CertUtil: -hashfile command completed successfully.
SHA256 hash of C:\Program Files\Portmaster\WebView2Loader.dll:
609c974a8cdd6a76a745b3d81b62f321d79f2dc8f4929e1eea8469d9d78baf79
CertUtil: -hashfile command completed successfully.

Miniontoby avatar Oct 16 '25 09:10 Miniontoby

Thanks, I’ll check the hashes tomorrow.

Just FYI: we only support installation methods listed on the official Portmaster website — https://safing.io/download/ We do not support installing the Portmaster app via UniGetUI or WinGet. Using unofficial or custom installers is at your own risk.

stenya avatar Oct 16 '25 15:10 stenya

We do not support installing the Portmaster app via UniGetUI or WinGet. Using unofficial or custom installers is at your own risk.

~~But who put it under Safing.Portmaster name on WinGet (which is used inside UniGetUI). Cause this name would mean that Safing would be the user/organisation who uploaded it afaik...~~

Edit: Oh welp, it looks like it had been added by a user named @OfficialEsco https://github.com/microsoft/winget-pkgs/commit/97bc1cf926dfbc537af4d4019f0f6361c5ed2b58

And under the hood its using https://updates.safing.io/latest/windows_amd64/packages/Portmaster_2.0.25_x64-setup.exe to get it installed: https://github.com/microsoft/winget-pkgs/commit/e0213bc2cad8dcad165888cfc8b050e9c894dc6a


But yeah the thing is, I am using UniGetUI to keep everything updated. I had originally installed Portmaster from the website, but UniGetUI thought winget's version would be better and when there was an update in portmaster, it had overridden the official install and just used winget's version.

Miniontoby avatar Oct 16 '25 17:10 Miniontoby

Hello,

We have identified the issue. The root cause was a file hash mismatch between the installer and the update repository.

The issue occurs when running the latest installer after the app has already been automatically updated to the latest version using the internal update mechanism. This problem does not affect any app functionality — it only results in a warning notification.

To suppress the installation corruption warning, you can manually remove the following file and then restart Portmaster: C:\Program Files\Portmaster\index.json

We have updated our internal scripts to prevent such issues in future releases.

Special thanks to @Miniontoby for your support!

stenya avatar Oct 17 '25 13:10 stenya