Comments (8)
The "Access denied" is presumably coming from MariaDB not Nextcloud.
Any chance you started up the stack (or at least the db container) once before? Such as with a different config/password.
Docker does not delete names volumes when stopping (or even removing) containers by default. If a previous volume is found, MariaDB will just ignore (nearly) all the config parameters specified in Compose (since everything is already set up).
from docker.
The "Access denied" is presumably coming from MariaDB not Nextcloud.
I've gone through and deleted all Maria databases and I'm still receiving the error on a fresh install. Seems to be a problem with Nextcloud
Any chance you started up the stack (or at least the db container) once before? Such as with a different config/password.
I did, but as I said I've even done docker system prune -a
when I shutdown Nextcloud. I'm putting in the fields exactly what's in the docker compose Nextcloud still gives me this:
Error while trying to create admin account: An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user 'nextcloud'@'xxx.xxx.xx.x' (using password: YES)
The logs say this:
[Warning] Access denied for user 'nextcloud'@'xxx.xxx.xx.x' (using password: YES)
Not sure how this is such a problem...
from docker.
Update: I changed the volumes from db:/var/lib/mysql
and nextcloud:/var/www/html
and it went and installed, but not to those directories. What would cause Nextcloud to take the volume changes but not actually use the directories I pointed it to? There was nothing in those original directories to begin with.
from docker.
Getting exactly the same error.
Edit: I managed to make it work adding
environment:
- MYSQL_ROOT_PASSWORD=nextcloud
Edit2: amazing, I cannot make it work anymore.
from docker.
Works using the MySQL image instead of MariaDB.
from docker.
I've gone through and deleted all Maria databases and I'm still receiving the error on a fresh install. Seems to be a problem with Nextcloud
Deleting the databases is not enough. You have to delete the named volume db
in Docker.
I did, but as I said I've even done docker system prune -a when I shutdown Nextcloud.
That command doesn't touch volumes.
Update: I changed the volumes from
db:/var/lib/mysql
andnextcloud:/var/www/html
and it went and installed, but not to those directories. What would cause Nextcloud to take the volume changes but not actually use the directories I pointed it to? There was nothing in those original directories to begin with.
I'm not sure what you mean by "those directories". Do you means the ones to right of the colon? Those aren't directories on your host. They're directories in the containers. You can't change them.
You can, however, rename the named volumes (the left of the colon). That would have the same effect as deleting the named volumes created during a prior attempt to start things up... If that worked, then the cause was exactly as I suspected: you previously started up a mariadb container and it was re-using the prior db volume it had been associated with (and therefore the prior config).
This isn't a Nextcloud matter. Just standard Docker stuff.
Getting exactly the same error.
Edit: I managed to make it work adding
@arialdomartini Well, yeah, that parameter requires a value as stated in the docs. It can't be left blank. :-)
Edit2: amazing, I cannot make it work anymore.
It's a one-time parameter. Please go familiar yourself with either the MariaDB or MySQL Docker image documentation.
Works using the MySQL image instead of MariaDB.
Yes, because it's a fresh deployment of a new container again.
I'd encourage you both check out the Docker docs on volume management/etc. - e.g.
as well as the MariaDB and MySQL Docker image docs.
The Nextcloud Community Help Forum: https://help.nextcloud.com is also a great resource for discussing these types of situations. That said, if you see an opportunity for improving this image's documentation, either submit the change yourself (ideally) or at least describe where it seems to fall short.
P.S. You don't have to take my word for it nor guess. Look at your db
container's start-up logs. It tells you if it's initiating from scratch or using an existing db/volume.
from docker.
I got it fixed by changing it to where I wanted to install, which for me was home/user/nextcloud
where I store all of my docker containers, so now it looks like /home/user/nextcloud:/var/lib/mysql
from docker.
Happy to hear you got it working!
from docker.
Related Issues (20)
- question: why server itself have to be installed after start container (aka. why server itself have to be persistenced) HOT 1
- latest fpm image is broken? HOT 2
- Emphasize using `occ config:list system` to view running config
- bug can't send emails when specifying SMTP config from compose ENV vars HOT 2
- Fix inconsistent test failures HOT 1
- Add `depends_on` w/ ``condition` + healthcheck example
- PHP_MEMORY_LIMIT environment variable seems to get ignored HOT 1
- Bump stable tag to 28.0.6 or even to 29.0.3 HOT 7
- Migration instructions need to include `config/` handling
- [Bug]: Incorrect "The following apps have been disabled" HOT 3
- [Bug]: Can't upgrade because of "Segmentation fault" (and server is not running) HOT 5
- Version 28 is marked as ``stable`` but it should be 29 by now HOT 3
- Where to find Docker 26 version HOT 2
- The /var/www/html/ folder is completely empty in the latest 29 version of nextcloud HOT 5
- The latest version of nextcloud does not automatically connect to the database HOT 1
- Clarify versioning/update policy in the README
- Nextcloud prohibits me from recreating a user that I deleted. HOT 1
- Intégrer nextcloud dans organizr HOT 1
- Rolling tags for upstream stable tracking HOT 3
- On upgrade warnigs about PHP files differing are issued: "Warning: /var/www/html/config/….config.php differs from the latest version of this image at /usr/src/nextcloud/config/….config.php" HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker.