Getting zctl.py To Start ftpd-- Was: Is Anyone Listening?? Port 8021 Isn't!
It (finally) strikes me that the reason I can't get my ftpd started on port 8021 is because I'm using InstanceHome and zctl.py, not the standard *start* script in the distro. So...How do I get ftpd started from zctl.py? Here's what the script has: I'm trying to figure out how to pass a flag or tweak the script. Suggestions? for client in clients: args = list(zope_args) if client != 'default': ZOPE_PORT = ZOPE_LOG = ZOPE_OPTS = '' CLIENT_HOME = pjoin(HERE, client) conf = pjoin(CLIENT_HOME, 'conf.py') if not (isdir(CLIENT_HOME) and isfile(conf)): print 'Client configuration file "%s" was not found.' % conf continue execfile(conf, globals()) args.append('"CLIENT_HOME=%s"' % CLIENT_HOME) if ZOPE_OPTS: args.insert(0, ZOPE_OPTS) if ZOPE_PORT: args.insert(0, '-P %s' % ZOPE_PORT) if ZOPE_LOG: args.append('"STUPID_LOG_FILE=%s"' % ZOPE_LOG) for k,v in ZOPE_ENV.items(): env[k] = str(v) if ZEO: start_zeo(zeo_args) print 'Starting %s Zope...' % client run(cmd % string.join(args)) At 07:33 PM 10/2/2002 -0400, you wrote:
the $@ just gathers all the command line stuff you typed after "start"
Thanks.
the Z2.log file is your standard web log, it should be in the var directory. you don't see it? weird
Oops. It's under InstanceHome/var
how are you verifying that 8021 is not working? can you telnet to that port?
I can't telnet into my box (I could within the box, but forget how <:-) I can't use WS_FTP to get in on that port. Also, *netstat -n -a* doesn't show the port as being listened to.
is it possible that 8021 is somehow locked down? you could verify that 8021 is operational by restarting zope to run on that port and surf to it -- edit your start script and give it a shot.
I'm almost certain the problem is with the zctl.py script at this point. Thanks! beno
beno wrote:
It (finally) strikes me that the reason I can't get my ftpd started on port 8021 is because I'm using InstanceHome and zctl.py, not the
Are you sure you don't mean ZPublisher's FTP server rather than ftpd? cheers, Chris
beno wrote:
It (finally) strikes me that the reason I can't get my ftpd started on port 8021 is because I'm using InstanceHome and zctl.py
Old zctl.py, too. What does your zope.conf look like? You need to add something like '-f 8021' to your ZOPE_OPTS line. Cheers, Evan @ 4-am
At 10:33 AM 10/3/2002 -0500, you wrote:
beno wrote:
It (finally) strikes me that the reason I can't get my ftpd started on port 8021 is because I'm using InstanceHome and zctl.py
Old zctl.py, too. What does your zope.conf look like? You need to add something like '-f 8021' to your ZOPE_OPTS line.
ZOPE_HOME = pjoin(HERE, '..', 'Zope_software_home') ZOPE_OPTS = '-p - -f -' ZOPE_PORT = 8000 ZOPE_LOG = pjoin(HERE, 'var', 'debug.log') ZOPE_ENV['PRODUCTS_PATH'] = ("%(SOFTWARE_PRODUCTS)s:" + pjoin(HERE, '..', 'OtherProducts') + ":%(INSTANCE_PRODUCTS)s") ## ZEO ## # 'localhost' will be used if ZEO_SERVER_NAME has no setting. #ZEO['ZEO_SERVER_NAME'] = 'www.zeohost.com' # You must specify a ZEO_SERVER_PORT. ZEO['ZEO_SERVER_PORT'] = 5800 ZEO['STUPID_LOG_FILE'] = pjoin(HERE, 'var', 'ZEO_Server.log') ZEO_WAIT_BAILOUT = 200 # Don't try for more than num seconds DOUG HELLMAN WRITES:
It's (the ftp server) running on port 8021, just like you want. Instead of passing port info as an argument in ZOPE_OPTS, I am specifying the ZOPE_PORT, which is really the *base* port for all services. Since ftp is normally 21, the ZServer ftp port is ZOPE_BASE + 21 = 8021.
Well, I follow your logic (which is nifty), but my ZServer ftp *still* isn't running. So I'm still missing something. TIA again, beno
On Thu, Oct 03, 2002 at 06:53:05PM -0400, beno wrote:
At 10:33 AM 10/3/2002 -0500, you wrote:
beno wrote:
It (finally) strikes me that the reason I can't get my ftpd started on port 8021 is because I'm using InstanceHome and zctl.py
Old zctl.py, too. What does your zope.conf look like? You need to add something like '-f 8021' to your ZOPE_OPTS line.
ZOPE_HOME = pjoin(HERE, '..', 'Zope_software_home') ZOPE_OPTS = '-p - -f -' ^^^^
You just turned ftp off. These arguments are passed to z2.py, and are explained in the source to z2.py - easily readable, don't worry. --PW -- Paul Winkler "Welcome to Muppet Labs, where the future is made - today!"
beno wrote:
ZOPE_OPTS = '-p - -f -' ZOPE_PORT = 8000 ... Well, I follow your logic (which is nifty), but my ZServer ftp *still* isn't running. So I'm still missing something.
Actually, you have an *extra* something. The '-f -' in your ZOPE_OPTS is explicitly turning off the FTP port. Take it out. Cheers, Evan @ 4-am
At 11:16 PM 10/3/2002 -0500, you wrote:
beno wrote:
ZOPE_OPTS = '-p - -f -' ZOPE_PORT = 8000 ... Well, I follow your logic (which is nifty), but my ZServer ftp *still* isn't running. So I'm still missing something.
Actually, you have an *extra* something. The '-f -' in your ZOPE_OPTS is explicitly turning off the FTP port. Take it out.
That did it! Thank you (again)! beno
participants (4)
-
beno -
Chris Withers -
Evan Simpson -
Paul Winkler