[Support] Linuxserver.io - Nextcloud


4934 posts in this topic Last Reply

Recommended Posts

On 4/29/2021 at 1:23 PM, skois said:


I have this in my config.php , and i'm getting mp4 previews.

Btw if you want to have thumbnails on new uploads, you need to add a cronjob generating them.

https://github.com/rullzer/previewgenerator#how-does-the-app-work
 


  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\Image',
    1 => 'OC\\Preview\\MP3',
    2 => 'OC\\Preview\\TXT',
    3 => 'OC\\Preview\\PDF',
    4 => 'OC\\Preview\\Movie',
    5 => 'OC\\Preview\\Photoshop',
    6 => 'OC\\Preview\\TIFF',
    7 => 'OC\\Preview\\SVG',
    8 => 'OC\\Preview\\OpenDocument',
  ),

 

 

That worked! Thank you! 

Link to post
  • Replies 4.9k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Application Name: Nextcloud Application Site: https://nextcloud.com/ Docker Hub: https://hub.docker.com/r/linuxserver/nextcloud/ Github: https://github.com/linuxserver/docker-nextcl

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

I replaced these lines in the '/mnt/cache/appdata/nextcloud/nginx/site-confs/default' file. (Adjust path to your appdata path, if it's different)   location = /.well-known/carddav { return

Posted Images

Hello,

 

using this container, i am having trouble when logging via a browser.

 

Am i the only one ?

 

My trouble is a loop originating-ending on the password-user skipping all 2FA options i am using.

 

The only workaround is to reboot unraid. Start-stop-restart of docker are useless.

 

Using nextcloud , proxy_manager_nginx , redis.

And, of courses, no logs usefull...

 

 

Link to post
Posted (edited)

My php error file reports this error:

WARNING: [pool www] server reached pm.max_children setting (5), consider rasing it

Can that be the cause of the slowness I experience?
If so, how do I change it?

Edited by Mihle
Link to post
Posted (edited)

Can someone explain why this container is all the sudden constantly writing log files to my array data share /mnt/user/Nextcloud/ even though the share is set to "yes" use cache pool?  I have the container configured to use /mnt/user/appdata/nextcloud for everything config related, but I'm finding all kinds of appdata/config related files on the data share.  

 

This has just started in the past few months (keeps my disk 9 and parity always spun up).

Edited by RodWorks
Link to post
Posted (edited)
On 5/4/2021 at 8:41 PM, Mihle said:

My php error file reports this error:






WARNING: [pool www] server reached pm.max_children setting (5), consider rasing it

Can that be the cause of the slowness I experience?
If so, how do I change it?

 

Try adding 'pm.max_children = 120' in the 'www2.conf' file. It is possible that this should go in the 'php-fpm.conf' file instead but i'm not sure.

 

--------------

 

Can anyone confirm better performance when the /data path is located on an SSD ?

 

I love the multiple pool feature that came with the latest unraid update and want to reconfigure my server. We use nextcloud to sync all our devices and it works great but browsing images is somewhat slow.

I have a second unraid server running for backups but the remaining sata-ports are sata2 and i dont have spare ssd's laying auroud. A quick test with /data located on the cache-drive showed some improvement (i think) but I would like some more feedback before i buy two 1TB SSD's.

Edited by Aran
Link to post
1 hour ago, RodWorks said:

Can someone explain why this container is all the sudden constantly writing log files to my array data share /mnt/user/Nextcloud/ even though the share is set to "yes" use cache pool?  I have the container configured to use /mnt/user/appdata/nextcloud for everything config related, but I'm finding all kinds of appdata/config related files on the data share.  

 

This has just started in the past few months (keeps my disk 9 and parity always spun up).

Even if you use cache: yes, the files will be moved to the array.

What exactly is it that is written in your /data mount that you mean should go in /config?

 

The more info you provide, the easier it is to help. And also post the docker run command.

Link to post
Posted (edited)
4 hours ago, saarg said:

Even if you use cache: yes, the files will be moved to the array.

What exactly is it that is written in your /data mount that you mean should go in /config?

 

The more info you provide, the easier it is to help. And also post the docker run command.

I realize this, but only when the mover runs correct? There's a nextcloud.log inside the data folder that's being written to constantly which seems to be the issue.

 

The finder screenshot is what's inside the data share of Nextcloud.  You can see the .log file there along with appdata files.

 

 

Screen Shot 2021-05-06 at 1.55.33 PM.png

Screen Shot 2021-05-06 at 4.39.41 PM.png

Edited by RodWorks
Link to post

Looks like i have the same problem:

 

nextcloudlog.jpg

 

I deleted the nextcloud.log (+5MB) file yesterday and my disks went idle. Today a new log file popped up in the data share. The info inside the log-file is about 'mail, smtp settings error'. I forgot to copy before i deleted the file...

Link to post
Posted (edited)
On 5/6/2021 at 5:22 PM, Aran said:

 

Try adding 'pm.max_children = 120' in the 'www2.conf' file. It is possible that this should go in the 'php-fpm.conf' file instead but i'm not sure.

 

Thanks, seem to have worked, now I am getting this error instead tho:
image.thumb.png.f61e2e06dd740ae6e7d60869fadea719.png

 

And the speed issues that started after updating to Nextcloud 21 is still there, aka slow switching between menus of nextcloud itself, like dashboard, files, or going to settings, is so much slower than before I updated to 21. (from 20)

I think it might be related to NC 21 pinging the CPU much harder for some reason?

EDIT: after some googeling and changing min max spare and start servers, the numbers are only getting larger??image.thumb.png.352db3217a4d3b64cea2f5bc7db6fbe7.png
And its only me that access the server and this is only happening when I access next cloud via web, does not happen if I do it via app.

EDIT: I think I found part of the slowness issue....
For some reason I tried to test in private browsing, there it was fast as it was in NC 20.
So I thought, thats weird, so I deleted cookies related to nextcloud and my site, and changed nothing.
Then I tried disabeling one and one browser plugin, and it got fixed.
You know what plugin caused it? Dark Reader. A plugin that is only supposed to make sites darker.

Why would it cause that, both the slowness and excess PHP children on my NC server? (yes, the errors is gone)


EDIT: the PHP error still happens but site is much faster.

Edited by Mihle
Link to post
17 hours ago, Aran said:

Looks like i have the same problem:

 

nextcloudlog.jpg

 

I deleted the nextcloud.log (+5MB) file yesterday and my disks went idle. Today a new log file popped up in the data share. The info inside the log-file is about 'mail, smtp settings error'. I forgot to copy before i deleted the file...

 

I just want to understand how Nextcloud can write directly to a share that is set to write to a cache drive first....

Link to post
 
I just want to understand how Nextcloud can write directly to a share that is set to write to a cache drive first....
New files will go to cache, not existing

Sent from my Mi 10 Pro using Tapatalk

Link to post
Posted (edited)
3 minutes ago, skois said:

New files will go to cache, not existing emoji4.png

Sent from my Mi 10 Pro using Tapatalk
 

Not on my Nextcloud data share, keeps one of my drives and parity spun up 24/7 even though mover only runs at 0200.  Nextcloud.log updates every minute.  If I stop the container the drives spin down normally.

Edited by RodWorks
Link to post
Not on my Nextcloud data share, keeps one of my drives and parity spun up 24/7 even though mover only runs at 0200.  Nextcloud.log updates every minute.  If I stop the container the drives spin down normally.
The nextcloud.log is existing file so after its moved one time in the array it stays there.
Updates on files don't move them to cache.

If you delete the file, the new one will be created automatically and will be on cache. Until mover is run again

Sent from my Mi 10 Pro using Tapatalk

Link to post
1 minute ago, skois said:

The nextcloud.log is existing file so after its moved one time in the array it stays there.
Updates on files don't move them to cache.

If you delete the file, the new one will be created automatically and will be on cache. Until mover is run again

Sent from my Mi 10 Pro using Tapatalk
 

Ok, I guess that makes sense.  What's a solution to this issue?  Why doesn't Nextcloud write logs to the appdata share?

Link to post
Ok, I guess that makes sense.  What's a solution to this issue?  Why doesn't Nextcloud write logs to the appdata share?
Well, nextcloud is not aware if you run the docker in unraid or how you have setup your cache and disks.
Solution would be to have nextcloud share to prefer cache, that means files will stay in cache until is full.

With this you loose parity.

Or just fix the installation to not produce errors, not writing to log would be very rare.


Sent from my Mi 10 Pro using Tapatalk

Link to post
3 minutes ago, skois said:

Well, nextcloud is not aware if you run the docker in unraid or how you have setup your cache and disks.
Solution would be to have nextcloud share to prefer cache, that means files will stay in cache until is full.

With this you loose parity.

Or just fix the installation to not produce errors, not writing to log would be very rare.


Sent from my Mi 10 Pro using Tapatalk
 

Ok, prefer is not an option..  I'll see if I can sort the errors out, otherwise it's gotta go.

Link to post
Posted (edited)
20 minutes ago, skois said:

Well, nextcloud is not aware if you run the docker in unraid or how you have setup your cache and disks.
Solution would be to have nextcloud share to prefer cache, that means files will stay in cache until is full.

With this you loose parity.

Or just fix the installation to not produce errors, not writing to log would be very rare.


Sent from my Mi 10 Pro using Tapatalk
 

 

This is what's getting written to the log repeatedly.

 

,"message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead."

Edited by RodWorks
Link to post
6 hours ago, RodWorks said:

 

This is what's getting written to the log repeatedly.

 

,"message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead."

You seem to have log level too high and it's logging too much info that is meant for debug.
On the link you can see how to change that. And there is also info on how to change the location of the log file.

But remember where you set it to be, because in the future if you have another problem and someone asks for the logs, you have to know where it is :)
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/logging_configuration.html

Link to post
On 5/6/2021 at 7:56 PM, RodWorks said:

I realize this, but only when the mover runs correct? There's a nextcloud.log inside the data folder that's being written to constantly which seems to be the issue.

 

The finder screenshot is what's inside the data share of Nextcloud.  You can see the .log file there along with appdata files.

 

 

Screen Shot 2021-05-06 at 1.55.33 PM.png

Screen Shot 2021-05-06 at 4.39.41 PM.png

That is the default path for the log file. The firs hit on Google tells you how you can change the path.

Link to post

Hey All,

    I had an issue with being able to see any apps within the nextcloud admin pages. I know this isn't likely a Linuxserver issue, rather a nextcloud/reverse-proxy/certificate issue, but I wanted to ask those far more talented than I for some guidance. 

 

I have had an issue seeing any apps within the apps page. there are a few apps that I believe are the preinstalled apps. I don't see anything wrong within the docker log but within nextcloud logs I see a common error (included below). I should also mention that the issue started long before I setup the reverse proxy but with all the google searches I have done, It seems to be looking for a certificate or file detailing the certificates.

 

Just not sure what to do to resolve. But if you need any other information or want me to try any tests I'm happy to attempt.

 

 

 

WarningappstoreFetcherGuzzleHttp\Exception\RequestException: cURL error 77: error setting certificate verify locations: CAfile: /data/files_external/rootcerts.crt CApath: none (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) {added by AERODB, looking here didnt help}

/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php - line 155:

GuzzleHttp\Handler\CurlFactory::createRejection()

/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php - line 105:

GuzzleHttp\Handler\CurlFactory::finishError()

/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php - line 43:

GuzzleHttp\Handler\CurlFactory::finish()

/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php - line 28:

GuzzleHttp\Handler\CurlHandler->__invoke()

/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php - line 51:

GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}("*** sensiti ... *")

/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php - line 37:

GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}("*** sensiti ... *")

/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php - line 29:

GuzzleHttp\PrepareBodyMiddleware->__invoke()

/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php - line 70:

GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensiti ... *")

/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php - line 59:

GuzzleHttp\RedirectMiddleware->__invoke()

/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php - line 71:

GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensiti ... *")

/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 361:

GuzzleHttp\HandlerStack->__invoke()

/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 163:

GuzzleHttp\Client->transfer()

/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 183:

GuzzleHttp\Client->requestAsync()

/config/www/nextcloud/lib/private/Http/Client/Client.php - line 233:

GuzzleHttp\Client->request()

/config/www/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php - line 115:

OC\Http\Client\Client->get()

/config/www/nextcloud/lib/private/App/AppStore/Fetcher/AppFetcher.php - line 88:

OC\App\AppStore\Fetcher\Fetcher->fetch()

/config/www/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php - line 187:

OC\App\AppStore\Fetcher\AppFetcher->fetch()

/config/www/nextcloud/lib/private/Installer.php - line 411:

OC\App\AppStore\Fetcher\Fetcher->get()

/config/www/nextcloud/apps/settings/lib/Controller/AppSettingsController.php - line 256:

OC\Installer->isUpdateAvailable()

<<closure>>

OCA\Settings\Controller\AppSettingsController->OCA\Settings\Controller\{closure}("*** sensiti ... *")

/config/www/nextcloud/apps/settings/lib/Controller/AppSettingsController.php - line 248:

array_map()

/config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 169:

OCA\Settings\Controller\AppSettingsController->listApps()

/config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 100:

OC\AppFramework\Http\Dispatcher->executeController()

/config/www/nextcloud/lib/private/AppFramework/App.php - line 152:

OC\AppFramework\Http\Dispatcher->dispatch()

/config/www/nextcloud/lib/private/Route/Router.php - line 309:

OC\AppFramework\App::main()

/config/www/nextcloud/lib/base.php - line 1008:

OC\Route\Router->match()

/config/www/nextcloud/index.php - line 37:

OC::handleRequest()

Link to post

I don't think you still have this problem anymore right? 
I had the same problem about 3-4 weeks ago. There was a problem with nextcloud app store servers (IIRC). I haven't seen that error for some time now. 

So if you don't have any problems now, you can ignore it

Link to post
10 hours ago, skois said:

I don't think you still have this problem anymore right? 
I had the same problem about 3-4 weeks ago. There was a problem with nextcloud app store servers (IIRC). I haven't seen that error for some time now. 

So if you don't have any problems now, you can ignore it

Yes actually. Still having the same issue. The provided log is from today. 

Link to post

Hey guys & gals im back lol with a few minor issues lol. I ended up deleting the nextcloud docker and mariandb and reinstalling everything. Solved my issues with updating and what not hopefully. Now my issue is downloading larger files. Once it reaches 367 mb of a file it says network error. Please help tia

Link to post
4 hours ago, Aerodb said:

Yes actually. Still having the same issue. The provided log is from today. 

From a fast google search in github issues of nextcloud, they say that it should be fixed on the latests updates. If you are on latest update, try posting a bug report in their github.

Link to post
3 hours ago, akash3230 said:

Hey guys & gals im back lol with a few minor issues lol. I ended up deleting the nextcloud docker and mariandb and reinstalling everything. Solved my issues with updating and what not hopefully. Now my issue is downloading larger files. Once it reaches 367 mb of a file it says network error. Please help tia

Probably this -> 
https://www.reddit.com/r/NextCloud/comments/ayhlji/unable_to_download_files_larger_than_1gb/

 

Link to post

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.