odd python/linux/cherrypy behavior

Neil Hodgson nyamatongwe at gmail.com
Sat Jul 16 21:16:05 EDT 2005


Bill Mill:

> Definitely not mounted with short file names, and there aren't any
> non-ASCIIs in the file names; in both cases I imagine that the file
> wouldn't run at all. In this case, however, the file does run, and
> open a socket, it just can't seem to receive connections on it. I have
> tried running the file as su, with no success.

   Works for me as root or unprivileged user using CherryPy-2.1.0-beta.

> The FAT dirs are mounted with the following options:
> defaults,user,umask=000 . 

   From fstab:
/dev/hda6		/win			vfat	utf8,shortname=winnt

   You may have some file content transformation such as \r\n->\n
translation (conv=text) occurring.

> I'm not sure what you mean by the execute
> bit, but all files do have execute permission. Here's the output of an
> ls -l on the file I'm talking about:
> 
> -rwxrwxrwx  1 root root 1073 2005-07-15 21:40
> /d/download/cherrypy/tutorial/tut01_helloworld.py

-rwxr-xr-x  1 root root 1074 Jun 26 17:28 tut01_helloworld.py

   Here is the output from the run

[root at localhost tutorial]# python tut01_helloworld.py
2005/07/17 11:01:33 CONFIG INFO Reading infos from configFile: tutorial.conf
2005/07/17 11:01:33 CONFIG INFO Server parameters:
2005/07/17 11:01:33 CONFIG INFO   server.environment: production
2005/07/17 11:01:33 CONFIG INFO   server.logToScreen: True
2005/07/17 11:01:33 CONFIG INFO   server.logFile:
2005/07/17 11:01:33 CONFIG INFO   server.protocolVersion: HTTP/1.0
2005/07/17 11:01:33 CONFIG INFO   server.socketHost:
2005/07/17 11:01:33 CONFIG INFO   server.socketPort: 8080
2005/07/17 11:01:33 CONFIG INFO   server.socketFile:
2005/07/17 11:01:33 CONFIG INFO   server.reverseDNS: False
2005/07/17 11:01:33 CONFIG INFO   server.socketQueueSize: 5
2005/07/17 11:01:33 CONFIG INFO   server.threadPool: 10
2005/07/17 11:01:33 HTTP INFO Serving HTTP on socket: ('', 8080)
2005/07/17 11:01:56 HTTP INFO 127.0.0.1 - GET / HTTP/1.1
2005/07/17 11:01:56 HTTP INFO 127.0.0.1 - GET /favicon.ico HTTP/1.1

   Neil



More information about the Python-list mailing list