Code Monkey home page Code Monkey logo

Comments (5)

Scottie313 avatar Scottie313 commented on September 26, 2024

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.

liZe avatar liZe commented on September 26, 2024

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.

ealvarez1203 avatar ealvarez1203 commented on September 26, 2024

Hi how do you run the script from the Apache?

from flipflop.

currupipi avatar currupipi commented on September 26, 2024

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.

liZe avatar liZe commented on September 26, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.