[Support] Linuxserver.io - Nextcloud


4844 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.8k
  • 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

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

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.