Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 11 by
tgood...@gmail.com: FCGI servers do not start.
http://code.google.com/p/pycopia/issues/detail?id=11
What module are you referring to?
WWW/*
QA/webui
db/webui
What operating system?
CentOS, Fedora
Please provide any additional information below.
When activating additional fcgi servers beyond the default settings to use
only "auth" in website.conf (for example the default website.conf contains
FQDN: ["auth", "qa", "storage"] ) errors are thrown indicating missing
source files which are described in the LOCATIONMAP of each respective
server's pycopia config file.
For example with the 'qa' and 'storage' servers the following errors are
reported:
# /usr/libexec/pycopia/fcgi_server -n qa
Traceback (most recent call last):
File "/usr/libexec/pycopia/fcgi_server", line 17, in <module>
sys.exit(fcgiserver.run_server(sys.argv))
File "/home/tyler/repos/pycopia/WWW/pycopia/WWW/fcgiserver.py", line 187,
in run_server
server = get_server(config)
File "/home/tyler/repos/pycopia/WWW/pycopia/WWW/fcgiserver.py", line 71,
in get_server
app = framework.FrameworkAdapter(config)
File "/home/tyler/repos/pycopia/WWW/pycopia/WWW/framework.py", line 605,
in __init__
config.get(b"BASEPATH", "/%s" % (config.SERVERNAME,)))
File "/home/tyler/repos/pycopia/WWW/pycopia/WWW/framework.py", line 519,
in __init__
self.register(pattern, methname)
File "/home/tyler/repos/pycopia/WWW/pycopia/WWW/framework.py", line 524,
in register
method = get_method(method)
File "/home/tyler/repos/pycopia/WWW/pycopia/WWW/framework.py", line 872,
in get_method
mod = _get_module(name[:dot])
File "/home/tyler/repos/pycopia/WWW/pycopia/WWW/framework.py", line 880,
in _get_module
mod = __import__(name)
ImportError: No module named dashboard
After removing the lines:
(r"^/dashboard/$", "pycopia.QA.webui.dashboard.main"),
(r"^/dashframe/$", "pycopia.QA.webui.dashboard.dashframe"),
(r"^/testresults/?$", "pycopia.QA.webui.testresults.testresults_list"),
The server appears to start after browsing to localhost/qa but only
provides a login screen which doesn't seem to except any reasonable set of
credentials defined elsewhere in the config db or config files??
I get similar results when trying to run the 'storage' fcgi server:
# /usr/libexec/pycopia/fcgi_server -n storage
Traceback (most recent call last):
File "/usr/libexec/pycopia/fcgi_server", line 17, in <module>
sys.exit(fcgiserver.run_server(sys.argv))
File "/home/tyler/repos/pycopia/WWW/pycopia/WWW/fcgiserver.py", line 187,
in run_server
server = get_server(config)
File "/home/tyler/repos/pycopia/WWW/pycopia/WWW/fcgiserver.py", line 71,
in get_server
app = framework.FrameworkAdapter(config)
File "/home/tyler/repos/pycopia/WWW/pycopia/WWW/framework.py", line 605,
in __init__
config.get(b"BASEPATH", "/%s" % (config.SERVERNAME,)))
File "/home/tyler/repos/pycopia/WWW/pycopia/WWW/framework.py", line 519,
in __init__
self.register(pattern, methname)
File "/home/tyler/repos/pycopia/WWW/pycopia/WWW/framework.py", line 524,
in register
method = get_method(method)
File "/home/tyler/repos/pycopia/WWW/pycopia/WWW/framework.py", line 873,
in get_method
return getattr(mod, name[dot+1:])
AttributeError: 'module' object has no attribute 'main'
So my question is :
Is the framework missing the required source files to allow for web based
management and control of the qa framework or are the the default fcgi
server config files in /etc/pycopia incorrect?
I would like to use the pycopia web based facilities for
testcase/equipment/environment management and database configuration if it
is possible and would appreciate it very much if you can point me in the
right direction regarding hard how to configure the framework to use these
features.
Thanks so much for your time!
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings