Re: [modwsgi] microsoft visual c ++ runtime error r6034 when loading python script

2019-03-24 Thread Yaakov Blank
Just figured it out - there was an incompatibility with flask_validator 
classes - so I wrote my own and now all works fine. The SSL error was 
apparently incorrect now everything works fine
Thanks 

On Monday, March 25, 2019 at 2:37:08 AM UTC+2, Graham Dumpleton wrote:
>
> Sorry for the delay. This got lost when I was away on a trip.
>
> First up, I don't recommend using Python 2.7. It is almost impossible to 
> get working with Apache and mod_wsgi on Windows now. Use Python 3.6 or 
> later.
>
> As to the error, since you are using port 5000 and trying to enable HTTPS 
> on it, where as you would normally use port 80/443 for HTTP/HTTPS pair, I 
> suggest the error is because you are trying to access port 5000 using only 
> HTTP. That is "http://mewl7167:5000; instead of "https://mewl7167:5000;.
>
> On 13 Mar 2019, at 4:25 pm, Yaakov Blank > 
> wrote:
>
> I am using Flask and Python 2.7 on Windows.  The Flask development server 
> works fine.  However when I try to use on Apache at the first time the 
> server is accessed I get a "microsoft visual c ++ runtime error r6034" 
> dialog box.
>
> After clicking OK the server functions without any other runtime errors.
>
> Some additional data:
>
>1. Attached is the conf file
>2. Using TLS
>3. Have the following line in log   "*[ssl:info] [...End of file 
>found: [client ...: SSL input filter read failed*."
>4. This *doesn't *happen in a small Flask WSGI app
>
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to modwsgi+u...@googlegroups.com .
> To post to this group, send email to mod...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/d/optout.
> 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to modwsgi+unsubscr...@googlegroups.com.
To post to this group, send email to modwsgi@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.


Re: [modwsgi] microsoft visual c ++ runtime error r6034 when loading python script

2019-03-24 Thread Graham Dumpleton
Sorry for the delay. This got lost when I was away on a trip.

First up, I don't recommend using Python 2.7. It is almost impossible to get 
working with Apache and mod_wsgi on Windows now. Use Python 3.6 or later.

As to the error, since you are using port 5000 and trying to enable HTTPS on 
it, where as you would normally use port 80/443 for HTTP/HTTPS pair, I suggest 
the error is because you are trying to access port 5000 using only HTTP. That 
is "http://mewl7167:5000 " instead of 
"https://mewl7167:5000 ".

> On 13 Mar 2019, at 4:25 pm, Yaakov Blank  wrote:
> 
> I am using Flask and Python 2.7 on Windows.  The Flask development server 
> works fine.  However when I try to use on Apache at the first time the server 
> is accessed I get a "microsoft visual c ++ runtime error r6034" dialog box.
> 
> After clicking OK the server functions without any other runtime errors.
> 
> Some additional data:
> Attached is the conf file
> Using TLS
> Have the following line in log   "[ssl:info] [...End of file found: [client 
> ...: SSL input filter read failed."
> This doesn't happen in a small Flask WSGI app
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to modwsgi+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to modwsgi@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/modwsgi 
> .
> For more options, visit https://groups.google.com/d/optout 
> .
> 

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to modwsgi+unsubscr...@googlegroups.com.
To post to this group, send email to modwsgi@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.


[modwsgi] microsoft visual c ++ runtime error r6034 when loading python script

2019-03-24 Thread Yaakov Blank
I am using Flask and Python 2.7 on Windows.  The Flask development server 
works fine.  However when I try to use on Apache at the first time the 
server is accessed I get a "microsoft visual c ++ runtime error r6034" 
dialog box.

After clicking OK the server functions without any other runtime errors.

Some additional data:

   1. Attached is the conf file
   2. Using TLS
   3. Have the following line in log   "*[ssl:info] [...End of file found: 
   [client ...: SSL input filter read failed*."
   4. This *doesn't *happen in a small Flask WSGI app

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to modwsgi+unsubscr...@googlegroups.com.
To post to this group, send email to modwsgi@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.


ServerName mewl7167
WSGIScriptReloading On
WSGIScriptAlias / C:\workspace\crypto\KMS_API\kms_api_wsgi.py

AllowOverride All
Require all granted


LogLevel debug
SSLEngine on
SSLProtocol -all +TLSv1.2 +TLSv1.1
SSLCertificateFile C:\workspace\crypto\KMS_API\certificates\KMS_srv.crt
SSLCertificateKeyFile 
C:\workspace\crypto\KMS_API\certificates\KMS_srv_pKey.pem

#client CA
SSLVerifyClient require
SSLVerifyDepth 2
SSLCACertificateFile 
"C:\workspace\crypto\KMS_API\certificates\KMS_User_Inter01_caChain.crt"

#SetEnv nokeepalive ssl-unclean-shutdown