Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
documentation:latest:upgrade [2014/05/20 15:49]
rouazana [Dry run mode]
documentation:latest:upgrade [2017/01/30 17:10] (current)
Line 27: Line 27:
 The URL of YUM repository has moved (see [[installation]]). The URL of YUM repository has moved (see [[installation]]).
  
 +===== Long task =====
 +
 +If you have tasks that need more than 1 hour to run, you may meet this kind of errors after the end of the task:
 +<​file>​
 +Jun 14 21:03:03 - ERROR - Error while synchronizing ID {uid=7C7CCF6C-ABC9-4B71-B 050-FF226F3DBBF3}:​ java.lang.NullPointerException
 +Jun 14 21:03:03 - ERROR - Error while synchronizing ID {uid=A54C1F5A-150C-4DF7-9 C68-AFE33C8ABBDB}:​ java.lang.NullPointerException
 +Jun 14 21:03:03 - ERROR - Error while synchronizing ID {uid=82851DC5-9CC3-42FF-8 4F6-C4FBA4CFFA22}:​ java.lang.NullPointerException
 +Jun 14 21:03:03 - ERROR - Error while synchronizing ID {uid=DF3B36C8-34AB-4ED6-9 5EA-4F6E17D967D6}:​ java.lang.NullPointerException
 +Jun 14 21:03:03 - ERROR - Error while synchronizing ID {uid=2AC6C771-2522-4862-9 B77-5FF202B8C2AA}:​ java.lang.NullPointerException
 +Jun 14 21:03:03 - ERROR - Error while synchronizing ID {uid=86B2A7A2-E2E9-4B6F-9 DC0-16C4139D9D7E}:​ java.lang.NullPointerException
 +Jun 14 21:03:03 - ERROR - Error while synchronizing ID {uid=B31710A6-26A4-40DD-B 330-EC7DB1746BBA}:​ java.lang.NullPointerException
 +</​file>​
 +
 +This is because by default LSC end taks after 3600 seconds, and in 2.1 version, we now explicitly close connections at the end of the task.
 +
 +You need to adjust the timeout to fit the duration of your task with the ''​-i''​ option in command line. For example:
 +<​code>​
 +lsc -f /etc/lsc/ -s user -t1 -i72000
 +</​code>​