Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apache Ranger: No transaction in progress error #17

Open
Spydernaz opened this issue Aug 28, 2019 · 3 comments
Open

Apache Ranger: No transaction in progress error #17

Spydernaz opened this issue Aug 28, 2019 · 3 comments

Comments

@Spydernaz
Copy link

Spydernaz commented Aug 28, 2019

Hi,

Thank you for your repo, I have tried to build and use the docker compose script and I am getting the below error (just keeps on repeating these lines over and over):

postgres-server_1  | 2019-08-28 14:40:20.852 UTC [203] WARNING:  there is no transaction in progress
postgres-server_1  | 2019-08-28 14:40:20.907 UTC [203] WARNING:  there is no transaction in progress
postgres-server_1  | 2019-08-28 14:40:20.912 UTC [203] WARNING:  there is no transaction in progress
postgres-server_1  | 2019-08-28 14:40:20.918 UTC [203] WARNING:  there is no transaction in progress
postgres-server_1  | 2019-08-28 14:40:20.923 UTC [203] WARNING:  there is no transaction in progress
ranger-admin_1     | 2019-08-28 14:40:20,935  [I] xa_core_db_postgres.sql file imported successfully
ranger-admin_1     | 2019-08-28 14:40:20,935  [JISQL] /usr/lib/jvm/java-8-openjdk-amd64/bin/java  -cp /opt/postgresql-42.2.2.jar:/opt/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver postgresql -cstring jdbc:postgresql://postgres-server/ranger -u ranger -p '********' -noheader -trim -c \;  -query "update x_db_version_h set inst_by='Ranger 2.0.0' where active='Y' and updated_by='localhost';"
ranger-admin_1     | 2019-08-28 14:40:21,489  [I] Patches status entries updated from base ranger version to current installed ranger version:Ranger 2.0.0
ranger-admin_1     | 2019-08-28 14:40:21,489  [JISQL] /usr/lib/jvm/java-8-openjdk-amd64/bin/java  -cp /opt/postgresql-42.2.2.jar:/opt/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver postgresql -cstring jdbc:postgresql://postgres-server/ranger -u ranger -p '********' -noheader -trim -c \;  -query "select * from (select table_name from information_schema.tables where table_catalog='ranger' and table_name = 'x_portal_user') as temp;"
ranger-admin_1     | 2019-08-28 14:40:22,069  [I] Table x_portal_user already exists in database 'ranger'
ranger-admin_1     | 2019-08-28 14:40:22,069  [JISQL] /usr/lib/jvm/java-8-openjdk-amd64/bin/java  -cp /opt/postgresql-42.2.2.jar:/opt/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver postgresql -cstring jdbc:postgresql://postgres-server/ranger -u ranger -p '********' -noheader -trim -c \;  -query "select * from (select table_name from information_schema.tables where table_catalog='ranger' and table_name = 'x_policy_ref_group') as temp;"
ranger-admin_1     | 2019-08-28 14:40:22,639  [I] Table x_policy_ref_group does not exist in database ranger
ranger-admin_1     | 2019-08-28 14:40:22,639  [JISQL] /usr/lib/jvm/java-8-openjdk-amd64/bin/java  -cp /opt/postgresql-42.2.2.jar:/opt/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver postgresql -cstring jdbc:postgresql://postgres-server/ranger -u ranger -p '********' -noheader -trim -c \;  -query "select version from x_db_version_h where version = 'DB_PATCHES' and active = 'Y';"
ranger-admin_1     | 2019-08-28 14:40:23,240  [JISQL] /usr/lib/jvm/java-8-openjdk-amd64/bin/java  -cp /opt/postgresql-42.2.2.jar:/opt/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver postgresql -cstring jdbc:postgresql://postgres-server/ranger -u ranger -p '********' -noheader -trim -c \;  -query "select version from x_db_version_h where version = 'JAVA_PATCHES' and active = 'Y';"
ranger-admin_1     | 2019-08-28 14:40:23,851  [I] Importing DB schema to database ranger from file: xa_core_db_postgres.sql
ranger-admin_1     | 2019-08-28 14:40:23,852  [JISQL] /usr/lib/jvm/java-8-openjdk-amd64/bin/java  -cp /opt/postgresql-42.2.2.jar:/opt/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver postgresql -cstring jdbc:postgresql://postgres-server/ranger -u ranger -p '********' -noheader -trim -c \; -input /opt/ranger-2.0.0-admin/db/postgres/xa_core_db_postgres.sql 

Any help would be really helpful :) thanks heaps in advance!

@Spydernaz Spydernaz changed the title No transaction in progress error Apache Ranger: No transaction in progress error Aug 28, 2019
@KentonParton
Copy link

@Spydernaz I am having having the same issue. Did you figure out what the issue was? Thanks

@Spydernaz
Copy link
Author

I have a docker image in my repo on docker hub that I got working if you are after the image, otherwise I have the dockerfile etc in one of my repos

https://hub.docker.com/r/spydernaz/apache-ranger-admin-db
https://hub.docker.com/r/spydernaz/apache-ranger-admin

@KentonParton
Copy link

Awesome, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants