Unable to configure waptserver 1.5.1.18 on Debian9
Posté : 25 févr. 2018 - 18:59
After installing waptserver according to https://www.wapt.fr/en/doc-1.5/Installation/index.html, I run
"/opt/wapt/waptserver/scripts/postconf.sh" which is what the installer tells me to do, while the documentation says to run the python-script.
But I only get this:
Traceback (most recent call last):
File "/opt/wapt/waptserver/scripts/postconf.py", line 503, in <module>
main()
File "/opt/wapt/waptserver/scripts/postconf.py", line 393, in main
waptserver_config.write_config_file(cfgfile=options.configfile,server_config=server_config,non_default_values_only=True)
File "/opt/wapt/waptserver/waptserver_config.py", line 188, in write_config_file
_config.set('options',key,server_config[key])
File "/usr/lib/python2.7/ConfigParser.py", line 396, in set
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'options'
If I try to run the python script I get this:
/opt/wapt/waptserver/scripts/postconf.py
-bash: /opt/wapt/waptserver/scripts/postconf.py: /opt/wapt/bin/python^M: bad interpreter: No such file or directory
or with python2.7
python2.7 /opt/wapt/waptserver/scripts/postconf.py
Traceback (most recent call last):
File "/opt/wapt/waptserver/scripts/postconf.py", line 34, in <module>
import iniparse
ImportError: No module named iniparse
I have managed to install waptserver several times the last 2 weeks without any problem, but suddenly I get this error message every time I try, I'm using virtual machines that I install from scratch every time.
If I use the older version 1.5.1.16-tisdeb9-4569-67348f92 if installs just fine.
"/opt/wapt/waptserver/scripts/postconf.sh" which is what the installer tells me to do, while the documentation says to run the python-script.
But I only get this:
Traceback (most recent call last):
File "/opt/wapt/waptserver/scripts/postconf.py", line 503, in <module>
main()
File "/opt/wapt/waptserver/scripts/postconf.py", line 393, in main
waptserver_config.write_config_file(cfgfile=options.configfile,server_config=server_config,non_default_values_only=True)
File "/opt/wapt/waptserver/waptserver_config.py", line 188, in write_config_file
_config.set('options',key,server_config[key])
File "/usr/lib/python2.7/ConfigParser.py", line 396, in set
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'options'
If I try to run the python script I get this:
/opt/wapt/waptserver/scripts/postconf.py
-bash: /opt/wapt/waptserver/scripts/postconf.py: /opt/wapt/bin/python^M: bad interpreter: No such file or directory
or with python2.7
python2.7 /opt/wapt/waptserver/scripts/postconf.py
Traceback (most recent call last):
File "/opt/wapt/waptserver/scripts/postconf.py", line 34, in <module>
import iniparse
ImportError: No module named iniparse
I have managed to install waptserver several times the last 2 weeks without any problem, but suddenly I get this error message every time I try, I'm using virtual machines that I install from scratch every time.
If I use the older version 1.5.1.16-tisdeb9-4569-67348f92 if installs just fine.