Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133530 - app-admin/webapp-config - typo in WebappConfig/config.py
Summary: app-admin/webapp-config - typo in WebappConfig/config.py
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-16 13:03 UTC by Péter Werner
Modified: 2006-12-31 02:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Péter Werner 2006-05-16 13:03:54 UTC
Expception instead of Exception

grep -n Expception /usr/lib64/python2.4/site-packages/WebappConfig/config.py
607:        except Expception, e:

You don't get the error message below but the python backtrace in case of one configuration error.

* Fatal error: You did specify an invalid permission value for the variable "vhost_perms_virtualowned_file'
* Fatal error(s) - aborting

(previous versions accepted "o=" noew you need a hack: "o-rwx"
Comment 1 Martijn T 2006-05-27 11:09:15 UTC
Confirmed, I've got the same problem here.

vhost_perms_virtualowned_file was set to "o-w" when the problem occurred.
Comment 2 Martijn T 2006-08-17 13:51:03 UTC
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
Comment 3 Martijn T 2006-08-17 13:51:03 UTC
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.
Comment 4 Renat Lumpau (RETIRED) gentoo-dev 2006-08-17 14:07:15 UTC
wrobel?
Comment 5 Péter Werner 2006-08-17 14:20:57 UTC
(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.
Comment 6 Martijn T 2006-08-17 15:31:49 UTC
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.
Comment 7 Péter Werner 2006-08-17 23:59:25 UTC
(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
Comment 8 Gunnar Wrobel (RETIRED) gentoo-dev 2006-12-31 02:47:34 UTC
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!