Skip to content
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

/tmp/DATS_START_UP_IN_PROGRESS Crash Backend #469

Open
AhmadHAW opened this issue Nov 19, 2024 · 5 comments
Open

/tmp/DATS_START_UP_IN_PROGRESS Crash Backend #469

AhmadHAW opened this issue Nov 19, 2024 · 5 comments
Assignees

Comments

@AhmadHAW
Copy link
Contributor

This bug can happen out of nowhere, because other developers on dwts may have crashed their loading process before the temp file was deleted. Need sudo rights to delete the zombie file.

2024-11-19 09:54:52.439 | INFO | app.core.startup:startup:54 - Booting Discourse Analysis Tool Suite Backend ...
2024-11-19 09:54:54.212 | DEBUG | app.core.startup:is_startup_in_progress:36 - Startup indicator file already exists at: /tmp/DATS_START_UP_IN_PROGRESS!
2024-11-19 09:54:54.212 | DEBUG | app.core.startup:startup:58 - Waiting for API startup process to be completed...

Robert meint du hast dich schon an dem Bug versucht?

@floschne
Copy link
Member

Yes, that issue might occur if two or more devs start the DATS at the same moment. One solution would be to generate a unique id per DATS instance, which is added to the startup file name.

@AhmadHAW
Copy link
Contributor Author

This solves one of the two General Problems. The first Problem Happens, when two Services are started at the Same time. The second Problem occurs, when the cleanup is aborted. Does this happens If one mashes the Stop Button/kill command multiple Times or can IT also Happen If the kill command is send once but at the wrong time? In other words, does the Server have a gracious shutdown during Startup?

@AhmadHAW AhmadHAW closed this as not planned Won't fix, can't repro, duplicate, stale Nov 19, 2024
@AhmadHAW AhmadHAW reopened this Nov 19, 2024
@AhmadHAW
Copy link
Contributor Author

Idk why ITS closing all the time

@AhmadHAW AhmadHAW reopened this Nov 19, 2024
@bigabig
Copy link
Member

bigabig commented Nov 19, 2024

just put that random id in the backend/.env file. could be an easy fix, no?

@AhmadHAW
Copy link
Contributor Author

Yes, this should do the Trick. I guess the Zombie files that get created can be deleted manually from time to time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants