blaine07 Posted July 7, 2022 Share Posted July 7, 2022 I was playing with Authelia the other day and the guide(Ibracorp) had me define a host path for Redis. Made me wonder-- I have Redis setup in Nextcloud. The Redis container I am using with Nextcloud does NOT have a host/storage path defined. Should I have a storage path defined for Redis that is being used with Nextcloud? Quote Link to comment
r00tH4cK3r Posted July 12, 2022 Share Posted July 12, 2022 I updated my Nextcloud docker container and my database for it, and now I get invalid data directory error. Been searching trying to figure out how to fix it. All I did was update it and it locked me out. Kinda frustrating. Quote Link to comment
calvados Posted July 15, 2022 Share Posted July 15, 2022 (edited) Hi everyone, I'm looking for help, and I hope this is the right thread. I've got NextCloud installed on Unraid, being proxied via Swag, as per Spaceinvader's videos. I also have the "external storage" app installed. When I go into files and try to share a file or folder via the "share link" command, it works perfectly if the folder/file I'm trying to share resides in the NextCloud Data directory, however if I try to share a folder from an SMB share connected via "external storage" it displays a page (when trying to access via the link created under "share link") that appears to be trying to load the directory contents. It spins and spins forever. If I go to the top right side and select "download all files" I do indeed download the contents of the directory. Only files and folder shared from the SMB share connected via the "external storage" app have this issue. Permissions in the "share link" function are set to read only. So what's preventing NextCloud from listing directory contents when I use the "share link" function for a folder residing on an SMB share? EDIT: Found the solution. In the settings for external storage I missed that under the 3 dots by "available for" is a checkbox called "enable sharing". Checking this resolved my issue. Edited July 15, 2022 by calvados Quote Link to comment
Flemming Posted July 17, 2022 Share Posted July 17, 2022 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/ Quote Link to comment
Sildenafil Posted July 19, 2022 Share Posted July 19, 2022 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? Quote Link to comment
Mr_IceSlice Posted July 19, 2022 Share Posted July 19, 2022 I'm having some trouble getting my reverse proxy to work (Nginx Proxy Manager) with Nextcloud. I think something in my config.php may be the issue. Is this the correct place to post about this? Quote Link to comment
diehardbattery Posted July 19, 2022 Share Posted July 19, 2022 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. Quote Link to comment
blaine07 Posted July 19, 2022 Share Posted July 19, 2022 FWIW I upgraded NC to 24.0.3 today; everything seems fine thus far 🙂 Quote Link to comment
Jessie Posted July 20, 2022 Share Posted July 20, 2022 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. Quote Link to comment
Jessie Posted July 20, 2022 Share Posted July 20, 2022 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. Quote Link to comment
diehardbattery Posted July 20, 2022 Share Posted July 20, 2022 1 hour ago, Jessie said: 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. Thank you. Quote Link to comment
Jessie Posted July 20, 2022 Share Posted July 20, 2022 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. 1 Quote Link to comment
pdxspeedbump Posted July 20, 2022 Share Posted July 20, 2022 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 Quote Link to comment
blaine07 Posted July 20, 2022 Share Posted July 20, 2022 (edited) 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 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 July 20, 2022 by blaine07 Quote Link to comment
pdxspeedbump Posted July 20, 2022 Share Posted July 20, 2022 2 minutes ago, blaine07 said: Can you post cron file it’s referencing? Is their some incorrect syntax in it or something? Sure! Cron file attached. Thanks for taking a look. cron.php Quote Link to comment
blaine07 Posted July 20, 2022 Share Posted July 20, 2022 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: 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. Quote Link to comment
KennyStetler Posted July 23, 2022 Share Posted July 23, 2022 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. Quote Link to comment
drakenit Posted July 29, 2022 Share Posted July 29, 2022 On 1/8/2022 at 1:20 PM, Vitor Ventura said: Hello, Im having a problem, cant make it work, nextcloud is tell me, that is updating, but never finish. Log is simple: Could not open input file: /config/www/nextcloud/cron.php dit you find the solution? Quote Link to comment
Vitor Ventura Posted July 31, 2022 Share Posted July 31, 2022 On 7/29/2022 at 3:26 PM, drakenit said: dit you find the solution? yeah, change appdata folder name do something nextcloud.backup, and redo everything Quote Link to comment
clay_statue Posted August 1, 2022 Share Posted August 1, 2022 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. Quote Link to comment
SliMat Posted August 1, 2022 Share Posted August 1, 2022 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. Thanks and hopefully someone can help. Quote Link to comment
BVD Posted August 1, 2022 Share Posted August 1, 2022 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. 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. Quote Link to comment
SliMat Posted August 1, 2022 Share Posted August 1, 2022 (edited) 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 August 1, 2022 by SliMat Quote Link to comment
blaine07 Posted August 1, 2022 Share Posted August 1, 2022 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… Quote Link to comment
BVD Posted August 1, 2022 Share Posted August 1, 2022 (edited) 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 August 1, 2022 by BVD Didnt sleep last night, so apparently I cant read lol Quote Link to comment
Recommended Posts
Posted by Squid,
1 reaction
Go to this 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.