Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] Linuxserver.io - Nextcloud

Featured Replies

Rolling back to an older image doesn't mean it's a "fix". You shouldn't have your database containers on auto update. Having a database update while it's beening accessed by X application (in this case nextcloud) is just asking for trouble and likely going to cause corruption or data loss.

  • Replies 7.1k
  • Views 1.7m
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • 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

  • When i did enter the docker container with ssh and did run the following command the error message was gone   sudo -u abc php /config/www/nextcloud/occ db:add-missing-indices   Onl

  • gustomucho
    gustomucho

    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 ffmp

Posted Images

8 hours ago, ab5g said:

 

It seems like the error is related to the MariaDB container being upgraded and as a result MariaDB being upgraded from 10.1 to MariaDB 10.2. 

To get rid of this ssh into the Mariadb container and delete the binary log file in /config/databases (these log file are called "ib_logfile0", ""ib_logfile1" etc).  After deleting restart the MariaDB container. 

 

 

https://mariadb.com/kb/en/upgrading-from-mariadb-101-to-mariadb-102/+comments/2903

 

This worked for me.  After stopping both containers (NextCloud and MariaDB) I deleted the log files (i had two).  Turned MariaDB on first, then NextCloud.  30 seconds later i was able to get back to the web log in for NextCloud.  Thank You!

13 hours ago, ab5g said:

 

It seems like the error is related to the MariaDB container being upgraded and as a result MariaDB being upgraded from 10.1 to MariaDB 10.2. 

To get rid of this ssh into the Mariadb container and delete the binary log file in /config/databases (these log file are called "ib_logfile0", ""ib_logfile1" etc).  After deleting restart the MariaDB container. 

 

 

https://mariadb.com/kb/en/upgrading-from-mariadb-101-to-mariadb-102/+comments/2903

 

Thank You!!! fixed my issue. 

On 8/26/2021 at 4:51 AM, whitedwarf said:

 

Fixed:

 

 

Worked for me too! Thank you whitedwarf!

 

I was able to update from v20.0.8 to v20.0.12 with no issues as well.

6 hours ago, PieQuest said:

 

Worked for me too! Thank you whitedwarf!

 

I was able to update from v20.0.8 to v20.0.12 with no issues as well.

Unfortunately it doesn't work for me. The issue started when I upgraded to version 22. All my clients can access Nextcloud but I cannot access the dashboard.

 

Is there anything else that can cause this problem?

Hi there guys, i need your support.

The background cron job isnt running anymore since the above issue happens and i fixed it with the above solutions...

 

image.thumb.png.ecefb5844e95141dc95b075ba5dfb7fe.png

My setup?

 

I am running Unraid latest on a Intel Sandy Bridge 2600 with 16GB Ram and 32 TB Storage, mainly as backup and storage server. The Nextcloud is mainly used as picture sync from mobile devices, but from the complete family. So it would be a mess to setup all again.

 

I have the linuxservers SWAG container as reverse proxy, the maria DB as database and the nextcloud from them as nextcloud. Also the dns is solved by duckdns container.

 

What can i do / give you, that someone of you can help me to fix this? I am searching hours and hours and dont find any usefull solution...

 

image.png.c540bfa6182219b925257b9337e4b29c.png

Has anyone solved this warning? I am using subdomain instead of subfolder. I can't seem to find an official solution to the Unraid version.

image.thumb.png.1f82629a5ab7f20c8bfb2ec2a972bd2e.png

Hi,

 

I have already updated nextcloud docker and after that ,it gives me the following message:

 

Internal Server Error The server encountered an internal error and was unable to complete your request.

Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report. More details can be found in the server log.

 

Someone knows what can I do?

 

Thank you

 

Edit: Looking at MariaDB Log:

 

image.png.0f640bc73a6636c5f7b714d469d93a69.png

 

I am also using other mariadb containers with photoprism in same version than this without issues.

Edited by dellorianes

On 8/28/2021 at 4:30 PM, EinfachToll said:

Hi there guys, i need your support.

The background cron job isnt running anymore since the above issue happens and i fixed it with the above solutions...

 

image.thumb.png.ecefb5844e95141dc95b075ba5dfb7fe.png

My setup?

 

I am running Unraid latest on a Intel Sandy Bridge 2600 with 16GB Ram and 32 TB Storage, mainly as backup and storage server. The Nextcloud is mainly used as picture sync from mobile devices, but from the complete family. So it would be a mess to setup all again.

 

I have the linuxservers SWAG container as reverse proxy, the maria DB as database and the nextcloud from them as nextcloud. Also the dns is solved by duckdns container.

 

What can i do / give you, that someone of you can help me to fix this? I am searching hours and hours and dont find any usefull solution...

 

image.png.c540bfa6182219b925257b9337e4b29c.png

 

Hi, can anyone support here? I dont want to completely reinstall my nextcloud 😞

 

I tried Nextcloud. The sync is ok but not realtime. For example, I copy an image from my pc to my nextcloud client app. When I check on the server, it does not "auto upload". I need to hit the refresh button on the browser to show what I uploaded. I checked the "Background jobs" on the settings and it was set to CRON jobs which I saw that it will run every 5 mins. Would it be possible when I uploaded something, it will instantly( or not to hit the refresh button) upload on the server?

 

It goes well with the mobile app. I'm using iPhone and the settings are all ok. It needs to open the app every time I uploaded something.

Edited by HHUBS

3 hours ago, dellorianes said:

Hi,

 

I have already updated nextcloud docker and after that ,it gives me the following message:

 

Internal Server Error The server encountered an internal error and was unable to complete your request.

Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report. More details can be found in the server log.

 

Someone knows what can I do?

 

Thank you

 

Edit: Looking at MariaDB Log:

 

image.png.0f640bc73a6636c5f7b714d469d93a69.png

 

I am also using other mariadb containers with photoprism in same version than this without issues.

Im having the same issue, the above workarounds didnt help

^^ They worked for me. I used the log-file delete method.

 

Man, i love this forum. The Nextcloud app on my mobile phone gave an file-upload error so i knew something was wrong. I came home and checked the log-file. Logged in on this forum and there was a solution already. Problem solved in 2 min.

 

Kudo's to all you unknown-to-me people 👍

Hi!

 

I noticed my phone was not uploading photos to my nextcloud and cut a long story short I could not access the server due to an internal error.  I noticed that the config.php was refreshed (standard looking) so restored my config.php from a backup and now I am stuck at the update screen every time I boot?  I cannot find a way get into my server without being presented with the update screen to 22.1.1?

 

Nextcloud will be updated to version 22.1.1

The following apps will be updated:

 

All I have is a start update button, there is no cancel or anything I can do to get out of this loop?  Can anyone help please?

 

Thank you

20 hours ago, potato said:

Im having the same issue, the above workarounds didnt help

Try this:

It has worked for me.

@linuxserver.io

 

Hi guys,

I have Nextcloud up and running for well over a solid year but I just noticed that I can't login anymore.

 

When I try to login via the web UI it redirects me to the login page but changes the URL from

 

Quote

myserveraddress.com/login

 

to

 

Quote

myserveraddress.com/login?redirect_url=/apps/dashboard/

 

I have checked the logs. The php log just gave me the usual notices but the nginx error log threw me this:

 

Quote

2021/08/31 21:19:39 [error] 15438#15438: *54552 access forbidden by rule, client: my.ip.address, server: _, request: "PROPFIND /.well-known/webdav/Notes/ HTTP/1.1", host: "myserveraddress"
2021/08/31 21:19:47 [error] 15438#15438: *54565 access forbidden by rule, client: my.ip.address, server: _, request: "PROPFIND /.well-known/webdav/Notes/ HTTP/1.1", host: "myserveraddress"
2021/08/31 21:52:43 [error] 15438#15438: *54747 access forbidden by rule, client: my.ip.address, server: _, request: "PROPFIND /.well-known/webdav/Notes/ HTTP/1.1", host: "myserveraddress"
2021/08/31 21:52:49 [error] 15438#15438: *54796 access forbidden by rule, client: my.ip.address, server: _, request: "PROPFIND /.well-known/webdav/Notes/ HTTP/1.1", host: "myserveraddress"
2021/08/31 21:58:30 [error] 15438#15438: *54850 access forbidden by rule, client: my.ip.address, server: _, request: "PROPFIND /.well-known/webdav/Notes/ HTTP/1.1", host: "myserveraddress"
2021/08/31 21:58:36 [error] 15438#15438: *54895 access forbidden by rule, client: my.ip.address, server: _, request: "PROPFIND /.well-known/webdav/Notes/ HTTP/1.1", host: "myserveraddress"
2021/08/31 22:03:06 [error] 15438#15438: *54937 access forbidden by rule, client: my.ip.address, server: _, request: "PROPFIND /.well-known/webdav/Notes/ HTTP/1.1", host: "myserveraddress"
2021/08/31 22:03:14 [error] 15438#15438: *54988 access forbidden by rule, client: my.ip.address, server: _, request: "PROPFIND /.well-known/webdav/Notes/ HTTP/1.1", host: "myserveraddress"

 

I have no idea what to do with that information and any help would be appreciated. 

Edited by DezzyTee
typos

@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

That could explain a lot.

In my case, setup is going well. But the instant I open the instance to the outside (activating my reverse proxy with swag), it got hacked and I am redirected to some random spam site when I try to connect to my nextcloud. Always the same. Even after deleting the docker and reconfigure it from scratch. Each time.

Edited by Fl4v1en

Unraid 6.9.2

 

following guide in POST 1 

create share, install mariadb, setup maria DB

 

Install nextcloud..... and ERROR...

upon opening nextcloud GUI for first time i get error
 

Composer autoloader not found, unable to continue. Check the folder "3rdparty". Running "git submodule update --init" will initialize the git submodule that handles the subfolder "3rdparty".

in the logs i find 

[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...
cp: cannot create regular file '/config/www/nextcloud/config/config.php': No such file or directory
chown: cannot access '/config/www/nextcloud/config/config.php': No such file or directory
[cont-init.d] 60-memcache: exited 1.
[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.

 

 

what did i do wrong....?

 

feels like a permission thing...  according to the instructions from SpaceinvaderOne's video, i've followed all the steps.
what did i do wrong?

Edited by TRusselo

Fix:

Somehow while updating NC the tmp folder was specified as mnt/usr/. Switched it back to mnt/user/ and everything is back being operational. 

It's a bit weird since I didn't change the path in the first place but here you go. Should you get the same issues check the tmp folder location in your docker config.

 

 

On 9/2/2021 at 1:21 AM, DezzyTee said:

@linuxserver.io

 

Hi guys,

I have Nextcloud up and running for well over a solid year but I just noticed that I can't login anymore.

 

When I try to login via the web UI it redirects me to the login page but changes the URL from

 

 

to

 

 

I have checked the logs. The php log just gave me the usual notices but the nginx error log threw me this:

 

 

I have no idea what to do with that information and any help would be appreciated. 

 

Little update:

I found the following in the logs:

 

Quote

Fatal Error Unable to create lock file: Bad file descriptor (9)

 

It also appears when I try to put Nextcloud into maintenance mode. 

I again ask for your help, @linuxserver.io and anyone else with knowledge. 

I'm really stuck for days now. Your help would be highly appreciated.

Screenshot 2021-09-06 021709.png

Edited by DezzyTee
posting fix

On 9/4/2021 at 12:14 PM, TRusselo said:

Unraid 6.9.2

 

following guide in POST 1 

create share, install mariadb, setup maria DB

 

Install nextcloud..... and ERROR...

upon opening nextcloud GUI for first time i get error
 

Composer autoloader not found, unable to continue. Check the folder "3rdparty". Running "git submodule update --init" will initialize the git submodule that handles the subfolder "3rdparty".

in the logs i find 

[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...
cp: cannot create regular file '/config/www/nextcloud/config/config.php': No such file or directory
chown: cannot access '/config/www/nextcloud/config/config.php': No such file or directory
[cont-init.d] 60-memcache: exited 1.
[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.

 

 

what did i do wrong....?

 

feels like a permission thing...  according to the instructions from SpaceinvaderOne's video, i've followed all the steps.
what did i do wrong?

I am getting this exact same error. 

 

Only thing that may be different with my configuration is I had it running at one point in the past then something strange happened and it was no longer accessible so removed the next cloud docker. Deleted everything associated with it and am trying to reset the whole thing up again. 

On 8/17/2021 at 4:20 PM, REllU said:

Downloading files larger than around 1gb always seem to fail from my NextCloud.

 

 

I'm using a Ubiquiti USG as my router, I have NextCloud 21.0.1 up and running on UnRaid 6.9.2. PHP Version is currently 7.4.15

Everything else (from what I can tell) is working just fine, and has been for months.

 

To me, this seems like some sort of a setting / limitation somewhere, since the download always seems to stop at that 1gb mark.

Any help would be appreciated! :)

 

This one slipped through the cracks, just bumping it up :)

 

EDIT: I think I found the solution, but unsure on how to apply it..

solution.PNG.6788fc6b3e2f4f86fd31e40c35054373.PNG

 

I'm using Nginx Proxy Manager on UnRaid, if that makes any difference.

 

The solution I was able to find from here:

https://autoize.com/nextcloud-performance-troubleshooting/

 

If someone could point me into the right direction, that'd be great! :)

Edited by REllU

Hi,

 

What version should be the latest with this image?

My updater says 21.0.4 up to date, is it normal to not have the 22.x?

not sure what version i was on but i did a update and now nothing will upload over local network. if i try to open the web ui page i get "Internal Server Error". anyone else?

18 hours ago, itskamel said:

not sure what version i was on but i did a update and now nothing will upload over local network. if i try to open the web ui page i get "Internal Server Error". anyone else?

Same. I followed the suggestions from the last few pages:

1) loading a different docker image, and reloading :latest

2) Deleting MariaDB log files

 

But my NC is still unable to start.

I'm not sure if Linuxserver.io has abandoned the project. It's unusual to not get any response to any of the questions in over a week.

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.