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

Uncaught Error: Command failed: powershell.exe #4884

Closed
1 of 2 tasks
ganthern opened this issue Dec 22, 2022 · 1 comment · Fixed by #4941
Closed
1 of 2 tasks

Uncaught Error: Command failed: powershell.exe #4884

ganthern opened this issue Dec 22, 2022 · 1 comment · Fixed by #4941
Assignees
Labels
bug broken functionality, usability problems, unexpected errors desktop Desktop client related issues state:done meets our definition of done
Milestone

Comments

@ganthern
Copy link
Contributor

ganthern commented Dec 22, 2022

Describe the bug
Uncaught errors from native in the reports mailbox:

Client: win32
Type: PREMIUM
Tutanota version: 3.103.3
Timestamp (UTC): Tue, 15 Nov 2022 11:35:29 GMT
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) tutanota-desktop/3.103.3 Chrome/102.0.5005.167 Electron/19.1.3 Safari/537.36
Error
Error message: Command failed: powershell.exe -NoProfile -NonInteractive -InputFormat None -Command Get-AuthenticodeSignature -LiteralPath 'C:\Users\...\AppData\Local\tutanota-desktop-updater\pending\temp-tutanota-desktop-win.exe' | ConvertTo-Json -Compress | ForEach-Object { [Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($_)) }

Stacktrace:
Error: Command failed: powershell.exe -NoProfile -NonInteractive -InputFormat None -Command Get-AuthenticodeSignature -LiteralPath 'C:\Users\...\AppData\Local\tutanota-desktop-updater\pending\temp-tutanota-desktop-win.exe' | ConvertTo-Json -Compress | ForEach-Object { [Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($_)) }

at ChildProcess.exithandler (..\..\node:child_process:408:12)
at ChildProcess.emit (..\..\node:events:526:28)
at maybeClose (..\..\node:internal/child_process:1092:16)
at ChildProcess._handle.onexit (..\..\node:internal/child_process:302:5)

They suggest that it happens during update installation, which makes sense considering the command that's failing is part of the updater/installer.

Desktop (please complete the following information):

  • windows only
  • happens every desktop release
  • first reports came from v3.103.3, so it's probably something we introduced with that version or the one following (with the failing signature extraction)
  • we had about ~160 reports of this since November 15

Test Notes

  • update from affected version to fixed version worked on mac, windows, linux
  • update from fixed version to fixed version worked on mac, windows, linux
@ganthern ganthern added bug broken functionality, usability problems, unexpected errors desktop Desktop client related issues labels Dec 22, 2022
@ganthern ganthern changed the title Error: : Command failed: powershell.exe Uncaught Error: Command failed: powershell.exe Dec 22, 2022
@wrdhub wrdhub self-assigned this Jan 5, 2023
wrdhub added a commit that referenced this issue Jan 6, 2023
@ganthern ganthern added the state:done meets our definition of done label Jan 6, 2023
@ganthern ganthern added this to the 3.108.0 milestone Jan 16, 2023
ganthern pushed a commit that referenced this issue Jan 16, 2023
ganthern pushed a commit that referenced this issue Jan 17, 2023
ganthern pushed a commit that referenced this issue Jan 20, 2023
ganthern pushed a commit that referenced this issue Jan 20, 2023
@nokhub nokhub self-assigned this Jan 24, 2023
@nokhub
Copy link
Contributor

nokhub commented Jan 24, 2023

updating from 3.108.x to 3.108.6 does not work on ubuntu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug broken functionality, usability problems, unexpected errors desktop Desktop client related issues state:done meets our definition of done
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants