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

Yea i've always kept NC up to date, i rarely let any docker containers i have go over a month or two without updating.

 

I'll have to find your post about rolling back the DB, or let me know if theres a KB somewhere about how to do it.That seems to be the only solution atm.

 

Edited by tvd1

  • 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

Okay i think i've made progress.  I figured out that Maria DB had a corrupted database (likely the nextcloud one) and was flipping on and off non stop in a boot loop.

adding this to the mariadb conf file:

[mysqld] innodb_force_recovery = 6

and restarting maria got it to stop, so i could do a mysql dump

docker exec mariadb /usr/bin/mysqldump --user=root --password=******** nextcloud > /mnt/user/data/mariadb_backup/nextcloud/dump.sql

 

restored the db from an old backup.. (now i know i need to backup the db frequently)

Removed that line from mariadb conf and restarted.

 

I also restored all the nextcloud data file backup too, yet when it started it still forced the update to v30.  Either way, after it ran NC came back up. I had to do some permissions fixing on the data drives but it came up.

However i was getting this error on the web UI:

Quote

Your data directory is invalid.

Ensure there is a file called ".ncdata" in the root of the data directory. It should have the content: "# Nextcloud data directory"

 

I couldnt find that file in previous backups, so i created that file and put "# Nextcloud data directory" in that file. after rebooting i get this error:

 

Quote

 

Internal Server Error

The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.

 

 

Nothing in the logs, so i did another restore of the data drive and its working, but its all sorts of messed up. I can't upload files and many are missing.  I'm going to revisit tomorrow.

6 hours ago, tvd1 said:

Okay i think i've made progress.  I figured out that Maria DB had a corrupted database (likely the nextcloud one) and was flipping on and off non stop in a boot loop.

adding this to the mariadb conf file:

[mysqld] innodb_force_recovery = 6

and restarting maria got it to stop, so i could do a mysql dump

docker exec mariadb /usr/bin/mysqldump --user=root --password=******** nextcloud > /mnt/user/data/mariadb_backup/nextcloud/dump.sql

 

restored the db from an old backup.. (now i know i need to backup the db frequently)

Removed that line from mariadb conf and restarted.

 

I also restored all the nextcloud data file backup too, yet when it started it still forced the update to v30.  Either way, after it ran NC came back up. I had to do some permissions fixing on the data drives but it came up.

However i was getting this error on the web UI:

 

I couldnt find that file in previous backups, so i created that file and put "# Nextcloud data directory" in that file. after rebooting i get this error:

 

 

Nothing in the logs, so i did another restore of the data drive and its working, but its all sorts of messed up. I can't upload files and many are missing.  I'm going to revisit tomorrow.

It sounds like you're digging deeper. If NC doesn't have anything crucial, I would drop the database and reinstall NC from scratch, using the latest version. Then,moving forward, ensure you have good backups. The fear is, you make all these changes, manage to get NC running, but the changes could cause issues with future upgrades.

On 9/19/2020 at 10:21 AM, xthursdayx said:

I'm finding an issue with locale encoding. I need to add a huge number of files to my nextcloud instance, so I added them manually to my user's "files" directory on my server and then ran `sudo -u abc php7 /config/www/nextcloud/occ files:scan [user]` from with the nextcloud container. However, I'm now getting some error messages like this:

Entry "/xthursdayx/files/Work/Documents/Privado - Unknown - Boletín de políticas.pdf" will not be accessible due to incompatible encoding
Entry "/xthursdayx/files/Archive/2019-2020/Materials/Jönsson - 2010__xid-389489066_2.pdf.xml" will not be accessible due to incompatible encoding

Any idea how I might fix this? I assume that it is an issue with the container not using the correct UTF locale, but I could be totally off base... 

 I have the same problem. How I can solve that?

On 10/31/2024 at 6:37 AM, Geck0 said:

It sounds like you're digging deeper. If NC doesn't have anything crucial, I would drop the database and reinstall NC from scratch, using the latest version. Then,moving forward, ensure you have good backups. The fear is, you make all these changes, manage to get NC running, but the changes could cause issues with future upgrades.

 

This is what i had to do. A real PITA but a good PSA for backing up both the container and the DB.

39 minutes ago, tvd1 said:

 

This is what i had to do. A real PITA but a good PSA for backing up both the container and the DB.

Sometimes it's not worth the hassle. It's only if you're relying on NC for Deck, Task Lists and Calendar that makes it more difficult to start again. My household runs off it.

 

fyi I solved my issue with issuing occ fixdb command on nc

14 hours ago, nekromantik said:

fyi I solved my issue with issuing occ fixdb command on nc

That was fortunate, it doesn't always work.

I just updated to 30.0.2 from 29.0.6 and everything seems to have gone fine except I got a bunch of notifications of app recommendations, like 'whiteboard' and 'deck'

 

If I go into the app store, I cant see any new apps and it says my apps are all up to date, yet many aren't updated like Talk which is stuck at version 19. I had to re-enable it as an unsupported app.

 

Anyone know what I did wrong or how I can fix this?

3 minutes ago, klingon00 said:

I just updated to 30.0.2 from 29.0.6 and everything seems to have gone fine except I got a bunch of notifications of app recommendations, like 'whiteboard' and 'deck'

 

If I go into the app store, I cant see any new apps and it says my apps are all up to date, yet many aren't updated like Talk which is stuck at version 19. I had to re-enable it as an unsupported app.

 

Anyone know what I did wrong or how I can fix this?

Quickest way is to remove them and add them via CLI, assuming there are new versions for the apps you're referring to.

 

Don't worry about whiteboard etc. They're suggestions, not must haves.

So I don't know why but I left it alone for the day, and by the next evening, the app store is working again and showing the missing updates. I was able to update all my apps including talk to version 20. Maybe a temporary issue with the app store site itself?

1 minute ago, klingon00 said:

So I don't know why but I left it alone for the day, and by the next evening, the app store is working again and showing the missing updates. I was able to update all my apps including talk to version 20. Maybe a temporary issue with the app store site itself?

Pass. The result is all that matters. When I've had this issue, the upgrade has t updated the apps properly. For some reason the app won't upgrade either through the GUI. I especially have issue with Elastic. My go to is the occ app upgrade, never seems to fail that way. 

  • 2 weeks later...

Well with the forthcoming demise of Windows 10, I have decided to leave Microsoft and go to a linux dist as my daily driver.  I am currently experimenting with Zorin.  I am endeavoring to find out what I cant do in Zorin that I could do in Windows.

 

So far the change has been fairly painless.

 

I do have one issue though. To edit .conf files in unraid/nextcloud I have been using notepad++.  I like this app due to its ability to load multiple .conf files to copy/paste info between files.

 

Does anybody know of a linux app equivalent to notepad++ ?

 

1 hour ago, Jessie said:

Does anybody know of a linux app equivalent to notepad++ ?

 

sorry to say, but how should this be related to this topic please ...

 

so rather ask your question somewhere generally or in a proper Forum, this is not a Linux dist Forum and handling "Desktop Apps" ... thank you.

7 hours ago, alturismo said:

sorry to say, but how should this be related to this topic please ...

 

so rather ask your question somewhere generally or in a proper Forum, this is not a Linux dist Forum and handling "Desktop Apps" ... thank you.

It is the tool that I use to modify config.php and other files in the nextcloud distro, so thought that was relevant. I assume other users are doing the same.  Other than SWAG it is the docker that I would use it most.

Edited just now by Jessie

Edited by Jessie

5 minutes ago, Jessie said:

It is the tool that I use to modify config.php and other files in the nextcloud distro, so thought that was relevant. I assume other users are doing the same.  Other than SWAG it is the docker that I would use it most.

 

you are asking for a text editor in your linux dist ... wrong place here.

 

but as hint, look at gedit or gnome text editor ... you will find infos in proper forums therefore ... we close this now please.

15 hours ago, Jessie said:

Well with the forthcoming demise of Windows 10, I have decided to leave Microsoft and go to a linux dist as my daily driver.  I am currently experimenting with Zorin.  I am endeavoring to find out what I cant do in Zorin that I could do in Windows.

 

So far the change has been fairly painless.

 

I do have one issue though. To edit .conf files in unraid/nextcloud I have been using notepad++.  I like this app due to its ability to load multiple .conf files to copy/paste info between files.

 

Does anybody know of a linux app equivalent to notepad++ ?

 

@Jessie

I use nano to edit conf files in Linux. Its a CLI tool.  Hope that helps.

 

@alturismo It would have been shorter and easier just to answer the question.

Edited by Geck0

I use nano to edit conf files in Linux. Its a CLI tool.  Hope that helps.

@Geck0

 

Thanks. I'll give it a go..

  • 2 weeks later...

Have you guys figured out how to solve this issue? I'm on latest version.

 

Quote

The PHP OPcache module is not properly configured. The OPcache buffer is nearly full. To assure that all scripts can be hold in cache, it is recommended to apply "opcache.memory_consumption" to your PHP configuration with a value higher than "128".. For more details see the documentation ↗.



So I went ahead and ran:
php --ini

 

Which finds this:
Loaded Configuration File:         /etc/php83/php.ini

So I use nano the php.ini to add:
opcache.enable=1

opcache.enable_cli=1

opcache.memory_consumption=256

opcache.interned_strings_buffer=16

opcache.max_accelerated_files=10000

opcache.revalidate_freq=60

opcache.save_comments=1


But on restarting nextcloud docker and db docker, issue persists.
Seems like a unraid/docker setup issue?

I'm using an Nginx Proxy Manager as reverse proxy, in case that matters?


I'm also getting this error and can't figure out how to solve it, Nginx Proxy Manager has HSTS enabled.
 

Quote

Some headers are not set correctly on your instance - The `Strict-Transport-Security` HTTP header is not set (should be at least `15552000` seconds). For enhanced security, it is recommended to enable HSTS. For more details see the documentation ↗.

 

4 hours ago, profzelonka said:

But on restarting nextcloud docker and db docker, issue persists.
Seems like a unraid/docker setup issue?

 

as you write "inside" the docker its not persistent, thats the way dockers work ... not Unraid related ...

 

but as lsio most likely makes real good dockers ... you may open this file ... should be self explaining ;)

 

image.png.7c61fd9720f391e930dca44c4e788fa2.png


 

4 hours ago, profzelonka said:

I'm also getting this error and can't figure out how to solve it, Nginx Proxy Manager has HSTS enabled.

 

while this error has been handled like 100+ times already in this thread i guess ... you will find it

 

hint, search, upper right, but im a swag user, may also look at the NPM Threads therefore, as hint ;)

Hi,

 

I just updated from v29 to v30 and now I can't open documents with collabora. I receive the following error message when I try to view one:

 

Failed to establish socket connection or socket connection closed unexpectedly. The reverse proxy might be misconfigured, please contact the administrator. For more info on proxy configuration please checkout https://sdk.collaboraonline.com/docs/installation/Proxy_settings.html

 

Hello, my Nextcloud is still running under 25.0.3. What is the best way to update it now? The Docker version is set to 25.0.1. 

5 hours ago, Unraidfigo said:

Hello, my Nextcloud is still running under 25.0.3. What is the best way to update it now? The Docker version is set to 25.0.1. 

Look for posts I've made. I've commented on this several times.

On 12/10/2024 at 1:32 AM, Unraidfigo said:

Hello, my Nextcloud is still running under 25.0.3. What is the best way to update it now? The Docker version is set to 25.0.1. 

Assuming your v25 still works. Try this. Not necessarily the best way but it worked for me.

Backup your appdata.

In nextcloud Admin settings / overview, you should still have the update button.

Use this to update until it gets to v27.

DONT update Mariadb until it gets there.

This update method will probably time out.

Dont panic, it is still doing it in the background.

If it times out before it gets to the step Maintenance mode, click the back button on your browser to bring you back to the overview menu and wait a few minutes until it finishes the current step..

Then press update again. It should resume at the next uncompleted step.

If the step has reached or gone beyond the "Maintenance mode step" dont go back. Just wait.

After a few minutes press retry and it should eventually complete.

Repeat above until it gets to v27.

After you get to v27.

In admin/overview in nextcloud, check security setup and warnings and deal with any issues.

Once it looks clean, if the update button is still there, try for one more update to v28.

May or may not work.

In the unraid nextcloud template lock the version to 28.0.0.

Update the template, then check the logs.

It should begin the new update method this time. Wait until it finishes and address any messages eg fixes to .conf files.

After it has gone as far as possible with v28.x.x Change the unraid nextcloud template to v29.0.0.

By now, you can probably update the mariadb docker.

Check the logs in the mariadb docker. You may have to do an commandline update. The instructions will be in the logs.

Repeat until it gets to v30.

Once it is at 30, remove the version lock in the unraid nextcloud template and let it go to the latest version.

Check the logs.

Update any .conf files according to the logs.

Log into nextcloud admin/overview and address any security & setup warnings.

If the above crashed and burned, copy the backup from the nextcloud folder back to the nextcloud appdata and start again.

 

 

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.