-
Notifications
You must be signed in to change notification settings - Fork 104
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
Left over enigftnexport files in enigma/tmp folder #322
Comments
In enigma/logs I did |
To debug this, I had to set logging level to trace.
Creating this directory fixed the failed to extract. Now we get two directories, and no more. |
I removed the ftn_secin, and restarted. More directories created, but unrelated. This is running in a docker container. Every container restart, two directories /tmp/enigftn(export|import)-* are created. After many restarts, we have many directories. I've changed the way docker handles the /tmp directory. |
The /tmp/ directories should be created and cleaned up on startup/shutdown (e.g.: https://github.com/NuSkooler/enigma-bbs/blob/master/core/scanner_tossers/ftn_bso.js#L2184). They are used as a temporary extraction location for FTN packets. It sounds like your Docker container is not cleanly shutting down the system -- thus not going through the shutdown path. Might double check that. As for the |
Here's what I know so far: inside of docker using interactive shell (avoiding all of the PID1/signal handling strangeness of docker), sending ctrl-c, using kill to send SIGINT or SIGTERM results in enigma stopping.
However, this "works" with the above session:
Using our "live" config.hjson, I've tried turning off everything (but telnet). I've reset back to blocktronics theme. Still results in improper shutdown. Ok! It isn't docker. I just added enigma to my desktop here so I could keep my config file paths the same. It's something in my setup/config files. |
Ok, deleting the events section fixes it. Or, having events that don't run. Or, if I disable events, but run a door, it breaks. |
See microsoft/node-pty#190 for the exact problem. Fixed in microsoft/node-pty#218 |
Will need to wait on microsoft/node-pty#218 to be put into a release. We're currently at the latest version. Until then you can force your local version to use e.g. the fix branch or node-pty master by modifying your |
The Microsoft/node-pty team has responded regarding this - using the beta tag should work around the issue for now.
You can do this via npm or yarn install or manual edit to your package.json for now. |
* Should resolve Left over enigftnexport files in enigma/tmp folder #322
Microsoft has updated node-pty to v0.10.0 and ENiGMA has followed. Should now be resolved. Feel free to re-open if this is still a problem after updating! |
Describe the Bug
There are leftover enigftnexport files in the enigma/tmp folder.
To Reproduce
Do
ls -la /tmp
Expected Behavior
Temp files cleaned up after use.
Actual Behavior
the tmp directory is full of leftover files.
Screenshots
or
enigftnissue.txt
Environment
npm install
oryarn
reports successnode --version
): v12.19.0uname -a
on *nix systems): Linux 529761d396dc 5.6.14-x86_64-linode135 Implement MultiLineTextEditView preview mode #1 SMP PREEMPT Fri May 22 14:57:20 UTC 2020 x86_64 GNU/Linuxgit rev-parse --short HEAD
): v0.0.12The text was updated successfully, but these errors were encountered: