{"id":293,"date":"2021-12-12T07:12:28","date_gmt":"2021-12-11T19:12:28","guid":{"rendered":"http:\/\/www.herbert.org.nz\/?p=293"},"modified":"2021-12-12T07:12:28","modified_gmt":"2021-12-11T19:12:28","slug":"nextcloud-ios-app-crashes-when-photo-sync-enabled","status":"publish","type":"post","link":"https:\/\/www.herbert.org.nz\/?p=293","title":{"rendered":"Nextcloud ios app crashes when photo sync enabled"},"content":{"rendered":"\n<p>I recently installed Nextcloud on my home server running k3s. As soon as the ios app started to try and sync photos and videos, the ios app would crash. After a bit of digging, I checked the ingress-nginx logs (I&#8217;m using kubernetes ingress-nginx) I could see this error as soon as the sync was started:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">10.0.0.7 - fherbert [11\/Dec\/2021:18:53:35 +0000] \"PUT \/remote.php\/dav\/files\/fherbert\/Photos\/2020\/02\/20-02-16%2010-16-55%207082.jpg HTTP\/2.0\" 413 176 \"-\" \"Mozilla\/5.0 (iOS) Nextcloud-iOS\/4.1.0\" 205 0.000 [-] [] - - - - 6e8208e2ec7fd5fbf30e66ab874d4692\n2021\/12\/11 18:53:35 [error] 1260#1260: *1316538 client intended to send too large body: 4723855 bytes, client: 10.0.0.7, server: cloud.herbert.org.nz, request: \"PUT \/remote.php\/dav\/files\/fherbert\/Photos\/2020\/02\/20-02-16%2010-12-11%207081.jpg HTTP\/2.0\", host: \"cloud.herbert.org.nz\"\n<\/pre>\n\n\n\n<p>I&#8217;d seen this 413 error before from nginx, to fix this I needed to allow a larger <a href=\"https:\/\/kubernetes.github.io\/ingress-nginx\/user-guide\/nginx-configuration\/annotations\/#custom-max-body-size\">custom max body size<\/a> by adding the following annotation to my nextcloud ingress resource:<br><code>kubectl annotate ingress nextcloud nginx.ingress.kubernetes.io\/proxy-body-size=256m<\/code><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently installed Nextcloud on my home server running k3s. As soon as the ios app started to try and sync photos and videos, the ios app would crash. After a bit of digging, I checked the ingress-nginx logs (I&#8217;m &hellip; <a href=\"https:\/\/www.herbert.org.nz\/?p=293\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[18],"tags":[17,16,15],"class_list":["post-293","post","type-post","status-publish","format-standard","hentry","category-kubernetes","tag-k3s","tag-kubernetes","tag-nextcloud"],"_links":{"self":[{"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=\/wp\/v2\/posts\/293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=293"}],"version-history":[{"count":1,"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=\/wp\/v2\/posts\/293\/revisions"}],"predecessor-version":[{"id":294,"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=\/wp\/v2\/posts\/293\/revisions\/294"}],"wp:attachment":[{"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}