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 docker.io/atlassian/confluence-server:7.8.1-jdk11
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/confluence-init.properties from template confluence-init.properties.j2
INFO:root:Generating /var/atlassian/application-data/confluence/confluence.cfg.xml from template confluence.cfg.xml.j2
Traceback (most recent call last):
File "/entrypoint.py", line 17, in <module>
user=RUN_USER, group=RUN_GROUP, overwrite=False)
File "/entrypoint_helpers.py", line 57, in gen_cfg
cfg = jenv.get_template(tmpl).render(env)
File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/jinja2/_compat.py", 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/environment.py", 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.
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'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From the choices looks like it should be postgresql rather than postgres per the docker hub page.
https://hub.docker.com/r/atlassian/confluence-server
ATL_DB_TYPE
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Exactly, following value worked as expected:
-
'ATL_DB_TYPE=postgresql'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.