Hi,

I'm running uwsgi in emperor mode for at the moment 3 pyramid applications.

the configs are quite similar so i post only one here

the vassal config looks like this

--- snip ---
[uwsgi]
chdir = /data/piratenenv
mypaste = /data/piratenenv/rlam.ini
paste = config:%(mypaste)
paste-logger = %(mypaste)
socket = 127.0.0.1:8081
socket = /data/piratenenv/var/rlam_uwsgi.sock
virtualenv = /data/piratenenv
logto = /data/piratenenv/logs/rlam_uwsgi.log
buffer-size = 32768
env = PYTHON_EGG_CACHE=/data/piratenenv/var/egg_cache
gid = 80
uid = 80
threads = 2
processes= 1
lazy-apps = yes
--- snip ---

and the paste config

--- snip ---
###
# app configuration
#
http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
###

[app:main]
use = egg:InfostandManager

pyramid.reload_templates = false
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.default_locale_name = de

sqlalchemy.url =
mysql://piraten_rlam@localhost/piraten_rlam?charset=utf8&use_unicode=1
sqlalchemy.pool_recycle = 28800

rlam.email_from = gerhard.schm...@piraten-schwaben.de
mail.hostname = localhost

###
# wsgi server configuration
###

[server:main]
use = egg:waitress#main
listen = 127.0.0.1:6543

###
# logging configuration
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
###

[loggers]
keys = root, InfostandManager, sqlalchemy

[handlers]
keys = console, debuglog

[formatters]
keys = generic

[logger_root]
level = WARN
handlers = console, debuglog

[logger_InfostandManager]
level = WARN
handlers =
qualname = InfostandManager

[logger_sqlalchemy]
level = WARN
handlers =
qualname = sqlalchemy.engine
# "level = INFO" logs SQL queries.
# "level = DEBUG" logs SQL queries and results.
# "level = WARN" logs neither.  (Recommended for production systems.)

[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic

[handler_debuglog]
class = FileHandler
args = ('/data/piratenenv/logs/rlam_debug.log','a')
level = DEBUG
formatter = generic

[formatter_generic]
format = %(asctime)s %(levelname)-5.5s
[%(name)s:%(lineno)s][%(threadName)s] %(message)s
--- snip ---

When starting the applications i get the following output

--- snip ---
*** Starting uWSGI 2.0.14 (64bit) on [Wed May 17 09:00:19 2017] ***
compiled with version: 4.2.1 Compatible FreeBSD Clang 3.4.1
(tags/RELEASE_34/dot1-final 208032) on 08 February 2017 08:59:54
os: FreeBSD-10.3-RELEASE-p18 FreeBSD 10.3-RELEASE-p18 #0: Tue Apr 11
10:31:00 UTC 2017
r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC
nodename: host
machine: amd64
clock source: unix
pcre jit disabled
detected number of CPU cores: 2
current working directory: /usr/local/etc/uwsgi/vassals
detected binary path: /usr/local/bin/uwsgi
uWSGI running as root, you can use --uid/--gid/--chroot options
setgid() to 80
setuid() to 80
chdir() to /data/piratenenv
your processes number limit is 8470
your memory page size is 4096 bytes
detected max file descriptor number: 115875
lock engine: POSIX semaphores
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to TCP address 127.0.0.1:8082 fd 3
uwsgi socket 1 bound to UNIX address
/data/piratenenv/var/eventbroker_uwsgi.sock fd 4
Python version: 2.7.13 (default, May  3 2017, 07:38:18)  [GCC 4.2.1
Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032)]
Set PythonHome to /data/piratenenv
Python main interpreter initialized at 0x8038ab0c0
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 280800 bytes (274 KB) for 2 cores
*** Operational MODE: threaded ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 26893)
spawned uWSGI worker 1 (pid: 26895, cores: 2)
Loading paste environment: config:/data/piratenenv/eventbroker.ini
ImportError: No module named script.util.logging_config
WSGI app 0 (mountpoint='') ready in 3 seconds on interpreter 0x8038ab0c0
pid: 26895 (default app)
--- snip ---

The application is running but no logging.

Noting the ImportError I started to Google and found that i should
install PasteDeploy and PasteScript.

After installing both and restarting i get a differen ImportError
ImportError: No module named deploy
and the worker dies.

I tried installing deploy but no effect. What am i doing wrong?

Regards
   Estartu




_______________________________________________
uWSGI mailing list
uWSGI@lists.unbit.it
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to