Closed JohnPortella closed 10 years ago
Hi, it looks like unzipping the Oracle RPM file (oracle-xe-11.2.0-1.0.x86_64.rpm.zip
) failed. I am not sure why. Maybe the file is corrupted? You could try re-downloading this file and then going through the steps again. Please let me know if that works.
Yes, you right. My file was corrupted. I tried again, and is working perfectly. Thank you.
Hello, I did all the steps you mentioned until the connection. I can't connect to the DB.
$ vagrant reload --provision ==> default: Attempting graceful shutdown of VM... ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 1521 => 1521 (adapter 1) default: 22 => 2222 (adapter 1) ==> default: Running 'pre-boot' VM customizations... ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: vagrant default: SSH auth method: private key default: Error: Connection timout. Retrying... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... default: The guest additions on this VM do not match the installed version of default: VirtualBox! In most cases this is fine, but in rare cases it can default: prevent things such as shared folders from working properly. If you see default: shared folder errors, please make sure the guest additions within the default: virtual machine match the version of VirtualBox you have installed on default: your host and reload your VM. default: default: Guest Additions Version: 4.2.0 default: VirtualBox Version: 4.1 ==> default: Setting hostname... ==> default: Mounting shared folders... default: /vagrant => /home/jportella/Virtualizacion/vagrant_scripts/vagrant-ubuntu-oracle-xe default: /tmp/vagrant-puppet-1/manifests => /home/jportella/Virtualizacion/vagrant_scripts/vagrant-ubuntu-oracle-xe/manifests default: /tmp/vagrant-puppet-1/modules-0 => /home/jportella/Virtualizacion/vagrant_scripts/vagrant-ubuntu-oracle-xe/modules ==> default: Running provisioner: shell... default: Running: inline script /etc/profile.d/oracle-env.sh: line 3: /u01/app/oracle/product/11.2.0/xe/bin/nls_lang.sh: No such file or directory stdin: is not a tty America/New_York
Current default time zone: 'America/New_York' Local time is now: Wed Mar 12 21:45:38 EDT 2014. Universal Time is now: Thu Mar 13 01:45:38 UTC 2014.
==> default: Running provisioner: puppet... Running Puppet with base.pp... /etc/profile.d/oracle-env.sh: line 3: /u01/app/oracle/product/11.2.0/xe/bin/nls_lang.sh: No such file or directory stdin: is not a tty warning: Could not retrieve fact fqdn warning: Host is missing hostname and/or domain: oracle info: Applying configuration version '1394675141' notice: /Stage[main]/Oracle::Server/Exec[apt-update]/returns: executed successfully notice: /Stage[main]/Oracle::Xe/File[/tmp/oracle-env.sh]/ensure: defined content as '{md5}c874e5a7a4cc6b15ff68055335c136fb' notice: /Stage[main]/Oracle::Xe/File[/tmp/xe.rsp.orig]/ensure: defined content as '{md5}b79c95d12321f3eb55d855082d1d6831' notice: /Stage[main]/Oracle::Server/File[/tmp/60-oracle.conf]/ensure: defined content as '{md5}61b22d59fdc07f9fa6929ab74f5b6e99' info: /Stage[main]/Oracle::Server/File[/tmp/60-oracle.conf]: Scheduling refresh of Exec[procps] notice: /Stage[main]/Oracle::Server/File[/tmp/S01shm_load]/ensure: defined content as '{md5}4bc498d6cd7b4de9e417f4eeb8bd0cff' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/parameter.rb:165:in
fail' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/type/exec.rb:125:in
sync' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction/resource_harness.rb:114:inapply_parameter' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction/resource_harness.rb:62:in
perform_changes' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction/resource_harness.rb:60:ineach' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction/resource_harness.rb:60:in
perform_changes' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction/resource_harness.rb:133:inevaluate' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:49:in
apply' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:84:ineval_resource' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:104:in
evaluate' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/util.rb:493:inthinmark' /opt/vagrant_ruby/lib/ruby/1.8/benchmark.rb:308:in
realtime' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/util.rb:492:inthinmark' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:104:in
evaluate' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:386:intraverse' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:99:in
evaluate' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/resource/catalog.rb:141:inapply' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/configurer.rb:122:in
retrieve_and_apply_catalog' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/util.rb:161:inbenchmark' /opt/vagrant_ruby/lib/ruby/1.8/benchmark.rb:308:in
realtime' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/util.rb:160:inbenchmark' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/configurer.rb:121:in
retrieve_and_apply_catalog' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/configurer.rb:152:inrun' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application/apply.rb:229:in
main' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application/apply.rb:149:inrun_command' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application.rb:309:in
run' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application.rb:416:inhook' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application.rb:309:in
run' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application.rb:407:inexit_on_fail' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application.rb:309:in
run' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/util/command_line.rb:69:inexecute' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/bin/puppet:4 /opt/vagrant_ruby/bin/puppet:19:in
load' /opt/vagrant_ruby/bin/puppet:19 err: /Stage[main]/Oracle::Xe/Exec[unzip xe]/returns: change from notrun to 0 failed: /usr/bin/unzip -o oracle-xe-11.2.0-1.0.x86_64.rpm.zip returned 2 instead of one of [0] at /tmp/vagrant-puppet-1/modules-0/oracle/manifests/init.pp:154 notice: /Stage[main]/Oracle::Xe/Exec[alien xe]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]/Oracle::Xe/Exec[alien xe]: Skipping because of failed dependencies notice: /Stage[main]/Oracle::Xe/Package[oracle-xe]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]/Oracle::Xe/Package[oracle-xe]: Skipping because of failed dependencies notice: /Stage[main]/Oracle::Server/File[/tmp/chkconfig]/ensure: defined content as '{md5}8c59ff9592660f1de08162729d19373e' notice: /Stage[main]/Oracle::Xe/Exec[dos2unix xe.rsp]/returns: executed successfully notice: /Stage[main]/Oracle::Xe/Exec[configure xe]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]/Oracle::Xe/Exec[configure xe]: Skipping because of failed dependencies notice: /Stage[main]/Oracle::Xe/Service[oracle-xe]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]/Oracle::Xe/Service[oracle-xe]: Skipping because of failed dependencies notice: /Stage[main]/Oracle::Xe/Exec[run chkconfig]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]/Oracle::Xe/Exec[run chkconfig]: Skipping because of failed dependencies notice: /Stage[main]/Oracle::Server/Exec[procps]: Triggered 'refresh' from 1 events notice: /Stage[main]//Node[oracle]/User[vagrant]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]//Node[oracle]/User[vagrant]: Skipping because of failed dependencies notice: Finished catalog run in 49.50 seconds The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed!puppet apply --verbose --trace --modulepath '/tmp/vagrant-puppet-1/modules-0:/etc/puppet/modules' --manifestdir /tmp/vagrant-puppet-1/manifests --detailed-exitcodes /tmp/vagrant-puppet-1/manifests/base.pp || [ $? -eq 2 ]
Stdout from the command:
warning: Could not retrieve fact fqdn warning: Host is missing hostname and/or domain: oracle info: Applying configuration version '1394675141' notice: /Stage[main]/Oracle::Server/Exec[apt-update]/returns: executed successfully notice: /Stage[main]/Oracle::Xe/File[/tmp/oracle-env.sh]/ensure: defined content as '{md5}c874e5a7a4cc6b15ff68055335c136fb' notice: /Stage[main]/Oracle::Xe/File[/tmp/xe.rsp.orig]/ensure: defined content as '{md5}b79c95d12321f3eb55d855082d1d6831' notice: /Stage[main]/Oracle::Server/File[/tmp/60-oracle.conf]/ensure: defined content as '{md5}61b22d59fdc07f9fa6929ab74f5b6e99' info: /Stage[main]/Oracle::Server/File[/tmp/60-oracle.conf]: Scheduling refresh of Exec[procps] notice: /Stage[main]/Oracle::Server/File[/tmp/S01shm_load]/ensure: defined content as '{md5}4bc498d6cd7b4de9e417f4eeb8bd0cff' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/parameter.rb:165:in
fail' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/type/exec.rb:125:in
sync' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction/resource_harness.rb:114:inapply_parameter' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction/resource_harness.rb:62:in
perform_changes' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction/resource_harness.rb:60:ineach' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction/resource_harness.rb:60:in
perform_changes' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction/resource_harness.rb:133:inevaluate' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:49:in
apply' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:84:ineval_resource' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:104:in
evaluate' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/util.rb:493:inthinmark' /opt/vagrant_ruby/lib/ruby/1.8/benchmark.rb:308:in
realtime' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/util.rb:492:inthinmark' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:104:in
evaluate' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:386:intraverse' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:99:in
evaluate' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/resource/catalog.rb:141:inapply' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/configurer.rb:122:in
retrieve_and_apply_catalog' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/util.rb:161:inbenchmark' /opt/vagrant_ruby/lib/ruby/1.8/benchmark.rb:308:in
realtime' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/util.rb:160:inbenchmark' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/configurer.rb:121:in
retrieve_and_apply_catalog' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/configurer.rb:152:inrun' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application/apply.rb:229:in
main' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application/apply.rb:149:inrun_command' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application.rb:309:in
run' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application.rb:416:inhook' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application.rb:309:in
run' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application.rb:407:inexit_on_fail' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application.rb:309:in
run' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/util/command_line.rb:69:inexecute' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/bin/puppet:4 /opt/vagrant_ruby/bin/puppet:19:in
load' /opt/vagrant_ruby/bin/puppet:19 err: /Stage[main]/Oracle::Xe/Exec[unzip xe]/returns: change from notrun to 0 failed: /usr/bin/unzip -o oracle-xe-11.2.0-1.0.x86_64.rpm.zip returned 2 instead of one of [0] at /tmp/vagrant-puppet-1/modules-0/oracle/manifests/init.pp:154 notice: /Stage[main]/Oracle::Xe/Exec[alien xe]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]/Oracle::Xe/Exec[alien xe]: Skipping because of failed dependencies notice: /Stage[main]/Oracle::Xe/Package[oracle-xe]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]/Oracle::Xe/Package[oracle-xe]: Skipping because of failed dependencies notice: /Stage[main]/Oracle::Server/File[/tmp/chkconfig]/ensure: defined content as '{md5}8c59ff9592660f1de08162729d19373e' notice: /Stage[main]/Oracle::Xe/Exec[dos2unix xe.rsp]/returns: executed successfully notice: /Stage[main]/Oracle::Xe/Exec[configure xe]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]/Oracle::Xe/Exec[configure xe]: Skipping because of failed dependencies notice: /Stage[main]/Oracle::Xe/Service[oracle-xe]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]/Oracle::Xe/Service[oracle-xe]: Skipping because of failed dependencies notice: /Stage[main]/Oracle::Xe/Exec[run chkconfig]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]/Oracle::Xe/Exec[run chkconfig]: Skipping because of failed dependencies notice: /Stage[main]/Oracle::Server/Exec[procps]: Triggered 'refresh' from 1 events notice: /Stage[main]//Node[oracle]/User[vagrant]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]//Node[oracle]/User[vagrant]: Skipping because of failed dependencies notice: Finished catalog run in 49.50 secondsStderr from the command:
/etc/profile.d/oracle-env.sh: line 3: /u01/app/oracle/product/11.2.0/xe/bin/nls_lang.sh: No such file or directory stdin: is not a tty
$vagrant ssh : Welcome to your Vagrant-built virtual machine. Last login: Wed Mar 12 21:37:39 2014 from 10.0.2.2 -bash: /u01/app/oracle/product/11.2.0/xe/bin/nls_lang.sh: No such file or directory
$ls: Disk1 oracle-xe-11.2.0-1.0.x86_64.rpm.zip postinstall.sh
Error: Error de E/S: Connection reset.
I hope you can help me find the error.