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

Error - uncaughtException EAGAIN (MacOS) or ENOENT (windows) #4209

Open
udoschmitz opened this issue Oct 11, 2024 · 12 comments
Open

Error - uncaughtException EAGAIN (MacOS) or ENOENT (windows) #4209

udoschmitz opened this issue Oct 11, 2024 · 12 comments
Labels
blocker This issue is blocking a new release bug Something isn't working needs feedback Waiting for feedback from issue reporter OS: Mac Related to MacOS OS: Windows This issue or PR is related to Windows OS

Comments

@udoschmitz
Copy link

  • Operating System (Linux/Mac/Windows/iOS/Android): macOS Sonoma 14.7 (23H124)
  • Delta Chat Version: 1.46.8
  • Expected behavior: app should run and open chat window
  • Actual behavior: app opens with error, only option to click „OK“ closes app
  • Steps to reproduce the problem: nothing changed on my Mac. App installed recently.
  • Screenshots:
  • Logs: attached

`Error - uncaughtException

See the logfile (/Users/udo/Library/Containers/chat.delta.desktop.electron/Data/Library/Application Support/DeltaChat/logs/2024-10-11-22-10-45.log) for details and contact the developers about this issue:
{"message":"spawn /Applications/DeltaChat.app/Contents/Resources/app.asar.unpacked/node_modules/@deltachat/stdio-rpc-server-darwin-arm64/deltachat-rpc-server EAGAIN","stack":"Error: spawn /Applications/DeltaChat.app/Contents/Resources/app.asar.unpacked/node_modules/@deltachat/stdio-rpc-server-darwin-arm64/deltachat-rpc-server EAGAIN\n at Process.ChildProcess._handle.onexit (node:internal/child_process:286:19)\n at onErrorNT (node:internal/child_process:484:16)\n at processTicksAndRejections (node:internal/process/task_queues:82:21)“}`

2024-10-11-22-17-34.log

@Simon-Laux
Copy link
Member

what is the output when you start delta chat from the terminal?

/Applications/DeltaChat.app/Contents/MacOS/DeltaChat

@Simon-Laux Simon-Laux added bug Something isn't working OS: Mac Related to MacOS needs feedback Waiting for feedback from issue reporter labels Oct 12, 2024
@Simon-Laux
Copy link
Member

Basically your error means that deltachat-rpc-server / deltachat-core could not be started.
But there is not enough information for us to investigate, so please start it from the terminal, maybe there will be additional information.

@jincola
Copy link

jincola commented Nov 17, 2024

I just installed Deltachat for the first time and there's this same Error - uncaughtException.
Deltachat version 1.48 , OS Windows10 22H2
1

@Simon-Laux Simon-Laux pinned this issue Nov 18, 2024
@Simon-Laux
Copy link
Member

Simon-Laux commented Nov 30, 2024

@jincola I need the contents to the logfile. The error for you is a different one, you have ENOENT, OP has EAGAIN.
ENOENT means that the file is not found, but your error message does not show the full path, the log file will.
Also I need to know if your device cpu architecture (32bit/64bit x86/arm)

@jincola
Copy link

jincola commented Dec 11, 2024

Here's the logfile:

2024-11-17T14:42:59.893Z	main/index            	INFO	""	"Deltachat Version 1.48.0 v1.33.0-1163-g0349c14e 1731080347962"
2024-11-17T14:42:59.924Z	main/index            	INFO	""	"cwd C:\\Users\\myname\\AppData\\Local\\DeltaChat\\accounts"
2024-11-17T14:42:59.932Z	migration             	INFO	""	"migration not needed: nothing to migrate"
2024-11-17T14:42:59.933Z	main/deltachat        	INFO	""	"using deltachat-rpc-server at"	{"serverPath":"C:\\Users\\myname\\AppData\\Local\\Programs\\DeltaChat\\resources\\app.asar.unpacked\\node_modules\\@deltachat\\stdio-rpc-server-win32-x64\\deltachat-rpc-server.exe"}
2024-11-17T14:42:59.935Z	main/deltachat        	INFO	""	"HI"
2024-11-17T14:42:59.935Z	main/deltachat        	INFO	""	"Ready, starting accounts io..."
2024-11-17T14:42:59.935Z	main/deltachat        	INFO	""	"Started accounts io."
2024-11-17T14:42:59.936Z	main/index            	ERROR	"\nprocess.<anonymous> (file:///C:/Users/myname/AppData/Local/Programs/DeltaChat/resources/app.asar/bundle_out/index.js:110:7355),\nprocess.emit (node:events:531:35),\nprocess._fatalException (node:internal/process/execution:188:25)"	"uncaughtError"	{"message":"spawn C:\\Users\\myname\\AppData\\Local\\Programs\\DeltaChat\\resources\\app.asar.unpacked\\node_modules\\@deltachat\\stdio-rpc-server-win32-x64\\deltachat-rpc-server.exe ENOENT","stack":"Error: spawn C:\\Users\\myname\\AppData\\Local\\Programs\\DeltaChat\\resources\\app.asar.unpacked\\node_modules\\@deltachat\\stdio-rpc-server-win32-x64\\deltachat-rpc-server.exe ENOENT\n    at ChildProcess._handle.onexit (node:internal/child_process:286:19)\n    at onErrorNT (node:internal/child_process:484:16)\n    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)"}

CPU: AMD Ryzen 5600G, OS: Windows 10 64bit

@Simon-Laux
Copy link
Member

Simon-Laux commented Dec 12, 2024

What folders are at C:\Users\myname\AppData\Local\Programs\DeltaChat\resources\app.asar.unpacked\node_modules\@deltachat\?

@jincola
Copy link

jincola commented Dec 12, 2024

There's only one folder in it "stdio-rpc-server-win32-x64" , and there's a file "package.json" in this "stdio-rpc-server-win32-x64".

{
    "name": "@deltachat/stdio-rpc-server-win32-x64",
    "version": "1.148.7",
    "os": [
        "win32"
    ],
    "cpu": [
        "x64"
    ],
    "main": "deltachat-rpc-server.exe",
    "license": "MPL-2.0",
    "repository": {
        "type": "git",
        "url": "https://github.com/deltachat/deltachat-core-rust.git"
    }
}

@Simon-Laux
Copy link
Member

Bildschirmfoto 2024-12-12 um 22 11 02

So there is no deltachat-rpc-server.exe? Do you perhaps have some antivirus program that false-flagged and quarantined it? Other possibility could be that the installer is broken and didn't extract it, but I think the former explanation is more likely

@Simon-Laux Simon-Laux added the OS: Windows This issue or PR is related to Windows OS label Dec 12, 2024
@Simon-Laux Simon-Laux changed the title Error - uncaughtException Error - uncaughtException EAGAIN (MacOS) or ENOENT (windows) Dec 12, 2024
@WofWca
Copy link
Collaborator

WofWca commented Dec 13, 2024

Looks like Microsoft Defender started flagging deltachat-rpc-server.exe as Trojan:Win64/CobaltStrike.IM!MTB starting from 1.149.0.
See VirusTotal report: https://www.virustotal.com/gui/file/72e12e706136d86c9536e6fc8a2a67501bcdf9ca27a93d16d993ac92b0f3d42e

I don't know whether this causes both EAGAIN and ENOENT though. Update: looks like the original issue reports DC 1.46, which worked fine before, so the EAGAIN and ENOENT are either different issues, or it has to do with an update to Microsoft Defender signatures, which started flagging 1.46 as well.

@WofWca
Copy link
Collaborator

WofWca commented Dec 13, 2024

Looks like Microsoft Defender started flagging deltachat-rpc-server.exe

This affects both portable and Setup.exe from here. Could have to do with the fact that they are not signed.

@WofWca WofWca added the blocker This issue is blocking a new release label Dec 13, 2024
@link2xt
Copy link
Collaborator

link2xt commented Dec 13, 2024

I opened deltachat/deltachat-core-rust#6338 in the core.

@jincola
Copy link

jincola commented Dec 14, 2024

So there is no deltachat-rpc-server.exe? Do you perhaps have some antivirus program that false-flagged and quarantined it? Other possibility could be that the installer is broken and didn't extract it, but I think the former explanation is more likely

You're right. I closed the antivirus program and reinstalled Deltachat 1.48, deltachat-rpc-server.exe appeared in the folder.
My antivirus program prevented the installer from creating deltachat-rpc-server.exe .
Here's the log of Huorong Internet Security:

Offense Rules: [Anti-Rogue] Download Station Counterfeit Downloader Interception
Operation Type: [Create]
Operation File: C:\Users\myname\AppData\Local\Temp\nsv89C0.tmp\7z-out\resources\app.asar.unpacked\node_modules@deltachat\stdio-rpc-server- win32-x64\deltachat-rpc-server.exe
Result: Blocked

Now Deltachat can startup normally and works fine. Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker This issue is blocking a new release bug Something isn't working needs feedback Waiting for feedback from issue reporter OS: Mac Related to MacOS OS: Windows This issue or PR is related to Windows OS
Projects
None yet
Development

No branches or pull requests

5 participants