Comments (5)
I'm sorry, when I ran my script from the Apache then everything fine!
BTW, Many thanks to you for this fork of flup that can I run my app with Python 3. :-)
from flipflop.
Hi! That's cool to know that flipflop can be useful for other users :). We know this error, I'll try to see if there's a way to get a better error message.
from flipflop.
Hi how do you run the script from the Apache?
from flipflop.
Hi have the same issue
My python version:
/usr/bin/env python -V
Python 2.7.3
My apache2 config vhost includes one page being served by rack and the cgi as a callback url running a fcgi
<VirtualHost *:80>
ServerName XXXXXX
DocumentRoot /var/www/XXXXX
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AddHandler cgi-script .cgi
AddHandler fastcgi-script .fcgi .fcg .fpl
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/XXXX
CustomLog /var/log/apache2/XXXXX
RackAutoDetect On
Alias /static /usr/local/lib/python2.7/dist-packages/XXXX/XXXX
</VirtualHost>
The error I get is that (just forcing the fcgi without any payload):
./python.fcgi
Traceback (most recent call last):
File "./python.fcgi", line 60, in <module>
WSGIServer(app).run()
File "/usr/local/lib/python2.7/dist-packages/flipflop.py", line 938, in run
sock.getpeername()
socket.error: [Errno 88] Socket operation on non-socket
Any help will be more than welcome, thanks!
from flipflop.
Launching python.fcgi
directly won't work. You have to get the real logs from Apache if you want some help 😄.
from flipflop.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flipflop.