Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 483016 - app-admin/webapp-config - No option 'wa_conf_version' in section: 'USER'
Summary: app-admin/webapp-config - No option 'wa_conf_version' in section: 'USER'
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-30 13:26 UTC by Bertrand Jacquin
Modified: 2013-09-05 19:52 UTC (History)
1 user (show)

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


Attachments
strace -fF -s 1024 webapp-config (webapp-config.log,400.27 KB, text/x-log)
2013-08-30 13:50 UTC, Bertrand Jacquin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2013-08-30 13:26:42 UTC
I'm getting some troubles using app-admin/webapp-config-1.51-r1 :

# webapp-config
*
* There is a problem with your configuration file or an environment variable.
* webapp-config tried to read the variable "wa_conf_version"
* and received the following error:
*
* No option 'wa_conf_version' in section: 'USER'
* Please note that webapp-config is not written in bash anymore
* and that you cannot use the bash scripting features.
* Fatal error: The config file /etc/vhosts/webapp-config appears to be for an older version of webapp-config.
* Fatal error: Maybe you need to etc-update?
* Fatal error: /etc/vhosts/webapp-config needs updating!
* Fatal error(s) - aborting

My config file is a fresh one from a fresh install. Trying to understand what's going on using strace, I'm getting the following strange and totally wrong open/read files.

/etc/vhosts/webapp-config is access(), but then each char in the string "/etc/vhosts/webapp-config" is open(), so '/' is open, then 'e', then 't' etc ..

getgid()                                = 0
getuid()                                = 0
access("/etc/vhosts/webapp-config", R_OK) = 0
open("/", O_RDONLY)                     = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=776, ...}) = 0
close(3)                                = 0
open("e", O_RDONLY)                     = -1 ENOENT (No such file or directory)
open("t", O_RDONLY)                     = -1 ENOENT (No such file or directory)
open("c", O_RDONLY)                     = -1 ENOENT (No such file or directory)
open("/", O_RDONLY)                     = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=776, ...}) = 0
close(3)                                = 0
open("v", O_RDONLY)                     = -1 ENOENT (No such file or directory)
open("h", O_RDONLY)                     = -1 ENOENT (No such file or directory)
open("o", O_RDONLY)                     = -1 ENOENT (No such file or directory)
open("s", O_RDONLY)                     = -1 ENOENT (No such file or directory)
open("t", O_RDONLY)                     = -1 ENOENT (No such file or directory)
open("s", O_RDONLY)                     = -1 ENOENT (No such file or directory)
open("/", O_RDONLY)                     = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=776, ...}) = 0
close(3)                                = 0
open("w", O_RDONLY)                     = -1 ENOENT (No such file or directory)
open("e", O_RDONLY)                     = -1 ENOENT (No such file or directory)
open("b", O_RDONLY)                     = -1 ENOENT (No such file or directory)
open("a", O_RDONLY)                     = -1 ENOENT (No such file or directory)
open("p", O_RDONLY)                     = -1 ENOENT (No such file or directory)
open("p", O_RDONLY)                     = -1 ENOENT (No such file or directory)
open("-", O_RDONLY)                     = -1 ENOENT (No such file or directory)
open("c", O_RDONLY)                     = -1 ENOENT (No such file or directory)
open("o", O_RDONLY)                     = -1 ENOENT (No such file or directory)
open("n", O_RDONLY)                     = -1 ENOENT (No such file or directory)
open("f", O_RDONLY)                     = -1 ENOENT (No such file or directory)
open("i", O_RDONLY)                     = -1 ENOENT (No such file or directory)
open("g", O_RDONLY)                     = -1 ENOENT (No such file or directory)
fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4b3aa68000
write(2, "\33[31;01m* \33[39;49;00m\33[31;01mFatal error: \33[39;49;00mThe config file /etc/vhosts/webapp-config appears to be for an older
version of webapp-config.", 147* Fatal error: The config file /etc/vhosts/webapp-config appears to be for an older version of webapp-config.) = 147

Attached a complete full strace log file

Reproducible: Always
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-08-30 13:33:12 UTC
> Attached a complete full strace log file

Seems to not be attached, please try again.
Comment 2 Bertrand Jacquin 2013-08-30 13:50:23 UTC
Created attachment 357428 [details]
strace -fF -s 1024 webapp-config
Comment 3 Bertrand Jacquin 2013-09-01 11:57:16 UTC
Note that this only append while using python2.7. python3.2 is OK
Comment 4 Devan Franchini (RETIRED) gentoo-dev 2013-09-02 08:37:15 UTC
(In reply to Bertrand Jacquin from comment #3)
> Note that this only append while using python2.7. python3.2 is OK

Hi! Can I ask for steps to reproduce? It helps me track down the bug and figure out where it's coming from, which should hopefully assist me in fixing it.
Comment 5 Bertrand Jacquin 2013-09-02 09:06:44 UTC
(In reply to Devan Franchini from comment #4)
> (In reply to Bertrand Jacquin from comment #3)
> > Note that this only append while using python2.7. python3.2 is OK
> 
> Hi! Can I ask for steps to reproduce? It helps me track down the bug and
> figure out where it's coming from, which should hopefully assist me in
> fixing it.

I'm not doing extraordinary things :

# emerge -Cv webapp-config
# rm -rfv /etc/vhosts
# USE=portage PYTHON_TARGETS="python2_7 python3_2" emerge -vat webapp-config

# /usr/sbin/webapp-config-python2.7 --list-servers
*
* There is a problem with your configuration file or an environment variable.
* webapp-config tried to read the variable "wa_conf_version"
* and received the following error:
*
* No option 'wa_conf_version' in section: 'USER'
* Please note that webapp-config is not written in bash anymore
* and that you cannot use the bash scripting features.
* Fatal error: The config file /etc/vhosts/webapp-config appears to be for an older version of webapp-config.
* Fatal error: Maybe you need to etc-update?
* Fatal error: /etc/vhosts/webapp-config needs updating!
* Fatal error(s) - aborting

# /usr/sbin/webapp-config-python3.2 --list-servers
apache
lighttpd
cherokee
nginx
gatling
Comment 6 Devan Franchini (RETIRED) gentoo-dev 2013-09-04 22:36:45 UTC
I'm sorry, but after installing a fresh installation of webapp-config, mysql, apache2, and a webapp I was unable to reproduce this bug on either 3.2, or 2.7.
Comment 7 Devan Franchini (RETIRED) gentoo-dev 2013-09-04 22:40:17 UTC
(In reply to Devan Franchini from comment #6)
> I'm sorry, but after installing a fresh installation of webapp-config,
> mysql, apache2, and a webapp I was unable to reproduce this bug on either
> 3.2, or 2.7.

portable_enigmatic ~ # webapp-config-python3.2 --list-servers
apache
lighttpd
cherokee
nginx
gatling
portable_enigmatic ~ # webapp-config-python2.7 --list-servers
apache
lighttpd
cherokee
nginx
gatling

My proof. ^
Comment 8 Bertrand Jacquin 2013-09-04 23:13:45 UTC
(In reply to Devan Franchini from comment #6)
> I'm sorry, but after installing a fresh installation of webapp-config,
> mysql, apache2, and a webapp I was unable to reproduce this bug on either
> 3.2, or 2.7.

Same here. I need to debug further