Wapt server : 1.8.1
debian buster
Un souci avec postconf à l'installation de la base de données
Code : Tout sélectionner
[*] postgresql - creating db wapt
ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)
HINT: Use the same encoding as in the template database, or use template0 as template.
Traceback (most recent call last):
File "/opt/wapt/waptserver/scripts/postconf.py", line 704, in <module>
main()
File "/opt/wapt/waptserver/scripts/postconf.py", line 439, in main
ensure_postgresql_db(db_name=server_config['db_name'],db_owner=server_config['db_name'],db_password=server_config['db_password'])
File "/opt/wapt/waptserver/scripts/postconf.py", line 319, in ensure_postgresql_db
run(""" sudo -u postgres psql template1 -c "create database %s with owner=%s encoding='utf-8'; " """ % (db_name,db_owner), cwd='/opt/wapt/')
File "/opt/wapt/waptserver/scripts/postconf.py", line 75, in run
return subprocess.check_output(*args, shell=True, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 223, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command ' sudo -u postgres psql template1 -c "create database wapt with owner=wapt encoding='utf-8'; " ' returned non-zero exit status 1
Merci