ptyHost Connection

Hello, after updating the ptyHost disconnects after some time
No description
31 Replies
Codercord
Codercord5mo ago
<#1318513870913929216>
Category
Help needed
Product
code-server
Platform
Linux
Logs
Please post any relevant logs/error messages.
STRONG.CODΞ
STRONG.CODΞOP5mo 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
Phorcys5mo ago
these should be enough how did you install code-server?
STRONG.CODΞ
STRONG.CODΞOP5mo ago
Using the install Script
Phorcys
Phorcys5mo 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
Phorcys5mo ago
nevermind, I can reproduce on latest
No description
Phorcys
Phorcys5mo ago
it doesn't seem to cause any issues though, did you notice any weird behavior due to this?
STRONG.CODΞ
STRONG.CODΞOP5mo 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
Phorcys5mo ago
@STRONG.CODΞ this is what happens right?
No description
STRONG.CODΞ
STRONG.CODΞOP5mo ago
not only this there is also a pty notification on the bottom and the terminal “sessions“ get red
Phorcys
Phorcys5mo ago
oh
STRONG.CODΞ
STRONG.CODΞOP5mo ago
No description
No description
STRONG.CODΞ
STRONG.CODΞOP5mo 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
Phorcys5mo 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
Phorcys5mo ago
as a workaround, you should downgrade your code-server version
STRONG.CODΞ
STRONG.CODΞOP5mo ago
Wait, what am I doing wrong? curl -fsSL https://code-server.dev/install.sh | sh -- --version=4.95.2
Phorcys
Phorcys5mo 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ΞOP5mo ago
so is version 4.95.2 not old enough?
Phorcys
Phorcys5mo 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ΞOP5mo ago
huh, am I passing the version correctly?
No description
STRONG.CODΞ
STRONG.CODΞOP5mo 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ΞOP5mo ago
I also tried 4.91.1..
No description
No description
STRONG.CODΞ
STRONG.CODΞOP5mo 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
Phorcys4mo 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ΞOP4mo 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 have time to look into it? No one responded in the issue you created
Phorcys
Phorcys4mo ago
hey, I didn't have time to look into it yet, sorry, i hope to be able to look into it soon
STRONG.CODΞ
STRONG.CODΞOP4mo ago
any updates? im still unable to use it
Phorcys
Phorcys3mo ago
hey, I am honestly not sure how to proceed from there at the moment so I've asked one of our engineers that works on code-server to take a look at the issue
STRONG.CODΞ
STRONG.CODΞOP3mo ago
Perfect, thank you so much. Im would be so relieved if that issue could be fixed 🙏
Phorcys
Phorcys3mo ago
yeah i understand, it must be pretty irritating
Codercord
Codercord3mo ago
@Phorcys closed the thread.

Did you find this page helpful?