[Support] Linuxserver.io - Nextcloud


Recommended Posts

i had some issues with internal server error after the update aswell. It turned out that my Redis docker had gotten another IP and therefore nextcloud could not connect. The weird thing was that i didnt see any logs regarding this. For you who still have an issue after trying the workarounds on 204 might want to recheck your config file so it still reflects reality.
Needless to say my important containers now have fixed ip adresses

Link to comment
On 9/26/2021 at 4:59 PM, skois said:

Update instructions is on the 1st post of this thread.
And no, updating docker, won't overwrite your updated nextcloud.

Nextcloud's server runtime files are stored in the appdata folder

Sent from my Mi 10 Pro using Tapatalk
 

Thank you for your help, I succeeded in updating. I guess it must be kind of annoying for you, but I really did not expect instructions this clear about updating in the first post. Anyway, I have learned a valuable lesson, I will look better for this kind of instructions next time. Thank you!

 

  • Like 1
Link to comment
On 9/20/2021 at 4:00 PM, Eddie_B said:

I have previously set up both Nextcloud and Collabora on my personal Unraid server and it has been cranking along fine for quite some time. Recently my boss discovered Nextcloud and wanted it. We initially had it running on a Synology but between the limited resources on the Syno and some behind the scenes networking stuff, we made the move to Unraid.

 

I was able to successfully move the database and all of the data over to our Unraid server and get it back up and running. Since I had not set Collabora up on the Synology, we were running without it on Unraid. I installed the Collabora docker, followed all of the same steps that I used on my personal server and I have been having all kinds of difficulty with it.

 

When I try to enter the collabora address into the settings for Collabora Online in Nextcloud, it tells me that it could not establish a connection to the server. Looking at the nextcloud.log file, I found an error referring to the SSL certificate saying that it is a self signed certificate. Seeing as how I have both Nextcloud and Collabora sitting behind SWAG, this error doesn't make much sense to me, but I admit to not being an expert on this.

 

I can access the Collabora admin page, and it does show that it is a secure connection verfied by LetsEncrypt.

 

Anyone got any ideas here?

Link to comment
On 9/24/2021 at 12:33 AM, NeoSys said:

Hi You All!!

 

Need some guidance here because I am stumped!! I am trying to do just a basic local network install nothing fancy like reverse proxy. I followed SpacedInvaders tutorial and I am super confused have tried everything and I just can not get it to work.

 

In NextCloud it says

With a green icon.

 

But when I try to open or create a document it times out and says

 

I am pretty sure the problem is in the docker setup of the domain pic below:

colabora.thumb.jpg.41629cbb13126f73e76c1f91f02e2c74.jpg

 

This is internal and I did change the user and pass to show here before anybody says something lol

 

Now my nextcloud install is at

 

I asume the way I have it is wrong so what do I put in Container Variable: domain

 

thanks any help is as always really really appreciated.

 

Vic

Hey guys any help?

Link to comment
Quote

Error: Array to string conversion at /config/www/nextcloud/lib/private/L10N/L10NString.php#79

<<closure>>

OC\Log\ErrorHandler::onError()

/config/www/nextcloud/lib/private/L10N/L10NString.php - line 79:

vsprintf()

/config/www/nextcloud/lib/private/L10N/L10N.php - line 110:

OC\L10N\L10NString->__toString()

/config/www/nextcloud/lib/private/L10N/LazyL10N.php - line 53:

OC\L10N\L10N->t()

/config/www/nextcloud/apps/updatenotification/lib/Notification/Notifier.php - line 145:

OC\L10N\LazyL10N->t()

/config/www/nextcloud/lib/private/Notification/Manager.php - line 299:

OCA\UpdateNotification\Notification\Notifier->prepare()

/config/www/nextcloud/apps/notifications/lib/Controller/EndpointController.php - line 106:

OC\Notification\Manager->prepare()

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

OCA\Notifications\Controller\EndpointController->listNotifications()

/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/ocs/v1.php - line 88:

OC\Route\Router->match()

/config/www/nextcloud/ocs/v2.php - line 24:

require_once("/config/www ... p")

I'm wondering what all this means? It pops up in logging every 30 seconds.

Link to comment

Hey Guys, I’m looking for a solution to what I assume is a strange use case and I can’t quite think of a search term to explain it easily so here I am with the long winded version so see if anyway can put me on the right path.

 

I’ve just setup next cloud and have my admin user setup, NextCloud will only ever be used with this with this single account. What I want to do is have only 2 folders, both of which are shares live in a dedicated pool called cloud.

 

I want these folders to be both accessible via SMB and via NextCloud so I have my folders mapped as such

  • /config > /mnt/cache/appdata/nextcloud
  • /data > /mnt/cache/appdata/nextcloud/data
  • /data/singleuser/files > /mnt/cloud

This is working great except I want the ability to modify files both from NextCloud and on the FileSystem but NextCloud doesn’t see the files if they’re moved into the folder via SMB because they’re not being synced, does anyone know of a way to have files automatically sync into NextCloud if they’re dumped into the users file folder?

I’m not against running another Docker App to handle the syncing but I would assume syncing the files at they’re current location would cause some issues.

Anyone have any ideas on how to achieve this?

 

Thanks in advance.

Link to comment

Hello guys! thanks for all your work to make possible Nextcloud in Unraid.

 

I want to ask you some questions. But let me first explain you what happened to me.

 

I have a server running nextcloud in a docker container. It has an ssd as cache drive that holds the Nextcloud folder where all the files are stored before being moved to the array (my first mistake). Just to justify this, I was trying to speed up data transmissions but, since all the clients accessing this server are over the internet, it makes not much of a difference. And, in this case, was a disadvantage.

 

The thing is that I changed the server, and moved the drives to another one, started the array, but, to my bad luck the parity disk failed and I had to replace it. So I was distracted and never realized that the cache one was not recognized by Unraid (second mistake), and, despite of that, the array started normally and Nextcloud and MariaDB (which run from the cache drive) started as well. (it should be at least a flag there if the cache drives are missing when starting the array).

So when I loggid into nextcloud's webUI, It was asking me to configure the database. So I panicked and the best solution I could come up was to restore my appdata backup but it was 6 days old (third mistake). Then started Nextcloud again and it went "well". I could log on and all the users were being recognized but I wasn't aware that there were misstakes going on. 

Next day in the morning users were complaining that all their Nextcloud folders were missing files from last week.

So, the worst of all (like it hadn't been enough already) was that, due to the outdated database, Nextcloud deleted the newer files and those who had changes where an endless list of problems in the user application: checksum errors, sync errors, to mention some. Why did Nextcloud did this instead of asking the user to keep or delete those files?

 

I was really stressed. And I hope it does not happen to any of you guys.

So, I would like to understand deeper how Nextcloud + MariaDB work, because I thought that the database was only storing user names and passwords, but, as you have seen it is not. What else is stored in that database that needs to be handled carefully? 

 

Dos any of you have a good knowledge about how Nextcloud works internally In order to troubleshoot it better and faster?

And it is quite a topic, what to do and how to properly have Nextcloud backed up and maintained so data loss won't happen.

If there is here an advice on the best practices of how to proceed in case of critical hardware failure, I am open to suggestions and I hope that you can learn from my mistakes.

Here is what I've learned so far:

1.- Dont Use a Cache Drive for Nextcloud, at least from users that rely on it remotely.
2.- Backup MariaDB daily If more than once every day, much better.

3.- Every time the array starts, to check if all the cache pools and drives are working correctly.

4.- Don't jump fast into restoring backups, the right files could still be there... hidden.

 

Thanks in advance.

 

Cheers.
 

Link to comment
16 hours ago, rojarrolla said:

So, I would like to understand deeper how Nextcloud + MariaDB work, because I thought that the database was only storing user names and passwords, but, as you have seen it is not. What else is stored in that database that needs to be handled carefully? 

Database stores EVERYTHING, except the binaries (files like mp3, jpeg, docx and any other type).
 

Link to comment
17 hours ago, Trozmagon said:

Hey Guys, I’m looking for a solution to what I assume is a strange use case and I can’t quite think of a search term to explain it easily so here I am with the long winded version so see if anyway can put me on the right path.

 

I’ve just setup next cloud and have my admin user setup, NextCloud will only ever be used with this with this single account. What I want to do is have only 2 folders, both of which are shares live in a dedicated pool called cloud.

 

I want these folders to be both accessible via SMB and via NextCloud so I have my folders mapped as such

  • /config > /mnt/cache/appdata/nextcloud
  • /data > /mnt/cache/appdata/nextcloud/data
  • /data/singleuser/files > /mnt/cloud

This is working great except I want the ability to modify files both from NextCloud and on the FileSystem but NextCloud doesn’t see the files if they’re moved into the folder via SMB because they’re not being synced, does anyone know of a way to have files automatically sync into NextCloud if they’re dumped into the users file folder?

I’m not against running another Docker App to handle the syncing but I would assume syncing the files at they’re current location would cause some issues.

Anyone have any ideas on how to achieve this?

 

Thanks in advance.

You best bet would be mounting the share are external storage (check appstore).

* Delete the /data/singleuser/files > /mnt/cloud bind.
* Mount the `/mnt/cloud` share as external storage in nextcloud with the external storage app.
* Just remember  it will show as a folder in your root folder in nextcloud. So you need to add/edit/remove files only inside this folder.
 All other files in the root dir of nextcloud user profile will be stored in /data > /mnt/cache/appdata/nextcloud/data

Also, you might notice some performance loss, and you need a bit of extra config for some apps to not ignore this folder. (e.g. Preview Generator)

Link to comment
3 hours ago, skois said:

You best bet would be mounting the share are external storage (check appstore).

* Delete the /data/singleuser/files > /mnt/cloud bind.
* Mount the `/mnt/cloud` share as external storage in nextcloud with the external storage app.
* Just remember  it will show as a folder in your root folder in nextcloud. So you need to add/edit/remove files only inside this folder.
 All other files in the root dir of nextcloud user profile will be stored in /data > /mnt/cache/appdata/nextcloud/data

Also, you might notice some performance loss, and you need a bit of extra config for some apps to not ignore this folder. (e.g. Preview Generator)

Mate this is almost perfect, thanks!

It is a little slow to notify clients that there's something to sync so I'm hoping there's some tweaks I can make here to speed it up.

 

Thanks Mate :).

Link to comment
Mate this is almost perfect, thanks!

It is a little slow to notify clients that there's something to sync so I'm hoping there's some tweaks I can make here to speed it up.
 
Thanks Mate :).
I don't know if there is any tweaks. But there are a lot of layers, so delay will be there..

Sent from my Mi 10 Pro using Tapatalk

Link to comment
20 minutes ago, skois said:

I don't know if there is any tweaks. But there are a lot of layers, so delay will be there..

Sent from my Mi 10 Pro using Tapatalk
 

Ahhhh I just found it's not slow like I thought, it hit a DB Exception and stopped syncing.

  • Like 1
Link to comment
On 9/20/2021 at 4:00 PM, Eddie_B said:

I have previously set up both Nextcloud and Collabora on my personal Unraid server and it has been cranking along fine for quite some time. Recently my boss discovered Nextcloud and wanted it. We initially had it running on a Synology but between the limited resources on the Syno and some behind the scenes networking stuff, we made the move to Unraid.

 

I was able to successfully move the database and all of the data over to our Unraid server and get it back up and running. Since I had not set Collabora up on the Synology, we were running without it on Unraid. I installed the Collabora docker, followed all of the same steps that I used on my personal server and I have been having all kinds of difficulty with it.

 

When I try to enter the collabora address into the settings for Collabora Online in Nextcloud, it tells me that it could not establish a connection to the server. Looking at the nextcloud.log file, I found an error referring to the SSL certificate saying that it is a self signed certificate. Seeing as how I have both Nextcloud and Collabora sitting behind SWAG, this error doesn't make much sense to me, but I admit to not being an expert on this.

 

I can access the Collabora admin page, and it does show that it is a secure connection verfied by LetsEncrypt.

I have attempted to wipe out Nextcloud and start over from scratch with it, but I am still running into the same issue. The collabora admin page, collabora root level page, hosting/discovery, and hosting/capabilities pages are all visible but every time I try to configure the app, I get the "Could not establish connection to the Collabora Online server." message.

Link to comment

Hey guys, I need some help.

 

I recently lost my cache drive and had to restore docker.img and appdata from a backup (tried the two backups I have). Since then nextcloud won't work anymore.

 

The container loads fine:

Quote

...
[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[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] 70-aliases: executing...
[cont-init.d] 70-aliases: exited 0.
[cont-init.d] 90-custom-folders: executing...
[cont-init.d] 90-custom-folders: exited 0.
[cont-init.d] 99-custom-files: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

 

But when accessing nextcloud all I get is Error 504: Gateway timed out.

 

/log/nginx/error.log says this:

Quote

2021/10/04 08:44:33 [error] 407#407: *28 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Class 'OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin' not found in /config/www/nextcloud/remote.php:61
Stack trace:
#0 /config/www/nextcloud/remote.php(169): handleException()
#1 {main}
  thrown in /config/www/nextcloud/remote.php on line 61" while reading response header from upstream, client: 10.8.0.1, server: _, request: "PROPFIND /remote.php/dav/principals/users/[redacted]/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host:"[redacted}"

 

Any pointers how to fix this?

Link to comment
On 9/2/2021 at 11:48 PM, thomas said:

@linuxserver.io

Lately I have some CVE attacks on my Unraid due to Nextcloud container using nginx v1.18.0. The attacks are being blocked by Netgear Armor (Bitdefender) and I only receive a notification that it was blocked and it says there is a vulnerability due to nginx v1.18.0.

 

Is there a way to update nginx to a newer/secure version?

 

Thanks

Screenshot from 2021-09-02 17-46-31.png

 

Our nextcloud container use version 1.20.1 of nginx, so update your container. If its updated, it's not our nextcloud container that is the issue.

 

Edited by saarg
  • Like 1
Link to comment

Just curious if anyone has moved to NextCloud 22?  I noticed current rev is 22.2 (running 21.0.5 here) and wondering if moving to 22 is a technology challenge (requiring a manual install) or simply a channel release thing?  Thanks!

Edited by talmania
more info
Link to comment
11 hours ago, jesta said:

Hey guys, I need some help.

 

I recently lost my cache drive and had to restore docker.img and appdata from a backup (tried the two backups I have). Since then nextcloud won't work anymore.

 

The container loads fine:

 

But when accessing nextcloud all I get is Error 504: Gateway timed out.

 

/log/nginx/error.log says this:

 

Any pointers how to fix this?

 

I will tell you what I know. Maybe it will give you some information. Something similar happened to me, I lost my cache drive too and restored the .img file from the CA Backup/Restore. But, mine was 6 days old.

 

My Nextcloud worked after restoring, however, files stored in the cache drive, were not passed on to the array. I could recover them, but, when the user was running the nextcloud client from her computer, she got a lot of synching errors. So I had to erase and upload again everything. 

My best advice is to backup realtime or at least daily the Database (I use MariaDB), The containers and synch the files to another NAS.

 

I hope this helps you at least something.
 

Link to comment

Hey guys,

I was thinking about upgrading my postgres database to version 14. But since the upgrade process is kind of complicated I thought I can simply convert my exiting database to the new postgres 14 database, like I did when I switched from mariadb to postgres.

 

I have nextcloud running in an docker container in unraid and I am using the following command to convert the database:
occ db:convert-type --all-apps --port 55432 --clear-schema pgsql nextcloud 10.10.42.42 nextclouddb

 

But then I receive the following error message:
In ConvertType.php line 149:
                                        
  Can not convert from pgsql to pgsql. 

 

 

I already received the information from reddit I need the pg_dump and pg_restore commands here to simply backup the existing database and restore it to the new one.

 

Unfortunately I wasn't lucky to find a instruction on how to do it on unraid. I am not a professional so I have trouble figuring it out by myself/Google.

Has someone already switched from postgres 13.4 to 14 on unraid and can tell me the commands and where to type them in to update my postgres database?

Link to comment

PSA: Not sure if anyone tried to the new Collabora Code(6.4.13.1) released 17 hours ago but it wouldn’t work for me on NC 22.1.1(I need to upgrade to 22.2.0). I downgraded Collabora to collabora/code:6.4.11.3 and immediately had success loading documents 😬🤨

Edited by blaine07
Link to comment
On 1/10/2020 at 8:18 AM, Diggewuff said:

 

When Syncing data to these mapped shares via Web DAV, or when I'm creating a folder via Web GUI,

permissions of created folders are not 777 (drwxrwxrwx) but 755 (drwxr-xr-x).

Permissions of a txt file created via Web GUI are 644 (-rw-r--r--) and not 666 (-rw-rw-rw-) as expected for Unraid. 

 

Is there any option to set the propper UMASK to make Nextcloud respect Unraid's permission scheme?

Was this ever fixed? I also have created by nextcloud - (linuxserver) showing 755 folders and 644 for files.

Is there an option that is opposite to UMASK to make the files 666 and folders 777?

Link to comment

Hello guys, I just updated to 22.2.0 from 21.x.x a few days ago.

I noticed that my disks won't spin down after the update,

and I can see that nextcloud.log file are constantly open and modify in the File Activity plugin.

I tried to change background jobs setting in the administration of nextcloud from cron to ajax, don't know if it works, but it always change back to cron after a few minutes.

Edited by vinckcent
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.