| Summary: | app-admin/webapp-config - typo in WebappConfig/config.py | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Péter Werner <Werner.Peter> |
| Component: | Current packages | Assignee: | Gentoo Web Application Packages Maintainers <web-apps> |
| Status: | RESOLVED FIXED | ||
| Severity: | trivial | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Péter Werner
2006-05-16 13:03:54 UTC
Confirmed, I've got the same problem here. vhost_perms_virtualowned_file was set to "o-w" when the problem occurred. Could anyone please pick this one up? It's been 3 months now and this keeps me from updating my Squirrelmail. The hack suggested by P Could anyone please pick this one up? It's been 3 months now and this keeps me from updating my Squirrelmail.
The hack suggested by Péter doesn't work for me btw.
Here's what I get:
---
(hostname) squirrelmail # webapp-config --upgrade -d squirrelmail/ squirrelmail 1.4.8
* Upgrading squirrelmail-1.4.5 to squirrelmail-1.4.8
* Installed by root on 2005-10-12 22:38:15
* Config files owned by apache:apache
Traceback (most recent call last):
File "/usr/sbin/webapp-config", line 44, in ?
main()
File "/usr/sbin/webapp-config", line 41, in main
config.run()
File "/usr/lib64/python2.4/site-packages/WebappConfig/config.py", line 1209, in run
old['WEB_PVR']).upgrade(self.config.get('USER', 'pn'),
File "/usr/lib64/python2.4/site-packages/WebappConfig/config.py", line 1304, in create_server
self.create_permissions(),
File "/usr/lib64/python2.4/site-packages/WebappConfig/config.py", line 1310, in create_permissions
return {'file' : {'virtual' : [self.get_user('vhost_default_uid'),
File "/usr/lib64/python2.4/site-packages/WebappConfig/config.py", line 607, in get_perm
except Expception, e:
NameError: global name 'Expception' is not defined
(hostname) squirrelmail #
---
The configfile worked for several updates using webapp-config before the error occured for the first time.
wrobel? (In reply to comment #2) > Could anyone please pick this one up? It's been 3 months now and this keeps me > from updating my Squirrelmail. Fixing this bug will not let you update squirrelmail just lets you get the nice error message. You can fix it by replacing "Expception" to "Exception" in /usr/lib64/python2.4/site-packages/WebappConfig/config.py line 607, really trivial. Also you could attach your /etc/vhosts/webapp-config here and I might find out your problem. However it does not exactly belong to this bug. On the other hand it can help people searching the bug database. Thanks for your reply.
I now understand that my problem is related to some configuration-error.
Since I didn't really do anything wierd to my configuration I guess there are more people out there having the same problem (although it's strange nobody else posted here to confirm that).
I will post my configuration and if the problem isn't clear immediately, I will post it on the forums to have it solved there. My webapp-config is as follows:
---
vhost_root="/var/www/${vhost_hostname}"
vhost_hostname="localhost"
vhost_server="apache"
vhost_config_default_dirs="default-owned"
vhost_config_virtual_files="virtual"
vhost_config_dir="${vhost_root}/conf"
vhost_default_uid="websites"
vhost_default_gid="users"
vhost_htdocs_insecure="htdocs"
vhost_htdocs_secure="htdocs-secure"
vhost_perms_serverowned_dir=755
vhost_perms_serverowned_file=644
vhost_perms_configowned_dir=755
vhost_perms_configowned_file=640
vhost_perms_defaultowned_dir="0755"
vhost_perms_virtualowned_file="o-w"
vhost_perms_installdir="0755"
WA_CONF_VERSION="7"
---
I'm running the latest version of webapp-config, v1.50.13.
(In reply to comment #5) Your problem is not obvious to me. I created a forum thread for your problem: http://forums.gentoo.org/viewtopic-p-3518985.html Fixed in webapp-config-1.50.16. This version is available from my overlay (http://overlays.gentoo.org/dev/wrobel) and will be moved to portage next week. Thanks for the report and the fix! |