EMCLI “session expired” Error and FQDN

In my previous post, I demonstrated how to use emcli to download new agent software and import them to Enterprise Manager Cloud Control. One of my readers told me that emcli gives “session expired” error when he tries to import catalog file. First I thought he does not run the commands in time so emcli session expires but I get the same error in one of my test servers.

I checked the logs and found the bug 10625373 in My Oracle Support. According to the bug, you get this error if you do not use a fully qualified domain name (FQDN) of the OMS server for emcli setup (or while installing Enterprise Manager Cloud Control). You need to re-setup emcli and use a FQDN or you can use “auto-login” to fix this problem.

Run the following command if you prefer to setup emcli with autologin:

After this command, you do not need “emcli login” before you run any emcli command. If you do not want to use auto-login, you should use a FQDN, so run the following command:

If your server does not have a FQDN (not in a domain), you can add an unused FQDN to your /etc/hosts and use that fake FQDN with emcli setup:

By the way, the slash (/) is used to split long lines into two lines, so they can fit in my web page. You can remove the slash and combine two lines into one line.

Please share this post Share on Facebook0Share on Google+0Share on LinkedIn1Share on Reddit0Tweet about this on Twitter

Gokhan Atil is a database architect who has hands-on experience with both RDBMS and noSQL databases (Oracle, PostgreSQL, Microsoft SQL Server, Sybase IQ, MySQL, Cassandra, MongoDB and ElasticSearch), and strong background on software development. He is certified as Oracle Certified Professional (OCP) and is awarded as Oracle ACE (in 2011) and Oracle ACE Director (in 2016) for his continuous contributions to the Oracle users community.

11 Comments

  1. Hakan Kılıç

    Gökhan Hocam
    12c Cloud Control Ankara için yeni bir ürün ve bu tip hata çözümlemeleri için pek kaynak bulunmuyor.
    Değerli paylaşımınız için Teşekkürler
    Hakan KILIÇ (OCA)

    • Gokhan Atil

      Selam Hakan, vakit buldukça ve yazmaya değer birşeyler karşıma çıktıkça bunları blogumda anlatmaya çalışıyorum, destek verici mesajın için teşekkürler.

  2. Amandeep goyal

    hi Gokhan

    i tried with both ways, but m still facing the same issue. its again showing me session expired.

  3. Airell

    Hello Gokham,

    Like Amandeep, I also still have the EMCLI ‘“session expired”’ error. Even after reconfiguring using the FQDN.

    Regards, Airell.

    • Airell

      Hi Gokhan,

      If you want to set autologin to true, you must specify it with the ‘-autologin’ option when setting up.

      Cheers, Airell.

  4. Gokhan Atil

    Amandeep and Airell,

    I do not get any session expired error when I try to use emcli on OMS server. I have re-tested today:

    [oracle@cloudcontrol12 ~]$ /oracle/Middleware/oms/bin/emcli version
    Oracle Enterprise Manager 12c EMCLI Version 12.1.0.2.0

  5. Rishabh

    Please help me with this error encountered while requesting servers from the self service portal.

     

    Placement is not feasible with reason:Placement’s feasibility is false
    The available Supply is [
    Referenced=>Target Type: oracle_vm_zone Target Name:MY_ZONE, Placeable=>false
    Associations=>[]
    Numerosities=>[]
    Score=>0.0
    Children=>[
    Referenced=>Target Type: oracle_vm_server_pool Target Name:MY_POOL
    Numerosities=>[
    {Cpu=>0.99/1.0 Flex=>true Discrete=>false},
    {Memory=>7263.0/8027.0 Flex=>true Discrete=>true},
    {DiskStorage=>78.0/78.0 Flex=>true Discrete=>true},
    {Nic=>0.0/1.0 Flex=>false Discrete=>false},
    {oracle:defaultService:em:provisioning:1:netConfig:DFF68137A860805EE040A8C0260129D9=>40.0/40.0 Flex=>true Discrete=>false},
    {Server=>1.0/1.0 Flex=>false Discrete=>false}]
    ]
    ]
    Overall Resource Starvation caused no placement to be feasible
    Cannot find suitable placements to satisfy all affinity and antiaffinity requirements

    Placement computation logs :
    ==== Starting to Compute for Placement
    —> Available Supplies are
    Referenced=>Target Type: oracle_vm_zone Target Name:MY_ZONE, Placeable=>false
    Associations=>[]
    Numerosities=>[]
    Score=>0.0
    Children=>[
    Referenced=>Target Type: oracle_vm_server_pool Target Name:MY_POOL
    Numerosities=>[
    {Cpu=>0.99/1.0 Flex=>true Discrete=>false},
    {Memory=>7263.0/8027.0 Flex=>true Discrete=>true},
    {DiskStorage=>78.0/78.0 Flex=>true Discrete=>true},
    {Nic=>0.0/1.0 Flex=>false Discrete=>false},
    {oracle:defaultService:em:provisioning:1:netConfig:DFF68137A860805EE040A8C0260129D9=>40.0/40.0 Flex=>true Discrete=>false},
    {Server=>1.0/1.0 Flex=>false Discrete=>false}]
    ]

    ————-
    —> Demands to be placed are
    Referenced=>oracle.sysman.vt.service.provisioning.assembly.impl.elements.VirtualSystemImpl@172ecfe8, Placeable=>false
    Associations=>[]
    Characteristics=>[{“Class”=oracle.sysman.vt.service.placement.impl.RequestInterpreter$SingleComparibleValueCharacteristic,”Name”=SUPPORT_DESTINATION,”canBeInherited”=false,”shouldBeOverwrite”=true    [1]}]
    IsUniform=>false
    Numerosities=>[]
    Children=>[
    Referenced=>oracle.sysman.vt.service.provisioning.deployment.assembly.impl.VirtualSystemConfigImpl@253943c
    Numerosities=>[
    {Memory=>768.0/0.0 Flex=>true Discrete=>false}]
    ]

    ————-
    —> Demands that are placeable are
    oracle.sysman.vt.service.provisioning.deployment.assembly.impl.VirtualSystemConfigImpl@253943c
    ————-
    #### Starting to match demand the supply based on Characteristics and Associations
    #### Start Working on a demand to be placed:
    Referenced=>oracle.sysman.vt.service.provisioning.deployment.assembly.impl.VirtualSystemConfigImpl@253943c, Placeable=>true
    Associations=>[]
    Characteristics=>[]
    IsUniform=>false
    Numerosities=>[
    {Memory=>768.0/0.0 Flex=>true Discrete=>false}]
    #### Found the Following Supply that can fit the demand based on characteristics and associations
    Target Type: oracle_vm_zone Target Name:MY_ZONE
    #### Sort the eligible supplies based on scoring

    Referenced=>Target Type: oracle_vm_zone Target Name:MY_ZONE, Placeable=>false
    Associations=>[]
    Numerosities=>[]
    Score=>0.0
    #### End computing fitting placement based on characteristics and associations
    #### Start to organize the demand with list of eligible supplies
    #### Shuffle the demand nodes for non-ordered fitting
    #### The order of the Demand nodes are
    oracle.sysman.vt.service.provisioning.deployment.assembly.impl.VirtualSystemConfigImpl@253943c
    #### Starting to Compute placement based on Resource Fitting and Affinity relationships
    #### Working on demand:
    Referenced=>oracle.sysman.vt.service.provisioning.deployment.assembly.impl.VirtualSystemConfigImpl@253943c, Placeable=>true
    Associations=>[]
    Characteristics=>[]
    IsUniform=>false
    Numerosities=>[
    {Memory=>768.0/0.0 Flex=>true Discrete=>false}]
    #### This supply does not have sufficient resource:
    Referenced=>Target Type: oracle_vm_zone Target Name:MY_ZONE, Placeable=>false
    Associations=>[]
    Numerosities=>[]
    Score=>0.0
    #### Cloud not Find any Placement for: oracle.sysman.vt.service.provisioning.deployment.assembly.impl.VirtualSystemConfigImpl@253943c in current iteration.
    #### The algorithm has traversed through all possible paths, and could not find a feasible match that would satisfy all demands
    ==== Placement Computation Did not Find Suitable Fitting

    Output Log

    Error while checkig placement feasibility: null
    Error while checkig placement feasibility: null
    Placement is not feasible with reason:Placement’s feasibility is false
    The available Supply is [
    Referenced=>Target Type: oracle_vm_zone Target Name:MY_ZONE, Placeable=>false
    Associations=>[]
    Numerosities=>[]
    Score=>0.0
    Children=>[
    Referenced=>Target Type: oracle_vm_server_pool Target Name:MY_POOL
    Numerosities=>[
    {Cpu=>0.99/1.0 Flex=>true Discrete=>false},
    {Memory=>7263.0/8027.0 Flex=>true Discrete=>true},
    {DiskStorage=>78.0/78.0 Flex=>true Discrete=>true},
    {Nic=>0.0/1.0 Flex=>false Discrete=>false},
    {oracle:defaultService:em:provisioning:1:netConfig:DFF68137A860805EE040A8C0260129D9=>40.0/40.0 Flex=>true Discrete=>false},
    {Server=>1.0/1.0 Flex=>false Discrete=>false}]
    ]
    ]
    Overall Resource Starvation caused no placement to be feasible
    Cannot find suitable placements to satisfy all affinity and antiaffinity requirements

    Placement computation logs :
    ==== Starting to Compute for Placement
    —> Available Supplies are
    Referenced=>Target Type: oracle_vm_zone Target Name:MY_ZONE, Placeable=>false
    Associations=>[]
    Numerosities=>[]
    Score=>0.0
    Children=>[
    Referenced=>Target Type: oracle_vm_server_pool Target Name:MY_POOL
    Numerosities=>[
    {Cpu=>0.99/1.0 Flex=>true Discrete=>false},
    {Memory=>7263.0/8027.0 Flex=>true Discrete=>true},
    {DiskStorage=>78.0/78.0 Flex=>true Discrete=>true},
    {Nic=>0.0/1.0 Flex=>false Discrete=>false},
    {oracle:defaultService:em:provisioning:1:netConfig:DFF68137A860805EE040A8C0260129D9=>40.0/40.0 Flex=>true Discrete=>false},
    {Server=>1.0/1.0 Flex=>false Discrete=>false}]
    ]

    ————-
    —> Demands to be placed are
    Referenced=>oracle.sysman.vt.service.provisioning.assembly.impl.elements.VirtualSystemImpl@172ecfe8, Placeable=>false
    Associations=>[]
    Characteristics=>[{“Class”=oracle.sysman.vt.service.placement.impl.RequestInterpreter$SingleComparibleValueCharacteristic,”Name”=SUPPORT_DESTINATION,”canBeInherited”=false,”shouldBeOverwrite”=true    [1]}]
    IsUniform=>false
    Numerosities=>[]
    Children=>[
    Referenced=>oracle.sysman.vt.service.provisioning.deployment.assembly.impl.VirtualSystemConfigImpl@253943c
    Numerosities=>[
    {Memory=>768.0/0.0 Flex=>true Discrete=>false}]
    ]

    ————-
    —> Demands that are placeable are
    oracle.sysman.vt.service.provisioning.deployment.assembly.impl.VirtualSystemConfigImpl@253943c
    ————-
    #### Starting to match demand the supply based on Characteristics and Associations
    #### Start Working on a demand to be placed:
    Referenced=>oracle.sysman.vt.service.provisioning.deployment.assembly.impl.VirtualSystemConfigImpl@253943c, Placeable=>true
    Associations=>[]
    Characteristics=>[]
    IsUniform=>false
    Numerosities=>[
    {Memory=>768.0/0.0 Flex=>true Discrete=>false}]
    #### Found the Following Supply that can fit the demand based on characteristics and associations
    Target Type: oracle_vm_zone Target Name:MY_ZONE
    #### Sort the eligible supplies based on scoring

    Referenced=>Target Type: oracle_vm_zone Target Name:MY_ZONE, Placeable=>false
    Associations=>[]
    Numerosities=>[]
    Score=>0.0
    #### End computing fitting placement based on characteristics and associations
    #### Start to organize the demand with list of eligible supplies
    #### Shuffle the demand nodes for non-ordered fitting
    #### The order of the Demand nodes are
    oracle.sysman.vt.service.provisioning.deployment.assembly.impl.VirtualSystemConfigImpl@253943c
    #### Starting to Compute placement based on Resource Fitting and Affinity relationships
    #### Working on demand:
    Referenced=>oracle.sysman.vt.service.provisioning.deployment.assembly.impl.VirtualSystemConfigImpl@253943c, Placeable=>true
    Associations=>[]
    Characteristics=>[]
    IsUniform=>false
    Numerosities=>[
    {Memory=>768.0/0.0 Flex=>true Discrete=>false}]
    #### This supply does not have sufficient resource:
    Referenced=>Target Type: oracle_vm_zone Target Name:MY_ZONE, Placeable=>false
    Associations=>[]
    Numerosities=>[]
    Score=>0.0
    #### Cloud not Find any Placement for: oracle.sysman.vt.service.provisioning.deployment.assembly.impl.VirtualSystemConfigImpl@253943c in current iteration.
    #### The algorithm has traversed through all possible paths, and could not find a feasible match that would satisfy all demands
    ==== Placement Computation Did not Find Suitable Fitting

    Output Log

    Error while checkig placement feasibility: null
    Error while checkig placement feasibility: null

  6. Halina

    Pretty! This was an extremely wonderful post. Thanks for supplying this information.

Leave Comment

Your email address will not be published. Required fields are marked *