[go: nahoru, domu]

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

Crash: "EPERM: operation not permitted)" #3106

Open
1 task done
cheecheeo opened this issue Feb 6, 2019 · 16 comments
Open
1 task done

Crash: "EPERM: operation not permitted)" #3106

cheecheeo opened this issue Feb 6, 2019 · 16 comments

Comments

@cheecheeo
Copy link
  • I have searched open and closed issues for duplicates

Bug Description

Intermittent crashes after computer sleeps.

Steps to Reproduce

  1. step one
  2. step two
  3. step three

Actual Result:

Signal crashes with the following window:
image

Expected Result:

Signal continues to work.

Screenshots

Platform Info

Signal Version:

v1.21.0-beta.3

Operating System:

Windows

Linked Device Version:

Link to Debug Log

Header: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) SignalBeta/1.21.0-beta.3 Chrome/66.0.3359.181 Electron/3.0.14 Safari/537.36 node/10.2.0 env/production

@rainerzufall
Copy link

I got the same error when the SignalBeta/1.21.0-beta.4 update arrived. Note that the Signal Desktop Beta was running for a few hours already without an update prompt. My stable Signal Desktop got the update immediately after start up.

Unhandled Promise Rejection
Error: EPERM: operation not permitted, open 'C:\Users\XXX\AppData\Local\signal-desktop-beta-updater\pending\temp-signal-desktop-beta-win-1.21.0-beta.4.exe'
    at ElectronHttpExecutor.download (C:\Users\XXX\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\node_modules\electron-updater\src\electronHttpExecutor.ts:23:73)
    at Object.<anonymous> (C:\Users\XXX\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:35:35)
From previous event:
    at Object.task (C:\Users\XXX\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:31:11)
    at C:\Users\XXX\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:610:25
From previous event:
    at NsisUpdater.executeDownload (C:\Users\XXX\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:545:68)
    at NsisUpdater.executeDownload (C:\Users\XXX\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\node_modules\electron-updater\src\BaseUpdater.ts:27:18)
    at NsisUpdater.doDownloadUpdate (C:\Users\XXX\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:27:17)
    at NsisUpdater.downloadUpdate (C:\Users\XXX\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:420:19)
    at C:\Users\XXX\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:383:49
    at Generator.next (<anonymous>)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
From previous event:
    at NsisUpdater.doCheckForUpdates (C:\Users\XXX\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:360:34)
    at NsisUpdater.checkForUpdates (C:\Users\XXX\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:220:35)
    at Timeout.checkForUpdates [as _onTimeout] (C:\Users\XXX\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\app\auto_update.js:22:15)
    at ontimeout (timers.js:427:11)
    at tryOnTimeout (timers.js:289:5)
    at listOnTimeout (timers.js:252:5)
    at Timer.processTimers (timers.js:212:10)

debug log: after restart/update to SignalBeta/1.21.0-beta.4:
https://debuglogs.org/c1a0ad9bafd88ee0fe9ce972b5e4f6c45eb696e370e8dc1c1e4107416920c3c9

@scottnonnenberg-signal
Copy link
Contributor

Did this happen repeatedly, or just once? Have you been able to update to v.1.21.0-beta.4?

@cheecheeo
Copy link
Author

Did this happen repeatedly, or just once? Have you been able to update to v.1.21.0-beta.4?

I've since updated to -beta.4 and now see a different error. I'll close this and reopen if i see it again.

@scottnonnenberg-signal scottnonnenberg-signal changed the title Unhandled promise rejection (EPERM: operation not permitted) Crash: "EPERM: operation not permitted)" Feb 6, 2019
@Dyras
Copy link
Dyras commented Feb 7, 2019

This happened to me immediately before updating to the latest beta.

Unhandled Promise Rejection
Error: EPERM: operation not permitted, open 'C:\Users\johan\AppData\Local\signal-desktop-beta-updater\pending\temp-signal-desktop-beta-win-1.21.0-beta.4.exe'
    at ElectronHttpExecutor.download (C:\Users\johan\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\node_modules\electron-updater\src\electronHttpExecutor.ts:23:73)
    at Object.<anonymous> (C:\Users\johan\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:35:35)
From previous event:
    at Object.task (C:\Users\johan\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:31:11)
    at C:\Users\johan\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:610:25
From previous event:
    at NsisUpdater.executeDownload (C:\Users\johan\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:545:68)
    at NsisUpdater.executeDownload (C:\Users\johan\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\node_modules\electron-updater\src\BaseUpdater.ts:27:18)
    at NsisUpdater.doDownloadUpdate (C:\Users\johan\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:27:17)
    at NsisUpdater.downloadUpdate (C:\Users\johan\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:420:19)
    at C:\Users\johan\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:383:49
    at Generator.next (<anonymous>)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
From previous event:
    at NsisUpdater.doCheckForUpdates (C:\Users\johan\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:360:34)
    at NsisUpdater.checkForUpdates (C:\Users\johan\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:220:35)
    at Timeout.checkForUpdates [as _onTimeout] (C:\Users\johan\AppData\Local\Programs\signal-desktop-beta\resources\app.asar\app\auto_update.js:22:15)
    at ontimeout (timers.js:427:11)
    at tryOnTimeout (timers.js:289:5)
    at listOnTimeout (timers.js:252:5)
    at Timer.processTimers (timers.js:212:10)

Immediately after starting Signal after the crash, I received a "A new version of Signal is available" message so if I had to guess, this is an issue with the updater. This has never happened before.
https://debuglogs.org/2f877f19b0736b9eb581e4a4d74e0d93e1eb5537fef0c8372f9a3ac073478933

Will report back if it happens again with the latest beta.

dbb726_2019-02-07_00-01-44

Edit: I'm currently using beta 4, so the update itself doesn't seem to be an issue.

@supertobi
Copy link

I get this crash since today with this log:

Unhandled Promise Rejection
Error: EPERM: operation not permitted, open 'C:\Users\XXX\AppData\Local\signal-desktop-updater\pending\temp-signal-desktop-win-1.21.1.exe'
    at ElectronHttpExecutor.download (C:\Users\XXX\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\electronHttpExecutor.ts:23:73)
    at Object.<anonymous> (C:\Users\XXX\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:35:35)
From previous event:
    at Object.task (C:\Users\XXX\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:31:11)
    at C:\Users\XXX\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:610:25
From previous event:
    at NsisUpdater.executeDownload (C:\Users\XXX\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:545:68)
    at NsisUpdater.executeDownload (C:\Users\XXX\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\BaseUpdater.ts:27:18)
    at NsisUpdater.doDownloadUpdate (C:\Users\XXX\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:27:17)
    at NsisUpdater.downloadUpdate (C:\Users\XXX\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:420:19)
    at C:\Users\XXX\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:383:49
    at Generator.next (<anonymous>)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
From previous event:
    at NsisUpdater.doCheckForUpdates (C:\Users\XXX\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:360:34)
    at NsisUpdater.checkForUpdates (C:\Users\XXX\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:220:35)
    at Timeout.checkForUpdates [as _onTimeout] (C:\Users\XXX\AppData\Local\Programs\signal-desktop\resources\app.asar\app\auto_update.js:22:15)
    at ontimeout (timers.js:427:11)
    at tryOnTimeout (timers.js:289:5)
    at listOnTimeout (timers.js:252:5)
    at Timer.processTimers (timers.js:212:10)

Platform Info

Signal Version: v1.21.1
Operating System: Windows 10 (Build 17134.556)

@ghost
Copy link
ghost commented Feb 13, 2019

@scottnonnenberg-signal Hey there, I commented a few days ago regarding this same error (I had to make a new account just now) about MacOS (Sierra 10.12.6) showing the "Unhandled Promise Rejection" error on the previous version. I am running Signal V1.21.1 now and the error is still popping up unfortunately. The update worked for a few days but it has returned. I can open up a new bug report here on GitHub if this isn't the right place to comment and/or I can share the text that the error message pops up. Thanks.

@scottnonnenberg-signal
Copy link
Contributor

@rocketleaguefan1 What's the line right below the 'unhandled promise rejection?" That's the real error message.

@ghost
Copy link
ghost commented Feb 13, 2019

@scottnonnenberg-signal It says:
"Unhandled Promise Rejection
Error: Cannot update while running on a read-only volume. The application is on a read-only volume. Please move the application and try again. If you're on macOS Sierra or later, you'll need to move the application out of the Downloads directory. See Squirrel/Squirrel.Mac#182 for more information."

I went to the GitHub website it mentions there at the bottom and I wasn't sure what to do. Someone mentioned removing "Atom" but I don't think I have that downloaded. Please forgive my ignorance in these matters since I know very little about this field. Thank you.

@scottnonnenberg-signal
Copy link
Contributor

@rocketleaguefan1 You get that error because macOS has Signal in a read-only quarantine zone. You need to move Signal.app, with Finder, to /Applications. If it still gives you that error, you can try manually removing that quarantine attribute like this: https://discussions.apple.com/thread/3145071?answerId=15507936022#15507936022

@rainerzufall
Copy link

Just happend to my girlfriend at work:

Unhandled Promise Rejection
Error: EPERM: operation not permitted, open 'C:\Users\daniela\AppData\Local\signal-desktop-updater\pending\temp-signal-desktop-win-1.22.0.exe'
at ElectronHttpExecutor.download (C:\Users\daniela\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\electronHttpExecutor.ts:23:73)
at Object.<anonymous> (C:\Users\daniela\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:35:35)
From previous event:
at Object.task (C:\Users\daniela\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:31:11)
at C:\Users\daniela\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:610:25
From previous event:
at NsisUpdater.executeDownload (C:\Users\daniela\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:545:68)
at NsisUpdater.executeDownload (C:\Users\daniela\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\BaseUpdater.ts:27:18)
at NsisUpdater.doDownloadUpdate (C:\Users\daniela\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\NsisUpdater.ts:27:17)
at NsisUpdater.downloadUpdate (C:\Users\daniela\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:420:19)
at C:\Users\daniela\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:383:49
at Generator.next (<anonymous>)
at runCallback (timers.js:696:18)
at tryOnImmediate (timers.js:667:5)
at processImmediate (timers.js:649:5)
From previous event:
at NsisUpdater.doCheckForUpdates (C:\Users\daniela\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:360:34)
at NsisUpdater.checkForUpdates (C:\Users\daniela\AppData\Local\Programs\signal-desktop\resources\app.asar\node_modules\electron-updater\src\AppUpdater.ts:220:35)
at Timeout.checkForUpdates [as _onTimeout] (C:\Users\daniela\AppData\Local\Programs\signal-desktop\resources\app.asar\app\auto_update.js:23:23)
at ontimeout (timers.js:427:11)
at tryOnTimeout (timers.js:289:5)
at listOnTimeout (timers.js:252:5)
at Timer.processTimers (timers.js:212:10)

debug log: https://debuglogs.org/2c76d9c22936115967c67ff2a2f0fa070ac1e474a33e802a65fa606a400c5426

@scottnonnenberg-signal
Copy link
Contributor

Yep, in v1.22.0 we downgraded our install/update infrastructure, which should prevent these errors for all updates after v1.22.0 or v1.22.0-beta.2. There's always a delay, since the new, fixed infrastructure has to be in charge of the new version download.

@Ugator
Copy link
Ugator commented Feb 21, 2019

Experienced the same error today. I was on no beta branch.
Also, my debug log contained my windows username in the program path on this error. I linked it under the corresponding privacy-bug.

Screenshots

an error box with the error text "Error: EPERM: operation not permitted ..." appeared, exiting the error box terminated signal.

Platform Info

Signal Version:
1.22.0

Operating System:
Windows 10 Home
version 1803

Linked Device Version:
iOS 2.35.0.13

Link to Debug Log

https://debuglogs.org/f0bd968e473f76b3194d4624ccbade799ed2d4aea79cd86c147f6bc4bc3ae823

@scottnonnenberg-signal
Copy link
Contributor

Yep, again we expect this to continue to happen until the upgrade v1.22.0->next, v1.22.0-beta.2->next.

@TYeniyayla
Copy link
TYeniyayla commented Nov 18, 2021

I am also getting the same error after updating Signal.

@indutny-signal
Copy link
Contributor

@TYeniyayla could you send us a debug log, please?

@TYeniyayla
Copy link
TYeniyayla commented Nov 19, 2021

Ok, I solved the problem. Now let me tell you how. I'm using Signal on my PC at work. I am not the administrator on this pc and every program is installed, admin permission is required. Signal is one of the rare programs installed without admin permission and I have been using it for a long time.

After I did the last update, I started getting an error (error: Signal nhandled Promise Rejection Error: EPERM: operation not permitted, unlink 'C:\Users\ahmet.yeniyayla\AppData\Roaming\Signal\logs\app.log.3') and it was asking for admin permission to read the log files. That's why I couldn't share the log files here and tried to reach the system administrator. I just arrived today.

We tried to read the log files together, but even though it gave me permission for the log files, the file was giving me an access block error, it wouldn't open. Meanwhile, I restarted the computer and signal worked, the log files were opened without any problems. We don't have the slightest clue why it happened, but somehow the problem was solved. Now I am attaching the log files as well. Maybe you have an idea.

app.log
main.log

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

No branches or pull requests

8 participants