· 6 years ago · Jul 04, 2019, 01:04 PM
1[ INFO ] Checking if the DSMR web credential variables have been set...
2[ INFO ] Fixing /dev/ttyUSB* security...
3[ INFO ] Removing existing PID files...
4[ INFO ] Verifying if Postgres in running...
5# CUSTOM_LOGLEVEL
6[ INFO ] Setting CUSTOM_LOGLEVEL already present, replacing values...
7import os
8
9from dsmrreader.config.production import *
10
11
12# Default settings, adjust if you use other ones, or use environment variables.
13DSMRREADER_NAME = 'dsmrreader'
14DSMRREADER_USER = 'dsmrreader'
15DSMRREADER_PASSWORD = 'dsmrreader'
16DSMRREADER_HOST = 'localhost'
17DSMRREADER_CONN_MAX_AGE = 60
18
19# Change me when exposing your application to the outside world using the Internet!
20DSMRREADER_SECRET_KEY = 'Ww\=)|a:tKxz"u@p<<Cp~MaZ%dNIYX-#w2h-*Od{>1`c%l/MJ+'
21
22
23# Settings are read from environment or, when not found, default to the values above.
24DATABASES = {
25 'default': {
26 'ENGINE': 'django.db.backends.postgresql',
27 'NAME': os.environ.get('DB_NAME', DSMRREADER_NAME),
28 'USER': os.environ.get('DB_USER', DSMRREADER_USER),
29 'PASSWORD': os.environ.get('DB_PASS', DSMRREADER_PASSWORD),
30 'HOST': os.environ.get('DB_HOST', DSMRREADER_HOST),
31 'CONN_MAX_AGE': os.environ.get('CONN_MAX_AGE', DSMRREADER_CONN_MAX_AGE),
32 }
33}
34
35SECRET_KEY = os.environ.get('SECRET_KEY', DSMRREADER_SECRET_KEY)
36
37
38"""
39 Enable and change the logging level below to alter the verbosity of the (backend) command(s).
40 - DEBUG: Log everything.
41 - INFO: Log most things.
42 - WARNING (default): Log only warnings and errors.
43
44 Restart the commands in Supervisor to apply any changes.
45"""
46# LOGGING['loggers']['commands']['level'] = 'DEBUG'
47[ INFO ] Running post configuration...
48Operations to perform:
49 Apply all migrations: admin, auth, contenttypes, dsmr_api, dsmr_backend, dsmr_backup, dsmr_consumption, dsmr_datalogger, dsmr_frontend, dsmr_mindergas, dsmr_mqtt, dsmr_notification, dsmr_pvoutput, dsmr_stats, dsmr_weather, sessions
50Running migrations:
51 No migrations to apply.
52
530 static files copied to '/var/www/dsmrreader/static', 2046 unmodified.
54admin already exists
55[ INFO ] Starting supervisord...
56/usr/lib/python2.7/site-packages/supervisor/options.py:461: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
57 'Supervisord is running as root and it is searching '
582019-07-04 14:57:00,942 INFO Included extra file "/etc/supervisor.d/supervisord.ini" during parsing
592019-07-04 14:57:00,942 INFO Set uid to user 0 succeeded
60Unlinking stale socket /tmp/supervisor.sock
612019-07-04 14:57:01,273 INFO RPC interface 'supervisor' initialized
622019-07-04 14:57:01,273 CRIT Server 'unix_http_server' running without any HTTP authentication checking
632019-07-04 14:57:01,273 INFO supervisord started with pid 16
642019-07-04 14:57:02,275 INFO spawned: 'nginx' with pid 18
652019-07-04 14:57:02,276 INFO spawned: 'dsmr_mqtt' with pid 19
662019-07-04 14:57:02,278 INFO spawned: 'dsmr_webinterface' with pid 20
672019-07-04 14:57:02,280 INFO spawned: 'dsmr_datalogger' with pid 21
682019-07-04 14:57:02,281 INFO spawned: 'dsmr_backend' with pid 22
692019-07-04 14:57:03,414 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
702019-07-04 14:57:03,415 INFO success: dsmr_mqtt entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
712019-07-04 14:57:03,415 INFO success: dsmr_datalogger entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
722019-07-04 14:57:03,415 INFO success: dsmr_backend entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
732019-07-04 14:57:05,492 INFO success: dsmr_webinterface entered RUNNING state, process has stayed up for > than 3 seconds (startsecs)
742019-07-04 14:58:03,822 INFO exited: dsmr_mqtt (exit status 1; not expected)
752019-07-04 14:58:04,020 INFO spawned: 'dsmr_mqtt' with pid 36
762019-07-04 14:58:05,040 INFO success: dsmr_mqtt entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
772019-07-04 14:59:04,959 INFO exited: dsmr_mqtt (exit status 1; not expected)
782019-07-04 14:59:05,034 INFO spawned: 'dsmr_mqtt' with pid 39
792019-07-04 14:59:06,056 INFO success: dsmr_mqtt entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
80net/http: request canceled (Client.Timeout exceeded while reading body)