<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>The not
      successful one prints out information about Content-Type and
      Content-Length and mod_wsgi starts a new process</div></blockquote><div><br></div><div>I am wondering if the new apache mod_wsgi process does not have permission to save the file since it launches a new process to handle the web request.<br></div><ol><li>What directory, user, and group is the application being served from?</li><li>Try setting up your apache config file like <a href="http://flask.pocoo.org/docs/1.0/deploying/mod_wsgi/#configuring-apache">http://flask.pocoo.org/docs/1.0/deploying/mod_wsgi/#configuring-apache</a><br></li><ol><li>For debugging. turn on <span style="font-family:monospace,monospace">sys.stdout</span> and <span style="font-family:monospace,monospace">sys.stderr</span> using: <span style="font-family:monospace,monospace">WSGIRestrictStdout Off</span></li><li>The syntax for directory permissions changed from 2.2 to 2.4:<span style="font-family:monospace,monospace"> Require all granted<br></span></li></ol><li>I updated my fork with some print and flash debugging messages: <a href="https://github.com/scottwernervt/flask-upload-issue-arm/commits/master/views.py">https://github.com/scottwernervt/flask-upload-issue-arm/commits/master/views.py</a></li></ol><div><a href="https://modwsgi.readthedocs.io/en/develop/user-guides/debugging-techniques.html">https://modwsgi.readthedocs.io/en/develop/user-guides/debugging-techniques.html</a><br></div><div><br></div></div></div></div></div></div></div></div><div class="gmail_quote"><div dir="ltr">On Thu, Oct 4, 2018 at 6:23 AM Michael Bayer <<a href="mailto:lists@mjbayer.de">lists@mjbayer.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <p>Hi,</p>
    <p>short update: <br>
    </p>
    <p>- On the ARM device, when I use the flask development wsgi
      server, I do not have any issues</p>
    <p>- Using Apache: Even with LogLevel "trace8" I do not see any logs
      regarding the issue. I compared the traces from a successful
      upload with a not successful one. Main difference is: The not
      successful one prints out information about Content-Type and
      Content-Length and mod_wsgi starts a new process. Both lines are
      missing in the logs of the successful transmission.<br>
    </p>
    <p><br>
    </p>
    <p>Here the logs of a successful <64k file upload:</p>
    <p>[] Headers received from client:, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Host: 192.168.178.38, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0)
      Gecko/20100101 Firefox/52.0, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Accept:
      text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,
      referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Accept-Language: de-DE, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Accept-Encoding: gzip, deflate, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a>, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   DNT: 1, referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Connection: keep-alive, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Upgrade-Insecure-Requests: 1, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] AH01626: authorization result of Require all granted: granted,
      referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] AH01626: authorization result of <RequireAny>: granted,
      referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] request authorized without authentication by access_checker_ex
      hook: /trackdb/, referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] AH01626: authorization result of Require all granted: granted,
      referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] AH01626: authorization result of <RequireAny>: granted,
      referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] request authorized without authentication by access_checker_ex
      hook: /, referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] AH01626: authorization result of Require all granted: granted,
      referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] AH01626: authorization result of <RequireAny>: granted,
      referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] request authorized without authentication by access_checker_ex
      hook: /index.html, referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] AH01626: authorization result of Require all granted: granted,
      referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] AH01626: authorization result of <RequireAny>: granted,
      referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] request authorized without authentication by access_checker_ex
      hook: /index.cgi, referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] AH01626: authorization result of Require all granted: granted,
      referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] AH01626: authorization result of <RequireAny>: granted,
      referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] request authorized without authentication by access_checker_ex
      hook: /<a href="http://index.pl" target="_blank">index.pl</a>, referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] AH01626: authorization result of Require all granted: granted,
      referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] AH01626: authorization result of <RequireAny>: granted,
      referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] request authorized without authentication by access_checker_ex
      hook: /index.php, referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] AH01626: authorization result of Require all granted: granted,
      referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] AH01626: authorization result of <RequireAny>: granted,
      referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] request authorized without authentication by access_checker_ex
      hook: /index.xhtml, referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] AH01626: authorization result of Require all granted: granted,
      referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] AH01626: authorization result of <RequireAny>: granted,
      referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] request authorized without authentication by access_checker_ex
      hook: /index.htm, referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] Content-Type 'text/html; charset=utf-8' ..., referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] ... did not match 'application/xml', referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] Content-Type condition for 'deflate' did not match, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] Content-Type 'text/html; charset=utf-8' ..., referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] ... did not match 'application/rss+xml', referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] Content-Type condition for 'deflate' did not match, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] Content-Type 'text/html; charset=utf-8' ..., referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] ... did not match 'application/x-javascript', referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] ... did not match 'application/javascript', referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] ... did not match 'application/ecmascript', referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] Content-Type condition for 'deflate' did not match, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] Content-Type 'text/html; charset=utf-8' ..., referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] ... did not match 'text/css', referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] Content-Type condition for 'deflate' did not match, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] Content-Type 'text/html; charset=utf-8' ..., referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] ... matched 'text/html', referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] Content-Type condition for 'deflate' matched, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] Response sent with status 200, headers:, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Date: Thu, 04 Oct 2018 09:20:13 GMT, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Server: Apache/2.4.25 (Raspbian), referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Vary: Accept-Encoding, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Content-Encoding: gzip, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Keep-Alive: timeout=5, max=99, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Connection: Keep-Alive, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Transfer-Encoding: chunked, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Content-Type: text/html; charset=utf-8, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] core_output_filter: flushing because of FLUSH bucket<br>
      <br>
      <br>
    </p>
    <p>Here the logs of a not successfull >64k file upload:<br>
    </p>
    <p>[] Request received from client: POST /trackdb/add HTTP/1.1<br>
      [] Headers received from client:, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Host: 192.168.178.38, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0)
      Gecko/20100101 Firefox/52.0, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Accept:
      text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,
      referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Accept-Language: de-DE, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Accept-Encoding: gzip, deflate, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a>, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   DNT: 1, referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Connection: keep-alive, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Upgrade-Insecure-Requests: 1, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Content-Type: multipart/form-data;
      boundary=---------------------------1459554725190952609947987496,
      referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Content-Length: 80688, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] AH01626: authorization result of Require all granted: granted,
      referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] AH01626: authorization result of <RequireAny>: granted,
      referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] request authorized without authentication by access_checker_ex
      hook: /trackdb/add, referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] AH01626: authorization result of Require all granted: granted,
      referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] AH01626: authorization result of <RequireAny>: granted,
      referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] request authorized without authentication by access_checker_ex
      hook: /add, referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] mod_wsgi (pid=4976): Create interpreter '127.0.1.1|/trackdb'.<br>
      [] mod_wsgi (pid=4976, process='',
      application='127.0.1.1|/trackdb'): Loading WSGI script
      '/var/www/trackdb/flaskapp.wsgi'., referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] Response sent with status 400, headers:, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Date: Thu, 04 Oct 2018 09:19:27 GMT, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Server: Apache/2.4.25 (Raspbian), referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Content-Length: 192, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Connection: close, referer: <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      []   Content-Type: text/html, referer:
      <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://192.168.178.38/trackdb/add" target="_blank">http://192.168.178.38/trackdb/add</a><br>
      [] core_output_filter: flushing because of FLUSH bucket<br>
      <br>
    </p>
    <p>Michael<br>
    </p>
    <br>
    <div class="gmail-m_5711560783461666809moz-cite-prefix">Am 03.10.2018 um 15:41 schrieb Michael
      Bayer:<br>
    </div>
    <blockquote type="cite">
      
      <div class="gmail-m_5711560783461666809moz-text-flowed" style="font-family:monospace;font-size:12px" lang="x-unicode"> <br>
        Am 02.10.2018 um 23:39 schrieb Geert Stappers: <br>
        <blockquote type="cite" style="color:rgb(0,0,0)">On Tue, Oct 02,
          2018 at 05:05:47PM +0200, Michael Bayer wrote: <br>
          <blockquote type="cite" style="color:rgb(0,0,0)">Hi everyone, <br>
            <br>
            I discovered a funny behavior of my flask app, when running
            on ARM <br>
            based apache wsgi servers. Could you please give me some
            hints to <br>
            debug this? <span class="gmail-m_5711560783461666809moz-smiley-s1" title=":-)"></span>
            <br>
            <br>
            I have a flask application, that supports file upload. <br>
            It runs on an ARM based debian stable server with apache
            wsgi. <br>
            If I upload small files, everything is fine. The problem
            appears, <br>
            when I upload files with a file size >64kb. The famous
            "Bad request <br>
            - The browser (or proxy) sent a request that this server
            could not <br>
            understand." pops up. <br>
            <br>
            Things I tried out so far: <br>
            - Deploying my flask app to my productive ARM based
            webserver (debian <br>
               stable): Here I discovered the issue. <br>
            - Running in flask's development wsgi server on my
            Development PC: <br>
                No problem, I can upload files with any size I want. <br>
            - Clean debian stable installation in a virtualbox on my
            Development <br>
               PC (AMD64) same packages as my productive server, but
            AMD64 instead <br>
               of armhf (apache, mod_wsgi): Again no problems at all. <br>
            - Clean installation of raspian on a spare ARM Raspberry Pi
            (based on <br>
               debian 9) with apache, mod_wsgi: Here comes the problem
            again! <br>
            - Increase apache LogLevel to debug -> no error logged <br>
            - Activate FileLogging inside my flask app -> no error
            logged <br>
            <br>
            Have you seen anything like this? <br>
          </blockquote>
          No. <br>
          <br>
          Thing that intriges me, is that 64K   is a 16-bit limit. <br>
          ARMHF versus AMD64  is 32-bit vs 64-bit ... <br>
        </blockquote>
        Thanks for your answer! <br>
        Yes, this is strange. I also don't have an explanation <br>
        <blockquote type="cite" style="color:rgb(0,0,0)"> <br>
          <blockquote type="cite" style="color:rgb(0,0,0)">I
            unfortunately do not have much experience with web
            servers/development <br>
            so I'm stuck with my debugging approaches :/ <br>
            <br>
            What could I do besides that? <br>
          </blockquote>
          Consider it a none flask problem, it will allow you to look at
          Apache, <br>
          uWSGI, Python and other links in the chain. Is a webproxy
          involved?? <br>
        </blockquote>
        <br>
        There is no proxy in the network. <br>
        <br>
        <br>
        <blockquote type="cite" style="color:rgb(0,0,0)">
          <blockquote type="cite" style="color:rgb(0,0,0)">What
            information do you need from my side? <br>
            I can provide any code/configuration you need. <br>
          </blockquote>
          That will help reproducing the problem. <br>
        </blockquote>
        I created a minimal example to reproduce the error: <br>
        <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="https://github.com/mjbayer/flask-upload-issue-arm" target="_blank">https://github.com/mjbayer/flask-upload-issue-arm</a>
        <br>
        <br>
        This repo contains code, configuration and example files that
        can be used for upload. <br>
        <br>
        Here is a demo Raspberry Pi (just for that purpose) to try it
        out: <br>
        <a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="http://rgb.mjbayer.de/trackdb/" target="_blank">http://rgb.mjbayer.de/trackdb/</a>
        <br>
        (I could also give ssh access to the Raspi if required) <br>
        <br>
        If you run the code in flasks development wsgi server or apache
        mod_wsgi on AMD64, you will not see the issue. <br>
        <br>
        <br>
        Michael <br>
        <br>
      </div>
      <br>
      <fieldset class="gmail-m_5711560783461666809mimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________
Flask mailing list
<a class="gmail-m_5711560783461666809moz-txt-link-abbreviated" href="mailto:Flask@python.org" target="_blank">Flask@python.org</a>
<a class="gmail-m_5711560783461666809moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/flask" target="_blank">https://mail.python.org/mailman/listinfo/flask</a>
</pre>
    </blockquote>
    <br>
  </div>

_______________________________________________<br>
Flask mailing list<br>
<a href="mailto:Flask@python.org" target="_blank">Flask@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/flask" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/flask</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Scott Werner<br><a href="mailto:scott.werner.vt@gmail.com" target="_blank">scott.werner.vt@gmail.com</a><br></div></div></div></div></div></div></div>