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

Improve startup error messages for corrupted state #183

Open
msm-code opened this issue Aug 28, 2022 · 0 comments
Open

Improve startup error messages for corrupted state #183

msm-code opened this issue Aug 28, 2022 · 0 comments
Milestone

Comments

@msm-code
Copy link
Contributor

The startup script creates a database if it doesn't exist:

#!/bin/bash

cd /var/lib/ursadb

if [ ! -f "$1" ]
then
    /usr/bin/ursadb_new "$1"
fi

/usr/bin/dumb-init -- /usr/bin/ursadb $@

This checks if a file named $1 already exists. Notably, it doesn't hande the case when $1 exists but is a directory. This situation is also not handled well by the C++ code.

We should improve error message in this situation and guide users somewhat.

@msm-code msm-code added this to the v1.6.0 milestone Nov 26, 2022
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

1 participant