Ok. Thanks!
What about the external storage function? Any ideas?
Ok. Thanks!
What about the external storage function? Any ideas?
SMBclient was installed and probably I didnāt need it as my HDD is locally on the computer.
I re-followed your instructions and it is now installed
Hi all,
I am completely confused right nowā¦ Everytime I try to update the containers with docker-compose pull and then docker-compose up -d my nextcloud will end up in an error:
āInternal server errorā
It looks like the nextcloud instance is not able to connect to the mysql db, but the DB is up and running and accessible. But thatās just a guess, because I am not able to find any logs which can tell me more
Anybody else with this issue and was able to fix it?
Unexpectedly, I have just found a solution:
It was caused by some changes with REDIS.
I added following lines in docker-compose.yml:
and
So, my part of nextcloud and redis in the docker-compose.yml looks like:
services:
nextcloud:
image: nextcloud
container_name: nextcloud
networks:
- nextcloud
ports:
- ā127.0.0.1:8080:80ā
volumes:
- ${NEXTCLOUD_ROOT}/html:/var/www/html
- ${NEXTCLOUD_ROOT}/data:/srv/nextcloud/data
extra_hosts:
- ā${NEXTCLOUD_FQDN}:${NEXTCLOUD_IPADDRESS}ā
- ā${COLLABORA_FQDN}:${NEXTCLOUD_IPADDRESS}ā
depends_on:
- mariadb
- redis
environment:
- NEXTCLOUD_TRUSTED_DOMAINS=ā${NEXTCLOUD_FQDN}ā
- NEXTCLOUD_DATA_DIR=/srv/nextcloud/data
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_HOST=nextcloud-mariadb
- REDIS_HOST=nextcloud-redis
- REDIS_HOST_PASSWORD=123redis
restart: unless-stopped
ā¦
redis:
image: redis
container_name: nextcloud-redis
networks:
- nextcloud
restart: unless-stopped
command: redis-server --requirepass 123redis
Hopefully it will help others.
BR, noxxville
One other thing, Karl, I donāt see the Mail App among my apps. Is this as intended?
thanks!
@noxxville Iāve seen some reference to that, but what Iāve noticed is that some new setups need it and some donāt. I did a clean setup of NC 20 just like this recently and didnāt need a redis password.
@Javihache Yes. Any apps you want, you will need to install and configure. I didnāt really cover any post-setup customization in the guide.
Hey Karl! Thanks for the quick reply again. I mean the Mail app is not even in the list of the āfeatured appsā. When I navigate to Apps on the Nextcloud instance, I can install or disable many apps (talk, calendar, external sites, deck, etcā¦), but Mail is just not there at all. Therefore I cannot even install it or enable it.
Javier Hermosa
The mail app is under office & text, and also in the groupware and hub bundles.
Nah it was a bug with Nextcloud Docker 20.0.6ā¦ 20.0.7 took a while to be ported to docked. All good now.
The only thing I cannot manage to get working, neither with your docker installation or with my zip installation on a different server is the coturn serverā¦ I always get the āno ICE candidates were foundāā¦ I noticed on your description, at the Nextcloud Talk point, it says āuse cloud.domain.name:3489ā and then āforward TCP and/or UDP port 3478ā. Looking at the docker-compose.yml I can imagine the right port is 3478ā¦ I tried both and it doesnāt work either way.
EDIT: Turn Server (Coturn): Einrichtung funktioniert nicht - #15 by FatBastard
Hallo all,
itās me ā¦ again
I was thinking about a second nextcloud Instance. It is possible to edit the docker-compose.yml to get a second nextcloud instance, using the same mysql, redis, collabora and coturn?
I tried to add an secound instance by adding a new āserviceā. But nothing I tried was working.
For Example:
services:
nextcloud:
image: nextcloud
container_name: nextcloud
ā¦
nextcloud_2:
image: nextcloud
container_name: nextcloud_2
ā¦
Of course I also used new variables to separate the URLs etc. But I got always the issue that I got the massage, that the second instance has overwritten my first one. Or I got issues with the Image.
I am new at the Docker concept, therefore I am happy about any little hint, what I am doing wrong
Thanks,
Nils
@noxxville You sure can, and what I would suggest is rather than having them in the same compose file, I would make a completely separate folder with its own compose file and its own copy of all the containers. The main things you would need to change are the port numbers and any duplicate names (services, networks, absolute paths, etc.).
Doing it that way you can easily take one down for maintenance without disturbing the other, or also easily move one to a separate server later if you decide to.
@KarlF12 Ok, of course that makes perfect sense. And as you said, this should be much easier to aministrate. Sometimes it can be so easy ā¦
I wanted to take a moment to reply and, firstly, say thank you for this. This walkthrough was incredibly useful and functionally essential to my deployment of my own instance using docker.
I also wanted to commend you on your effort. I saw your posts as far back as 2019 when I was triaging a problem related to Collabora not displaying documents (which had to do with PEBKAC on my end, not yours) and developing your skillset then contributing it back.
Thank you. Glad it was helpful. I actually started working on an update to this over the weekend for Ubuntu Server 20.04 and Nextcloud 21. I want to integrate both of the high performance backends, and Iām debating leaving the Collabora part off since both Collabora and ONLYOFFICE are integrated now.
I think Iāve got the Files HPB working. I need to do some testing on that and then figure out the Talk HPB. My goal is to get both backends integrated in one docker-compose setup.
Awesome tutorial.
However, in case anyone is trying to run Nextcloud + Collabora inside Docker on and old Debian machine (8 or older), I banged my head against the wall for hours with Collabora failing to respond until I found my way to this answer:
https://help.nextcloud.com/t/collabora-docker-capabilities-problem/4774/10
One simple line in a daemon.json file:
{
āstorage-driverā: ādevicemapperā
}
ā¦restart docker service, and Collabora suddenly sprang to life and started responding. Problem solved.
For anyone following this hitting an error like:
SQLSTATE[HY000]: General error: 4047 InnoDB refuses to write tables with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE.
ā¦ This is due to an issue with new versions of MariaDB. Full details can be found in this thread.
The solution is to add the following to the mariadb portion of your docker-compose.yml:
command: ['--innodb_read_only_compressed=OFF']
For example:
mariadb:
image: mariadb
container_name: nextcloud-mariadb
restart: unless-stopped
command: ['--innodb_read_only_compressed=OFF']
volumes:
- ${NEXTCLOUD_ROOT}/mariadb:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
networks:
- nextcloud
I have two questions:
Can I upgrade my docker image to a later version of NextCloud? How do I do it?
There seems to be an app (music) that interferes with my docker image and now I cannot login to Nextcloud. Do you know why this happens and how I can fix it?
Thank you for your great work here!
Cordially,
Martin Book
please review the guide of the docker container section Update to a newer version.
You can disable apps from command line using the occ app: commands
For new questions and specific issues with your installations itās recommended to open a new thread rather cluttering another topic.
Point taken. I will hope for an answer on those channels. Unfortunately occ app:disable does not work in this case. Do not know why. I just pulled Nextcloud and it seems fine when I am locking at things in terminal in the folder where the docker image is. Unfortunately when I occ upgrade it does not work. There is an error that has got to do with the music app (that I fully regret installing now as I have never ever used it) and I am stuck in maintenance mode. Not very happy about that.
It all started when I tried to update apps in the UI inside Nextcloud. Should not have done it without upgrading Nextcloud first.
Sorry for clutterin, Iāll move along.
Can anyone help with the question? Container NextCloud accepts external storage on the same machine mounted as Snapraid? Openmediavault 5.