i am getting the following error and am not able to use nextcloud anymore. Here is the log file as well.
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.
2021/02/21 08:06:04 [error] 407#407: *10720 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.2, server: _, request: "PROPFIND /remote.php/webdav/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mgranger.com"
2021/02/21 08:06:04 [error] 407#407: *10719 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.18.0.2, server: _, request: "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mgranger.com"
2021/02/21 14:50:50 [error] 392#392: *12791 access forbidden by rule, client: 172.18.0.2, server: _, request: "GET /.git/HEAD HTTP/1.1", host: "nextcloud.mgranger.com"
2021/02/21 18:24:22 [error] 392#392: *19607 access forbidden by rule, client: 172.18.0.2, server: _, request: "GET /.git/HEAD HTTP/1.1", host: "nextcloud.mgranger.com"
2021/02/22 04:22:20 [error] 392#392: *38785 access forbidden by rule, client: 172.18.0.2, server: _, request: "GET /.git/HEAD HTTP/1.1", host: "nextcloud.mgranger.com"
2021/02/22 07:59:33 [error] 392#392: *45881 access forbidden by rule, client: 172.18.0.2, server: _, request: "GET /.git/HEAD HTTP/1.1", host: "nextcloud.mgranger.com"
2021/02/22 09:47:45 [error] 392#392: *50249 access forbidden by rule, client: 172.18.0.2, server: _, request: "GET /.git/HEAD HTTP/1.1", host: "nextcloud.mgranger.com"
2021/02/22 22:03:58 [error] 393#393: *10231 access forbidden by rule, client: 172.18.0.2, server: _, request: "GET /.git/HEAD HTTP/1.1", host: "nextcloud.mgranger.com"
2021/02/25 01:14:04 [error] 393#393: *129115 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 172.18.0.2, server: _, request: "GET /wp-login.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mgranger.com"
2021/02/25 01:14:06 [error] 393#393: *129118 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 172.18.0.2, server: _, request: "GET /wordpress/wp-login.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mgranger.com"
2021/02/25 01:14:07 [error] 393#393: *129121 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 172.18.0.2, server: _, request: "GET /blog/wp-login.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mgranger.com"
2021/02/25 01:14:09 [error] 393#393: *129124 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 172.18.0.2, server: _, request: "GET /wp/wp-login.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mgranger.com"
2021/02/26 07:22:54 [error] 393#393: *191405 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 36864 bytes) in /config/www/nextcloud/lib/private/legacy/OC_Image.php on line 498" while reading response header from upstream, client: 172.18.0.2, server: _, request: "GET /index.php/apps/files/api/v1/thumbnail/256/256/InstantUpload/Camera/2021/01/20210103_111032.jpg HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mgranger.com"
2021/02/26 07:22:55 [error] 393#393: *191411 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 36864 bytes) in /config/www/nextcloud/lib/private/legacy/OC_Image.php on line 498" while reading response header from upstream, client: 172.18.0.2, server: _, request: "GET /index.php/apps/files/api/v1/thumbnail/256/256/InstantUpload/Camera/2021/01/20210103_111038.jpg HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mgranger.com"
2021/02/26 07:22:57 [error] 393#393: *191415 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 36864 bytes) in /config/www/nextcloud/lib/private/legacy/OC_Image.php on line 498" while reading response header from upstream, client: 172.18.0.2, server: _, request: "GET /index.php/apps/files/api/v1/thumbnail/256/256/InstantUpload/Camera/2021/01/20210103_111044.jpg HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mgranger.com"
2021/02/26 07:22:59 [error] 393#393: *191421 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 36864 bytes) in /config/www/nextcloud/lib/private/legacy/OC_Image.php on line 498" while reading response header from upstream, client: 172.18.0.2, server: _, request: "GET /index.php/apps/files/api/v1/thumbnail/256/256/InstantUpload/Camera/2021/01/20210103_111619.jpg HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mgranger.com"
2021/02/26 07:23:02 [error] 393#393: *191425 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 36864 bytes) in /config/www/nextcloud/lib/private/legacy/OC_Image.php on line 498" while reading response header from upstream, client: 172.18.0.2, server: _, request: "GET /index.php/apps/files/api/v1/thumbnail/256/256/InstantUpload/Camera/2021/01/20210103_112101.jpg HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mgranger.com"
2021/02/26 07:23:04 [error] 393#393: *191431 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 36864 bytes) in /config/www/nextcloud/lib/private/legacy/OC_Image.php on line 498" while reading response header from upstream, client: 172.18.0.2, server: _, request: "GET /index.php/apps/files/api/v1/thumbnail/256/256/InstantUpload/Camera/2021/01/20210103_112203.jpg HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mgranger.com"
2021/02/26 07:23:06 [error] 393#393: *191439 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 36864 bytes) in /config/www/nextcloud/lib/private/legacy/OC_Image.php on line 498" while reading response header from upstream, client: 172.18.0.2, server: _, request: "GET /index.php/apps/files/api/v1/thumbnail/256/256/InstantUpload/Camera/2021/01/20210103_112209.jpg HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mgranger.com"
2021/02/26 07:23:08 [error] 393#393: *191441 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 36864 bytes) in /config/www/nextcloud/lib/private/legacy/OC_Image.php on line 498" while reading response header from upstream, client: 172.18.0.2, server: _, request: "GET /index.php/apps/files/api/v1/thumbnail/256/256/InstantUpload/Camera/2021/01/20210104_204440.jpg HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mgranger.com"
2021/02/26 07:23:10 [error] 393#393: *191449 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 36864 bytes) in /config/www/nextcloud/lib/private/legacy/OC_Image.php on line 498" while reading response header from upstream, client: 172.18.0.2, server: _, request: "GET /index.php/apps/files/api/v1/thumbnail/256/256/InstantUpload/Camera/2021/01/20210104_204444.jpg HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mgranger.com"
2021/02/26 07:23:12 [error] 393#393: *191453 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 36864 bytes) in /config/www/nextcloud/lib/private/legacy/OC_Image.php on line 498" while reading response header from upstream, client: 172.18.0.2, server: _, request: "GET /index.php/apps/files/api/v1/thumbnail/256/256/InstantUpload/Camera/2021/01/20210108_173936.jpg HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mgranger.com"
2021/02/26 07:23:33 [error] 393#393: *191487 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 36864 bytes) in /config/www/nextcloud/lib/private/legacy/OC_Image.php on line 498" while reading response header from upstream, client: 172.18.0.2, server: _, request: "GET /index.php/apps/files/api/v1/thumbnail/256/256/InstantUpload/Camera/2021/01/20210108_173941.jpg HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mgranger.com"
2021/02/26 07:23:35 [error] 393#393: *191489 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 49152 bytes) in /config/www/nextcloud/lib/private/legacy/OC_Image.php on line 498" while reading response header from upstream, client: 172.18.0.2, server: _, request: "GET /index.php/apps/files/api/v1/thumbnail/256/256/InstantUpload/Camera/2021/01/20210108_205709.jpg HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mgranger.com"
2021/02/26 07:23:37 [error] 393#393: *191493 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 49152 bytes) in /config/www/nextcloud/lib/private/legacy/OC_Image.php on line 498" while reading response header from upstream, client: 172.18.0.2, server: _, request: "GET /index.php/apps/files/api/v1/thumbnail/256/256/InstantUpload/Camera/2021/01/20210108_205713.jpg HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mgranger.com"
2021/02/26 07:23:39 [error] 393#393: *191495 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 49152 bytes) in /config/www/nextcloud/lib/private/legacy/OC_Image.php on line 498" while reading response header from upstream, client: 172.18.0.2, server: _, request: "GET /index.php/apps/files/api/v1/thumbnail/256/256/InstantUpload/Camera/2021/01/20210108_205715.jpg HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mgranger.com"
2021/02/26 09:01:12 [error] 392#392: *5 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.192, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.1.190:448"
2021/02/26 09:01:12 [error] 392#392: *5 open() "/config/www/nextcloud/favicon.ico" failed (2: No such file or directory), client: 192.168.1.192, server: _, request: "GET /favicon.ico HTTP/1.1", host: "192.168.1.190:448", referrer: "https://192.168.1.190:448/"
2021/02/26 10:43:31 [error] 386#386: *1754 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 172.18.0.2, server: _, request: "GET /wp-login.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: