[Support] Linuxserver.io - Nextcloud


Recommended Posts

16 minutes ago, byographic said:

 

I’ve tried google it without any luck for now.

The only idea I have is:

lately I`m syncing large files 3+ gb each so either the server has to little RAM (only 4GB) but I will expand it to 12 GB next week or the php memory is to low (512mb)

 

Or something happened after I’ve updated to 13.0.2

 

Ah, my money would be on the server RAM.  4GB is tight just for Unraid, let alone running docker  containers on top of it.  I've got 64GB and prior to that 32GB and never had any issues.

Link to comment
12 hours ago, CHBMB said:

 

You could map php.ini from outside the container to replace the one inside the container.  But I wouldn't support that.   The error you posted looks like a database issue to me, but no idea what from

 

Hm, i dont know why, now its working, i removed the desktop client. Now 2 mobiles are working fine since some days. From desktop is now use SMB. So its okay for me. 

 

Still wondering why that happend.

Link to comment
On 5/8/2018 at 3:14 PM, CHBMB said:

 

No, I've not had any problems either via my reverse proxy or VPN.  Suspect it's a routing issue with your setup.

when im conncected with wifi it works just fine but trying to connect outside my network with my home vpn its not working. really would like to get it to work again. 

Link to comment

I can't reach the nextcloud webui anymore since the last container update.

Nothing unusual in the logs though :(

 

edit:

Ok now I have something in the logs.

Seems like its related to MariaDB which got updated aswell (using Linuxserver.io aswell here)

 

The MariaDB container log repeats this 

180513 13:03:15 mysqld_safe Starting mysqld daemon with databases from /config/databases
180513 13:03:18 mysqld_safe Logging to syslog.

And Nextcloud shows this

 

Stack trace:
#0 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /config/www/nextcloud/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver in /config/www/nextcloud/lib/private/DB/Connection.php on line 64

PHP Fatal error: Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2006] MySQL server has gone away in /config/www/nextcloud/lib/private/DB/Connection.php:64

 

I didn't change anything in my configurations. Just updated the containers.

Edited by Marv
Link to comment

Ok so I found the link from the first post in the MariaDB thread and recovered my MariaDB container from a backup.

This seems to work for MariaDB, but my Nextcloud container still doesn't work.

 

I reach the Nextcloud webUI but when logging in I get:

 

The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.

Technical details
Remote Address: ...........
Request ID: QYXatuOnTGfDt565JmdC

 

and the container log shows:

 

Stack trace:
#0 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /config/www/nextcloud/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver in /config/www/nextcloud/lib/private/DB/Connection.php on line 64

[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing...
usermod: no changes

 

What can I do here? Do I need to use the Nextcloud backup aswell? Is there anything to worry about regarding my files?

Link to comment

Hello together,

im struggling with my transfer of gulden-home.de/nextcloud to nextcloud.gulden-home.de

 

How can i tell ngix to use the nextcloud config file for the nextcloud subdomain and for everything else the default?

 

I get the 404 Error on nextcloud.gulden-home.de

 

As in the tutorial i created an addition file "nextcloud" in the ..../appdata/letsencrypt/nginx/site-confs/ with the data as attached.

 

But what i dont get it seems that the old configfile(default) responds still to gulden-home.de/nextcloud but the new configfile dont seem to work at all.

If i type nextcloud.gulden-home.de/nextcloud my webpage also apears.

 

Regards

Bengele

 

 

nextcloud

default

Link to comment
On 5/12/2018 at 9:35 PM, Marv said:

I can't reach the nextcloud webui anymore since the last container update.

Nothing unusual in the logs though :(

 

edit:

Ok now I have something in the logs.

Seems like its related to MariaDB which got updated aswell (using Linuxserver.io aswell here)

 

The MariaDB container log repeats this 


180513 13:03:15 mysqld_safe Starting mysqld daemon with databases from /config/databases
180513 13:03:18 mysqld_safe Logging to syslog.

And Nextcloud shows this

 


Stack trace:
#0 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /config/www/nextcloud/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver in /config/www/nextcloud/lib/private/DB/Connection.php on line 64

PHP Fatal error: Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2006] MySQL server has gone away in /config/www/nextcloud/lib/private/DB/Connection.php:64

 

I didn't change anything in my configurations. Just updated the containers.

I had this error once. Use Putty (or something elso to shh) and docker exec -it mariadb-nextcloud bash log in with you set up password and see what it gives you back.

 

In my case it was a permission problem

 

Regards

Bengele

Link to comment

Hi All

 

Apologies if this isn't the right place to ask for help on this, but here goes anyway...

 

OK, I had a bit of a dilema when I upgraded my UnRAID box to the latest version where it ended up unable to start. So I ended up doing a fresh install and thankfully all my VMs re-appeared and worked perfectly. However my NextCloud docker has vanished.

 

I have still got all the data files which I had set up to store in /mnt/user/nextcloud/data. As far as I can remember the docker was installed in /mnt/user/appdata/nextcloud as there is a folder here containing four other folders... log, www, nginx and keys.

 

Is there an easy way to get this back before I start following tutorials on how to re-install NextCloud?

 

I have looked about but cant seem to find anything which explains this, so any idiot guides would be really appreciated... or pointers to where I can find out how to get this back up and running.

 

Thanks

Link to comment
23 hours ago, bengele said:

Hello together,

im struggling with my transfer of gulden-home.de/nextcloud to nextcloud.gulden-home.de

 

How can i tell ngix to use the nextcloud config file for the nextcloud subdomain and for everything else the default?

 

I get the 404 Error on nextcloud.gulden-home.de

 

As in the tutorial i created an addition file "nextcloud" in the ..../appdata/letsencrypt/nginx/site-confs/ with the data as attached.

 

But what i dont get it seems that the old configfile(default) responds still to gulden-home.de/nextcloud but the new configfile dont seem to work at all.

If i type nextcloud.gulden-home.de/nextcloud my webpage also apears.

 

Regards

Bengele

 

 

nextcloud

default

Anyone?

Link to comment
1 minute ago, bengele said:

Anyone?

 

I find these posts impossible to help as I have no idea what files have been edited before, which is why I wrote my guide.

 

I'd look at config.php and default in /config/nginx/site-confs/ in the Nextcloud appdata if I had to hazard a guess though

Link to comment
20 minutes ago, SliMat said:

Many thanks @CHBMB - I will give this a go tomorrow... I hoped it would be as simple as that but didn't want to proceed and delete the existing folders by mistake. :)

 

That's what backups are for...... 

  • Like 1
Link to comment
22 hours ago, CHBMB said:

Yes, just mount it like you would any file or directory.

Nice to know this, but unfortunately I couldn't mount it.

-v '/mnt/user/appdata/nextcloud/php/www.conf':'/etc/php7/php-fpm.d/www.conf':'rw'

This gives error. Could you elaborate on this?

Thank you.

Link to comment
1 hour ago, CHBMB said:

Try using /mnt/cache instead of /mnt/user and make sure you remove the mounts existing file.

Still no go.

 

Edit: Dumb me! The path was wrong. But still with errors.

 

[15-May-2018 14:20:54] ERROR: [/etc/php7/php-fpm.conf:2] Array are not allowed in the global section

[15-May-2018 14:20:54] ERROR: failed to load configuration file '/etc/php7/php-fpm.conf'

[15-May-2018 14:20:54] ERROR: FPM initialization failed

Edit2: It writes php-fpm.conf, but I have just checked. It is /etc/php7/php-fpm.d/www.conf. How come it changes to php-fpm.conf, I don't know.

Edited by sse450
Link to comment
19 hours ago, CHBMB said:

Just reinstall it, mariadb first and make sure that's pointing to the correct appdata folder and then nextcloud making sure it's also pointing to the correct folders.  That's the beauty of docker. 

 

You werent wrong - re-installed everything and pointed at the data folder... my remote machines all synced and everything is back where it should be :)

 

Many thanks

Link to comment
On 5/8/2018 at 11:30 PM, CHBMB said:

 

Ah, my money would be on the server RAM.  4GB is tight just for Unraid, let alone running docker  containers on top of it.  I've got 64GB and prior to that 32GB and never had any issues.

I've upgraded the RAM I still have a lot of garbage in the log but the container is working as expected.

surely I'm seeing the good effect of more ram but I think the problem was fixed by the latest OS update 6.5.1 because they have downgraded the docker (We downgraded docker from 17.12.1 to 17.09.1 in order to improve compatibility)

Thanks

 

Edited by byographic
Link to comment
On 5/15/2018 at 6:47 PM, CHBMB said:

Did you use the existing file as a base or just replace it completely with one you found somewhere?

I now start with the same www.conf which comes in the container. It is mounted and working. There is a minor quirk in the container log though:

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
sed: can't move '/etc/php7/php-fpm.d/www.confLlDcol' to '/etc/php7/php-fpm.d/www.conf': Resource busy
sed: can't move '/etc/php7/php-fpm.d/www.confKEBBng' to '/etc/php7/php-fpm.d/www.conf': Resource busy
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...
using keys found in /config/keys
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 40-config: executing...
[cont-init.d] 40-config: exited 0.
[cont-init.d] 50-install: executing...
[cont-init.d] 50-install: exited 0.
[cont-init.d] 60-memcache: executing...
[cont-init.d] 60-memcache: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

Despite the warning, it seems working.

 

Thanks for your help.

Link to comment

Hi I have reading everything I can find and change/adding settings in the .htaccess/.user.ini/nginx.conf/site-conf files according to the online documents with no success. I am trying to upload large files 12G + and run into 2 issues.

 

The first is when ever trying to upload the large file my docker image gets maxed out and i get warnings in unraid. My guess is that the upload_temp_dir is causing the size to grow. So I have been trying to change it to my cache drive. I first added "/mnt/cache/upload_temp" to the docker container then added  "upload_tmp_dir = /upload_temp;"  to the /mnt/user/appdata/nextcloud/nginx/nginx.conf file.When I started the container I saw in the log that it did create the new temp dir. but when transfering files that dir stays empty. and My docker image grows to 98% or more.

 

The second problem is that my large file transfers get all the way to the end of the transfer where they sit for a few seconds saying "Changing timestamp" then error out. I used to get the file too large but I made the changes to the www/.htaccess/ and the nginx.conf file to 20G.

 

 

I am very new to this and know there is more info needed but if anyone can help or give me direction where to loo, it would be appreciated.

Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.