Problem to start Polemarchctl webserver
Hi guys,
We are trying to test your Polemarch UI, we have follow each parts of the documentation.
Until the part 5.6 everything is OK but when we wantg to start polemarch with polemarchctl webserver, we got this problem:
Execute: /opt/polemarch/bin/uwsgi --set-ph=program_name=polemarch --set-ph=lib_name=polemarch --set-ph=asgi_app=vstutils.ws:application --set-ph=api_path=api --set-ph=ws=false --module=polemarch.wsgi:application --http=:8080 --daemonize=/opt/polemarch/logs/polemarch_web.log --ini=/opt/polemarch/lib/python3.7/site-packages/polemarch/web.ini --static-map /static=/opt/polemarch/lib/python3.7/site-packages/polemarch/static --static-map /static=/opt/polemarch/lib/python3.7/site-packages/vstutils/static --static-map /static=/opt/polemarch/lib/python3.7/site-packages/django/contrib/admin/static --static-map /static=/opt/polemarch/lib/python3.7/site-packages/drf_yasg/static --static-map /static=/opt/polemarch/lib/python3.7/site-packages/rest_framework/static --ini=/etc/polemarch/settings.ini /opt/polemarch/lib/python3.7/site-packages/vstutils/web.ini --attach-daemon2 stopsignal=15,reloadsignal=1,exec=celery worker --app=polemarch.wapp:app --loglevel=INFO --pidfile=/opt/polemarch/pid/polemarch_worker.pid --autoscale=4\,1 --hostname=polemarch@%h --beat --logfile=/opt/polemarch/logs/polemarch_worker.log --queues=celery --ini - --virtualenv=/opt/polemarch
[uWSGI] getting INI configuration from /opt/polemarch/lib/python3.7/site-packages/polemarch/web.ini
[uWSGI] getting INI configuration from /etc/polemarch/settings.ini
[uWSGI] getting INI configuration from /etc/polemarch/settings.ini
[uWSGI] getting INI configuration from -
*** WARNING: Can't find section "uwsgi" in INI configuration file - ***
[uWSGI] getting INI configuration from /opt/polemarch/lib/python3.7/site-packages/vstutils/web.ini
[uwsgi-static] added mapping for /static => /opt/polemarch/lib/python3.7/site-packages/polemarch/static
[uwsgi-static] added mapping for /static => /opt/polemarch/lib/python3.7/site-packages/vstutils/static
[uwsgi-static] added mapping for /static => /opt/polemarch/lib/python3.7/site-packages/django/contrib/admin/static
[uwsgi-static] added mapping for /static => /opt/polemarch/lib/python3.7/site-packages/drf_yasg/static
[uwsgi-static] added mapping for /static => /opt/polemarch/lib/python3.7/site-packages/rest_framework/static
Run polemarch with module `polemarch.wsgi:application` and lib `polemarch`
We have created the settings.ini in /etc/polemarch/ like this
[database]
engine = django.db.backends.mysql
name = polemarch
user = admin
password = admin
[database.options]
connect_timeout = 20
init_command = SET sql_mode='STRICT_TRANS_TABLES', default_storage_engine=INNODB, NAMES 'utf8', CHARACTER SET 'utf8', SESSION collation_connection = 'utf8_unicode_ci'
[cache]
backend = django_redis.cache.RedisCache
location = redis://127.0.0.1:6379/1
[locks]
backend = django_redis.cache.RedisCache
location = redis://127.0.0.1:6379/2
[rpc]
connection = redis://127.0.0.1:6379/3
heartbeat = 5
concurrency = 8
enable_worker = true
[uwsgi]
socket = /tmp/%n.sock
module = polemarch.wsgi:application
processes = 4
threads = 4
harakiri = 120
vacuum = True
http-keepalive = true
http-auto-chunked = true
thread-stacksize = 512
pidfile = /opt/polemarch/pid/polemarch.pid
log_file = /opt/polemarch/logs/{PROG_NAME}_web.log
"commented" Uncomment it for HTTPS and install `uwsgi` pypi package to env:
"commented" addrport = 127.0.0.1:8080
"commented" https = 0.0.0.0:443,/etc/polemarch/polemarch.crt,/etc/polemarch/polemarch.key
[worker]
"commented" output will be /opt/polemarch/logs/polemarch_worker.log
logfile = /opt/polemarch/logs/{PROG_NAME}_worker.log
"commented" output will be /opt/polemarch/pid/polemarch_worker.pid
pidfile = /opt/polemarch/pid/{PROG_NAME}_worker.pid
loglevel = INFO
Do you have any suggestion to fix the problem ?
Thanks in advance for your help
best regards,settings.ini
UPDATE : After some tests we were able to have access to the UI but can you explain this logs ?
Edited by Sergei Kliuikov