AUTMatt
Contributor
Contributor

"Invalid User" errors seen before session timeout

Running vCloud Director v5.1.

I keep getting "Invalid User" errors in the vCloud UI when running tasks, especially long running tasks like imports.  The import will execute a copy procedure and then timeout at the end when it gets to the next step of adding it to the vApp.

My session timeout is set to 30m, but I seem to be getting these errors after 15m or so idle.

Log Snippet:

2012-09-20 13:16:49,668 | WARN     | LocalTaskScheduler-Pool-3 | Conversation                   | Session has been opened for too long: LocalTaskScheduler-Pool-3. Opened since: 9/20/12 12:59 PM. | vcd=e9c473e4-cdb3-4f01-8b59-6d61a3af03b6,task=c3d16cb6-fb2a-40a3-810b-1a8342a4c342
2012-09-20 13:16:49,692 | WARN     | LocalTaskScheduler-Pool-3 | Conversation                   | Session has been opened for too long: LocalTaskScheduler-Pool-3. Opened since: 9/20/12 12:59 PM. | vcd=e9c473e4-cdb3-4f01-8b59-6d61a3af03b6,task=c3d16cb6-fb2a-40a3-810b-1a8342a4c342
2012-09-20 13:16:49,695 | ERROR    | LocalTaskScheduler-Pool-3 | TaskServiceImpl                | Unable to execute task IMPORT_INTO_EXISTING_VAPP(com.vmware.vcloud.entity.task:c3d16cb6-fb2a-40a3-810b-1a8342a4c342) | vcd=e9c473e4-cdb3-4f01-8b59-6d61a3af03b6,task=c3d16cb6-fb2a-40a3-810b-1a8342a4c342
com.vmware.ssdc.library.exceptions.ManagedObjectNotFoundException: Managed object of type "ResourcePool" with value "resgroup-11325" does not exist.
vCenter Server task (moref: task-43070) failed in vCenter Server 'vc02.englab.local' (9a78b3e4-c19a-4ebb-afc2-ae9906a87c6e).
        at com.vmware.ssdc.library.vim.LmVim.Convert(LmVim.java:356)
        at com.vmware.ssdc.library.vim.LmVim.Convert(LmVim.java:550)
        at com.vmware.vcloud.val.taskmanagement.TaskWaiterInvRecord.CheckForError(TaskWaiterInvRecord.java:196)
        at com.vmware.vcloud.val.internal.impl.VC20VirtualServer.cloneVm(VC20VirtualServer.java:2611)
        at com.vmware.vcloud.val.internal.impl.VC20VirtualServer.clone(VC20VirtualServer.java:2565)
        at com.vmware.vcloud.fabric.storage.copy.impl.VmCopyServiceImpl.intraVcCopyVm(VmCopyServiceImpl.java:717)
        at com.vmware.vcloud.fabric.storage.copy.impl.VmCopyServiceImpl.copyVm(VmCopyServiceImpl.java:340)
        at com.vmware.vcloud.fabric.storage.copy.impl.VmCopyServiceImpl.copyVms(VmCopyServiceImpl.java:283)
        at com.vmware.vcloud.fabric.storage.copy.impl.VmCopyServiceImpl.copyVm(VmCopyServiceImpl.java:251)
        at com.vmware.vcloud.fabric.storage.storedVm.impl.AbstractCreateStoredVmActivity.copyVmInVc(AbstractCreateStoredVmActivity.java:160)
        at com.vmware.vcloud.fabric.storage.storedVm.impl.CreateFromVCenterVmActivity$FinishImportFromVcPhase.invoke(CreateFromVCenterVmActivity.java:178)
        at com.vmware.vcloud.fabric.foundation.activity.executors.ActivityRunner.run(ActivityRunner.java:123)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
2012-09-20 13:16:49,701 | ERROR    | LocalTaskScheduler-Pool-3 | TaskServiceImpl                | Unable to preprocess task IMPORT_INTO_EXISTING_VAPP(com.vmware.vcloud.entity.task:c3d16cb6-fb2a-40a3-810b-1a8342a4c342) | vcd=e9c473e4-cdb3-4f01-8b59-6d61a3af03b6,task=c3d16cb6-fb2a-40a3-810b-1a8342a4c342
com.vmware.ssdc.library.exceptions.InvalidUserException: Invalid user.
        at com.vmware.ssdc.backend.OrganizationFactory.getOrganizationMember(OrganizationFactory.java:209)
        at com.vmware.ssdc.backend.OrganizationFactory.GetOrgUser(OrganizationFactory.java:237)
        at com.vmware.ssdc.backend.CSecurityManager.buildSecurityContext(CSecurityManager.java:797)
        at com.vmware.ssdc.backend.CSecurityManager.initSecurityContext(CSecurityManager.java:1496)
        at com.vmware.vcloud.management.system.TaskServiceImpl$SecurityContextTemplate.executeForOrgAndUser(TaskServiceImpl.java:1607)
        at com.vmware.vcloud.management.system.TaskServiceImpl.dispatchByStatus(TaskServiceImpl.java:1169)
        at com.vmware.vcloud.management.system.TaskServiceImpl.dispatchTask(TaskServiceImpl.java:1044)
        at com.vmware.vcloud.management.system.LocalTask.run(LocalTask.java:88)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
2012-09-20 13:16:49,705 | DEBUG    | LocalTaskScheduler-Pool-3 | CJob                           | updateFailedJob(com.vmware.ssdc.library.exceptions.InvalidUserException) with locale=null | vcd=e9c473e4-cdb3-4f01-8b59-6d61a3af03b6,task=c3d16cb6-fb2a-40a3-810b-1a8342a4c342
com.vmware.ssdc.library.exceptions.InvalidUserException: Invalid user.
        at com.vmware.ssdc.backend.OrganizationFactory.getOrganizationMember(OrganizationFactory.java:209)
        at com.vmware.ssdc.backend.OrganizationFactory.GetOrgUser(OrganizationFactory.java:237)
        at com.vmware.ssdc.backend.CSecurityManager.buildSecurityContext(CSecurityManager.java:797)
        at com.vmware.ssdc.backend.CSecurityManager.initSecurityContext(CSecurityManager.java:1496)
        at com.vmware.vcloud.management.system.TaskServiceImpl$SecurityContextTemplate.executeForOrgAndUser(TaskServiceImpl.java:1607)
        at com.vmware.vcloud.management.system.TaskServiceImpl.dispatchByStatus(TaskServiceImpl.java:1169)
        at com.vmware.vcloud.management.system.TaskServiceImpl.dispatchTask(TaskServiceImpl.java:1044)
        at com.vmware.vcloud.management.system.LocalTask.run(LocalTask.java:88)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

Tags (1)
0 Kudos
1 Reply
gautam_johar
Contributor
Contributor

0 Kudos