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

If storage crashes when opening GUI we still try to start StorageService leading to RuntimeError: No storage exists at : #9597

Open
eivindjahren opened this issue Dec 19, 2024 · 0 comments

Comments

@eivindjahren
Copy link
Contributor

eivindjahren commented Dec 19, 2024

After adding ErtStorageException to validation_messages.errors:

ert/src/ert/gui/main.py

Lines 89 to 106 in 2a4b6be

storage = open_storage(ert_config.ens_path, mode="w")
except ErtStorageException as err:
validation_messages.errors.append(
ErrorInfo(f"Error opening storage in ENSPATH: {err}").set_context(
ert_config.ens_path
)
)
if validation_messages.errors:
logger.info(f"Error in config file shown in gui: {validation_messages.errors}")
return (
Suggestor(
validation_messages.errors,
validation_messages.warnings,
validation_messages.deprecations,
None,
(plugin_manager.get_help_links() if plugin_manager is not None else {}),
),
None,

we still try to start StorageService in order to show the suggestor:

ert/src/ert/gui/main.py

Lines 62 to 63 in 2a4b6be

with StorageService.init_service(project=os.path.abspath(ens_path)):
return show_window()

@eivindjahren eivindjahren changed the title When storage crashes when opening GUI we still try to start StorageService leading to RuntimeError: No storage exists at : If storage crashes when opening GUI we still try to start StorageService leading to RuntimeError: No storage exists at : Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant