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

auto_modules is sometimes empty #4173

Closed
simonLeary42 opened this issue Feb 19, 2025 · 3 comments · Fixed by OSC/ood-documentation#1081
Closed

auto_modules is sometimes empty #4173

simonLeary42 opened this issue Feb 19, 2025 · 3 comments · Fixed by OSC/ood-documentation#1081
Milestone

Comments

@simonLeary42
Copy link

I don't have a way of reproducing this, but twice now on my system we have had the value for context.auto_modules_foobar be an empty string in a batch connect job. Restarting web server fixes it. Any ideas on how this could happen?

@osc-bot osc-bot added this to the Backlog milestone Feb 19, 2025
@johrstrom
Copy link
Contributor

I don't have a way of reproducing this, but twice now on my system we have had the value for context.auto_modules_foobar be an empty string in a batch connect job. Restarting web server fixes it. Any ideas on how this could happen?

I've also noticed this from time to time - as if the file it read wasn't complete or didn't read the file at all? Or maybe the cache was busted, but not re-populated?

@simonLeary42
Copy link
Author

found a JSON parse error in /var/log/ondemand-nginx/username/error.log. Perhaps the user should be instructed to use fcntl / flock when writing this file, and OOD should do the same when reading? Or, could there be some front-end interface for reattempting to read this file?

@simonLeary42
Copy link
Author

The user could also be instructed to quickly mv the spider cache file rather than overwriting it with >, that way the length of time that the file is malformed is much shorter.

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

Successfully merging a pull request may close this issue.

3 participants