biemond / biemond-em-12c

Enterprise manager 12c cloud 12.1.0.4 vagrant image with Oracle database 12.1.0.1
3 stars 3 forks source link

vagrant up emapp failed. #2

Open hfuhuang opened 6 years ago

hfuhuang commented 6 years ago

Hi, I try to bring the emapp up, it failed:

==> emapp: Notice: /Stage[main]/Oraem_install/Oradb::Installem[em12105]/Exec[install oracle em em12105]/returns: Starting Oracle Universal Installer...
==> emapp: Notice: /Stage[main]/Oraem_install/Oradb::Installem[em12105]/Exec[install oracle em em12105]/returns: 
==> emapp: Notice: /Stage[main]/Oraem_install/Oradb::Installem[em12105]/Exec[install oracle em em12105]/returns: Checking Temp space: must be greater than 400 MB.   Actual 66481 MB    Passed
==> emapp: Notice: /Stage[main]/Oraem_install/Oradb::Installem[em12105]/Exec[install oracle em em12105]/returns: Checking swap space: must be greater than 150 MB.   Actual 1999 MB    Passed
==> emapp: Notice: /Stage[main]/Oraem_install/Oradb::Installem[em12105]/Exec[install oracle em em12105]/returns: Preparing to launch Oracle Universal Installer from /tmp/OraInstall2018-03-07_11-07-10AM. Please wait ...
==> emapp: Notice: /Stage[main]/Oraem_install/Oradb::Installem[em12105]/Exec[install oracle em em12105]/returns: 
==> emapp: Notice: /Stage[main]/Oraem_install/Oradb::Installem[em12105]/Exec[install oracle em em12105]/returns: 
==> emapp: Notice: /Stage[main]/Oraem_install/Oradb::Installem[em12105]/Exec[install oracle em em12105]/returns: 
==> emapp: Notice: /Stage[main]/Oraem_install/Oradb::Installem[em12105]/Exec[install oracle em em12105]/returns: ERROR: 
==> emapp: Notice: /Stage[main]/Oraem_install/Oradb::Installem[em12105]/Exec[install oracle em em12105]/returns: The following prerequisite check failed because the Oracle Database, where the Management Repository will be configured, does not meet the configuration requirements. Fix the issue manually based on the recommendation offered for this prerequisite, and click OK. For more details, check the logs: /oraInventory/logs/emdbprereqs
==> emapp: Notice: /Stage[main]/Oraem_install/Oradb::Installem[em12105]/Exec[install oracle em em12105]/returns: Prereq Name        Recommendation 
==> emapp: Notice: /Stage[main]/Oraem_install/Oradb::Installem[em12105]/Exec[install oracle em em12105]/returns: Check if SYSMAN schema is absent for new install       SYSMAN schema should be absent before installing
==> emapp: Notice: /Stage[main]/Oraem_install/Oradb::Installem[em12105]/Exec[install oracle em em12105]/returns: Check the existence of public synonyms     Remove the public synonyms
==> emapp: Error: /bin/su - oracle -c 'unset DISPLAY;/install/em12105_linux64/runInstaller -silent -waitforcompletion -ignoreSysPrereqs -ignorePrereq -responseFile /install/em_install_12.1.0.5.rsp' returned 1 instead of one of [6,0]
==> emapp: Error: /Stage[main]/Oraem_install/Oradb::Installem[em12105]/Exec[install oracle em em12105]/returns: change from notrun to 6 0 failed: /bin/su - oracle -c 'unset DISPLAY;/install/em12105_linux64/runInstaller -silent -waitforcompletion -ignoreSysPrereqs -ignorePrereq -responseFile /install/em_install_12.1.0.5.rsp' returned 1 instead of one of [6,0]
==> emapp: Notice: /Stage[main]/Oraem_install/Oradb::Installem[em12105]/Exec[run root.sh script em12105]: Dependency Exec[install oracle em em12105] has failures: true
==> emapp: Warning: /Stage[main]/Oraem_install/Oradb::Installem[em12105]/Exec[run root.sh script em12105]: Skipping because of failed dependencies
==> emapp: Notice: /Stage[main]/Oraem_install/Oradb::Installem[em12105]/File[/oracle/product/12.1/em]: Dependency Exec[install oracle em em12105] has failures: true
==> emapp: Warning: /Stage[main]/Oraem_install/Oradb::Installem[em12105]/File[/oracle/product/12.1/em]: Skipping because of failed dependencies
==> emapp: Notice: /Stage[main]/Oraem_install/Oradb::Installem[em12105]/Exec[remove oracle em extract folder em12105]: Dependency Exec[install oracle em em12105] has failures: true
==> emapp: Warning: /Stage[main]/Oraem_install/Oradb::Installem[em12105]/Exec[remove oracle em extract folder em12105]: Skipping because of failed dependencies
==> emapp: Debug: Oradb::Installem[em12105]: The container Class[Oraem_install] will propagate my refresh event
==> emapp: Debug: Class[Oraem_install]: The container Stage[main] will propagate my refresh event
==> emapp: Debug: Finishing transaction 70317561418560
==> emapp: Debug: Storing state
==> emapp: Info: Creating state file /var/lib/puppet/state/state.yaml
==> emapp: Debug: Stored state in 0.01 seconds
==> emapp: Notice: Finished catalog run in 221.02 seconds
==> emapp: Debug: Using settings: adding file resource 'rrddir': 'File[/var/lib/puppet/rrd]{:backup=>false, :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :owner=>"puppet", :links=>:follow, :mode=>"750", :path=>"/var/lib/puppet/rrd"}'
==> emapp: Debug: /File[/var/lib/puppet/rrd]/ensure: created
==> emapp: Debug: Finishing transaction 70317559930860
==> emapp: Debug: Received report to process from emapp.example.com
==> emapp: Debug: Evicting cache entry for environment 'production'
==> emapp: Debug: Caching environment 'production' (ttl = 0 sec)
==> emapp: Debug: Processing report from emapp.example.com with processor Puppet::Reports::Store
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

### Manual check for emapp 
[root@emapp bin]# pwd
/install/em12105_linux64/install/requisites/bin
[root@emapp bin]# ./emprereqkit -executionType install -prerequisiteXMLRootDir ../../requisites/list/ -connectString "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=emdb.example.com)(PORT=19706)))(CONNECT_DATA=(SID=emrepos)))" -dbUser SYS -dbPassword Welcome01 -dbRole sysdba -reposUser SYSMAN -runPrerequisites -runCorrectiveActions

Checking Temp space: must be greater than 400 MB.   Actual 66028 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 1999 MB    Passed
Preparing to Bootstrap  Please wait ...
The user is root. Oracle Universal Installer cannot continue installation if the user is root.
: No such file or directory

BootStrap To /tmp/emprereqkit_030718113558_BS Completed
Oracle Enterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.

Running EMPrereqKit ............

Result of prerequisite-check , corrective-actions run, for scenario install :                    

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                    Prerequisite Name                   | Status |   Corrective Action Status   | Post Corrective Action Status
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  Check for invalid objects in the database selected for|  Fail  |             NA               |             NA             |
  Check if SYSMAN schema is absent for new install      |  Fail  |             NA               |             NA             |
  Check the existence of public synonyms                |  Fail  |             NA               |             NA             |
  Check the absence of mgmt tablespaces                 |  Fail  |             NA               |             NA             |
  Check the absence of EM schemas                       |  Fail  |             NA               |             NA             |
  Check the memory_target instance parameter value.     |  Fail  |             NA               |             NA             |
  Check the open_cursors instance parameter value.      |  Fail  |             NA               |             NA             |
  Check the redo log size.                              |  Fail  |             NA               |             NA             |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                        NE = Not Executed                        NA = Not Applicable
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------

For more details, check the log file at /install/em12105_linux64/install/requisites/bin/prerequisiteResults/log/LATEST/

Can some one help me to solve this problem? Thanks!

biemond commented 6 years ago

Hi,

can you check this one https://github.com/biemond/biemond-em-13.2-puppet4_3 12c is old and I think it uses the old puppet oradb module

hfuhuang commented 6 years ago

@biemond the swap file will be a problem in a vagrant environment: ==> emdb: Notice: /Stage[main]/Oradb_os/Swap_file::Files[swap_file]/Exec[Create swap file /data/swap.1]/returns: /bin/dd: failed to open '/data/swap.1': No such file or directory ==> emdb: Error: /bin/dd if=/dev/zero of=/data/swap.1 bs=1M count=8192 returned 1 instead of one of [0] ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/errors.rb:106:in fail' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/exec.rb:160:insync' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:189:in sync' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:114:insync_if_needed' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:87:in block in perform_changes' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:86:ineach' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:86:in perform_changes' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:inevaluate' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:212:in apply' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:228:ineval_resource' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:151:in call' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:151:inblock (2 levels) in evaluate' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:386:in block in thinmark' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/2.1.0/benchmark.rb:294:inrealtime' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:385:in thinmark' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:151:inblock in evaluate' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in traverse' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:142:inevaluate' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:219:in block in apply' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:155:inwith_destination' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:118:in as_logging_destination' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:218:inapply' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:171:in block in apply_catalog' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:223:inblock in benchmark' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/2.1.0/benchmark.rb:294:in realtime' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:222:inbenchmark' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:170:in apply_catalog' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:315:inrun_internal' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:186:in block in run' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:inoverride' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:240:in override' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:185:inrun' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:350:in apply_catalog' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:274:inblock in main' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in override' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:240:inoverride' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:225:in main' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:170:inrun_command' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:344:in block in run' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:540:inexit_on_fail' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:344:in run' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:128:inrun' ==> emdb: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in execute' ==> emdb: /opt/puppetlabs/puppet/bin/puppet:5:in

' ==> emdb: Error: /Stage[main]/Oradb_os/Swap_file::Files[swap_file]/Exec[Create swap file /data/swap.1]/returns: change from notrun to 0 failed: /bin/dd if=/dev/zero of=/data/swap.1 bs=1M count=8192 returned 1 instead of one of [0]

Do you know how to solve this problem? Create a new partition in NTFS/EXT4 format?

hfuhuang commented 6 years ago

I have changed the swapfile from /data/swap.1 to /var/swap.1, same error. I think it is related the default format: btrfs

biemond commented 6 years ago

just update the vagrantfile to this box or just uncomment this swap part.

xxx.vm.box = "centos-7-1708-x86_64"
xxx.vm.box_url = "https://dl.dropboxusercontent.com/s/7dr5ewj4mvohynu/centos-7-1708-x86_64.box"
hfuhuang commented 6 years ago

@biemond If the VM is behind a proxy, then the http_proxy and https_proxy must be unset like the DISPLAY. By the way, is 5G RAM enough for EM 13.2? Have you tested it? By unset proxy, I am able to run the installation but hang some where like this one: http://www.orafaq.com/forum/t/198921/

biemond commented 6 years ago

I update this box with latest oradb and centos vm and off course EM can take hours but it works for me

maybe you can assign more memory to emapp.