[Support] Linuxserver.io - Nextcloud


Recommended Posts

On 7/4/2022 at 7:57 PM, Ccheese4 said:

Not yet. I’ve found a couple other sources stating how to reset the database password, but I’m still not sure if that puts my existing data at risk. I’m not 100% sure what the relationship between Nextcloud and MariaDB is, just that everyone says to use MariaDB to make Nextcloud run better. 

I see that you can view you username and password for mariadb in config.php in Nextcloud.
Open console for the socker and type nano config/www/nextcloud/config/config.php

there you find dbuser and dbpassword. there is a picture in this article: https://flemmingss.com/create-a-global-default-folder-for-incoming-shares-in-nextcloud/

 

Link to comment

I made a new installation of nextcloud with mariaDB following the youtube video of Spaceinvader One. Everything works fine but it's really slow. It takes 12-15 seconds to go from the home to the files or photos tab. I tried to disable all the apps too but it doesn't change much and when I try to re-enable any app I get: Error: this application cannot be enabled because it makes the server unstable what can I do?

Link to comment

Hello, I have recently installed NextCloud.  I am getting the following error on the /settings/admin/overview page: "The "Strict-Transport-Security" HTTP header is not set to at least "15552000" seconds. For enhanced security, it is recommended to enable HSTS as described in the security tips."  For Unraid, I understand this typically means editing swag/nginx settings.  However, I am instead running a Kemp Load balancer in an esxi instance on a separate machine.  The Kemp as I understand it also acts as a reverse proxy.  My Nextcloud is on my domain which faces the internet.  Anyone have experience with this setup?  Thanks.

Link to comment
13 hours ago, diehardbattery said:

Hello, I have recently installed NextCloud.  I am getting the following error on the /settings/admin/overview page: "The "Strict-Transport-Security" HTTP header is not set to at least "15552000" seconds. For enhanced security, it is recommended to enable HSTS as described in the security tips."  For Unraid, I understand this typically means editing swag/nginx settings.  However, I am instead running a Kemp Load balancer in an esxi instance on a separate machine.  The Kemp as I understand it also acts as a reverse proxy.  My Nextcloud is on my domain which faces the internet.  Anyone have experience with this setup?  Thanks.

Use notepad++ or your preferred editor and edit ssl.conf.

It is in there. delete the hash in front to activate it. Then refresh your check to hopefully get the tick.

 

Link to comment
On 6/27/2022 at 2:32 AM, Ccheese4 said:

Need some help regarding MariaDB. So I've had my Nextcloud docker running smoothly for a couple years now. I've just realized that I do not have the credentials to the MariaDB root password or the database password saved. It's been a while since I set it all up, so I'm sure I'm fuzzy on the details.

 

1. Is my data in Nextcloud at risk?

2. is it possible to reset these passwords? Does resetting those passwords put my data at risk?

 

 

Thanks,

 

Chris

In the old docker template in unraid, the password was in there. It is now hidden in the new template :(

I think you may find it in config.php in nextcloud.

Else, I think your physical data is safe in the nextcloud directory. It is only the database that is corrupted.

Pretty sure you can rebuild your database from the source files but not on top of that yet.

Link to comment
On 5/6/2022 at 11:11 PM, Kevek79 said:

As far as I know, the short answer is - Yes.

Anyone who has access to the share on the unraid box has access to all that is on this share.

But from within nextcloud, users data should be seperated and their should be no access to another users files.

Also in unraid, you can lock the share down. Make it invisible to smb and restrict access. On;y nextcloud can get to it.

 

  • Upvote 1
Link to comment

Seeking assistance with an issue I've been fighting for several months and several updates of Nextcloud:

 

My Nextcloud container will crash my entire Unraid server ever 1 to 4 days by producing a large number of cron calls that never finish and can't be killed. I've attached a screenshot of the zombie nextcloud cron jobs; sometimes this will grow to hundreds long. This appears to happen randomly; independent of server load or any other factors I can tell.

 

When this happens I can't stop (or kill) the Nextcloud container. Nextcloud is completely unresponsive and some basic Unraid fucntions/shares will fail. The only way to get the system functioning again is to disable Docker and then reboot Unraid.

 

Currently running Nextcloud 24.0.3 but the issue was present in past versions (22, 23). 

Container is up to date linuxserver/nextcloud:24.0.3

Unraid 6.10.3

Screenshot 2022-07-19 172450.png

Link to comment
51 minutes ago, pdxspeedbump said:

Seeking assistance with an issue I've been fighting for several months and several updates of Nextcloud:

 

My Nextcloud container will crash my entire Unraid server ever 1 to 4 days by producing a large number of cron calls that never finish and can't be killed. I've attached a screenshot of the zombie nextcloud cron jobs; sometimes this will grow to hundreds long. This appears to happen randomly; independent of server load or any other factors I can tell.

 

When this happens I can't stop (or kill) the Nextcloud container. Nextcloud is completely unresponsive and some basic Unraid fucntions/shares will fail. The only way to get the system functioning again is to disable Docker and then reboot Unraid.

 

Currently running Nextcloud 24.0.3 but the issue was present in past versions (22, 23). 

Container is up to date linuxserver/nextcloud:24.0.3

Unraid 6.10.3

Screenshot 2022-07-19 172450.png

Can you post cron file it’s referencing? Is their some incorrect syntax in it or something? 
 

Potentially make a new cron.php file and make sure permissions are right? I’d backup old one but don’t think any install specific info is in the file but not positive. 
 

https://github.com/nextcloud/server/blob/master/cron.php

Edited by blaine07
Link to comment
1 minute ago, pdxspeedbump said:

Sure! Cron file attached. Thanks for taking a look.

cron.php 6.11 kB · 0 downloads

Both my instances of cron file show as this FWIW. I’d just shut down NC, rename old cron.php. Make a new one, then set permissions as:

 

D50D9CF0-D13C-4E6C-84C8-E78E1A9AE121.thumb.jpeg.9c9683d819860b3a236267db6ca95631.jpeg

 

then start NC Back and see what happens. Keep old file. I don’t think anything install specific is in it but I’m known to be wrong.. a lot. 

Link to comment

Followed Spaceinvaderone's tut. Have had nextcloud/swag/mariadb up and working for several weeks, but it always seems to break when i have not changed anything. I have reset up twice now. This second time it has been working, but the server recently stop responding.. Looks like Mariadb might be the problem:

 

Getting this in the logs:

 

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing... 
[cont-init.d] 30-config: exited 0.
[cont-init.d] 40-initialise-db: executing... 
[cont-init.d] 40-initialise-db: 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.
UMASK corrected from 022 to 0640 ...
220723 10:12:49 mysqld_safe Logging to '/config/databases/e22dede0bd2c.err'.
220723 10:12:49 mysqld_safe Starting mariadbd daemon with databases from /config/databases

 

when i go look at the error file mention above I get this:

 

220721 20:29:01 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended

220721 20:29:06 mysqld_safe Starting mariadbd daemon with databases from /config/databases

2022-07-21 20:29:06 0 [Note] /usr/bin/mariadbd (mysqld 10.5.16-MariaDB-log) starting as process 338 ...

2022-07-21 20:29:06 0 [Note] InnoDB: Uses event mutexes

2022-07-21 20:29:06 0 [Note] InnoDB: Compressed tables use zlib 1.2.12

2022-07-21 20:29:06 0 [Note] InnoDB: Number of pools: 1

2022-07-21 20:29:06 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions

2022-07-21 20:29:06 0 [Note] InnoDB: Using Linux native AIO

2022-07-21 20:29:06 0 [Note] InnoDB: Initializing buffer pool, total size = 268435456, chunk size = 134217728

2022-07-21 20:29:06 0 [Note] InnoDB: Completed initialization of buffer pool

2022-07-21 20:29:06 0 [Note] InnoDB: 128 rollback segments are active.

2022-07-21 20:29:06 0 [Note] InnoDB: Creating shared tablespace for temporary tables

2022-07-21 20:29:06 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...

2022-07-21 20:29:06 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.

2022-07-21 20:29:06 0 [Note] InnoDB: 10.5.16 started; log sequence number 279823334; transaction id 978966

2022-07-21 20:29:06 0 [Note] Plugin 'FEEDBACK' is disabled.

2022-07-21 20:29:06 0 [Note] InnoDB: Loading buffer pool(s) from /config/databases/ib_buffer_pool

2022-07-21 20:29:06 0 [Note] Server socket created on IP: '::'.

2022-07-21 20:29:06 0 [Note] Reading of all Master_info entries succeeded

2022-07-21 20:29:06 0 [Note] Added new Master_info '' to hash table

2022-07-21 20:29:06 0 [Note] /usr/bin/mariadbd: ready for connections. Version: '10.5.16-MariaDB-log' socket: '/run/mysqld/mysqld.sock' port: 3306 MariaDB Server

2022-07-21 20:29:06 0 [Note] InnoDB: Buffer pool(s) load completed at

220721 20:29:06 2022-07-21 20:30:01 4 [Warning] IP address '172.17.0.1' could not be resolved: Name does not resolve

2022-07-23 9:12:40 0 [Note] /usr/bin/mariadbd (initiated by: unknown): Normal shutdown

2022-07-23 9:12:40 0 [Note] Event Scheduler: Purging the queue. 0 events

2022-07-23 9:12:40 0 [Note] InnoDB: FTS optimize thread exiting.

2022-07-23 9:12:40 0 [Note] InnoDB: Starting shutdown...

2022-07-23 9:12:40 0 [Note] InnoDB: Dumping buffer pool(s) to /config/databases/ib_buffer_pool

2022-07-23 9:12:40 0 [Note] InnoDB: Buffer pool(s) dump completed at 220723 9:12:40

2022-07-23 9:12:41 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"

2022-07-23 9:12:41 0 [Note] InnoDB: Shutdown completed; log sequence number 303410820; transaction id 1086881

2022-07-23 9:12:41 0 [Note] /usr/bin/mariadbd: Shutdown complete

 

HELP? I've tried the "skip-name-resolve" trick in the /etc/my.cnf file but unraid won't let me edit those files, not sure how to do it.

Link to comment

This started happening today.  I tried rolling back to the previous docker image tag.  I cannot see any obvious problem in the nextcloud logs.
 

Quote

-------------------------------------
_ ()
| | ___ _ __
| | / __| | | / \
| | \__ \ | | | () |
|_| |___/ |_| \__/


Brought to you by linuxserver.io
-------------------------------------

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid: 99
User gid: 100
-------------------------------------

cont-init: info: /etc/cont-init.d/10-adduser exited 0
cont-init: info: running /etc/cont-init.d/20-config
cont-init: info: /etc/cont-init.d/20-config exited 0
cont-init: info: running /etc/cont-init.d/30-keygen
using keys found in /config/keys
cont-init: info: /etc/cont-init.d/30-keygen exited 0
cont-init: info: running /etc/cont-init.d/40-config
cont-init: info: /etc/cont-init.d/40-config exited 0
cont-init: info: running /etc/cont-init.d/50-install
cont-init: info: /etc/cont-init.d/50-install exited 0
cont-init: info: running /etc/cont-init.d/60-memcache
cont-init: info: /etc/cont-init.d/60-memcache exited 0
cont-init: info: running /etc/cont-init.d/70-aliases
cont-init: info: /etc/cont-init.d/70-aliases exited 0
cont-init: info: running /etc/cont-init.d/90-custom-folders
cont-init: info: /etc/cont-init.d/90-custom-folders exited 0
cont-init: info: running /etc/cont-init.d/99-custom-files
[custom-init] no custom files found exiting...
cont-init: info: /etc/cont-init.d/99-custom-files exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-mods: starting
s6-rc: info: service init-mods successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun cron (no readiness notification)
services-up: info: copying legacy longrun nginx (no readiness notification)
services-up: info: copying legacy longrun php-fpm (no readiness notification)
s6-rc: info: service legacy-services successfully started
s6-rc: info: service 99-ci-service-check: starting
[ls.io-init] done.
s6-rc: info: service 99-ci-service-check successfully started

 

 

Really at a loss here.  It's been rock solid basically since I originally installed it.  Any thoughts would be appreciated.

Link to comment

Hi all,

 

I am experienceing a massive problem with Nextcloud, which means I have currently lost about 10 years worth of work... so really need some help restoring it.

 

Recently I have had several instances where all the data on my work PC which syncs with Nextcloud vanishes. When I login to Nextclouds GUI and go to deleted files ALL my files are there, saying they were deleted a few hours ago. The last two times I have checked the box for all files and restored them and they came back. This time it shows 6 deleted folders and over 14000 deleted files. I check the box to select all files and when I start the restore after a few seconds it shows an error - "Error while restoring from trashbin" and restores a handful of files but as there are tens of thousands it will take forever to recover these.

 

Obviously I would like to know why Nextcloud keeps deleting my data, but more urgently is how to get my data back as I have been struggling for a week now and really need this back ASAP.

 

image.png.b46320c50350751ff251ce07c9c34c5e.png

 

Thanks and hopefully someone can help.

Link to comment
25 minutes ago, SliMat said:

Hi all,

 

I am experienceing a massive problem with Nextcloud, which means I have currently lost about 10 years worth of work... so really need some help restoring it.

 

Recently I have had several instances where all the data on my work PC which syncs with Nextcloud vanishes. When I login to Nextclouds GUI and go to deleted files ALL my files are there, saying they were deleted a few hours ago. The last two times I have checked the box for all files and restored them and they came back. This time it shows 6 deleted folders and over 14000 deleted files. I check the box to select all files and when I start the restore after a few seconds it shows an error - "Error while restoring from trashbin" and restores a handful of files but as there are tens of thousands it will take forever to recover these.

 

Obviously I would like to know why Nextcloud keeps deleting my data, but more urgently is how to get my data back as I have been struggling for a week now and really need this back ASAP.

 

image.png.b46320c50350751ff251ce07c9c34c5e.png

 

Thanks and hopefully someone can help.

 

This sounds like one of two things:

1. You're using the external storage add-on and its misbehaving 

2. inotify's lost its shit

 

Assuming you dont have a backup, that's your first act - browse your nextcloud share from the unraid console (your mapped directory for /data), then go to 

<yourUser> -> files_trashbin -> files

 

Copy everything out somewhere off the server in case it's your array causing the grief.

 

Once you've confirmed your backups good, then we can worry about the NC side of it.

Link to comment

Thanks @BVD

 

Naively I dont have another backup as I was relying on NextCloud as a form of backup as well as having the ability to access work files when out and about.

 

I have copied these to another share on the server and they are all renamed with .dxxxxxxxxxx at the end. Obviously the files in the trashbin are not in folders... so the destination folder where I have copied these to now has 14000ish files all in one folder - if the fix doesnt work and I need to use these, I dont know if there is a way to regroup them in their original folders? I have tested a couple by opening them in Acrobat and they look OK.

 

Anyway, .../files_trashbin has been copied off the server. Also, in answer to one of your comments I am not using any external storage so have not, knowingly, installed any external storage addon.

 

Thanks

Edited by SliMat
Link to comment
4 hours ago, clay_statue said:

This started happening today.  I tried rolling back to the previous docker image tag.  I cannot see any obvious problem in the nextcloud logs.
 

 

 

Really at a loss here.  It's been rock solid basically since I originally installed it.  Any thoughts would be appreciated.

Did you update to most recent docker tag today? What does it not do; nothing strikingly sticks Out on your log snippet…

 

Link to comment
1 hour ago, SliMat said:

Thanks @BVD

 

Naively I dont have another backup as I was relying on NextCloud as a form of backup as well as having the ability to access work files when out and about.

 

I have copied these to another share on the server and they are all renamed with .dxxxxxxxxxx at the end. Obviously the files in the trashbin are not in folders... so the destination folder where I have copied these to now has 14000ish files all in one folder - if the fix doesnt work and I need to use these, I dont know if there is a way to regroup them in their original folders? I have tested a couple by opening them in Acrobat and they look OK.

 

Anyway, .../files_trashbin has been copied off the server. Also, in answer to one of your comments I am not using any external storage so have not, knowingly, installed any external storage addon.

 

Thanks

 

Before anything further, I'd want to check a couple of the files (rename to proper extension and open in whatever application uses that ext). Are the files indeed safe and accessible?

 

Whatever it takes, make another copy of the data once that's confirmed - whether it's a usb thumb drive, heck even an old blank dvd if it comes to it.... just something *OFF* the array in case its eventually found to be the cause.

 

Once you have a safe, secondary, non-array dependent (an unassigned drive would technically be alright, as long as it's not something related to memory/segfaults), then we should start looking at the /var/log messages for the host, spot check a couple file's ACLs to make sure they've not gotten bent out of shape, and compare the host logs with nextcloud and (whatever you're using for RDBMS - maria/mysql/postgres).

Edited by BVD
Didnt sleep last night, so apparently I cant read lol
Link to comment

Thanks @BVD

 

I have downloaded the trashbin files from my server (at a datacentre) to my home PC - so have them safe here.

 

I changed the extension on a couple of files back to .PDF and they open fine and are as expected.

 

So, I am using Linuxserver mariadb - if you can tell me where to view the logs and what I'm looking for... or what to post here and I'll get on to it ASAP.

 

Thanks

 

 

Link to comment

@SliMat I'm mobile right now so cant 100% validate the specific log locations, but you should hopefully be able to find them pretty easy with a bit of googling for it.

 

From the container side of things, I know nextcloud has a support diagnostic bundle that it can collect as well... but if I recall correctly, I think it included significantly more sensitive info than I'd feel comfortable asking you to post up here (not like "oh you're hacked now!1!!1!!" sensitive, but more local connectivity details, user account addresses, things like that). We could always move to DMs or something in that case? Up to you.

 

As an alternative (or maybe in parallel with, up to you!), I could probably swing some time today to do a remote session together and I can help you poke at it a bit. I'm normally so starved for time that I couldnt afford to read an email notification (lol), but I'm on vacation this week and times a luxury I can finally afford (for a bit anyway hehehe). If you're willing to put in the work necessary to learn + self-teach/research + possibly a little additional coaching, I'd be happy to invest some time in helping you do so.

 

(I should be back to the house around 1400-1500CT just for awareness in the event you wanted to take me up on a second set of eyes on it)

Link to comment

Thanks @BVD I really appreciate the time - the connectivity information wont be that sensitive as this server is only my Plex & Nextcloud machine sitting in a DC... but if you are happy to switch to DMs I am happy to send any logs to you for assistance.... I will have a look for the logs and DM you now... many thanks

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.