-
-
Notifications
You must be signed in to change notification settings - Fork 502
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
DietPi-Software | Nextcloud: Install fails with leading dash in password #4199
Comments
Hi, I did a test installation of NextCloud and it was working without issues. Let's check why it is failing on your system. Can you try to run installation again. Once hit by the issue, can you scroll up a little bit on your SSH terminal and post last lines from the output. |
Does your global software password start with a dash? Nextcloud requires a database root user with password authentication to create its own database user to install everything with. MariaDB by default sets up the root user with unix_socket authentication which means that only the UNIX root user can login as database root user without any password. Since we don't want to force password authentication for the database root user, we create a temporary second user with root permissions and password to be used by Nextcloud for the install. And this user gets the global software password and is given Nextcloud to do its install:
And now I can imagine that But we can enhance something on our install as well:
|
Yes... it does! "-J" are the first to characters. I didn't think much of it since I have used an alteration as the global password on dietpi before, which I probably set after I installed nextcloud. Everything you said @MichaIng makes sense...even to me :) I'll try again with a different password and let you know. |
Okay, so we found the culprit. I'll report to Nextcloud devs, as this should be possible to fix. While I'm implementing a random password, I recognised that while we can use a random password for the random database user, of course for the Nextcloud login user the global software password must still be used (that's the whole purpose of it). So while the change is a good idea, a leading dash would currently still cause an issue. EDIT: 9a6f074 |
+ DietPi-Software | ownCloud/Nextcloud: Create a temporary password for the temporary privileged database user to pass to the CLI install, instead of the global software password: #4199 (comment) + DietPi-Software | ownCloud: Like in case of Nextcloud, error out when a database exists without an install directory, as a fresh install with an old database is a risk + DietPi-Software | Nextcloud: Add missing primary keys on install to satisfy the admin panel check about it + DietPi-Software | ownCloud/Nextcloud: Minor coding enhancements
Issue reported: nextcloud/server#26109 |
I or rather my KeePass seems to make a habit of picking random passwords that lead to random errors. console output: with the string being the last characters of my global password. and the subsequent dietpi-software error message:
I'll keep you posted...seems like I am on a roll :) |
You should start using alphanumerical passwords 😄, at least for the global software password, as Nextcloud is pretty sure not the only one where special characters cause issues. You can and should always change passwords afterwards, it's anyway not good to have the same in all places. So that default password is only a temporary one to not have fresh installs completely unprotected and a known defined password for it. The single quote characters definitely breaks the MariaDB/MySQL syntax which uses single quotes around the password to escape other special characters: https://mariadb.com/kb/en/grant/#identified-by-password |
Nextcloud installation worked like a charm with alphanumerical password. |
Me too 🙂. Good find about the leading dash issue. You can change the password freely afterwards of course. |
- DietPi-Software | ownCloud/Nextcloud: Resolved an issue where a global software password with dashes lead to a failing install. Many thanks to @maxmoonshark for reporting this issue: #4199
Sorry for forgetting about this. The solution was actually there already last year: nextcloud/server#26109 (comment) Solved with: 1e26d00 |
Details:
Linux DietPi 5.4.83-v7l+ #1379 SMP Mon Dec 14 13:11:54 GMT 2020 armv7l GNU/Linux
Steps to reproduce:
Expected behaviour:
Nextcloud installation
Actual behaviour:
Error while executing command.
Extra details:
When running the command manually with the devs only option the following error message is shown:
The text was updated successfully, but these errors were encountered: