quarta-feira, 25 de abril de 2012

FinalBuilder trigger problem

I discovered that the continuous integration using FinalBuilder didn't run because of an error on the triggers that check the SubVersion repository.  When checking the Windows EventLog, I saw many errors from the EventSource "Userenv":
  • Windows has backed up this user's profile. Windows will automatically try to use the backed up profile the next time this user logs on.
  • Windows cannot find the local profile and is logging you on with a temporary profile. Changes you make to this profile will be lost when you log off.
  • Windows was unable to load the registry. This is often caused by insufficient memory or insufficient security rights.
    DETAIL - A required privilege is not held by the client.  for C:\Documents and Settings\TEMP\ntuser.dat
  • Windows cannot load the user's profile but has logged you on with the default profile for the system.
    DETAIL - A required privilege is not held by the client. 
FinalBuilder is configured to use the local user "builder" to execute its triggers, but the 3 finalbuilder services were running as "System".

Initially, I thought that the problem was because of a corrupt user profile of the user "builder".  So I recreated the user profile, using these steps:
  • First, I removed the existing user profile for "builder":
    • Log-in as an administrator (that is not the user that you want to delete the profile of)
    • Right click on "My computer", and select "Properties"
    • Go to the tab "Advanced", and under "User profiles", click the button "Settings"
    • You get a list of all profiles that are present, with some information such as size on disk and the last log-in time.
    • Select the profile that you want to delete, and click "Delete".
  • Second, recreate the profile by logging in once using the user "builder"
This solved all the existing EventLog errors, but I got a new one:
  • Windows cannot unload your registry file. The memory used by the registry has not been freed. This is often caused by services running as a user account, try configuring the services to run in either the LocalService or NetworkService account. If this problem persists, contact your administrator.
    DETAIL - A required privilege is not held by the client. 
To solve this, I configured the 3 FinalBuilder services to run as the user "builder":
  • Start "services.msc" to see all services, and locate the 3 FinalBuilder services:
    • FinalBuilder Server 7 Build Service
    • FinalBuilder Server 7 Logging Service
    • FinalBuilder Server 7 Management Service
  • For each of these services:
    • Right click on the service and select "Properties"
    • Open the tab "Log on"
    • Select "This account" and enter the user name and password (twice) of the account.
The combination of the two actions above (recreate the user profile, and change the service log on) eliminated all the events, and consequently the trigger problems with FinalBuilder.

Nenhum comentário:

Postar um comentário