473,756 Members | 3,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1408
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,u mask=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_helloworl d.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*******@gmai l.com>
declaimed the following in comp.lang.pytho n:

The FAT dirs are mounted with the following options:
defaults,user,u mask=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_helloworl d.py
Out of curiosity, is it possible to change ownership to your
"user" account?

-- =============== =============== =============== =============== == <
wl*****@ix.netc om.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
=============== =============== =============== =============== == <
Home Page: <http://www.dm.net/~wulfraed/> <
Overflow Page: <http://wlfraed.home.ne tcom.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,u mask=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_helloworl d.py


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

Here is the output from the run

[root@localhost tutorial]# python tut01_helloworl d.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.environm ent: production
2005/07/17 11:01:33 CONFIG INFO server.logToScr een: True
2005/07/17 11:01:33 CONFIG INFO server.logFile:
2005/07/17 11:01:33 CONFIG INFO server.protocol Version: HTTP/1.0
2005/07/17 11:01:33 CONFIG INFO server.socketHo st:
2005/07/17 11:01:33 CONFIG INFO server.socketPo rt: 8080
2005/07/17 11:01:33 CONFIG INFO server.socketFi le:
2005/07/17 11:01:33 CONFIG INFO server.reverseD NS: False
2005/07/17 11:01:33 CONFIG INFO server.socketQu eueSize: 5
2005/07/17 11:01:33 CONFIG INFO server.threadPo ol: 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.net com.com> wrote:
On Sat, 16 Jul 2005 19:54:31 -0400, Bill Mill <bi*******@gmai l.com>
declaimed the following in comp.lang.pytho n:

The FAT dirs are mounted with the following options:
defaults,user,u mask=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_helloworl d.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*******@gmai l.com>
declaimed the following in comp.lang.pytho n:

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.netc om.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
=============== =============== =============== =============== == <
Home Page: <http://www.dm.net/~wulfraed/> <
Overflow Page: <http://wlfraed.home.ne tcom.com/> <

Jul 21 '05 #7

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

Similar topics

8
1918
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 do it all in PHP or perl-mason, but I really like python's syntax and I have the time to learn something new. I've never used any of the web stuff for python. I need something that is easy and quick to learn. I need support for connection to...
11
1689
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 advanced). Here are three stumbling blocks I've experienced, for which I couldn't seem to find any helpful information via Google: 1) Mod_python on OSX. I use a Mac as my primary development environment, so I need mod_python to get anything...
7
1506
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 some Java code running on the phone at a fairly low transaction rate. There will also be a simple web site allowing users to edit preferences and so forth. I have just enough Python experience to decide that I prefer it over Java for this job. It'll...
28
4831
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 applications in general with Zope. I have kept the following: - PyWork - http://pywork.sourceforge.net (Not sure if it's mature) - Django - http://www.djangoproject.com (Looks interesting) - CherryPy - http://www.cherrypy.org (Unsure)
0
1214
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 but once, I have installed/configured what I was told by the tutorials and everything else. I run ubuntu x86 dapper FYI. The error messages I get from the logs are as follows (which don't really
8
1928
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 distributed application which will have 3 layers namely the thin client written in wxpython, an application layer on a server and a database server of course. database and application server will be on same physical machine. what I want to know is if...
2
7636
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 running Apache, that I don't have root access to. I will be publishing the html/image/python files in a directory off of my current web page, and running the app as a user on the system. I'd like to be able to specify the base url for the app,...
8
1584
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, etc.), but I would like to know how to create web pages without these. If I have mod_python or fastcgi on apache, where do I start? I don't have clue where to begin to create a web page from scratch in python. I am sure I will want to access...
4
2821
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 assuming that simple_server is class I want to build from for a local web server) -OR- 2. wxPython based GUI
0
9456
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10034
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9872
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9843
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7248
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5142
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.