mailcow / mailcow-dockerized

mailcow: dockerized - 🐮 + 🐋 = 💕
https://mailcow.email
GNU General Public License v3.0
8.95k stars 1.17k forks source link

Nextcloud internal server error #2254

Closed dtoenies closed 5 years ago

dtoenies commented 5 years ago

Since the last update I made right now nextcloud stopped to work for me. If I try to open nextcloud in a browser or by a sync client i get 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.

SOGo and the mailcow site working fine.

kind regards

andryyy commented 5 years ago

yes, seen this, fixing it now

andryyy commented 5 years ago

Can you apply this change? =>

https://github.com/nextcloud/server/pull/13940/files

GrantZero commented 5 years ago

Can you apply this change? =>

https://github.com/nextcloud/server/pull/13940/files

Works fine, thx!

andryyy commented 5 years ago

Thanks, I will integrate the patch.

dtoenies commented 5 years ago

Can you apply this change? =>

https://github.com/nextcloud/server/pull/13940/files

Also can confirm it is working

andryyy commented 5 years ago

Can someone revert the change from above, edit docker-compose.yml and change the PHP-FPM version? =>

      image: mailcow/phpfpm:1.31

Just run docker-compose pull php-fpm-mailcow and docker-compose up -d afterwards.

dtoenies commented 5 years ago

Did it and now I get: 502 Bad Gateway

andryyy commented 5 years ago

Can you post docker-compose logs php-fpm-mailcow?

dtoenies commented 5 years ago

Here it is

Attaching to mailcowdockerized_php-fpm-mailcow_1
php-fpm-mailcow_1    | Waiting for SQL...
php-fpm-mailcow_1    | Waiting for SQL...
php-fpm-mailcow_1    | Uptime: 4  Threads: 8  Questions: 1  Slow queries: 0  Opens: 17  Flush tables: 1  Open tables: 11  Queries per second avg: 0.250
php-fpm-mailcow_1    | Waiting for Redis...
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 56  Threads: 40  Questions: 316  Slow queries: 0  Opens: 214  Flush tables: 1  Open tables: 206  Queries per second avg: 5.642
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 74  Threads: 40  Questions: 380  Slow queries: 0  Opens: 215  Flush tables: 1  Open tables: 207  Queries per second avg: 5.135
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 91  Threads: 40  Questions: 402  Slow queries: 0  Opens: 218  Flush tables: 1  Open tables: 210  Queries per second avg: 4.417
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 108  Threads: 40  Questions: 465  Slow queries: 0  Opens: 218  Flush tables: 1  Open tables: 210  Queries per second avg: 4.305
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 125  Threads: 40  Questions: 521  Slow queries: 0  Opens: 218  Flush tables: 1  Open tables: 210  Queries per second avg: 4.168
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 144  Threads: 40  Questions: 743  Slow queries: 0  Opens: 231  Flush tables: 1  Open tables: 223  Queries per second avg: 5.159
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 161  Threads: 40  Questions: 770  Slow queries: 0  Opens: 231  Flush tables: 1  Open tables: 223  Queries per second avg: 4.782
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 178  Threads: 40  Questions: 821  Slow queries: 0  Opens: 231  Flush tables: 1  Open tables: 223  Queries per second avg: 4.612
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 204  Threads: 40  Questions: 891  Slow queries: 0  Opens: 231  Flush tables: 1  Open tables: 223  Queries per second avg: 4.367
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 220  Threads: 40  Questions: 919  Slow queries: 0  Opens: 231  Flush tables: 1  Open tables: 223  Queries per second avg: 4.177
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 236  Threads: 40  Questions: 977  Slow queries: 0  Opens: 231  Flush tables: 1  Open tables: 223  Queries per second avg: 4.139
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 252  Threads: 40  Questions: 1045  Slow queries: 0  Opens: 231  Flush tables: 1  Open tables: 223  Queries per second avg: 4.146
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 268  Threads: 40  Questions: 1071  Slow queries: 0  Opens: 231  Flush tables: 1  Open tables: 223  Queries per second avg: 3.996
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 285  Threads: 40  Questions: 1123  Slow queries: 0  Opens: 231  Flush tables: 1  Open tables: 223  Queries per second avg: 3.940
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 300  Threads: 40  Questions: 1149  Slow queries: 0  Opens: 231  Flush tables: 1  Open tables: 223  Queries per second avg: 3.830
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 316  Threads: 40  Questions: 1237  Slow queries: 0  Opens: 231  Flush tables: 1  Open tables: 223  Queries per second avg: 3.914
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 332  Threads: 40  Questions: 1258  Slow queries: 0  Opens: 231  Flush tables: 1  Open tables: 223  Queries per second avg: 3.789
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 347  Threads: 40  Questions: 1314  Slow queries: 0  Opens: 231  Flush tables: 1  Open tables: 223  Queries per second avg: 3.786
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 362  Threads: 40  Questions: 1374  Slow queries: 0  Opens: 231  Flush tables: 1  Open tables: 223  Queries per second avg: 3.795
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 378  Threads: 40  Questions: 1405  Slow queries: 0  Opens: 231  Flush tables: 1  Open tables: 223  Queries per second avg: 3.716
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 393  Threads: 40  Questions: 1430  Slow queries: 0  Opens: 231  Flush tables: 1  Open tables: 223  Queries per second avg: 3.638
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 408  Threads: 40  Questions: 1488  Slow queries: 0  Opens: 231  Flush tables: 1  Open tables: 223  Queries per second avg: 3.647
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 422  Threads: 40  Questions: 1519  Slow queries: 0  Opens: 231  Flush tables: 1  Open tables: 223  Queries per second avg: 3.599
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 461  Threads: 40  Questions: 1624  Slow queries: 0  Opens: 232  Flush tables: 1  Open tables: 224  Queries per second avg: 3.522
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
php-fpm-mailcow_1    | Uptime: 475  Threads: 40  Questions: 1650  Slow queries: 0  Opens: 232  Flush tables: 1  Open tables: 224  Queries per second avg: 3.473
php-fpm-mailcow_1    | Running DB init...
php-fpm-mailcow_1    | Fixed _sogo_static_view
php-fpm-mailcow_1    | Cleaned up memcached
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | 1
php-fpm-mailcow_1    | patching file /web/nextcloud/lib/private/legacy/template.php
andryyy commented 5 years ago

Ah, can you run docker-compose pull php-fpm-mailcow again and docker-compose up -d?

dtoenies commented 5 years ago

Did it but no luck. Now I have the internal server error again

andryyy commented 5 years ago

Ok, thank you very much for trying, I will fix the image later. :-)

dtoenies commented 5 years ago

Okay, should I revert the changes in docker-compose.yml?

andryyy commented 5 years ago

Sorry, yes!

dtoenies commented 5 years ago

Thanks for the fast fix! It is working again

Grüße aus dem Ruhrgebiet ;-)

andryyy commented 5 years ago

What a STUPID mistake.

Nextcloud does not like a folder /templates. There was a patch for owncloud a few years ago. It was never merged, because it was an edge case.

I don’t understand their reasoning. It is an edge case, but it is still a fricking bug.

Maybe Nextxloud merges it. :)