Unable to configure waptserver 1.5.1.18 on Debian9

Questions about WAPT Server / Requests and help related to the WAPT server
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
klausade
Messages: 9
Registration: February 7, 2018 - 9:53 PM

February 25, 2018 - 6:59 PM

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
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
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.
erict
Messages: 56
Registration: December 22, 2017 - 7:09 PM

February 26, 2018 - 4:14 PM

Hi,

Same issue, exactly, with debian 9 and waptserver 1.5.1.18 too.

Thanks for your help
klausade
Messages: 9
Registration: February 7, 2018 - 9:53 PM

February 26, 2018 - 4:44 PM

Just use the older 1.5.1.16 as a work-around I guess.
erict
Messages: 56
Registration: December 22, 2017 - 7:09 PM

February 26, 2018 - 4:56 PM

OK, I guess an older version should work, but the idea, in Debian is to install with apt-get, not with dpkg -ia .deb file.
I think (hope?) this bug should be fixed, soon ;-)

AND
klausade
Messages: 9
Registration: February 7, 2018 - 9:53 PM

February 26, 2018 - 5:16 PM

Of course using old packages with or without dpkg/apt-get, is not an ideal solution, but I think this should be resolved soon.
User avatar
dcardon
WAPT Expert
Messages: 1931
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

February 26, 2018 - 10:33 PM

Hi Klausade,
klausade wrote: February 26 2018 - 17:16 Of course using old packages with or without dpkg/apt-get, is not an ideal solution, but I think this should be resolved soon.
There has been some messup in the PYTHONPATH handling in the last debian packages after some refactoring. The last packages should have that fixed around commit 0c91b7a [1]. Sorry for the inconvenience. Python packaging is far from being straight forward...

We have cleared all the remaining issues to have the WAPT Community 1.5 RC1 released tomorrow. Stay tuned for the announcement. Release of WAPT 1.5 should follow around mid march.

Cheers,

Denis


[1] https://github.com/tranquilit/WAPT/comm...792e1d92f1
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
klausade
Messages: 9
Registration: February 7, 2018 - 9:53 PM

February 26, 2018 - 10:41 PM

Thanks for the up-coming fix, looking forward to 1.5
Will there be a problem if I start using RC1.5 now, when 1.5 final comes in mid March?
erict
Messages: 56
Registration: December 22, 2017 - 7:09 PM

February 27, 2018 - 1:32 PM

Hi Dcardon,
dcardon wrote: February 26 2018 - 22:33 There has been some messup in the PYTHONPATH handling in the last debian packages after some refactoring. The last packages should have that fixed around commit 0c91b7a [1]. Sorry for the inconvenience. Python packaging is far from being straight forward...
No worry, it can happen, of course. Thanks for your job.
dcardon wrote: February 26 2018 - 22:33 We have cleared all the remaining issues to have the WAPT Community 1.5 RC1 released tomorrow. Stay tuned for the announcement. Release of WAPT 1.5 should follow around mid march.
If I use apt-get update/upgrade, will I get the RC1? And then, from this RC1, the same commands will get the final release on mid march. Or should I use another mirror in sources list?

AND.
User avatar
dcardon
WAPT Expert
Messages: 1931
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

March 2, 2018 - 4:18 PM

Hi Eric,
If I use apt-get update/upgrade, will I get the RC1? And then, from this RC1, the same commands will get the final release on mid march. Or should I use another mirror in sources list?
AND
Sorry for the delay in the response. Yes you can apt-get update/upgrade. You'll get the RC1, and you'll get the release on the 13th of March.

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Locked