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

Let the user re-initialize the application if initialization fails at start-up #3

Open
nafergo opened this issue Jan 2, 2019 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@nafergo
Copy link

nafergo commented Jan 2, 2019

If the database is not valid, not found (examples: changed the database name; moved the binary to another computer with another home/username; etc) the software won't start.
My suggestion: if f-crm can't find valid database in the settings path, then create an empty database in the default location.
I noticed this because was experimenting with database location in a mega/dropbox storage account :)
that way I can work from desktop and laptop easily :)

  • again: ty for a great software, very useful! starting to use it to manage my freelance tuff :)
@jgaa jgaa self-assigned this Jan 4, 2019
@jgaa
Copy link
Owner

jgaa commented Jan 4, 2019

I'll check it. Thank you.

@jgaa jgaa added the bug Something isn't working label Jan 4, 2019
@jgaa
Copy link
Owner

jgaa commented Jan 4, 2019

I have checked the code. The application is supposed to create the database if it don't exists, and that works for me when I test it.

If it fails to load the database, or fails to get the database schema version from the database, then it bails out. This is the intended behavior.

@nafergo
Copy link
Author

nafergo commented Jan 12, 2019

But if it won't even start, how can I access settings and change the database path?

@jgaa
Copy link
Owner

jgaa commented Jan 13, 2019

I will make a fall-back so that if initialization fails, it will ask you f you want to re-initialize the application settings and the database. (I know how frustrating it is when an application behaves like this.)

What operating system are you using?

@nafergo
Copy link
Author

nafergo commented Jan 13, 2019

Using Ubuntu 18.04

@jgaa
Copy link
Owner

jgaa commented Jan 14, 2019

Thank you.

@jgaa jgaa changed the title Database path problem Let the user re-initialize the application if initialization fails at start-up Jan 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants