[Support] Linuxserver.io - Nextcloud


Recommended Posts

On 8/10/2021 at 1:54 PM, hammsandwich said:

Hello,

 

This container is somehow utilizing huge pages on my Unraid server.  I have enabled hugepages through the normal means of: 

append hugepagesz=2M hugepages=8194

This allocates 16GB of RAM to huge pages. Then have various VMs that leverage these hugepages via the following XML.

  <memoryBacking>
    <hugepages/>
    <nosharepages/>
  </memoryBacking>

 

I noticed a few months back that at certain times I was unable to start 16GB worth of VMs.  I began shutting down containers, which would then allow me to fully populate all 16GB of hugepage RAM, so I then began the process of narrowing down which container was causing the issue.  It appears to be this Nextcloud container. I used this command to see what was grabbing hugepages:

grep huge /proc/*/numa_maps

When Nextcloudis running, this command outputs:

grep huge /proc/*/numa_maps
/proc/24581/numa_maps:145fd0a00000 default file=/anon_hugepage\040(deleted) huge dirty=3 mapmax=3 N0=3 kernelpagesize_kB=2048
/proc/24606/numa_maps:145fd0a00000 default file=/anon_hugepage\040(deleted) huge dirty=11 mapmax=3 N0=11 kernelpagesize_kB=2048
/proc/24607/numa_maps:145fd0a00000 default file=/anon_hugepage\040(deleted) huge dirty=11 mapmax=3 N0=11 kernelpagesize_kB=2048

Upon shutting down this container, there is no output to the command (if all my VMs are also off). I have started every single one of my containers one by one, and this is the only one that results in this behavior.  Is this intentional? If so, I feel that it should be documented as many people use hugepages for VFIO passthrough performance.  If not intended, is the proper place to for support for this issue?

 

Thanks in advance. 

Anyone have thoughts on this?  Really curious to figure this out so I do not have to shut down this conatiner whenever I need to start up other VMs.

Link to comment
6 hours ago, eagle470 said:

My issue was several things, I needed to change the SSL type from Flexible to Full in cloudflare, I needed to add a trustedproxy flag, I also missed an apostrophe. 

 

I had to add a cname in my dns servers (pihole) for my proxy host (swag) as well. I chose to use a fixed IP, figuring it gave me more flexibility in the long run to lock things down.

If i may ask, where can i set up trustedproxy flag?

Link to comment

Yep, i got it setup. I don´t get it everything ist set by spaceinvanders video but every time same problem. I watched some other videos but this looks great: 

Also there u can setup end to end encryption. Guys i forgot mention that i have own domainname.

Link to comment
On 8/17/2021 at 3:24 PM, eagle470 said:

I've been following this guide which I figured out was seriously out of date: https://www.linuxserver.io/blog/2017-05-10-installing-nextcloud-on-unraid-with-letsencrypt-reverse-proxy

Then I also looked at the Linuxserver.io documentation for swag and this other blog https://linuxserver.tips/en/nextcloud-install-on-unraid/

 

I made this post earlier today: https://www.reddit.com/r/selfhosted/comments/p6a26g/linuxserver_documentation_for_swagnextcloud/

 

I'm unsure where I went wrong. I'm using cloudflare to get DDNS working, so I'm good there. I HAD a working instance of NextCloud locally, now I get

 

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

 

if I run

 

docker logs swag -f

 

everything looks clean in the logs there now. When I run.

 

docker logs nextcloud -f

 

I get this notorious error:

PHP Fatal error: Uncaught Error: Call to a member function getLogger() on null in /config/www/nextcloud/cron.php:162 Stack trace: #0 {main} thrown in /config/www/nextcloud/cron.php on line 162

 

Looking at ./log/nginx/error.log I see this error:

 

2021/08/17 17:13:23 [error] 407#407: *2 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected ''overwritehost'' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /config/www/nextcloud/config/config.php on line 25" while reading response header from upstream, client: 10.10.1.89, server: _, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "10.10.1.221"

 

If I comment it out I learn I get that same (roughly) error for these three config entries: 

'overwrite.cli.url' => 'https://nextcloud.server.com',

'overwritehost' => 'nextcloud.server.com',

'overwriteprotocol' => 'https',

 

If I comment those out I can get to everything locally but not through my public DNS. 

 

If I leave them in, I can't get to anything locally or externally.

 

I really want to get this working and I feel like I'm close. I'm just not sure what I'm doing wrong.

I'm using all the linuxserver.io containers (mariadb, nextcloud and swag) to make this work, though I've been testing with the NginxProxyManager just to check my work on the proxy server side. It does not appear thats an issue, so I'd like to switch back to the swag container, in which case I turn one off, the other on and change the port forward rule. 

 

Please help me figure this out, I need a fresh set of eyes on this.

 

2021-08-17 17_22_27-https___10.10.1.221 - Brave.png

2021-08-17 17_23_24-NVIDIA GeForce Overlay.png

error.log 7.5 kB · 0 downloads nextcloud.subdomain.conf 1.15 kB · 1 download nextcloud.subfolder.conf 1.53 kB · 1 download config.php 823 B · 3 downloads nextcloud 1.53 kB · 1 download

 

I'm possibly having the same issue. Same setup with Nextcloud + Swag + mariadb. I'm also running redis, but I doubt that's the issue. Using an untangle router, but again not likely the issue. Been running Unraid and Nextcloud for years. Was getting a connection refused error and then after several restarts of Nextcloud & swag started getting a error 500 bad gateway.

 

Now I'm getting

Quote

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.

 

I thought maybe I need to update. I'm on v20.0.8 and the latest for stable is v20.0.12

To update I ran

Quote

docker exec -it nextcloud updater.phar

via the web term

 

All checks passed, but when I got to the "occ upgrade" command execution part, I got this error:

Quote

An unhandled exception has been thrown:
Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2006] MySQL server has gone away in /config/www/nextcloud/lib/private/DB/Connection.php:72
Stack trace:
#0 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1449): OC\DB\Connection->connect()
#1 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(892): Doctrine\DBAL\Connection->getWrappedConnection()
#2 /config/www/nextcloud/lib/private/DB/Connection.php(202): Doctrine\DBAL\Connection->executeQuery()
#3 /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php(206): OC\DB\Connection->executeQuery()
#4 /config/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(248): Doctrine\DBAL\Query\QueryBuilder->execute()
#5 /config/www/nextcloud/lib/private/AppConfig.php(345): OC\DB\QueryBuilder\QueryBuilder->execute()
#6 /config/www/nextcloud/lib/private/AppConfig.php(110): OC\AppConfig->loadConfigValues()
#7 /config/www/nextcloud/lib/private/AppConfig.php(301): OC\AppConfig->getApps()
#8 /config/www/nextcloud/lib/private/legacy/OC_App.php(957): OC\AppConfig->getValues()
#9 /config/www/nextcloud/lib/private/Server.php(668): OC_App::getAppVersions()
#10 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(155): OC\Server->OC\{closure}()
#11 /config/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#12 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(122): Pimple\Container->offsetGet()
#13 /config/www/nextcloud/lib/private/ServerContainer.php(156): OC\AppFramework\Utility\SimpleContainer->query()
#14 /config/www/nextcloud/lib/private/Server.php(1677): OC\ServerContainer->query()
#15 /config/www/nextcloud/lib/private/Server.php(1017): OC\Server->getMemCacheFactory()
#16 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(155): OC\Server->OC\{closure}()
#17 /config/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#18 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(122): Pimple\Container->offsetGet()
#19 /config/www/nextcloud/lib/private/ServerContainer.php(156): OC\AppFramework\Utility\SimpleContainer->query()
#20 /config/www/nextcloud/lib/private/Server.php(1977): OC\ServerContainer->query()
#21 /config/www/nextcloud/lib/private/Files/View.php(118): OC\Server->getLockingProvider()
#22 /config/www/nextcloud/lib/private/Server.php(395): OC\Files\View->__construct()
#23 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(155): OC\Server->OC\{closure}()
#24 /config/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#25 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(122): Pimple\Container->offsetGet()
#26 /config/www/nextcloud/lib/private/ServerContainer.php(156): OC\AppFramework\Utility\SimpleContainer->query()
#27 /config/www/nextcloud/lib/private/Server.php(1324): OC\ServerContainer->query()
#28 /config/www/nextcloud/lib/base.php(595): OC\Server->boot()
#29 /config/www/nextcloud/lib/base.php(1091): OC::init()
#30 /config/www/nextcloud/console.php(49): require_once('/config/www/nex...')
#31 /config/www/nextcloud/occ(11): require_once('/config/www/nex...')
#32 {main}

 

This led me to believe that there is some kind of php issue. So with some google fu I found this: https://help.nextcloud.com/t/php-fatal-error-uncaught-doctrine-dbal-dbalexception-failed-to-connect-to-the-database/56782 (can't hyperlink)

 

I think this is what my issue is. Might be your issue too.

Unfortunately, there was no real solution provided to fix the issue if you're Docker or Unraid user.

 

Thoughts?

Edited by PieQuest
typo
Link to comment

Since last update I have the same error as you:

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.

 

I think the update broke something but I have no idea what.

Link to comment
17 hours ago, whitedwarf said:

 

Fixed:

 

 

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

 

Edited by ab5g
  • Like 1
  • Thanks 1
Link to comment

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.

Link to comment
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!

  • Thanks 1
Link to comment
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. 

Link to comment
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?

Link to comment

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

Link to comment

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
Link to comment
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 😞

 

Link to comment

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
Link to comment
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

  • Thanks 1
Link to comment

^^ 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 👍

Link to comment

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

Link to comment

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