Coder Social home page Coder Social logo

usage about eternalterminal HOT 22 CLOSED

mistertea avatar mistertea commented on June 4, 2024
usage

from eternalterminal.

Comments (22)

MisterTea avatar MisterTea commented on June 4, 2024 1

Great! Thanks for your patience

from eternalterminal.

MisterTea avatar MisterTea commented on June 4, 2024

from eternalterminal.

jasonehines avatar jasonehines commented on June 4, 2024

Say for example I need to shutdown my computer or my battery runs out. If I close the terminal window, and run et again, I get a new pty.

How can I reconnect to that same session?

from eternalterminal.

jasonehines avatar jasonehines commented on June 4, 2024

Actually I'm not sure it's working at all. I connected to my server, ran a count script, disconnected my wifi, reconnected and it never resumes.

Here are the logs:
etclientLogs.tar.gz
etserverLogs.tar.gz

FYI, there's two typo's in the new issue instructions.
this tar -cvzPhf /tmp/etclientLogs.tar.gz /tmp/et_err /tmp/etclient.INFO
should be this tar -cvzPhf /tmp/etclientLogs.tar.gz /tmp/etclient_err /tmp/etclient.INFO
and this tar -cvzPhf /tmp/etserverLogs.tar.gz /tmp/et_err /tmp/etserver.INFO
should be this tar -cvzPhf /tmp/etserverLogs.tar.gz /tmp/etserver_err /tmp/etserver.INFO

from eternalterminal.

MisterTea avatar MisterTea commented on June 4, 2024

Thanks @jasonehines , can you edit the issue template and make the changes? https://github.com/MisterTea/EternalTCP/blob/master/.github/ISSUE_TEMPLATE.md

Also, what OS is the client and server?

from eternalterminal.

jasonehines avatar jasonehines commented on June 4, 2024

The server is Ubuntu 17.04. The client is Solus 2017.04.18.0

from eternalterminal.

MisterTea avatar MisterTea commented on June 4, 2024

Hmm, it's definitely a client error. The relevant line in the log is this:

E0608 14:38:23.065757  9054 UnixSocketHandler.cpp:93] Error getting address info for ...: -3 (Temporary failure in name resolution)

This repeats and never ends meaning the client can't resolve the DNS entry after a disconnect. Strange. Maybe adding a delay will help. Please try this branch on your client and see if it fixes the problem: https://github.com/MisterTea/EternalTCP/tree/issue_36

from eternalterminal.

jasonehines avatar jasonehines commented on June 4, 2024

That worked. I was able to disconnect my wifi and my session continued with I reestablished the wifi.

from eternalterminal.

jasonehines avatar jasonehines commented on June 4, 2024

I spoke too soon. I guess I should have disconnected longer the first time. I tried again and got this message: /usr/local/bin/et: line 114: 25671 Segmentation fault $CLIENT_BINARY --idpasskeyfile="$TMPFILE" $VERBOSITY --host="$HOSTNAME" --port="$PORT" --log_dir="$LOG_DIR" 2> /tmp/etclient_err %

Here's the error log:
etclientLogs.tar.gz

from eternalterminal.

MisterTea avatar MisterTea commented on June 4, 2024

from eternalterminal.

MisterTea avatar MisterTea commented on June 4, 2024

Another thing that is easier is to run in verbose mode by passing the -v flag to et. I may be able to figure out the crash from the verbose logs.

from eternalterminal.

jasonehines avatar jasonehines commented on June 4, 2024

I've never used gdb, I'll try and figure it out. I was running et -v that's all that showed in the log.

from eternalterminal.

jasonehines avatar jasonehines commented on June 4, 2024

I redid the build with the debug option but when I run gdb et it says "/usr/local/bin/et": not in executable format: File format not recognized. I'm not sure what you meant above about editing the et file.

from eternalterminal.

MisterTea avatar MisterTea commented on June 4, 2024

from eternalterminal.

jasonehines avatar jasonehines commented on June 4, 2024

I have no idea if I'm doing this correctly but here's the output:
gdb-et-output.txt

from eternalterminal.

MisterTea avatar MisterTea commented on June 4, 2024

from eternalterminal.

jasonehines avatar jasonehines commented on June 4, 2024

glad I left it open. Here it is with the backtrace:
gdb-et-output.txt

from eternalterminal.

MisterTea avatar MisterTea commented on June 4, 2024

Alright, I fixed that problem in the latest commit. Please update your branch and try again.

from eternalterminal.

jasonehines avatar jasonehines commented on June 4, 2024

It didn't crash this time. But it never reconnected. This is what the log is saying UnixSocketHandler.cpp:96] Error getting address info for drive.hinesnetwork.com:2022: -3 (Temporary failure in name resolution)

from eternalterminal.

MisterTea avatar MisterTea commented on June 4, 2024

Oh I found this that may be related: https://sourceware.org/bugzilla/show_bug.cgi?id=12224

from eternalterminal.

MisterTea avatar MisterTea commented on June 4, 2024

Alright I added a call to res_init() before calling getaddrinfo. Please update your branch and try again

from eternalterminal.

jasonehines avatar jasonehines commented on June 4, 2024

it works!

from eternalterminal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.