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
> Attached a complete full strace log file Seems to not be attached, please try again.
Created attachment 357428 [details] strace -fF -s 1024 webapp-config
Note that this only append while using python2.7. python3.2 is OK
(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.
(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
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.
(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. ^
(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