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

I generally always stay a couple of lables behind the latest. This is an example why. I get to learn of issues before I'm impacting by it.

  • 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

Anyone else having the issue of this docker locking up? It locks up and I cant stop, restart, nothing.  It gives Execution Error.  I cant even stop the docker service.  I have to do a hard reset of the whole server.  Its happened a few times now and seems random when it occurs.  Can be anywhere from a day to weeks it works before locking up.

That'll likely be unrelated to this container and more general stability issues with your system.

18 hours ago, Kilrah said:

That'll likely be unrelated to this container and more general stability issues with your system.

 

Unlikely, its only this container that ever does it and its been posted by more then just me.  I tired these solutions but they dont seem to work.  This is the newest builds. Older builds used to be fine.

 

 

Edited by RAINMAN

2 minutes ago, RAINMAN said:

 

Unlikely, its only this container that ever does it and its been posted by more then just me.  I tired these solutions but they dont seem to work.  This is the newest builds. Older builds used to be fine.

 

 

Could it unintentionally/potentially be related to this?

 

https://unraid.net/blog/6-12-11

 

image.thumb.png.685e19bfbdb20c9b000e99a61b3c56e9.png

1 hour ago, blaine07 said:

Could it unintentionally/potentially be related to this?

 

https://unraid.net/blog/6-12-11

 

image.thumb.png.685e19bfbdb20c9b000e99a61b3c56e9.png

Thanks!  Will give it a try.

On 7/18/2024 at 7:32 AM, blaine07 said:

Could it unintentionally/potentially be related to this?

 

https://unraid.net/blog/6-12-11

 

image.thumb.png.685e19bfbdb20c9b000e99a61b3c56e9.png

Unfortunately, its locked up again today so this wasn't the issue.

 

Currently running: 

Linuxserver.io version: 29.0.3-ls330
Build-date: 2024-07-14T17:27:42+00:00

 

NextCloud docker won't stop.

  • 2 weeks later...

Hello!
i can't reach my cloud anymore:

Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2006] MySQL server has gone away in /app/www/public/lib/private/DB/Connection.php:163

didn't change a thing :(

please help :o

On 7/21/2024 at 7:15 PM, RAINMAN said:

Unfortunately, its locked up again today so this wasn't the issue.

 

Currently running: 

Linuxserver.io version: 29.0.3-ls330
Build-date: 2024-07-14T17:27:42+00:00

 

NextCloud docker won't stop.

Just as an update, I found my tmp directory was using access mode Read/Write - Slave.  I changed it to Read/Write and haven't had an issue since.  Could be randomly working since then as the time varies but seems positive so far.

 

Honestly, i have no idea what the difference is.  I probably saw somewhere it was recommended and set it at some point.

For posterity: unraid nextcloud database connection details.

 

I had changed some settings a while back, and my changes got lost and nextcloud stopped connecting to the database. I found the database connection details in this file:

/mnt/user/appdata/nextcloud/www/nextcloud/config/config.php

 

 

excerpt below:

 

<?php
$CONFIG = array (
  'datadirectory' => '/data',
  'instanceid' => 'oc0w4lt90dch',
  'passwordsalt' => 'xxxxxxxxxxxx',
  'secret' => 'xxxxxxxxxxxxxx',
  'trusted_domains' => 
  array (
    0 => '192.168.11.2:444',
    1 => 'nextcloud.xxxxxxxxxxx.com',
  ),
  'dbtype' => 'pgsql',
  'version' => '29.0.4.1',
  'overwrite.cli.url' => 'https://nextcloud.xxxxxxxxxxxx.com/',
  'dbname' => 'nextclouddb',
  'dbhost' => '192.168.11.2:5432',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud',
  'dbpassword' => 'nextpass',
  'installed' => true,
  'trusted_proxies' => 
  array (
    0 => '192.168.11.2',
  ),

 

On 6/16/2024 at 1:05 PM, yayitazale said:

Hi:

 

I'm facing a issue that I'm not capable to correct. Since v28 I have this error:

 

Your web server does not serve `.mjs` files using the JavaScript MIME type. This will cause problems with some apps, preventing browsers from executing JavaScript files. You must configure your web server to serve `.mjs` files with either the `text/javascript`, or, `application/javascript` MIME type.

 

I have tried a lot of things and I have come to the conclusion that the problem is that the hostname is not being applied correctly to the server.

 

If I launch the "curl -I https://my.nextcloud.domain/apps/settings/js/esm-test.mjs" I get a HTTP/1.1 404 Not Found.

 

If I launch the "curl -I http://localhost/apps/settings/js/esm-test.mjs" from the console of the container I get:

 

HTTP/1.1 301 Moved Permanently
Server: nginx/1.24.0
Date: Sun, 16 Jun 2024 16:58:25 GMT
Content-Type: text/html
Content-Length: 169
Connection: keep-alive
Location: https://_/apps/settings/js/esm-test.mjs

 

So It looks like the hostname of the location is empty. The /etc/hostname of the container shows:

201a27d91820

 

And /etc/hosts:

127.0.0.1       localhost
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.17.0.16     201a27d91820

 

My /config/www/nextcloud/config/config.php file has:

'trusted_domains' =>
  array (
    0 => 'my.nextcloud.domain',
    1 => 'localhost',
    2 => '192.168.1.20',
  ),

and also:

'overwritehost' => 'my.nextcloud.domain',
  'overwriteprotocol' => 'https',
  'overwrite.cli.url' => 'my.nextcloud.domain',

 

 

It is behind reverse proxy (nginx proxy manager) witch I have configure like this for 6 years with no issues:

 

imagen.png.269cadc6f65509a4554c318d18e4fa3d.png

 

Where I have added the required locations and mime types:

imagen.thumb.png.2c4bdb2a118dbc6ba62e705e3d72eff1.png

 

What I'm doing wrong?

 

Thanks in advance.

 

Hello, were you able to fix the issue? The fix for me was to add mjs after js in the /etc/nginx/mime.types and restart the docker..

types {

...
    application/javascript                           js mjs;

...

Edited by miini

  • 2 weeks later...

Upgraded to 29.0.5. Ran command as it said; error persisted. Anyone have any ideas?

image.thumb.png.ae04657cc1e6ce18b44cc479a181dded.png

59 minutes ago, dreadu said:

Stumbled upon this here as well: https://help.nextcloud.com/t/warning-after-upgrading-to-28-0-9-or-29-0-5/201289/13

Seems to be fixed in the meantime https://github.com/nextcloud/server/pull/47378

but I guess(?) it's not jet included in the linuxserverio-image

Did you try to perform this repair manually or are you just waiting? I was going to make the one little change but I don't even see the file/can't figure out where the "lib" folder is. - 

 

in folder nextcloud

/lib/private/Repair/RepairMimeTypes.php

 

Did you fix this yourself per chance?

 

On 8/21/2024 at 1:11 PM, blaine07 said:

Did you try to perform this repair manually or are you just waiting? I was going to make the one little change but I don't even see the file/can't figure out where the "lib" folder is. - 

 

in folder nextcloud

/lib/private/Repair/RepairMimeTypes.php

 

Did you fix this yourself per chance?

 

Sorry for the late reply- I was at work for two days and am bock home just now.

 

I tried to run 'occ maintenance:repair --include-expensive' as stated in:

One or more mimetype migrations are available. Occasionally new mimetypes are added to better handle certain file types. Migrating the mimetypes take a long time on larger instances so this is not done automatically during upgrades. Use the command `occ maintenance:repair --include-expensive` to perform the migrations.

I did not resolve the message though. After that, I stumbled upon the above link and (because I was away) did intentionally not mess with any files directly.

 

My resulting question is:

will the php file be adjusted in the next change and I can simply re-run the repair including expensive, or to I have to adjust the php file anyway?

Just forget about it for a few days until it gets fixed. It's nothing important anyway.

Edited by Kilrah

Optimizing Nextcloud Linuxserver.io Docker Performance

I wanted to share my experience with the Nextcloud Linuxserver.io Docker container. After installation two years ago, I tried to optimize various parameters, including Nginx settings for Docker and several other tweaks like max_upload. These initial optimizations made Nextcloud usable, but I felt it wasn't performing to its full potential, especially considering it's installed on a powerful server (128GB RAM, only SSDs [4x U.2 + 3x M.2 NVMe], 10Gbit network, etc.).

Recently, I decided to investigate how to improve speed and responsiveness. I finally found the key parameters for my setup, and now Nextcloud is lightning fast. It's almost unbelievable how quickly it works now - even faster than Windows. I want to share these parameters in case others want to try them out.

Key PHP Parameters for Docker

The most significant improvements came from adjusting the PHP-FPM settings within the Docker container itself:

  • PHP_FPM_PM=dynamic (instead of ondemand)
  • PHP_FPM_MAX_CHILDREN=250 (instead of 50)
  • PHP_FPM_MAX_SERVERS=50
  • PHP_FPM_MIN_SERVERS=30
  • PHP_FPM_START_SERVERS=40
  • PHP_FPM_MAX_REQUEST=750

Additional Optimizations

It's also crucial to optimize other areas:

config.php: Configure Redis server, Memcache, MySQL database, etc.

nginx.conf and php.ini: Ensure these are already optimized for your setup.

Note that the PHP settings mentioned above are for the Docker container itself, not for Nginx.

App Management

Some apps, like occweb, can significantly slow down Nextcloud. I recommend deactivating all apps that you're not actively using.

Conclusion

Nextcloud settings for Unraid are among the most complex of any app, even more so than Unraid itself. However, once properly configured, it performs phenomenally well.

 

After implementing these optimizations, I've seen remarkable improvements in performance:

  • Upload speeds now reach around 600MB/s, fully utilizing my 10Gbit internet connection.
  • The overall responsiveness of the Nextcloud interface has significantly improved, lightning fast after klick everyhting opens within ms (far less than a second)

I hope this information helps. If you already knew these optimizations, that's great. Feel free to share any better settings that could yield even better results!

 

image.thumb.png.f45e9bc9e428b9cd4be4f45e3f29bda2.png

Edited by Herkul

1 hour ago, Herkul said:

The most significant improvements came from adjusting the PHP-FPM settings within the Docker container itself:

I tried it myself, and yes this makes a difference.

 

Thanks.

Thank you. The parameter values we initially used were just a first suggestion from ChatGPT based on my setup, and they weren't guaranteed to be optimal. We agreed to start with these values and increase them if necessary, but in my case, they worked perfectly. Your optimal values may differ depending on your specific setup.

During workloads, I recommend monitoring your memory consumption. If it's not too high, you can try increasing the values further. The default values were surprisingly small, and I'm not sure why they were set so low.

Feel free to experiment and find the best configuration for your system!

  • 4 weeks later...

29.0.7 
 

Dear all, 
For some time now, no files have been displayed in the browser under “apps/files/files” (All files), only the current circle appears. Since today's update, however, this is also the case under “/personal” (personal files). 

Under “/recent”, “/shareoverview”, “/tags” everything is still displayed correctly. 

I have already carried out every conceivable file operation and maintenance operation. But this does not bring any changes. 

Everything works perfectly in the app on the smartphone. 

Do you have the same problem? 

image.png.cfa6e816035615f7fa1b343c6fb823c8.png

 

 

On 7/2/2024 at 7:37 PM, Eddie_B said:

I have run into an interesting problem. For reasons I can no longer remember, I had my nextcloud stuck to version 27.1.4-ls289 and I'm trying to upgrade it now.

When I tried to change my repository to :latest, that didn't work due to being 2 versions behind. So, I attempted to change it to both 28.0.0-ls290 and 28.0.4-ls315 and got an error on the upgrade.

Initializing nextcloud 28.0.0.11 (this can take a while) ...
Upgrading nextcloud from 27.1.4.1 ...
Setting permissions
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Turned on maintenance mode
Updating database schema
Exception: Database error when running migration 28000Date20231103104802 for app core
An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1932 Table 'nextcloud.oc_files_versions' doesn't exist in engine
Update failed
Maintenance mode is kept active
Resetting log level
Initializing finished
**** The following site-confs have extensions other than .conf ****
**** This may be due to user customization. ****
**** You should review the files and rename them to use the .conf extension or remove them. ****
**** nginx.conf will only include site-confs with the .conf extension. ****
/config/nginx/site-confs/default.conf.bak
[custom-init] No custom files found, skipping...
[ls.io-init] done.

 

I checked the database, and the oc_files_versions table is actually in the database, so I have no idea why it's failing due to this table not existing.

Hey did you ever get this resolved?

Hey guys,

 

I just updated to the latest and encountering this issue. Does anyone know how to fix this please?

 

Updating database schema
Exception: Database error when running migration 28000Date20240828142927 for app core
An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1932 Table 'sarahbusinessnextcloud.oc_jobs' doesn't exist in engine
Update failed
Maintenance mode is kept active

Can someone please look in there database and see if what you guys have under oc_jobs please? I don't know how to fix this issue and would like to see if someone can see what keys they have under the oc_jobs please. Any help would be greatly appreciated.

 

image.thumb.png.b1c951c4685336c73bd74239ce463c68.png

 

jobs.thumb.PNG.ad4cc8676d65d5d0bfed0c17d3135f92.PNG

 

 

Maybe you can recreate this with:

occ recognize:recrawl

 

 

Edited by Archonw

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.