Email this issue plugin: relation "public.AO_544E44_SMTP_CONNECTION" does not exist or Foreign key 'fk_ao_544e33_context_smtp_connection_id' references invalid table 'dbo.AO_544E33_SMTP_CONNECTION'

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.

Summary

When upgrading the plugin Email this issue from an earlier version to the latest available, you may experience issues to use the plugin. 

Diagnosis


After upgrading the plugin, you may find errors like the ones below in the atlassian-jira.log:

Invalid table
active-objects-init-JiraTenantImpl{id='system'}-0 ERROR anonymous     [n.java.ao.sql] Exception executing SQL update <ALTER TABLE dbo.AO_544E33_CONTEXT ADD CONSTRAINT fk_ao_544e33_context_smtp_connection_id FOREIGN KEY (SMTP_CONNECTION_ID) REFERENCES dbo.AO_544E33_SMTP_CONNECTION(ID)>
com.microsoft.sqlserver.jdbc.SQLServerException: Foreign key 'fk_ao_544e33_context_smtp_connection_id' references invalid table 'dbo.AO_544E33_SMTP_CONNECTION'.

Or

Relation does not exist
com.atlassian.activeobjects.internal.ActiveObjectsInitException: bundle [com.metainf.jira.plugin.emailissue]
		at com.atlassian.activeobjects.osgi.TenantAwareActiveObjects$1$1$1.call(TenantAwareActiveObjects.java:95) [?:?]
		at com.atlassian.activeobjects.osgi.TenantAwareActiveObjects$1$1$1.call(TenantAwareActiveObjects.java:86) [?:?]
		at com.atlassian.sal.core.executor.ThreadLocalDelegateCallable.call(ThreadLocalDelegateCallable.java:38) [?:?]
		at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
		at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
		at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
		at java.base/java.lang.Thread.run(Thread.java:834) [?:?]
Caused by com.atlassian.activeobjects.internal.ActiveObjectsSqlException: There was a SQL exception thrown by the Active Objects library:
	Database:
		- name:PostgreSQL
		- version:11.8
		- minor version:8
		- major version:11
	Driver:
		- name:PostgreSQL JDBC Driver
		- version:42.2.6

	org.postgresql.util.PSQLException: ERROR: relation "public.AO_544E44_SMTP_CONNECTION" does not exist

Environment

Cause

The plugin Email this issue fails to create the table AO_544E44_SMTP_CONNECTION during the update process.

Solution

  1. Go to Administration > Manage Apps.
  2. Select the option Manage apps on the left menu.
  3. Search for Email This Issue.
  4. Uninstall the plugin from JIRA.
  5. Go to Administration > Manage Apps.
  6. Select the option Find new apps on the left menu.
  7. Search for Email This Issue.
  8. Install the latest version available of the plugin.
  9. After installing, the plugin will have created the missing tables.

(info) Uninstalling the plugin does not result in data loss. All configurations set previously are going to persist.



Last modified on May 4, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.