Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

webapp-config fails parsing permissions

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
wpetya
n00b
n00b
User avatar
Posts: 9
Joined: Wed Aug 16, 2006 10:35 am

webapp-config fails parsing permissions

  • Quote

Post by wpetya » Fri Aug 18, 2006 6:58 am

See the beginnig of discussion here:
http://bugs.gentoo.org/show_bug.cgi?id=133530

Now I created this thread here, because it's not related to that bug.
If this is a bug we can create another bugzilla ticket.

How to find out why webapp-config --upgrade fails:
1. fix bug 133530 in your WebappConfig/config.py by erasing that extra "p"
2. run webapp-config in debug mode and attach the output here
3. you can try webapp-config --bug-report (See webapp-config | less for details.)
Top
Boosty
n00b
n00b
User avatar
Posts: 22
Joined: Fri Aug 12, 2005 6:48 pm
Location: The Netherlands
Contact:
Contact Boosty
Website

  • Quote

Post by Boosty » Fri Aug 18, 2006 9:47 am

Thanks.

Here's what I can get you:
Normally, I would be running webapp-config as follows:

Code: Select all

webapp-config --upgrade -d squirrelmail/ squirrelmail 1.4.8
1. Fixed that. Running webapp-config now results in this:

Code: Select all

* 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
* Fatal error: You did specify an invalid permission value for the variable "vhost_perms_serverowned_file'
* Fatal error(s) - aborting
2. Since the debugging output is quite large and I don't see options to attach something to this post, I uploaded the files to an external host. I will leave the files there for reference.

Code: Select all

webapp-config --debug --debug-level=9 --debug-nocolor --upgrade -d squirrelmail/ squirrelmail 1.4.8
Output debug level 9
Output debug level 10 (10 MB!)

3. It's not clear if I should use this parameter with or without --debug, but without it doesn't output anything at all.
When used together with --debug, it outputs this, independant of debug level:
Output debug plus bugreport

webapp-config:

Code: Select all

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 using the latest version of webapp-config to date, v1.50.13.
Last edited by Boosty on Fri Aug 25, 2006 7:09 pm, edited 1 time in total.
The nice thing about standards is that there are so many of them to choose from.
Top
wpetya
n00b
n00b
User avatar
Posts: 9
Joined: Wed Aug 16, 2006 10:35 am

solution ?

  • Quote

Post by wpetya » Fri Aug 18, 2006 10:17 am

It was so easy to overlook! Add the leading 0 before the octal numbers (0644 instead of 644).
Top
wpetya
n00b
n00b
User avatar
Posts: 9
Joined: Wed Aug 16, 2006 10:35 am

huge log files

  • Quote

Post by wpetya » Fri Aug 18, 2006 10:20 am

:idea: Just a hint: if you have so narrow outgoing bandwidth, bzip2 is your friend.
Top
Boosty
n00b
n00b
User avatar
Posts: 22
Joined: Fri Aug 12, 2005 6:48 pm
Location: The Netherlands
Contact:
Contact Boosty
Website

  • Quote

Post by Boosty » Fri Aug 18, 2006 11:08 am

Thanks, I will try that when I get back from my vacation ;)

The server is on a 100 Mbit connection, so no need to worry on the bandwidth, although I agree it would have been better to compress it. (I was in a hurry)

Still, did this kind of configuration work before? Because, I didn't change anything on this configuration for a long time, it looks like it stopped working after emerging the last version of webapp-config.
The nice thing about standards is that there are so many of them to choose from.
Top
wpetya
n00b
n00b
User avatar
Posts: 9
Joined: Wed Aug 16, 2006 10:35 am

  • Quote

Post by wpetya » Fri Aug 18, 2006 12:23 pm

I'm quite sure, there was a change in the tool, that's why it stopped working.
(I saw comments about an "old bash parser".)
E.g. chmod accepts 644 but it can be misinterpreted by the new version without the leading 0.
This (unclean upgrade) is a bug but I don't think anybody want's to fix it since it's too late.
The realistic improvement would be a more detailed error report about the wrong permission format.

I'm also on 100 Mbit but it came with 50 kB/s only.

Have a nice holiday!
Top
Boosty
n00b
n00b
User avatar
Posts: 22
Joined: Fri Aug 12, 2005 6:48 pm
Location: The Netherlands
Contact:
Contact Boosty
Website

  • Quote

Post by Boosty » Fri Aug 25, 2006 7:14 pm

Thanks for your help, the problem was solved and my webapp-config is working fine now :)

I think that a more detailed errormessage on these kind of configuration-errors would be a good addition.

The files I posted are now tar-gzipped. The level 10 debug still is quite large: 10 MB after a gzip -9 ;)
The nice thing about standards is that there are so many of them to choose from.
Top
wpetya
n00b
n00b
User avatar
Posts: 9
Joined: Wed Aug 16, 2006 10:35 am

  • Quote

Post by wpetya » Sat Aug 26, 2006 6:54 am

Short holiday, otherwise good ;)
Boosty wrote:The level 10 debug still is quite large: 10 MB after a gzip -9
bzip2 is your friend.
Top
Mad Alex
n00b
n00b
Posts: 6
Joined: Tue Feb 22, 2005 3:58 pm
Location: York, UK

  • Quote

Post by Mad Alex » Sun Sep 03, 2006 12:49 am

Another minor bug which tripped me up is that webapp-config requires each part of a symbolic mode to have at least one bit set. That is it claims that something like

Code: Select all

u=rw,g=r,o=
is invalid. The fix turned out to be very simple; a one character change in WebappConfig/permissions.py. See [bug=146059]bug #146059[/bug].
Top
wpetya
n00b
n00b
User avatar
Posts: 9
Joined: Wed Aug 16, 2006 10:35 am

symbolic mode workaround

  • Quote

Post by wpetya » Sun Sep 03, 2006 5:34 am

Mad Alex wrote:each part of a symbolic mode to have at least one bit set.
I think it just requires at least one letter in each part. You can use o-rwx instead of o= as a workaround to have no bits set.

Of course the real fix is in the [bug=146059]bugzilla ticket[/bug]
Top
Post Reply

10 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic