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

Error: failed to initialize Greyhole database #299

Open
PeterBlanchard1966 opened this issue May 23, 2022 · 2 comments
Open

Error: failed to initialize Greyhole database #299

PeterBlanchard1966 opened this issue May 23, 2022 · 2 comments

Comments

@PeterBlanchard1966
Copy link

I'm trying to use webclient to setup Greyhole but I'm getting -

Error: failed to initialize Greyhole database: SQLSTATE[28000]: Invalid authorization specification: 1133 Can't find any matching row in the user table; Query: GRANT ALL ON greyhole.* TO :username@:client_host

MariaDB set up not to use password for root.

I'm very new to using Linux. I could have easily screwed something up.

@gboudreau
Copy link
Owner

Did you just retry?
That error is about the user not existing, which is weird, since it was created 2 lines before executing this query...

If retrying doesn't work, try to connect to MariaDB manually, and run:

flush privileges;
use greyhole;
SELECT * FROM mysql.user WHERE USER = 'greyhole_user';
SELECT `Host` FROM mysql.user WHERE USER = 'greyhole_user';
-- Replace host_here below with the host obtained in the previous query
GRANT ALL ON greyhole.* TO greyhole_user@'host_here';

@PeterBlanchard1966
Copy link
Author

No records returned.

I tried creating users in MariaDB and it gave errors. I think there is something wrong with it. I am not going to try to fix it directly.

I installed OpenMediaVault and decided I don't like or need it. There is no data on the NAS yet. I am going to wipe it, do fresh install of Ubuntu server.

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

2 participants