/opt/netbox/netbox/netbox/ldap_config.py
...
# Logging details
import logging, logging.handlers
logfile = "/var/log/netbox/django-ldap-debug.log"
my_logger = logging.getLogger('django_auth_ldap')
my_logger.setLevel(logging.DEBUG)
handler = logging.handlers.RotatingFileHandler(
logfile, maxBytes=1024 * 500, backupCount=5)
my_logger.addHandler(handler)drwxr-xr-x 2 www-data domain_grp 4096 Aug 29 10:49 netbox/| LDAP_CONFIGURED | False |
| LDAP_IGNORE_CERT_ERRORS | False |
--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To post to this group, send email to netbox-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/72bdd5fb-3706-4bfb-a1cf-a086a88d2c91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
user@ipm01:/opt/netbox/netbox$ gunicorn -c /opt/netbox/gunicorn_config.py netbox.wsgi
[2018-08-29 12:01:52 +0200] [10996] [INFO] Starting gunicorn 19.9.0
[2018-08-29 12:01:52 +0200] [10996] [ERROR] Connection in use: ('127.0.0.1', 8001)
[2018-08-29 12:01:52 +0200] [10996] [ERROR] Retrying in 1 second.
[2018-08-29 12:01:53 +0200] [10996] [ERROR] Connection in use: ('127.0.0.1', 8001)
[2018-08-29 12:01:53 +0200] [10996] [ERROR] Retrying in 1 second.
[2018-08-29 12:01:54 +0200] [10996] [ERROR] Connection in use: ('127.0.0.1', 8001)
[2018-08-29 12:01:54 +0200] [10996] [ERROR] Retrying in 1 second.
[2018-08-29 12:01:55 +0200] [10996] [ERROR] Connection in use: ('127.0.0.1', 8001)
[2018-08-29 12:01:55 +0200] [10996] [ERROR] Retrying in 1 second.
[2018-08-29 12:01:56 +0200] [10996] [ERROR] Connection in use: ('127.0.0.1', 8001)
[2018-08-29 12:01:56 +0200] [10996] [ERROR] Retrying in 1 second.
[2018-08-29 12:01:57 +0200] [10996] [ERROR] Can't connect to ('127.0.0.1', 8001)2018/08/29 09:54:47 [error] 2893#2893: *14 connect() failed (111: Connection refused) while connecting to upstream, client: 172.23.100.10, server: netbox.domain.nu, request: "GET /login/ HTTP/1.1", upstream: "http://127.0.0.1:8001/login/", host: "netbox.domain.nu"
2018/08/29 09:54:52 [error] 2893#2893: *14 connect() failed (111: Connection refused) while connecting to upstream, client: 172.23.100.10, server: netbox.domain.nu, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8001/", host: "netbox.domain.nu"To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/87be9392-4149-4150-937f-4dcbc72765f0%40googlegroups.com.
user@ipm01:/var/log/netbox$ sudo supervisorctl stop netboxuser@ipm01:/var/log/netbox$ sudo gunicorn -c /opt/netbox/gunicorn_config.py netbox.wsgi
[2018-08-29 13:08:50 +0200] [11558] [INFO] Starting gunicorn 19.9.0
[2018-08-29 13:08:50 +0200] [11558] [INFO] Listening at: http://127.0.0.1:8001 (11558)
[2018-08-29 13:08:50 +0200] [11558] [INFO] Using worker: sync
[2018-08-29 13:08:50 +0200] [11561] [INFO] Booting worker with pid: 11561
[2018-08-29 13:08:50 +0200] [11562] [INFO] Booting worker with pid: 11562
[2018-08-29 13:08:50 +0200] [11565] [INFO] Booting worker with pid: 11565| DAP_CONFIGURED | False |
| LDAP_IGNORE_CERT_ERRORS | False |