473,324 Members | 2,214 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

odd python/linux/cherrypy behavior

On my laptop, I have an NTFS partition for NT, a FAT partition for
data as a dmz which both linux and NT can access, and an ext3
partition for linux. However, I've experienced some weirdness on the
FAT partition, and I'm wondering if anybody can tell me why it's
happening.

Yesterday, I downloaded the new release of cherrypy, and stuck it on
the dmz drive. I ran tutorial01, which opens up a server on port 8080
and waits for connections. All seemed well, initialization info
printed out, and it said it was waiting for connections on port 8080.
However, when I tried to connect to it (via firefox or telnet) it just
didn't respond. Not immediately - the connection attempts timed out. I
tried different ports, but that didn't change anything. A reboot into
NT, run the same file, it works perfectly.

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. Prints out the same information, says it's waiting on
8080, but this time, I can access it.

Can anybody posit a guess as to why it would behave this way?

Peace
Bill Mill
bill.mill at gmail.com
Jul 21 '05 #1
6 1388
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
Jul 21 '05 #2
On 7/16/05, Neil Hodgson <ny*****************@gmail.com> 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
Jul 21 '05 #3
On Sat, 16 Jul 2005 19:54:31 -0400, Bill Mill <bi*******@gmail.com>
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?

-- ================================================== ============ <
wl*****@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
================================================== ============ <
Home Page: <http://www.dm.net/~wulfraed/> <
Overflow Page: <http://wlfraed.home.netcom.com/> <

Jul 21 '05 #4
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@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
Jul 21 '05 #5
On 7/16/05, Dennis Lee Bieber <wl*****@ix.netcom.com> wrote:
On Sat, 16 Jul 2005 19:54:31 -0400, Bill Mill <bi*******@gmail.com>
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
Jul 21 '05 #6
On Sat, 16 Jul 2005 22:33:08 -0400, Bill Mill <bi*******@gmail.com>
declaimed the following in comp.lang.python:

Thanks a lot, that worked. Any guess as to why?
Sorry, no... 'Twas just a bit of wolf-fencing debug... Change
something blatant and see which side of it the wolf howl comes from <G.

Even though rwx shows for all users, I thought there might still
have been some little thing regarding access internally based on
group/owner...

-- ================================================== ============ <
wl*****@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
================================================== ============ <
Home Page: <http://www.dm.net/~wulfraed/> <
Overflow Page: <http://wlfraed.home.netcom.com/> <

Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Matthew Wilson | last post by:
I am about to start designing a web application for my office intranet. It is pretty simple: we need a way to track conversations with contacts and a way to update contact information. I could...
11
by: Michal Migurski | last post by:
Hi everyone, I've been planning to move to Python from PHP for some time now. I use PHP extensively for web scripting, with mod_php, Apache, and a DB (I would characterize my knowledge of PHP as...
7
by: kanzen | last post by:
I keep telling my friends that Python rocks. Now it's time to put my money where my mouth is. I'm about to start writing a server for a phone based game. It needs to handle simlpe requests from...
28
by: Admin | last post by:
I am doing some research for a Python framework to build web applications. I have discarted Zope because from what I've read, the learning curve is too steep, and it takes more time to build...
0
by: Thomas McLean | last post by:
Hi all, First post to the list, so first off, I'm new to Python and everything surrounding it so if you can please ignore my ignorance. I setup a cherryPY server so that I could use sabnzbd...
8
by: krishnakant Mane | last post by:
hello all. I will like to know if the following combination is possible. I have looked around on google and did not find any thing productive so bothering the list: sorry. I am developing a...
2
by: Brian Blais | last post by:
Hello, I'd like to start trying out some cherrypy apps, but I've been having some setup problems. I think I need some bone-head simple example to clear my understanding. :) I'm on a system...
8
by: jmDesktop | last post by:
I have been to the main python site, but am still confused. I have been using .net, so it may be obvious how to do this to everyone else. I am aware there are various frameworks (Django, Pylons,...
4
by: python | last post by:
I'm looking at rewriting some legacy VB applications and am pondering which of the following techniques to use: 1. Browser based GUI with local web server (Browser + wsgiref.simple_server) (I'm...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.