-
Notifications
You must be signed in to change notification settings - Fork 452
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
Core is stuck running after a crash, have to kill it manually #4673
Comments
Please, try to reproduce this problem. Before running |
In any case Tribler should handle attemps to start another parallel instance better. There should be explicit user-facing message that there may be another instance running, etc. It should mention busy TCP localhost port (because the port may be busy with a third-party app, not just Tribler). |
It don't remember core being running. At least console where I started Tribler before was available for new Tribler start. Maybe there was also "Tribler shut down" message, maybe not. Some time ago I also used "force shutdown" button (I don't remember was it before the bug reproduced or earlier). |
Tried explicitly occupying the port with got "RuntimeError: Could not connect with the Tribler Core within 20 seconds" as error-report-sendable merrage The message does not mention port 127.0.0.1:8085 and is not friendly. GUI should specifically expect wisted.internet.error.CannotListenError from core by non-REST means (process exit code if core is a separate process, some pipe if not) and show customized error message. Easier, but racy workaround: briefly bind then close port 8085 in Gui before starting Core. If bind failed then the bind in core would probably also fail. |
If the GUI crashes, the console is still available, since the Core thread runs in the background. However, the logging output of the core is printed onto the same console (but you can still run stuff on it). |
This should be a simple case of setting |
According to https://stackoverflow.com/q/11910140 So there must be an actual process listening on the port already. |
Is this issue addressed now? I will move it to the 7.6 milestone but if it is resolved, feel free to close it 👍 |
I believe this is fixed. At any rate, the OP is out of date: anything in this thread that has not been resolved needs a new issue. |
Having this with 7.12 on Linux (Pop!_OS 20.04) even after deleting |
@JeffRockatansky thank you for reporting! It was fixed in #6941, and the fix will be available in 7.12.1 in a few days |
Great news! Will definitely update. In the mean time, can you tell what are the steps to workaround this issue without reboot? |
@JeffRockatansky what type of error do you experience if you run Tribler after deleting of the |
@kozlovsky The actual |
Tribler version/branch+revision:
v7.3.0-beta6 + merge #4670.
Operating system and version:
Linux
Steps to reproduce the behavior:
./tribler.sh
after previously running it sometime ago.Expected behavior:
It starts
Actual behavior:
It crashes and suggests to send a report.
Next try it seems to start successfully.
Relevant log file output:
The text was updated successfully, but these errors were encountered: