Issue 11 in pycopia: FCGI servers do not start.

4 views
Skip to first unread message

pyc...@googlecode.com

unread,
Sep 16, 2013, 1:11:58 PM9/16/13
to pyc...@googlegroups.com
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

pyc...@googlecode.com

unread,
Apr 25, 2014, 6:10:27 PM4/25/14
to pyc...@googlegroups.com
Updates:
Status: Accepted

Comment #1 on issue 11 by keith.d...@gmail.com: FCGI servers do not start.
http://code.google.com/p/pycopia/issues/detail?id=11

The server needs to be configured in the /etc/pycopia/storage.conf file for
this to work. I think there is still some experimental entries there that
can be commented out.

But mostly that web interface isn't much there, and will be changing to a
REST style soon. But basically, the handler defined in there must exist.

pyc...@googlecode.com

unread,
Feb 8, 2015, 3:24:10 PM2/8/15
to pyc...@googlegroups.com
Updates:
Status: WontFix

Comment #2 on issue 11 by keith.d...@gmail.com: FCGI servers do not start.
https://code.google.com/p/pycopia/issues/detail?id=11

This is still a work in progress. The WWW framework is functional, but the
actual QA front-end is not complete. You can use the dbedit terminal-based
tool for now.

The web interface is making some progress in the next generation pycopia,
pycopia3:

https://github.com/kdart/pycopia3

That's where the ultimate fix will go, but this not done yet, either.
Reply all
Reply to author
Forward
0 new messages