Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Issue Upgrading Database from 6.2 to 7.2.1-ga2
Hi
After i followed the steps to upgrade https://help.liferay.com/hc/en-us/articles/360028711612-Introduction-to-Upgrading-to-Liferay-DXP-7-2
i am getting the below error.
com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: org.postgresql.util.PSQLException: ERROR: cannot drop table user_ because other objects depend on it
Detail: view v_user_emails depends on table user_
view "users-roles_v" depends on table user_
Hint: Use DROP ... CASCADE to drop the dependent objects too.
at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:101)
at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil._upgradeProcess(UpgradeProcessUtil.java:173)
at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:140)
at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:122)
at com.liferay.portal.events.StartupHelper.upgradeProcess(StartupHelper.java:154)
at com.liferay.portal.events.StartupHelperUtil.upgradeProcess(StartupHelperUtil.java:85)
at com.liferay.portal.tools.DBUpgrader.upgrade(DBUpgrader.java:174)
at com.liferay.portal.tools.DBUpgrader.main(DBUpgrader.java:105)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.liferay.portal.tools.db.upgrade.client.DBUpgraderLauncher.main(DBUpgraderLauncher.java:55)
Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: org.postgresql.util.PSQLException: ERROR: cannot drop table user_ because other objects depend on it
Detail: view v_user_emails depends on table user_
view "users-roles_v" depends on table user_
After i followed the steps to upgrade https://help.liferay.com/hc/en-us/articles/360028711612-Introduction-to-Upgrading-to-Liferay-DXP-7-2
i am getting the below error.
com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: org.postgresql.util.PSQLException: ERROR: cannot drop table user_ because other objects depend on it
Detail: view v_user_emails depends on table user_
view "users-roles_v" depends on table user_
Hint: Use DROP ... CASCADE to drop the dependent objects too.
at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:101)
at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil._upgradeProcess(UpgradeProcessUtil.java:173)
at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:140)
at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:122)
at com.liferay.portal.events.StartupHelper.upgradeProcess(StartupHelper.java:154)
at com.liferay.portal.events.StartupHelperUtil.upgradeProcess(StartupHelperUtil.java:85)
at com.liferay.portal.tools.DBUpgrader.upgrade(DBUpgrader.java:174)
at com.liferay.portal.tools.DBUpgrader.main(DBUpgrader.java:105)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.liferay.portal.tools.db.upgrade.client.DBUpgraderLauncher.main(DBUpgraderLauncher.java:55)
Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: org.postgresql.util.PSQLException: ERROR: cannot drop table user_ because other objects depend on it
Detail: view v_user_emails depends on table user_
view "users-roles_v" depends on table user_
Attachments:
v_user_emails and users-roles_v are not Liferay standard. I guess, somebody in your company has created those views manually for some purpose. You probably need to delete them before upgrading the database and if they are still needed, restore them later on.
Christoph Rabel:
v_user_emails and users-roles_v are not Liferay standard. I guess, somebody in your company has created those views manually for some purpose. You probably need to delete them before upgrading the database and if they are still needed, restore them later on.
Thanks Christoph Rabel and after removed the views then upgraded database.
but i got again one more issue is users and organizations are not displaying in control pane users tab and organization tabs.But we can see users in site membership place.even i am added below propertiy in portal-ext.properties and restarted server but still same issue# when starting time reindex
database.indexes.update.on.startup=true
Thanks,Srini
srini vasulu:
Christoph Rabel:
v_user_emails and users-roles_v are not Liferay standard. I guess, somebody in your company has created those views manually for some purpose. You probably need to delete them before upgrading the database and if they are still needed, restore them later on.
Thanks Christoph Rabel and after removed the views then upgraded database.
but i got again one more issue is users and organizations are not displaying in control pane users tab and organization tabs.But we can see users in site membership place.even i am added below propertiy in portal-ext.properties and restarted server but still same issue# when starting time reindex
database.indexes.update.on.startup=true
Thanks,
Srini
Hi Any one faced the above issue when upgrade to 7.2.1?
srini vasulu:
Hi Any one faced the above issue when upgrade to 7.2.1?
Can you try manual reindexing in ControlPanel? There's a specific reindex activity just for the User data. Typically, when users aren't shown, this is a function of an index being out of date.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™