Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can't use environment variable settings

jagauthier October 15, 2020

When starting a confluence docker, there is a stack dump when setting ATL_JDBC_URL:

docker run --network net --name jira -e ATL_JDBC_USER=confluence -e ATL_JDBC_PASSWORD=password -e ATL_DB_DRIVER=org.postgresql.Driver -e ATL_JDBC_URL=jdbc:postgresql://postgres:5432/confluence -p 8090:8090 -p 8091:8091 -i -t --rm



INFO:root:Generating /opt/atlassian/confluence/conf/server.xml from template server.xml.j2
INFO:root:Generating /opt/atlassian/confluence/confluence/WEB-INF/classes/seraph-config.xml from template seraph-config.xml.j2
INFO:root:Generating /opt/atlassian/confluence/confluence/WEB-INF/classes/ from template
INFO:root:Generating /var/atlassian/application-data/confluence/confluence.cfg.xml from template confluence.cfg.xml.j2
Traceback (most recent call last):
File "/", line 17, in <module>
user=RUN_USER, group=RUN_GROUP, overwrite=False)
File "/", line 57, in gen_cfg
cfg = jenv.get_template(tmpl).render(env)
File "/usr/lib/python3/dist-packages/jinja2/", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/jinja2/", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3/dist-packages/jinja2/", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/jinja2/", line 37, in reraise
raise value.with_traceback(tb)
File "/opt/atlassian/etc/confluence.cfg.xml.j2", line 28, in top-level template code
<property name="hibernate.connection.driver_class">{{ databases[atl_db_type][0] }}</property>
File "/usr/lib/python3/dist-packages/jinja2/", line 411, in getitem
return obj[argument]
jinja2.exceptions.UndefinedError: dict object has no element Undefined


Not sure what is happening here. This is my first introduction to confluence.

1 answer

0 votes
jagauthier October 16, 2020

Finally, got this. ATL_DB_TYPE needs to be set.  

Vladislav Polyutkin March 16, 2023

Hi @jagauthier 

What value did you use?

I've got an error when used like 'ATL_DB_TYPE=postgres'

jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'postgres'

drewdemarco October 13, 2023

@Vladislav Polyutkin 

From the choices looks like it should be postgresql rather than postgres per the docker hub page.


    The type of database; valid supported values are:

    • mssql
    • mysql
    • oracle12c (Confluence 7.3.0 or earlier only)
    • oracle (Confluence 7.3.1 or later only. Compatible with Oracle 12c and Oracle 19c)
    • postgresql
Like # people like this
Vladislav Polyutkin December 22, 2023

Hi All,

Exactly, following value worked as expected:

- 'ATL_DB_TYPE=postgresql'

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events