Oracle VM 3.2 – OVMAPI_4004E Server Failed Command: HTTP server returned unexpected status: Unauthorized access attempt

You might receive the error message below while discovering an Oracle Virtual Server:

(02/15/2014 05:57:26:942 PM) OVMAPI_4010E Attempt to send command: get_api_version to server: 192.168.78.157 failed. OVMAPI_4004E Server Failed Command: get_api_version , Status: org.apache.xmlrpc.client.XmlRpcHttpTransportException: HTTP server returned unexpected status: Unauthorized access attempt from ('192.168.78.155', 55150)! [Sat Feb 15 17:57:26 PST 2014] [Sat Feb 15 17:57:26 PST 2014]

This means that most likely your password for the agents user is incorrect. I got around this by resetting it on the Oracle Virtual Server. Thanks to Avi for posting it in the Oracle Forums!

$ ovs-agent-passwd oracle
Password:
Again:

Attempt to rediscover again, and it should work.

Cheers!

Advertisements

11 comments

  1. This post was helpful! I

  2. I am receiving above error not for vm server but a virtual machine that i created using virtual box
    IP add of vm is : 10.178.151.102
    IP of my vm manager is : 192. 168.56.100
    vm manager cn ping vm but vm unable to ping vm manager.
    internet working on vm but its not working on vm manager.
    please help.
    I am new to this.

    1. Gagan,

      Are you following a specific documentation set to create this environment? It’s possible that your VM Manager’s network isn’t set up for external traffic.

      Maaz

  3. mo ali · · Reply

    Hi

    Having a similar issue to above; but with VMS 3.2.2 on a physical server and VM Manger 3.2.4 in a vitualbox environment; for what ever reason cannot discover the VM server, all on the same network of 192.168.10.0/24; done all the necessary changes and read many blogs about changing ovs agent password; still no luck what ever I do; disabled AV, firewalls; error messages below…

    any ideas

    —————————————————————————————————————————————————-

    Object (IN_USE): [DiscoverManager] OVM Foundry : Discover Manager

    Write Methods Invoked
    ——————-
    11:49:21,134 Class=InternalJobDbImpl vessel_id=2187 method=addTransactionIdentifier accessLevel=6 owningTx=1433270961133
    11:49:21,134 Class=DiscoverManagerDbImpl vessel_id=235 method=discoverServer accessLevel=6 owningTx=1433270961133
    11:49:21,138 Class=InternalJobDbImpl vessel_id=2187 method=setCompletedStep accessLevel=6 owningTx=1433270961133
    11:49:21,142 Class=InternalJobDbImpl vessel_id=2187 method=setAssociatedHandles accessLevel=6 owningTx=1433270961133
    11:49:21,504 Class=DiscoverManagerDbImpl vessel_id=235 method=nextJobOperation accessLevel=6 owningTx=1433270961133
    11:49:21,505 Class=InternalJobDbImpl vessel_id=2187 method=setFailedOperation accessLevel=6 owningTx=1433270961133
    11:49:21,614 Class=DiscoverManagerDbImpl vessel_id=235 method=nextJobOperation accessLevel=6 owningTx=1433270961133
    11:49:21,633 Class=DiscoverManagerDbImpl vessel_id=235 method=nextJobOperation accessLevel=6 owningTx=1433270961133
    Completed Step: ROLLBACK
    Job failed commit (internal) due to OVMAPI_4010E Attempt to send command: get_api_version to server: 192.168.10.9 failed. OVMAPI_4004E Server Failed Command: get_api_version , Status: org.apache.xmlrpc.XmlRpcException: I/O error while communicating with HTTP server: Connection reset [Tue Jun 02 11:49:21 PDT 2015] [Tue Jun 02 11:49:21 PDT 2015]
    com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command: get_api_version to server: 192.168.10.9 failed. OVMAPI_4004E Server Failed Command: get_api_version , Status: org.apache.xmlrpc.XmlRpcException: I/O error while communicating with HTTP server: Connection reset [Tue Jun 02 11:49:21 PDT 2015] [Tue Jun 02 11:49:21 PDT 2015]
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:512)
    at com.oracle.ovm.mgr.action.ActionEngine.sendUndispatchedServerCommand(ActionEngine.java:399)
    at com.oracle.ovm.mgr.action.ServerAction.getSupportedApiVersions(ServerAction.java:314)
    at com.oracle.ovm.mgr.discover.DiscoverEngine.getServerApiVersions(DiscoverEngine.java:446)
    at com.oracle.ovm.mgr.discover.DiscoverEngine.discoverNewServer(DiscoverEngine.java:286)
    at com.oracle.ovm.mgr.discover.DiscoverEngine.discoverServer(DiscoverEngine.java:203)
    at com.oracle.ovm.mgr.op.manager.DiscoverManagerServerDiscover.action(DiscoverManagerServerDiscover.java:48)
    at com.oracle.ovm.mgr.api.collectable.ManagedObjectDbImpl.executeCurrentJobOperationAction(ManagedObjectDbImpl.java:1156)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:356)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:333)
    at com.oracle.odof.core.storage.Transaction.invokeMethod(Transaction.java:865)
    at com.oracle.odof.core.Exchange.invokeMethod(Exchange.java:244)
    at com.oracle.ovm.mgr.api.manager.DiscoverManagerProxy.executeCurrentJobOperationAction(Unknown Source)
    at com.oracle.ovm.mgr.api.job.JobEngine.operationActioner(JobEngine.java:230)
    at com.oracle.ovm.mgr.api.job.JobEngine.objectActioner(JobEngine.java:322)
    at com.oracle.ovm.mgr.api.job.InternalJobDbImpl.objectCommitter(InternalJobDbImpl.java:1357)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:356)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:333)
    at com.oracle.odof.core.BasicWork.invokeMethod(BasicWork.java:106)
    at com.oracle.odof.command.InvokeMethodCommand.process(InvokeMethodCommand.java:92)
    at com.oracle.odof.core.BasicWork.processCommand(BasicWork.java:81)
    at com.oracle.odof.core.TransactionManager.processCommand(TransactionManager.java:752)
    at com.oracle.odof.core.WorkflowManager.processCommand(WorkflowManager.java:467)
    at com.oracle.odof.core.WorkflowManager.processWork(WorkflowManager.java:525)
    at com.oracle.odof.io.AbstractClient.run(AbstractClient.java:42)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: com.oracle.ovm.mgr.api.exception.IllegalOperationException: OVMAPI_4004E Server Failed Command: get_api_version , Status: org.apache.xmlrpc.XmlRpcException: I/O error while communicating with HTTP server: Connection reset [Tue Jun 02 11:49:21 PDT 2015]
    at com.oracle.ovm.mgr.action.ActionEngine.sendAction(ActionEngine.java:803)
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:508)
    … 33 more

    ———-
    End of Job
    ———-

    1. Mo, I apologize but I’m not sure why you’re getting this error message. Open up an SR with MOS and see if they can assist.

      Good luck!

      Maaz

      1. Mohammad Ali · ·

        Thanks for quick reply, let me see what I can do to open a SR with Oracle…

  4. mo ali · · Reply

    full error message below; above one is half missing.

    ———————————————————————————

    Job Construction Phase
    ———————-
    Job ID: 1433270960953

    begin()
    Appended operation ‘Discover Manager Server Discover’ to object ‘OVM Foundry : Discover Manager’.
    commit()
    Completed Step: COMMIT

    Objects and Operations
    ———————-
    Object (IN_USE): [DiscoverManager] OVM Foundry : Discover Manager
    Operation: Discover Manager Server Discover

    Job Running Phase at 2015-06-02 11:49:20,953
    ———————————————-
    Job Participants: []

    Actioner
    ——–
    11:49:21,203: Starting operation ‘Discover Manager Server Discover’ on object ‘OVM Foundry : Discover Manager’
    Setting Context to model only in job with id=1433270960953
    Job Internal Error (Operation)com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command: get_api_version to server: 192.168.10.9 failed. OVMAPI_4004E Server Failed Command: get_api_version , Status: org.apache.xmlrpc.XmlRpcException: I/O error while communicating with HTTP server: Connection reset [Tue Jun 02 11:49:21 PDT 2015] [Tue Jun 02 11:49:21 PDT 2015]
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:512)
    at com.oracle.ovm.mgr.action.ActionEngine.sendUndispatchedServerCommand(ActionEngine.java:399)
    at com.oracle.ovm.mgr.action.ServerAction.getSupportedApiVersions(ServerAction.java:314)
    at com.oracle.ovm.mgr.discover.DiscoverEngine.getServerApiVersions(DiscoverEngine.java:446)
    at com.oracle.ovm.mgr.discover.DiscoverEngine.discoverNewServer(DiscoverEngine.java:286)
    at com.oracle.ovm.mgr.discover.DiscoverEngine.discoverServer(DiscoverEngine.java:203)
    at com.oracle.ovm.mgr.op.manager.DiscoverManagerServerDiscover.action(DiscoverManagerServerDiscover.java:48)
    at com.oracle.ovm.mgr.api.collectable.ManagedObjectDbImpl.executeCurrentJobOperationAction(ManagedObjectDbImpl.java:1156)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:356)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:333)
    at com.oracle.odof.core.storage.Transaction.invokeMethod(Transaction.java:865)
    at com.oracle.odof.core.Exchange.invokeMethod(Exchange.java:244)
    at com.oracle.ovm.mgr.api.manager.DiscoverManagerProxy.executeCurrentJobOperationAction(Unknown Source)
    at com.oracle.ovm.mgr.api.job.JobEngine.operationActioner(JobEngine.java:230)
    at com.oracle.ovm.mgr.api.job.JobEngine.objectActioner(JobEngine.java:322)
    at com.oracle.ovm.mgr.api.job.InternalJobDbImpl.objectCommitter(InternalJobDbImpl.java:1357)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:356)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:333)
    at com.oracle.odof.core.BasicWork.invokeMethod(BasicWork.java:106)
    at com.oracle.odof.command.InvokeMethodCommand.process(InvokeMethodCommand.java:92)
    at com.oracle.odof.core.BasicWork.processCommand(BasicWork.java:81)
    at com.oracle.odof.core.TransactionManager.processCommand(TransactionManager.java:752)
    at com.oracle.odof.core.WorkflowManager.processCommand(WorkflowManager.java:467)
    at com.oracle.odof.core.WorkflowManager.processWork(WorkflowManager.java:525)
    at com.oracle.odof.io.AbstractClient.run(AbstractClient.java:42)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: com.oracle.ovm.mgr.api.exception.IllegalOperationException: OVMAPI_4004E Server Failed Command: get_api_version , Status: org.apache.xmlrpc.XmlRpcException: I/O error while communicating with HTTP server: Connection reset [Tue Jun 02 11:49:21 PDT 2015]
    at com.oracle.ovm.mgr.action.ActionEngine.sendAction(ActionEngine.java:803)
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:508)
    … 33 more

    FailedOperationCleanup
    ———-
    Starting failed operation ‘Discover Manager Server Discover’ cleanup on object ‘OVM Foundry : Discover Manager’
    Complete rollback operation ‘Discover Manager Server Discover’ cleanup on object ‘OVM Foundry : Discover Manager’

    Rollbacker
    ———-
    11:49:21,605: Starting rollbacker…
    Executing rollback operation ‘Discover Manager Server Discover’ on object ‘OVM Foundry : Discover Manager’
    Complete rollback operation ‘Discover Manager Server Discover’ completed with direction=DONE
    11:49:21,633: Rollbacker completed…

    Objects To Be Rolled Back
    ————————-
    Object (IN_USE): [DiscoverManager] OVM Foundry : Discover Manager

    Write Methods Invoked
    ——————-
    11:49:21,134 Class=InternalJobDbImpl vessel_id=2187 method=addTransactionIdentifier accessLevel=6 owningTx=1433270961133
    11:49:21,134 Class=DiscoverManagerDbImpl vessel_id=235 method=discoverServer accessLevel=6 owningTx=1433270961133
    11:49:21,138 Class=InternalJobDbImpl vessel_id=2187 method=setCompletedStep accessLevel=6 owningTx=1433270961133
    11:49:21,142 Class=InternalJobDbImpl vessel_id=2187 method=setAssociatedHandles accessLevel=6 owningTx=1433270961133
    11:49:21,504 Class=DiscoverManagerDbImpl vessel_id=235 method=nextJobOperation accessLevel=6 owningTx=1433270961133
    11:49:21,505 Class=InternalJobDbImpl vessel_id=2187 method=setFailedOperation accessLevel=6 owningTx=1433270961133
    11:49:21,614 Class=DiscoverManagerDbImpl vessel_id=235 method=nextJobOperation accessLevel=6 owningTx=1433270961133
    11:49:21,633 Class=DiscoverManagerDbImpl vessel_id=235 method=nextJobOperation accessLevel=6 owningTx=1433270961133
    Completed Step: ROLLBACK
    Job failed commit (internal) due to OVMAPI_4010E Attempt to send command: get_api_version to server: 192.168.10.9 failed. OVMAPI_4004E Server Failed Command: get_api_version , Status: org.apache.xmlrpc.XmlRpcException: I/O error while communicating with HTTP server: Connection reset [Tue Jun 02 11:49:21 PDT 2015] [Tue Jun 02 11:49:21 PDT 2015]
    com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command: get_api_version to server: 192.168.10.9 failed. OVMAPI_4004E Server Failed Command: get_api_version , Status: org.apache.xmlrpc.XmlRpcException: I/O error while communicating with HTTP server: Connection reset [Tue Jun 02 11:49:21 PDT 2015] [Tue Jun 02 11:49:21 PDT 2015]
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:512)
    at com.oracle.ovm.mgr.action.ActionEngine.sendUndispatchedServerCommand(ActionEngine.java:399)
    at com.oracle.ovm.mgr.action.ServerAction.getSupportedApiVersions(ServerAction.java:314)
    at com.oracle.ovm.mgr.discover.DiscoverEngine.getServerApiVersions(DiscoverEngine.java:446)
    at com.oracle.ovm.mgr.discover.DiscoverEngine.discoverNewServer(DiscoverEngine.java:286)
    at com.oracle.ovm.mgr.discover.DiscoverEngine.discoverServer(DiscoverEngine.java:203)
    at com.oracle.ovm.mgr.op.manager.DiscoverManagerServerDiscover.action(DiscoverManagerServerDiscover.java:48)
    at com.oracle.ovm.mgr.api.collectable.ManagedObjectDbImpl.executeCurrentJobOperationAction(ManagedObjectDbImpl.java:1156)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:356)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:333)
    at com.oracle.odof.core.storage.Transaction.invokeMethod(Transaction.java:865)
    at com.oracle.odof.core.Exchange.invokeMethod(Exchange.java:244)
    at com.oracle.ovm.mgr.api.manager.DiscoverManagerProxy.executeCurrentJobOperationAction(Unknown Source)
    at com.oracle.ovm.mgr.api.job.JobEngine.operationActioner(JobEngine.java:230)
    at com.oracle.ovm.mgr.api.job.JobEngine.objectActioner(JobEngine.java:322)
    at com.oracle.ovm.mgr.api.job.InternalJobDbImpl.objectCommitter(InternalJobDbImpl.java:1357)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:356)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:333)
    at com.oracle.odof.core.BasicWork.invokeMethod(BasicWork.java:106)
    at com.oracle.odof.command.InvokeMethodCommand.process(InvokeMethodCommand.java:92)
    at com.oracle.odof.core.BasicWork.processCommand(BasicWork.java:81)
    at com.oracle.odof.core.TransactionManager.processCommand(TransactionManager.java:752)
    at com.oracle.odof.core.WorkflowManager.processCommand(WorkflowManager.java:467)
    at com.oracle.odof.core.WorkflowManager.processWork(WorkflowManager.java:525)
    at com.oracle.odof.io.AbstractClient.run(AbstractClient.java:42)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: com.oracle.ovm.mgr.api.exception.IllegalOperationException: OVMAPI_4004E Server Failed Command: get_api_version , Status: org.apache.xmlrpc.XmlRpcException: I/O error while communicating with HTTP server: Connection reset [Tue Jun 02 11:49:21 PDT 2015]
    at com.oracle.ovm.mgr.action.ActionEngine.sendAction(ActionEngine.java:803)
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:508)
    … 33 more

    ———-
    End of Job
    ———-

  5. Inderjeet Singh · · Reply

    Hi,

    I am getting the same error which you have explained here. I am trying to create OVM environment in VirtualBox as per the demo shared by Oracle. They never mention the password for VM agent in the PDF. Now to change the password, I will need to login as root in OVM server. I am using the pre-built appliances shared by Oracle and they haven’t mentioned the password for root user even for the OVM server. How can I change password for VM agent in that scenario.

    Thanks,
    Inderjeet Singh

  6. Still helpfull :). Thx.

  7. OVMRU_005013E PXE boot requires that the virtual machine : new_vm, has atleast one VNIC

    I am getting this error, don’t know why?

    1. I’m not sure why Chaitanya. I don’t have access to an OVM instance anymore to troubleshoot.

      Does your Virtual Machine “new_vm” have a Virtual NIC assigned to it?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Musings

Things I see and learn!

Thoughts from James H. Lui

If you Care a Little More, Things Happen. Bees can be dangerous. Always wear protective clothing when approaching or dealing with bees. Do not approach or handle bees without proper instruction and training.

bdt's oracle blog

Sharing experience (by Bertrand Drouvot)

Frits Hoogland Weblog

IT Technology; Oracle, linux, TCP/IP and other stuff I find interesting

Vishal desai's Oracle Blog

Just another WordPress.com weblog

%d bloggers like this: