ptyHost Connection

Hello, after updating the ptyHost disconnects after some time
No description
25 Replies
Codercord
Codercord2w ago
<#1318513870913929216>
Category
Help needed
Product
code-server
Platform
Linux
Logs
Please post any relevant logs/error messages.
STRONG.CODΞ
STRONG.CODΞOP2w ago
I dont really know where the important logs are… Also, I dont know if I updated everything correctly I just installed it again, because one page on the website said the saved data wont be deleted
Phorcys
Phorcys2w ago
these should be enough how did you install code-server?
STRONG.CODΞ
STRONG.CODΞOP2w ago
Using the install Script
Phorcys
Phorcys2w ago
I can't reproduce the issue on my end, which version of code-server are you running? what command did you use to see these logs?
Phorcys
Phorcys2w ago
nevermind, I can reproduce on latest
No description
Phorcys
Phorcys2w ago
it doesn't seem to cause any issues though, did you notice any weird behavior due to this?
STRONG.CODΞ
STRONG.CODΞOP2w ago
code-server 4.95.3 yes, the terminal disconnects ill send you a screenshot if it happens again. can take 2-3 minutes
Phorcys
Phorcys2w ago
@STRONG.CODΞ this is what happens right?
No description
STRONG.CODΞ
STRONG.CODΞOP2w ago
not only this there is also a pty notification on the bottom and the terminal “sessions“ get red
Phorcys
Phorcys2w ago
oh
STRONG.CODΞ
STRONG.CODΞOP2w ago
No description
No description
STRONG.CODΞ
STRONG.CODΞOP2w ago
When clicking on the Yellow Pty Host button all terminal sessions get delted except the last and it is like in the picture
No description
Phorcys
Phorcys2w ago
@STRONG.CODΞ I have opened a GH issue #7123 for this bug, please subscribe to it
GitHub
ptyHost crashes resulting in the terminal disconnecting · Issue #71...
Is there an existing issue for this? I have searched the existing issues OS/Web Information Web Browser: Chrome Local OS: Windows Remote OS: Ubuntu Remote Architecture: amd64 code-server --version:...
Phorcys
Phorcys2w ago
as a workaround, you should downgrade your code-server version
STRONG.CODΞ
STRONG.CODΞOP2w ago
Wait, what am I doing wrong? curl -fsSL https://code-server.dev/install.sh | sh -- --version=4.95.2
Phorcys
Phorcys2w ago
you are not doing anything wrong, but the latest code-server version is broken so you can re-run the install script by specifying a previous version to downgrade
STRONG.CODΞ
STRONG.CODΞOP2w ago
so is version 4.95.2 not old enough?
Phorcys
Phorcys2w ago
it is pretty recent, and i believe that this version is part of the ones affected by this bug you could try with 4.92.2 to see if it works better
STRONG.CODΞ
STRONG.CODΞOP2w ago
huh, am I passing the version correctly?
No description
STRONG.CODΞ
STRONG.CODΞOP2w ago
Ah I see, I forgot the -s Version 4.92.2 also is affected At least I got the same error
STRONG.CODΞ
STRONG.CODΞOP2w ago
I also tried 4.91.1..
No description
No description
STRONG.CODΞ
STRONG.CODΞOP6d ago
Btw, I dont know if it is related but I think I cant push to github.. @Phorcys I dont know how far I need to downgrade. Im getting that exact error on a lot of versions @Phorcys Sorry for pinging again. Do you know anything else I could do? I tried a lot of different Versions now and either I get this error:
Dec 18 21:19:54 vacer code-server[4127]: [2024-12-18T20:19:54.402Z] error http server error: accept EBADF Error: accept EBADF
Dec 18 21:19:54 vacer code-server[4127]: at TCP.onconnection (node:net:2050:24
Dec 18 21:19:54 vacer code-server[4127]: [2024-12-18T20:19:54.402Z] error http server error: accept EBADF Error: accept EBADF
Dec 18 21:19:54 vacer code-server[4127]: at TCP.onconnection (node:net:2050:24
or it is the pty host error again
Phorcys
Phorcys6d ago
this seems like a different issue, I am reading online that this bug is present with NodeJS versions <20 I'm not sure either, I'll try to experiment this week
STRONG.CODΞ
STRONG.CODΞOP6d ago
What I think is weird, that another node from me uses nodejs 20.13.1 and code-server 4.92.2 de65bfc9477f61bc22d0b1a23085d1f18bb25202 with Code 1.92.2. Everything works there. It is only my node that is hosted on hetzner that has this problem. (Also tried the exact same nodejs and code-server version) Thank you, feel free to ping / reply to me if you find something

Did you find this page helpful?