[Support] Linuxserver.io - Nextcloud


Recommended Posts

On 4/17/2021 at 5:15 PM, gustomucho said:

After tinkering with this for a while, it seems the solution is much simpler than I thought.

For some reason, the only step required is to modify the config.php file.

No need to install ffmpeg or even to enable the app "Preview Generator" inside Nextcloud.

 

I'll leave what I did here if it can help anyone looking to generate thumbnails for video files :

1. Go to your config.php file located at /mnt/user/appdata/nextcloud/www/nextcloud/config/config.php

2. Just before the end of your config file, add the following lines (after the 'installed' => true,) :

  'installed' => true,
  'enable_previews' => true,
  'enabledPreviewProviders' =>
 array (
    0 => 'OC\\Preview\\TXT',
    1 => 'OC\\Preview\\Image',
    2 => 'OC\\Preview\\MP3',
    3 => 'OC\\Preview\\Movie',
    4 => 'OC\\Preview\\MP4',
 ),
);

You can also add other file types that you require (mkv, avi, etc.)

Thanks man! Awesome you put a working solution here! Was looking for an solution on github and other sites for hours, and was suffering for months!

  • Like 2
Link to comment

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

Link to comment
On 6/26/2022 at 6:32 PM, 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

Did you ever find a solution for this?

Link to comment
Posted (edited)

Upgraded to Linuxserver latest image this morning; 24.0.2 from .1 I believe; seeing some 502's. Anyone else with issues? going to try to roll container back to 24.0.1...

 

EDIT/UPDATE: My Nextcloud itself is on 24.0.2; I try to keep up with it being updated and the container itself. Container update today I definitely do believe something is wrong with; I'll give it a few days and try again 🙂

Edited by blaine07
Link to comment
10 hours ago, Flemming said:

Did you ever find a solution for this?

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. 

Link to comment
Posted (edited)

I'm having an issue. I have followed Space Invader's video up until the installation of NextCloud via the login page. I have ensured the DB password is correct for user: 'nextcloud'. However, I am receiving the following error: "Error while trying to create admin user: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user 'nextcloud'@'***.**.*.*' (using password: YES)". I suspect possibly the settings for the created nextcloud share might not be correct. What are the correct security settings for this share? I have set the security to Public, have tried Export/Yes, Export/Yes (hidden), Export/No options. I'm unsure how to proceed.

 

There is nothing in the logs accessed via the docker page for both mariadb and nextcloud that indicate any errors.  From there, everything looks fine.

Edited by diehardbattery
Link to comment

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?

Link to comment

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 by calvados
Link to comment
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
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.

image.png.c46b1b8377e9026719d78c15892cd841.png

 

Log is simple:

Could not open input file: /config/www/nextcloud/cron.php

 

 

dit you find the solution?

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.