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] [Extension Host] Failed to start runme server, retrying. Error: Server closed prematurely! #447

Closed
heliomar-pena opened this issue Apr 25, 2023 · 11 comments

Comments

@heliomar-pena
Copy link

Explanation

I'm trying to open a markdown file in VSCode with runme extension and it never ends of load and never show the content of MD. I checked the output in console and got this message: [error] [Extension Host] Failed to start runme server, retrying. Error: Server closed prematurely!

Screenshots

image

@mxsdev
Copy link
Contributor

mxsdev commented Apr 25, 2023

Hi! Thank you so much for reporting this issue.

If you could first of all let us know your Operating System & architecture, that would be very useful.

Second, there is an extension setting called "Enable Logger" - if you could turn that on, restart VSCode, and then re-send your logs, that could be extremely helpful for figuring out exactly what's going wrong here.

image

@heliomar-pena
Copy link
Author

Hi! Thanks for the quick answer. Will check the logger on my side

About my operative system, I'm not sure if this Neofetch screenshot can help u

image

Also here is my version of VSCode: visual-studio-code-bin 1.77.3-1

image

@heliomar-pena
Copy link
Author

I think the logs didn't change after I enabled the Logger

image

@mxsdev
Copy link
Contributor

mxsdev commented Apr 26, 2023

@victor-heliomar

Looks like the logs actually go to the dev console (Developer: Toggle Developer Tools command to open), but not to the VSCode output! Let me know if they show up - if so, you can save the console logs by going to console, right clicking, and selecting "Save as..."

If you could also try downloading the latest cli and running runme server --address localhost:7863 --dev, the resulting console output could be useful here.

Thanks again, and sorry you're experiencing this!

@heliomar-pena
Copy link
Author

Hi. Not prob. Thanks for helping with my problem

Here is my console log

console log log.ts:421 INFO Electron sandbox mode is enabled! log.ts:431 WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-vscode.vscode-selfhost-test-provider' wants API proposal 'testContinuousRun' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned. log.ts:431 WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-vscode.remote-repositories' wants API proposal 'contribEditorGutterMenu' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned. log.ts:431 WARN Via 'product.json#extensionEnabledApiProposals' extension 'github.vscode-pull-request-github' wants API proposal 'contribEditorGutterMenu' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned. log.ts:431 WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-toolsai.jupyter' wants API proposal 'notebookControllerKind' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned. log.ts:441 ERR Extension 'github.copilot-nightly' wants API proposal 'semanticSimilarity' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned. log.ts:441 ERR Extension 'github.copilot-nightly' appears in product.json but enables LESS API proposals than the extension wants. package.json (LOSES): inlineCompletionsAdditions, interactive product.json (WINS): inlineCompletionsAdditions log.ts:421 INFO [GitHub.copilot-nightly]: Command `interactiveEditor.start` appears multiple times in the `commands` section. console.ts:137 [Extension Host] [Runme] Activating Extension console.ts:137 [Extension Host] [Runme] Server process #7819 started on port 7863 console.ts:137 [Extension Host] {"level":"info","ts":1682511904.725241,"caller":"tls/tls.go:99","msg":"generating new TLS certificate..."}

console.ts:137 [Extension Host] {"level":"info","ts":1682511905.5217226,"caller":"tls/tls.go:179","msg":"successfully generated new TLS certificate!"}

console.ts:137 [Extension Host] listen tcp: lookup localhost on 192.168.1.1:53: no such host

console.ts:137 [Extension Host] [Runme] Server process #7819 closed with code 1
log.ts:441 ERR [Extension Host] Failed to start runme server, retrying. Error: Server closed prematurely!
console.ts:137 [Extension Host] Failed to start runme server, retrying. Error: Server closed prematurely!
T @ console.ts:137
console.ts:137 [Extension Host] [Runme] Server process #7852 started on port 7864
console.ts:137 [Extension Host] {"level":"info","ts":1682511905.53887,"caller":"tls/tls.go:99","msg":"generating new TLS certificate..."}

mainThreadExtensionService.ts:112 Activating extension 'GitHub.heygithub' failed: EISDIR: illegal operation on a directory, read.
$onExtensionActivationError @ mainThreadExtensionService.ts:112
log.ts:441 ERR [Extension Host] (node:7783) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use exe --trace-deprecation ... to show where the warning was created)
console.ts:137 [Extension Host] (node:7783) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use exe --trace-deprecation ... to show where the warning was created)
T @ console.ts:137
console.ts:137 [Extension Host] {"level":"info","ts":1682511906.6517518,"caller":"tls/tls.go:179","msg":"successfully generated new TLS certificate!"}
listen tcp: lookup localhost on 192.168.1.1:53: no such host

console.ts:137 [Extension Host] [Runme] Server process #7852 closed with code 1
log.ts:441 ERR [Extension Host] Failed to start runme server, retrying. Error: Server closed prematurely!
console.ts:137 [Extension Host] Failed to start runme server, retrying. Error: Server closed prematurely!
T @ console.ts:137
console.ts:137 [Extension Host] [Runme] Server process #8040 started on port 7865
console.ts:137 [Extension Host] {"level":"info","ts":1682511907.2775474,"caller":"tls/tls.go:99","msg":"generating new TLS certificate..."}

console.ts:137 [Extension Host] {"level":"info","ts":1682511907.6784115,"caller":"tls/tls.go:179","msg":"successfully generated new TLS certificate!"}
listen tcp: lookup localhost on 192.168.1.1:53: no such host

console.ts:137 [Extension Host] [Runme] Server process #8040 closed with code 1
log.ts:441 ERR [Extension Host] Failed to start runme server, retrying. Error: Server closed prematurely!
console.ts:137 [Extension Host] Failed to start runme server, retrying. Error: Server closed prematurely!
T @ console.ts:137
console.ts:137 [Extension Host] [Runme] Server process #8119 started on port 7866
console.ts:137 [Extension Host] {"level":"info","ts":1682511907.7307272,"caller":"tls/tls.go:99","msg":"generating new TLS certificate..."}

console.ts:137 [Extension Host] {"level":"info","ts":1682511909.2276385,"caller":"tls/tls.go:179","msg":"successfully generated new TLS certificate!"}

console.ts:137 [Extension Host] listen tcp: lookup localhost on 192.168.1.1:53: no such host

console.ts:137 [Extension Host] [Runme] Server process #8119 closed with code 1
log.ts:441 ERR [Extension Host] Failed to start runme server, retrying. Error: Server closed prematurely!
console.ts:137 [Extension Host] Failed to start runme server, retrying. Error: Server closed prematurely!
T @ console.ts:137
console.ts:137 [Extension Host] [Runme] Server process #8205 started on port 7867
console.ts:137 [Extension Host] {"level":"info","ts":1682511909.251401,"caller":"tls/tls.go:99","msg":"generating new TLS certificate..."}

console.ts:137 [Extension Host] {"level":"info","ts":1682511910.9262307,"caller":"tls/tls.go:179","msg":"successfully generated new TLS certificate!"}

console.ts:137 [Extension Host] listen tcp: lookup localhost on 192.168.1.1:53: no such host

console.ts:137 [Extension Host] [Runme] Server process #8205 closed with code 1
log.ts:441 ERR [Extension Host] Failed to start runme server, retrying. Error: Server closed prematurely!
console.ts:137 [Extension Host] Failed to start runme server, retrying. Error: Server closed prematurely!
T @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
N @ rpcProtocol.ts:455
M @ rpcProtocol.ts:440
H @ rpcProtocol.ts:370
G @ rpcProtocol.ts:296
(anonymous) @ rpcProtocol.ts:161
invoke @ event.ts:723
deliver @ event.ts:936
fire @ event.ts:892
fire @ ipc.net.ts:671
G.onmessage @ localProcessExtensionHost.ts:617
console.ts:137 [Extension Host] [Runme] Server process #9069 started on port 7868
console.ts:137 [Extension Host] {"level":"info","ts":1682511910.9488454,"caller":"tls/tls.go:99","msg":"generating new TLS certificate..."}

console.ts:137 [Extension Host] {"level":"info","ts":1682511911.382678,"caller":"tls/tls.go:179","msg":"successfully generated new TLS certificate!"}

console.ts:137 [Extension Host] listen tcp: lookup localhost on 192.168.1.1:53: no such host

console.ts:137 [Extension Host] [Runme] Server process #9069 closed with code 1
log.ts:441 ERR [Extension Host] Failed to start runme server, retrying. Error: Server closed prematurely!
console.ts:137 [Extension Host] Failed to start runme server, retrying. Error: Server closed prematurely!
T @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
N @ rpcProtocol.ts:455
M @ rpcProtocol.ts:440
H @ rpcProtocol.ts:370
G @ rpcProtocol.ts:296
(anonymous) @ rpcProtocol.ts:161
invoke @ event.ts:723
deliver @ event.ts:936
fire @ event.ts:892
fire @ ipc.net.ts:671
G.onmessage @ localProcessExtensionHost.ts:617
console.ts:137 [Extension Host] [Runme] Server process #9513 started on port 7869
console.ts:137 [Extension Host] {"level":"info","ts":1682511911.406396,"caller":"tls/tls.go:99","msg":"generating new TLS certificate..."}

console.ts:137 [Extension Host] {"level":"info","ts":1682511911.9556415,"caller":"tls/tls.go:179","msg":"successfully generated new TLS certificate!"}

console.ts:137 [Extension Host] listen tcp: lookup localhost on 192.168.1.1:53: no such host

console.ts:137 [Extension Host] [Runme] Server process #9513 closed with code 1
log.ts:441 ERR [Extension Host] Failed to start runme server, retrying. Error: Server closed prematurely!
console.ts:137 [Extension Host] Failed to start runme server, retrying. Error: Server closed prematurely!
T @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
N @ rpcProtocol.ts:455
M @ rpcProtocol.ts:440
H @ rpcProtocol.ts:370
G @ rpcProtocol.ts:296
(anonymous) @ rpcProtocol.ts:161
invoke @ event.ts:723
deliver @ event.ts:936
fire @ event.ts:892
fire @ ipc.net.ts:671
G.onmessage @ localProcessExtensionHost.ts:617
console.ts:137 [Extension Host] [Runme] Server process #9540 started on port 7870
console.ts:137 [Extension Host] {"level":"info","ts":1682511911.97854,"caller":"tls/tls.go:99","msg":"generating new TLS certificate..."}

console.ts:137 [Extension Host] {"level":"info","ts":1682511913.2385807,"caller":"tls/tls.go:179","msg":"successfully generated new TLS certificate!"}

console.ts:137 [Extension Host] listen tcp: lookup localhost on 192.168.1.1:53: no such host

console.ts:137 [Extension Host] [Runme] Server process #9540 closed with code 1
log.ts:441 ERR [Extension Host] Failed to start runme server, retrying. Error: Server closed prematurely!
console.ts:137 [Extension Host] Failed to start runme server, retrying. Error: Server closed prematurely!
T @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
N @ rpcProtocol.ts:455
M @ rpcProtocol.ts:440
H @ rpcProtocol.ts:370
G @ rpcProtocol.ts:296
(anonymous) @ rpcProtocol.ts:161
invoke @ event.ts:723
deliver @ event.ts:936
fire @ event.ts:892
fire @ ipc.net.ts:671
G.onmessage @ localProcessExtensionHost.ts:617
console.ts:137 [Extension Host] [Runme] Server process #9630 started on port 7871
console.ts:137 [Extension Host] {"level":"info","ts":1682511913.2677457,"caller":"tls/tls.go:99","msg":"generating new TLS certificate..."}

console.ts:137 [Extension Host] {"level":"info","ts":1682511916.5094092,"caller":"tls/tls.go:179","msg":"successfully generated new TLS certificate!"}

console.ts:137 [Extension Host] listen tcp: lookup localhost on 192.168.1.1:53: no such host

console.ts:137 [Extension Host] [Runme] Server process #9630 closed with code 1
log.ts:441 ERR [Extension Host] Failed to start runme server, retrying. Error: Server closed prematurely!
console.ts:137 [Extension Host] Failed to start runme server, retrying. Error: Server closed prematurely!
T @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
N @ rpcProtocol.ts:455
M @ rpcProtocol.ts:440
H @ rpcProtocol.ts:370
G @ rpcProtocol.ts:296
(anonymous) @ rpcProtocol.ts:161
invoke @ event.ts:723
deliver @ event.ts:936
fire @ event.ts:892
fire @ ipc.net.ts:671
G.onmessage @ localProcessExtensionHost.ts:617
console.ts:137 [Extension Host] [Runme] Server process #9709 started on port 7872
console.ts:137 [Extension Host] {"level":"info","ts":1682511916.5382686,"caller":"tls/tls.go:99","msg":"generating new TLS certificate..."}

console.ts:137 [Extension Host] {"level":"info","ts":1682511917.466603,"caller":"tls/tls.go:179","msg":"successfully generated new TLS certificate!"}

console.ts:137 [Extension Host] listen tcp: lookup localhost on 192.168.1.1:53: no such host

console.ts:137 [Extension Host] [Runme] Server process #9709 closed with code 1
log.ts:441 ERR [Extension Host] Failed to start runme server, retrying. Error: Server closed prematurely!
console.ts:137 [Extension Host] Failed to start runme server, retrying. Error: Server closed prematurely!
T @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
N @ rpcProtocol.ts:455
M @ rpcProtocol.ts:440
H @ rpcProtocol.ts:370
G @ rpcProtocol.ts:296
(anonymous) @ rpcProtocol.ts:161
invoke @ event.ts:723
deliver @ event.ts:936
fire @ event.ts:892
fire @ ipc.net.ts:671
G.onmessage @ localProcessExtensionHost.ts:617
console.ts:137 [Extension Host] [Runme] Server process #9778 started on port 7873
console.ts:137 [Extension Host] {"level":"info","ts":1682511917.5134513,"caller":"tls/tls.go:99","msg":"generating new TLS certificate..."}

console.ts:137 [Extension Host] {"level":"info","ts":1682511918.564975,"caller":"tls/tls.go:179","msg":"successfully generated new TLS certificate!"}

console.ts:137 [Extension Host] listen tcp: lookup localhost on 192.168.1.1:53: no such host

console.ts:137 [Extension Host] [Runme] Server process #9778 closed with code 1
notificationsAlerts.ts:42 Failed to start Runme server. Reason: Cannot start server. Error: Server closed prematurely!
c @ notificationsAlerts.ts:42
(anonymous) @ notificationsAlerts.ts:28
invoke @ event.ts:723
deliver @ event.ts:936
fire @ event.ts:892
addNotification @ notifications.ts:204
notify @ notificationService.ts:175
(anonymous) @ mainThreadMessageService.ts:77
d @ mainThreadMessageService.ts:42
$showMessage @ mainThreadMessageService.ts:36
N @ rpcProtocol.ts:455
M @ rpcProtocol.ts:440
H @ rpcProtocol.ts:370
G @ rpcProtocol.ts:296
(anonymous) @ rpcProtocol.ts:161
invoke @ event.ts:723
deliver @ event.ts:936
fire @ event.ts:892
fire @ ipc.net.ts:671
G.onmessage @ localProcessExtensionHost.ts:617
event.ts:42 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
onWillAddFirstListener @ event.ts:42
l.l @ event.ts:819
(anonymous) @ event.ts:118
onWillAddFirstListener @ event.ts:178
l.l @ event.ts:819
B @ listWidget.ts:621
F @ listWidget.ts:1430
Q @ listWidget.ts:1410
U @ listService.ts:249
j @ instantiationService.ts:119
createInstance @ instantiationService.ts:85
l @ notificationsList.ts:83
show @ notificationsList.ts:56
M @ notificationsToasts.ts:206
(anonymous) @ notificationsToasts.ts:153
execute @ dom.ts:163
dt @ dom.ts:203
viewLine.ts:418 monospace assumptions have been violated, therefore disabling monospace optimizations!
monospaceAssumptionsAreValid @ viewLine.ts:418
monospaceAssumptionsAreValid @ viewLine.ts:293
P @ viewLines.ts:587
(anonymous) @ viewLines.ts:154
h @ async.ts:891
g @ async.ts:886
setTimeout (async)
schedule @ async.ts:858
renderText @ viewLines.ts:655
I @ view.ts:406
(anonymous) @ view.ts:364
U @ view.ts:557
G @ view.ts:364
v @ view.ts:230
F @ view.ts:360
execute @ dom.ts:163
dt @ dom.ts:203
requestAnimationFrame (async)
e.scheduleAtNextAnimationFrame @ dom.ts:214
e.runAtThisOrScheduleAtNextAnimationFrame @ dom.ts:226
D @ view.ts:354
render @ view.ts:486
Qb @ codeEditorWidget.ts:1718
setModel @ codeEditorWidget.ts:507
setInput @ textFileEditor.ts:126
await in setInput (async)
M @ editorPanes.ts:422
D @ editorPanes.ts:252
openEditor @ editorPanes.ts:129
(anonymous) @ editorGroupView.ts:1075
zb @ editorGroupView.ts:1100
yb @ editorGroupView.ts:1057
openEditors @ editorGroupView.ts:1138
openEditors @ editorService.ts:602
await in openEditors (async)
Fb @ window.ts:1031
Db @ window.ts:979
await in Db (async)
(anonymous) @ window.ts:192
emit @ VM4 sandbox_bundle:124
onMessage @ VM4 sandbox_bundle:49

will try to run runme has you mentioned

@heliomar-pena
Copy link
Author

This is the response of runme server --address localhost:7863 --dev
image

@mxsdev
Copy link
Contributor

mxsdev commented Apr 26, 2023

Hm, that's strange. Seems that localhost isn't recognized on your system.

First question: do you have localhost defined in your hosts file? Normally you should have the following line in your /etc/hosts file, though you may have to add this manually on Arch:

127.0.0.1 localhost

Otherwise, are you using a VPN?

@heliomar-pena
Copy link
Author

I have installed ExpressVPN, I usually use it, but in this moment where I'm testing runme, it's disabled.

hmm I don't have localhost defined in my hosts file
image

@heliomar-pena
Copy link
Author

I added it to my /etc/hosts file. seems like now works when I run it from the file that I downloaded
image

@heliomar-pena
Copy link
Author

Hey! It worked now.

image

@mxsdev that was. Thanks a lot for the help!

@mxsdev
Copy link
Contributor

mxsdev commented Apr 26, 2023

Great! Closing for now, and I've opened #456 for preventing this issue from affecting others in the future.

Feel free to re-open if the issue re-occurs.

@mxsdev mxsdev closed this as completed Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants