Re: odd python/linux/cherrypy behavior
Bill Mill: ... a FAT partition for data as a dmz which both linux and NT can access ... Yesterday, I downloaded the new release of cherrypy, and stuck it on the dmz drive. ... Eventually, after thinking it's a hosts file problem, or a firewall problem, I figure out that if I move it to my ext3 drive, it again works perfectly. Have you looked at your mount options to make sure they are sane? Possibly you have mounted with only short (truncated) file names or all the files have their execute bit on and that is unexpected or there are non-ASCII characters in file names or ... Neil -- http://mail.python.org/mailman/listinfo/python-list
Re: odd python/linux/cherrypy behavior
On 7/16/05, Neil Hodgson [EMAIL PROTECTED] wrote: Bill Mill: ... a FAT partition for data as a dmz which both linux and NT can access ... Yesterday, I downloaded the new release of cherrypy, and stuck it on the dmz drive. ... Eventually, after thinking it's a hosts file problem, or a firewall problem, I figure out that if I move it to my ext3 drive, it again works perfectly. Have you looked at your mount options to make sure they are sane? Possibly you have mounted with only short (truncated) file names or all the files have their execute bit on and that is unexpected or there are non-ASCII characters in file names or ... 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. The FAT dirs are mounted with the following options: defaults,user,umask=000 . 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 Any other ideas? Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list
Re: odd python/linux/cherrypy behavior
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 /winvfatutf8,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 [EMAIL PROTECTED] 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 -- http://mail.python.org/mailman/listinfo/python-list
Re: odd python/linux/cherrypy behavior
On 7/16/05, Dennis Lee Bieber [EMAIL PROTECTED] wrote: On Sat, 16 Jul 2005 19:54:31 -0400, Bill Mill [EMAIL PROTECTED] declaimed the following in comp.lang.python: The FAT dirs are mounted with the following options: defaults,user,umask=000 . 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 Out of curiosity, is it possible to change ownership to your user account? Thanks a lot, that worked. Any guess as to why? Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list