Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] Linuxserver.io - Nextcloud

Featured Replies

What does the log for the Nextcloud Docker say after you click the "finish setup" button?

  • Replies 7.1k
  • Views 1.7m
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Here's my list of instructions....    Use them at your own risk.....   If upgrading to v12 please see here:   ##Turn on maintenance mode docker exec -it nextcloud occ m

  • When i did enter the docker container with ssh and did run the following command the error message was gone   sudo -u abc php /config/www/nextcloud/occ db:add-missing-indices   Onl

  • gustomucho
    gustomucho

    After tinkering with this for a while, it seems the solution is much simpler than I thought. For some reason, the only step required is to modify the config.php file. No need to install ffmp

Posted Images

Hi Dimtar,

 

I've dropped the tables in the nextcloud db and ran the wizard again. Below is the log output.

 

http://pastebin.com/xuhe981b

 

I also noticed this time I don't have the 504 error. Instead I have this message.

 

An exception occurred while executing 'INSERT INTO `oc_users` ( `uid`, `password` ) VALUES( ?, ? )' with params ["admin", "1|$2y$10$OlTPx6zAGEmTcOn3ive5I.T7UAMys924DX2Kc0mvez0wrabH89Dym"]:

SQLSTATE[HY000]: General error: 1665 Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging. InnoDB is limited to row-logging when transaction isolation level is READ COMMITTED or READ UNCOMMITTED.	

 

So I could be wrong but I believe this to be the potential issue the first post referred to. I had that issue too and I fixed by adding a line to the custom.cnf file inside the mariadb config folder.

The following line:

skip-log-bin

So I could be wrong but I believe this to be the potential issue the first post referred to. I had that issue too and I fixed by adding a line to the custom.cnf file inside the mariadb config folder.

The following line:

skip-log-bin

 

I added skip-log-bin to the [mysqld] section of my custom.cnf

 

[mysqld]
skip-log-bin
max_connections		= 100
connect_timeout		= 5
wait_timeout		= 600

 

I also deleted the nextcloud data and config files, droped the tables created by the last failed nextcloud install but I still got this error:

 

An exception occurred while executing 'INSERT INTO `oc_users` ( `uid`, `password` ) VALUES( ?, ? )' with params ["admin", "1|$2y$10$Nl2x6fxx3Xd7c4dsukN4HOIjBW6q3ZAH98il5DL2et3eZpnlgNRPy"]:

SQLSTATE[HY000]: General error: 1665 Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging. InnoDB is limited to row-logging when transaction isolation level is READ COMMITTED or READ UNCOMMITTED.

 

Any other ideas?

I believe I removed a line but I cannot be 100% sure. Here is a copy of my custom.cnf, maybe backup your current one and try mine?

http://pastebin.com/xSxjff9L

You can just edit the custom.cnf and change line 118 (Line number may change between versions) to

 

binlog_format=mixed

Hey Dimtar, I used your custom.cnf file but I'm still getting the same error.

 

I wonder if it has something to do with the permissions of the custom.cnf because when I entered the mariadb container to set binlog to mixed in mysql cli I saw a message saying /etc/mysql/.../my.cnf will be ignored because it has world writable permission. /etc/mysql/.../my.cnf is soft linked to config/custom.cnf.

I tried to chmod 774 the above mentioned file but it didn't change.

 

I'm going to give {next own}cloud a miss altogether and move on to a vm instance or something. I actually had nextcloud working nicely with mariadb on my arch desktop before I converted it into an unraid machine.

 

Thanks for your help guys.

You can just edit the custom.cnf and change line 118 (Line number may change between versions) to

 

binlog_format=mixed

 

Hey CHBMB, I appreciate you taking the time to help. I changed that line to binlog_format=mixed and also binlog_format=row but neither worked.

 

It is as if that custom.cnf file is being ignored by mariadb.

You can just edit the custom.cnf and change line 118 (Line number may change between versions) to

 

binlog_format=mixed

 

Hey CHBMB, I appreciate you taking the time to help. I changed that line to binlog_format=mixed and also binlog_format=row but neither worked.

 

It is as if that custom.cnf file is being ignored by mariadb.

 

Sorry to ask this question but you're restarting the docker after changes right?

Sorry to ask this question but you're restarting the docker after changes right?

 

Nope! I was only restarting the mariadb container.

 

Are you suggesting that I restart docker as well? If so, how do I restart docker?

I meant the container, wrong terminology sorry.

I meant the container, wrong terminology sorry.

 

Ah yes I did restart mariadb only. OK I'll give it one more attempt.

 

I'll delete mariadb and nextcloud and start from scratch and post back.

I meant the container, wrong terminology sorry.

 

Ah yes I did restart mariadb only. OK I'll give it one more attempt.

 

I'll delete mariadb and nextcloud and start from scratch and post back.

 

You are uncommenting the line in custom.cnf aren't you? (ie removing the # from the beginning of the line)

This is so awesome, im not good  at databases so if I could virtually nudge for the integration of Maria dB that would be great. 

 

Sent from my SAMSUNG-SM-N920A using Tapatalk

 

Sorry, not going to happen, we talked about it, but it's a no no for a number of reasons.  Postgres and SQLlite users for one, and we're not in favour of bundling lots of things in containers any more.  Just more stuff to go wrong.

YES! I managed to get my installation working. This is what I did:

 

1. Delete all traces of config files related to mariadb and nextcloud containers.

 

Install and setup MariaDB

[*]Install linuxserver/mariadb:latest

[*]docker exec -t -i mariadb /bin/bash

[*]mysql_secure_installation

[*]create new root password

[*]allow remote connection

 

Edit custom.cnf

[*]cp /config/custom.cnf /config/custom.bak.cnf

[*]vim /config/custom.cnf

[*]insert skip-log-bin to end of [mysqld]

[*]insert binlog_format=mixed after #binlog_format=row

[*]:wq

 

Create db and user

[*]mysql -u root -p

[*]CREATE USER 'nextcloud'@'localhost' IDENTIFIED BY 'xxxx';

[*]CREATE DATABASE IF NOT EXISTS nextcloud;

[*]GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextcloud'@'%' IDENTIFIED BY 'xxxx';

[*]exit

[*]restart mariadb container

 

Nextcloud

[*]Install lsiodev/nextcloud:latest

[*]https://nextcloud.app

[*]admin username

[*]admin password

[*]select mysql

[*]db name    nextcloud

[*]db username nextcloud

[*]db password xxxx

[*]db location 192.168.0.200:3306

[*]Submit

[*]and fingers crossed

 

What I did different was

  • edit the custom.cnf file inside the mariadb container so it keeps the file permissions. I think editing the file from the shared folder in my client machine screwed things up and mysql ignored the custom.cnf

 

And to think I was so close to giving up!

 

Thanks to Dimtar and CHBMB for your help too :)

This is so awesome, im not good  at databases so if I could virtually nudge for the integration of Maria dB that would be great. 

 

Sent from my SAMSUNG-SM-N920A using Tapatalk

 

Sorry, not going to happen, we talked about it, but it's a no no for a number of reasons.  Postgres and SQLlite users for one, and we're not in favour of bundling lots of things in containers any more.  Just more stuff to go wrong.

 

well damn it, i guess im going to have to learn some mariaDB or run it in a vm, thank you either way.

for getting the container put together.

This is so awesome, im not good  at databases so if I could virtually nudge for the integration of Maria dB that would be great. 

 

Sent from my SAMSUNG-SM-N920A using Tapatalk

 

Sorry, not going to happen, we talked about it, but it's a no no for a number of reasons.  Postgres and SQLlite users for one, and we're not in favour of bundling lots of things in containers any more.  Just more stuff to go wrong.

 

well damn it, i guess im going to have to learn some mariaDB or run it in a vm, thank you either way.

for getting the container put together.

 

You do know that you're only going to have to do practically the same commands in regards to mysql etc to get nextcloud working in a VM ?

YES! I managed to get my installation working. This is what I did:

 

1. Delete all traces of config files related to mariadb and nextcloud containers.

 

Install and setup MariaDB

[*]Install linuxserver/mariadb:latest

[*]docker exec -t -i mariadb /bin/bash

[*]mysql_secure_installation

[*]create new root password

[*]allow remote connection

 

Edit custom.cnf

[*]cp /config/custom.cnf /config/custom.bak.cnf

[*]vim /config/custom.cnf

[*]insert skip-log-bin to end of [mysqld]

[*]insert binlog_format=mixed after #binlog_format=row

[*]:wq

 

Create db and user

[*]mysql -u root -p

[*]CREATE USER 'nextcloud'@'localhost' IDENTIFIED BY 'xxxx';

[*]CREATE DATABASE IF NOT EXISTS nextcloud;

[*]GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextcloud'@'%' IDENTIFIED BY 'xxxx';

[*]exit

[*]restart mariadb container

 

Nextcloud

[*]Install lsiodev/nextcloud:latest

[*]https://nextcloud.app

[*]admin username

[*]admin password

[*]select mysql

[*]db name    nextcloud

[*]db username nextcloud

[*]db password xxxx

[*]db location 192.168.0.200:3306

[*]Submit

[*]and fingers crossed

 

What I did different was

  • edit the custom.cnf file inside the mariadb container so it keeps the file permissions. I think editing the file from the shared folder in my client machine screwed things up and mysql ignored the custom.cnf

 

And to think I was so close to giving up!

 

Thanks to Dimtar and CHBMB for your help too :)

 

following the guide but when i try to connect to mysql to create users and database it gives me this error

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

 

Yes i've change the password as per the guide.

 

 

 

1. Delete all traces of config files related to mariadb and nextcloud containers.

 

Install and setup MariaDB

[*]Install linuxserver/mariadb:latest

[*]docker exec -t -i mariadb /bin/bash

[*]mysql_secure_installation

[*]create new root password

[*]allow remote connection

 

Edit custom.cnf

[*]cp /config/custom.cnf /config/custom.bak.cnf

[*]vim /config/custom.cnf

[*]insert skip-log-bin to end of [mysqld]

[*]insert binlog_format=mixed after #binlog_format=row

[*]:wq

 

Nextcloud

[*]Install lsiodev/nextcloud:latest

[*]https://nextcloud.app

[*]admin username

[*]admin password

[*]select mysql

[*]db name    nextcloud

[*]db username root

[*]db password root password

[*]db location 192.168.0.200:3306

[*]Submit

[*]and fingers crossed

 

 

ijuarez, try doing it the way I've edited above.  Nextcloud creates it's own user via the install I believe.

 

1. Delete all traces of config files related to mariadb and nextcloud containers.

 

Install and setup MariaDB

[*]Install linuxserver/mariadb:latest

[*]docker exec -t -i mariadb /bin/bash

[*]mysql_secure_installation

[*]create new root password

[*]allow remote connection

 

Edit custom.cnf

[*]cp /config/custom.cnf /config/custom.bak.cnf

[*]vim /config/custom.cnf

[*]insert skip-log-bin to end of [mysqld]

[*]insert binlog_format=mixed after #binlog_format=row

[*]:wq

 

Nextcloud

[*]Install lsiodev/nextcloud:latest

[*]https://nextcloud.app

[*]admin username

[*]admin password

[*]select mysql

[*]db name    nextcloud

[*]db username root

[*]db password root password

[*]db location 192.168.0.200:3306

[*]Submit

[*]and fingers crossed

 

 

ijuarez, try doing it the way I've edited above.  Nextcloud creates it's own user via the install I believe.

 

will do and start fresh again

 

will do and start fresh again

 

Actually you don't even need to do the first bit either.

 

You can set the root password via the MariaDB container setup.

 

f4vYQvE.png

well there's the extra stuff, i got it running but i think i answer the disallow remote connections questions incorrectly because it wont let me connect. Can i re-run the mysql_secure_installation again with out issues? if not its no biggie to recreate the container.

 

I'd just nuke it tbh.

10-4

 

Edit got it working

:) :) :)

 

Incidentally I wrote a guide a couple of days ago to install this.  Needs some editing and then we'll publish it on our website.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.