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

Phylolink fails to connect to postgres after package upgrade #204

Open
ansell opened this issue Jun 5, 2018 · 0 comments
Open

Phylolink fails to connect to postgres after package upgrade #204

ansell opened this issue Jun 5, 2018 · 0 comments

Comments

@ansell
Copy link
Contributor

ansell commented Jun 5, 2018

Phylolink fails to connect to postgres after a package upgrade and shows the following error in its log files:

2018-06-05 08:25:03,489 ERROR [JDBCExceptionReporter] This connection has been closed.
2018-06-05 08:25:03,490 ERROR [JDBCExceptionReporter] This connection has been closed.
2018-06-05 08:25:03,498 ERROR [GrailsExceptionResolver] PSQLException occurred when processing request: [GET] /
This connection has been closed.. Stacktrace follows:
org.postgresql.util.PSQLException: This connection has been closed.
	at org.postgresql.jdbc2.AbstractJdbc2Connection.checkClosed(AbstractJdbc2Connection.java:714)
	at org.postgresql.jdbc2.AbstractJdbc2Connection.getAutoCommit(AbstractJdbc2Connection.java:680)
	at org.grails.datastore.gorm.GormStaticApi$_methodMissing_closure2.doCall(GormStaticApi.groovy:102)
	at au.org.ala.phyloviz.PhyloService.getDemoId(PhyloService.groovy:30)
	at au.org.ala.phyloviz.PhyloController.startPage(PhyloController.groovy:329)
	at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:200)
	at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
	at au.org.ala.cas.client.UriFilter.doFilter(UriFilter.java:200)
	at au.org.ala.cas.client.UriFilter.doFilter(UriFilter.java:200)
	at au.org.ala.cas.client.UriFilter.doFilter(UriFilter.java:200)
	at org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:65)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622)
	at java.lang.Thread.run(Thread.java:748)

A suggestion from Simon is that the code from the following section may be useful to make phylolink more resilient to database interruptions:

https://github.com/AtlasOfLivingAustralia/volunteer-portal/blob/develop/grails-app/conf/application.yml#L303

A possible location for the local changes required may be in:

https://github.com/AtlasOfLivingAustralia/phylolink/blob/master/grails-app/conf/DataSource.groovy#L13

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

1 participant