-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Greenfield nextcloud Linux MySQL next reboot borked DB access #12396
Comments
willing to work with an expert to debug the situation, and find the root cause, then go back and try to understand what was missing in the docs w.r.t. DB steps; then I can fix and pull request |
After reviewing #3381, I vaguely recall being confused by a similar thought:
|
When you use |
Indeed this is going to be the root cause most certainly. (the database instructions) - admittedly my DB foo is lacking Docs-wise:
I think I was eventually executing on: I am able to sudo Definitely there is some GRANT/ACCESS issue from the installation (but no idea how it was working before....) here's the current state
What's odd about the
But why isn't the nextcloud config using that user? (hmmm my memory fails me since I set this up >4 weeks ago at least) I just re-ran the GRANT PRIVS for the
Now I can get in;
Then I rebooted the entire server just to start fresh, and 👍 ! (voila) |
Unfortunately I can't remember if I used the wizard or not (i don't remember doing so) Thinking MAYBE ... I tried to do the DB config manually, and somehow screwed up the DB username in the nextcloud configuration. Perhaps the "missing link" DOCS wise, is that from the installation page, we should link/reference to the "linux_database_configuration.html" page where appropriate? |
A subsequent thought, what is most concerning is that it suddenly broke. The initial greenfield installation was working ... and post-reboot it suddenly stopped. I struggle to fathom how though ; clearly the nextcloud config was messed up. I definitely did not edit/change it. (is it possible the upgrade, or some settings in the GUI, can change that |
I wonder if it was related to password expiration possibly ... https://dev.mysql.com/doc/refman/5.7/en/password-management.html (will monitor). |
As this seems to be a setup issue I would like to ask you to raise your question in the forums: https://help.nextcloud.com |
Good day,
Some weeks back I installed my first nextcloud instance. (nextcloud newbie, but advanced Linux user)
Was working through the installation manual instructions
https://docs.nextcloud.com/server/14/admin_manual/installation/index.html
Its obvious that there are "many ways" to install here. I went with roughly:
By the end, I had a working nextcloud instance! It was awesome. Did some basic configurations and PoC, seemed good. But later rebooted the server for maintenance then boom next boot nextcloud was down. (see below for error messages) RCA is DB permission issues.
Steps to reproduce
Not 100% certain
Specifically I focused on the Ubuntu manual install instructions -- https://docs.nextcloud.com/server/14/admin_manual/installation/source_installation.html#example-installation-on-ubuntu-16-04-lts-server
I will note that there were several times of uncertainty in DB creation (several issues, but it seemed like I had got through them)
Expected behaviour
Installation instructions for Ubuntu server should maybe be more clear (though I have yet to isolate exactly what went wrong, could be user error). Installation instructions need to result in persistent functionality (subsequent reboot shouldn't break the installation).
Actual behaviour
After installation, worked well. Few weeks later rebooted and nextcloud stopped responding to web hits. Checked logs and noticed:
Server configuration
Operating system: Ubuntu 16.04.5 LTS; 4.4.0-137-generic
Web server: apache 2.4.18-2ubuntu3.9
Database: mysql 5.7.24-0ubuntu0.16.04.1
PHP version: 7.0.32-0ubuntu0.16.04.1
Nextcloud version: 14.0.0.0 initially (maybe upgraded to 14.0.0.3)
Updated from an older Nextcloud/ownCloud or fresh install: fresh install to 14.0.0.0 (first time greenfield)
Where did you install Nextcloud from: nextcloud-14.0.0.tar.bz2
Signing status: ?
List of activated apps: only the SMB hook
Are you using external storage, if yes which one: local+smb
Are you using encryption: no
Are you using an external user-backend, if yes which one: not as of yet
The text was updated successfully, but these errors were encountered: