Closed maxstrobel closed 4 years ago
Only operating system variables can be expanded. environment-variables
Environment variables that are present in the environment at the time that supervisord is started.
environment
are variables passed to the process. This option does not affect the formatting of the supervisor.conf subprocess-environment
I made a fix for this failure only
Traceback (most recent call last):
File "C:\Users\DAL\AppData\Local\Programs\Python\Python36\lib\site-packages\supervisor\services.py", line 159, in main
supervisord.main(("-c", self.config_filepath))
File "C:\Users\DAL\AppData\Local\Programs\Python\Python36\lib\site-packages\supervisor\supervisord.py", line 388, in main
options.realize(args, doc=__doc__)
File "C:\Users\DAL\AppData\Local\Programs\Python\Python36\lib\site-packages\supervisor\options.py", line 487, in realize
Options.realize(self, *arg, **kw)
File "C:\Users\DAL\AppData\Local\Programs\Python\Python36\lib\site-packages\supervisor\options.py", line 311, in realize
self.process_config()
File "C:\Users\DAL\AppData\Local\Programs\Python\Python36\lib\site-packages\supervisor\options.py", line 525, in process_config
Options.process_config(self, do_usage=do_usage)
File "C:\Users\DAL\AppData\Local\Programs\Python\Python36\lib\site-packages\supervisor\options.py", line 319, in process_config
self.process_config_file(do_usage)
File "C:\Users\DAL\AppData\Local\Programs\Python\Python36\lib\site-packages\supervisor\options.py", line 353, in process_config_file
self.usage(str(msg))
File "C:\Users\DAL\AppData\Local\Programs\Python\Python36\lib\site-packages\supervisor\options.py", line 149, in usage
self.stderr.write("Error: %s\n" % str(msg))
AttributeError: 'NoneType' object has no attribute 'write'
Ah, I see. Then I misunderstood respectively mixed up both concepts.
Is there another option to organize configurations in a hierarchical way, e.g. define something in the global supervisord.conf
and reuse this configurations from ther [include]
section?
The configuration file is basically a configparser
In python 3 with configparser it is possible but due to the implementation of the supervisor there are some incompatibilities. Unfortunately it is not possible with a supervisor at the moment.
Hi,
I tried to set and use environment variables as described in the documentation Environment Variables / Section Example. However, it does not work to set the variables and they are not found afterwards. Does anyone have a clue, where I did a mistake or is this a general bug?
supervisord.conf
conf.d/test.conf
Log