Users suddenly no longer showing in v7.0.2.Ga3 - Showstopper!Users suddenly no longer showing in v7.0.2.Ga3 - Showstopper!https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=875902892024-03-28T17:17:54Z2024-03-28T17:17:54ZRE: Users suddenly no longer showing in v7.0.2.Ga3 - Showstopper!Randy Schwartzhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1179202502019-11-28T08:10:52Z2019-11-28T08:10:52ZThanks for sharing! Same issue in 2019 -> DXP 7.2<br />It makes no difference whether the default search (elastic) or clustered search (solr / elastic) is in use. To many service restarts at the wrong time and indexing never ends.<br /><br /><strong>Solved by manipulating the database (MS SQL):<br /></strong>-- List tables<br />SELECT * FROM BackgroundTask<br />SELECT * FROM Lock_<br />-- Remove all entries in lock table, else the backgroundtask appeared again<br />delete from lock_ where userid=0<br />-- Removing all not completed schedules<br />delete from backgroundtask where status=0<br /><strong>Afterwards I restarted all liferay nodes</strong>Randy Schwartz2019-11-28T08:10:52ZRE: Users suffenly no longer showing in v7.0.2.Ga3 - Showstopper!Ashley Pietersenhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=895417312017-05-17T11:34:56Z2017-05-17T11:34:56ZHi Rahul,<br /><br />To look for the orphaned background tasks you need access to your database environment. I use MYSQL on my Liferay instance, but the same is true for any other database platform. If you have access and enough rights to your database and run the query something like this:<br /><br />(Note: you can run these queries from you database manager, normally)<br /><br />use <Liferay_database_name>;<br />SELECT * FROM BackgroundTask;<br /><br />notes: above query this does not change or harm your database, it just read it and show potential BackgroundTask s<br /><br /><br />and when you are sure you have located the right one:<br /><br />delete from BackgroundTask where backgroundtaskId=xxxxx;<br /><br />note: the exact punctuation (here the ";" at the end of every line) of the query depends on the database you use <br /><br />hope this will helpAshley Pietersen2017-05-17T11:34:56ZRE: Users suffenly no longer showing in v7.0.2.Ga3 - Showstopper!Rahul Joshihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=895399622017-05-17T11:21:56Z2017-05-17T11:21:56ZHi Ashley,<br /><br />Can you please help me understand how to figure out the orphaned jobs?<br />So, you suggest that I don't go with the All option and instead run indexes one by one?<br />Additionally, as mentioned in the previous message, the resources page is not accessible right now and shows a Null Pointer Exception. Is there a way to get past it so that I can run the indexes?Rahul Joshi2017-05-17T11:21:56ZRE: Users suffenly no longer showing in v7.0.2.Ga3 - Showstopper!Ashley Pietersenhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=895415642017-05-17T11:14:54Z2017-05-17T11:14:54ZHi Rahul,<br /><br />I suggest you to look for orphaned background tasks as was mentioned before in this post.<br />Besides I noticed that when I click to run indexing for all dexes it has a bigger change to hang. If you it one by one, you will proable see that some do run much longer then the other. I suppose that the timing and queing of the jobs might be the problem.<br /><br />succes!Ashley Pietersen2017-05-17T11:14:54ZRE: Users suffenly no longer showing in v7.0.2.Ga3 - Showstopper!Rahul Joshihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=895361172017-05-17T10:13:01Z2017-05-17T10:13:01Z<html><head></head><body>I am facing similar issues with Liferay DXP. Some user roles are not able to see documents. Also, if I go to Server Administration->Resources pages when logged in as Admin, it shows issues related to Indexing/Background task:<br><br><pre><code>09:10:48,238 ERROR [http-nio-8080-exec-38][IncludeTag:128] Current URL /group/control_panel/manage?p_p_id=com_liferay_server_admin_web_portlet_ServerAdminPortlet&amp;p_p_lifecycle=0&amp;p_p_state=maximized generates exception: java.lang.NullPointerException
java.lang.NullPointerException
at com.liferay.portal.kernel.backgroundtask.display.BaseBackgroundTaskDisplay.getBackgroundTaskStatusAttributeLong(BaseBackgroundTaskDisplay.java:132)
at com.liferay.portal.search.internal.background.task.display.ReindexBackgroundTaskDisplay.getPercentage(ReindexBackgroundTaskDisplay.java:36)
at com.liferay.portal.kernel.backgroundtask.display.BaseBackgroundTaskDisplay.hasPercentage(BaseBackgroundTaskDisplay.java:77)</code></pre></body></html>Rahul Joshi2017-05-17T10:13:01ZRE: Users suffenly no longer showing in v7.0.2.Ga3 - Showstopper!Ashley Pietersenhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=875968332017-03-26T14:31:33Z2017-03-26T14:31:33ZIt looks as if my users are back again, this is what I did:<br /><br />I ran a query in the workbench of MySql: (bitnami_liferay is the database name that comes with the bitnami Liferay stack)<br /><strong>use bitnami_liferay;<br />SELECT * FROM BackgroundTask;</strong><br />I looked in the result list if some tasks where not completed or orphaned, found 2 entries that looked suspisous . I deleted them with the following mysql query:<br /><br /><strong>delete from BackgroundTask where backgroundtaskId=xxxxx;</strong><br />note: xxxxxx is de ID of that task.<br />after that I rebooted the server. Still not showing the user after it came up again.<br /><br />after cleaning the caches etc I reindexed only the index:<br />Reindex com.liferay.portal.kernel.model.User.<br /><br />After that my 3 demo users were visible again.<br />Will test it further and will reindex later on all indexes and see what happens. Keep you posted.Ashley Pietersen2017-03-26T14:31:33ZRE: Users suffenly no longer showing in v7.0.2.Ga3 - Showstopper!Ashley Pietersenhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=876032082017-03-26T11:44:59Z2017-03-26T11:44:59ZHi Jorge,<br /><br />Thanks for the repsonse. I ran the query you suggested (in MySQL workbench), this is the result:<br /><br />'0', 'efe8e5e6-7ff2-8748-d107-b409d37b4c93', '44603', '20116', '0', NULL, '2017-03-21 07:24:01.350000', 'com.liferay.portal.kernel.backgroundtask.BackgroundTaskExecutor', 'com.liferay.portal.search.internal.background.task.ReindexPortalBackgroundTaskExecutor#20116', 'reindex#44602', '0', NULL<br /><br />Not sure what I can do next...Ashley Pietersen2017-03-26T11:44:59ZRE: Users suffenly no longer showing in v7.0.2.Ga3 - Showstopper!Jorge Diazhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=875966062017-03-26T11:20:38Z2017-03-26T11:20:38Z<html><head></head><body>Did you stop Liferay server during reindex execution?<br><br>If you killed server perhaps background tasks become inconsistent,<br><br>Execute following queries:<br><pre><code>SELECT * FROM BackgroundTask
SELECT * FROM Lock_</code></pre><br>And check background tasks status and locks.</body></html>Jorge Diaz2017-03-26T11:20:38ZRE: Users suffenly no longer showing in v7.0.2.Ga3 - Showstopper!Ashley Pietersenhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=876028062017-03-26T10:20:39Z2017-03-26T10:20:39ZAfter 24 hours busy with reindexing, users still not visible (accept the admin account) - how long should I wait before its is finished ?!<br />I think the portal has became useless :-(Ashley Pietersen2017-03-26T10:20:39ZRE: Users suffenly no longer showing in v7.0.2.Ga3 - Showstopper!Ashley Pietersenhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=875916692017-03-25T18:42:27Z2017-03-25T18:42:27ZHi David,<br /><br />Thanks for your response. <br /><br />I understand and I have done that. But it keeps on running endless - in fact it seems not to be the solution.<br />Note. This is a almost an empty Liferay v7 portal with 3 users and small amount of documents - it is running for hours to reindex!<br /><br />kind regards<br />apietersenAshley Pietersen2017-03-25T18:42:27ZRE: Users suffenly no longer showing in v7.0.2.Ga3 - Showstopper!David H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=875897172017-03-25T16:31:53Z2017-03-25T16:31:53ZYou have to reindex. Go to control panel to Configuration -> Server Administration and choose to reindex all.David H Nebinger2017-03-25T16:31:53ZUsers suddenly no longer showing in v7.0.2.Ga3 - Showstopper!Ashley Pietersenhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=875902882017-03-25T15:18:28Z2017-03-25T15:18:28ZHi, I am evaluating Liferay CE v7.0.2.GA3 for some weeks now and I like it very much, sofar. But now, suddenly, users are not visible anymore under Control_Panel/Users..! Allthough the demo users (3 test users) can still login with their account. This is a showstopper for me unless I can solve this issue. We run Liferay on a VM with Windows2012R2 with 12 mem, 1ooGbyte. Databas