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'
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
要約
When upgrading the plugin Email this issue from an earlier version to the latest available, you may experience issues to use the plugin.
診断
After upgrading the plugin, you may find errors like the ones below in the atlassian-jira.log
:
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'.
または
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
環境
- Jira 7.x and above.
- Email this issue 7.1.1.8 and above.
原因
The plugin Email this issue fails to create the table AO_544E44_SMTP_CONNECTION
during the update process.
ソリューション
- Go to Administration > Manage Apps.
- Select the option Manage apps on the left menu.
- Search for Email This Issue.
- Uninstall the plugin from JIRA.
- Go to Administration > Manage Apps.
- Select the option Find new apps on the left menu.
- Search for Email This Issue.
- Install the latest version available of the plugin.
- After installing, the plugin will have created the missing tables.
Uninstalling the plugin does not result in data loss. All configurations set previously are going to persist.