{"action":"created","issue":{"url":"https://api.github.com/repos/biemond/biemond-oradb/issues/111","repository_url":"https://api.github.com/repos/biemond/biemond-oradb","labels_url":"https://api.github.com/repos/biemond/biemond-oradb/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/biemond/biemond-oradb/issues/111/comments","events_url":"https://api.github.com/repos/biemond/biemond-oradb/issues/111/events","html_url":"https://github.com/biemond/biemond-oradb/issues/111","id":168453363,"number":111,"title":"couldn't execute \"/u01/app/oracle/product/12/OPatch/ocm/bin/emocmrsp\": permission denied","user":{"login":"goutham27","id":14243136,"avatar_url":"https://avatars.githubusercontent.com/u/14243136?v=3","gravatar_id":"","url":"https://api.github.com/users/goutham27","html_url":"https://github.com/goutham27","followers_url":"https://api.github.com/users/goutham27/followers","following_url":"https://api.github.com/users/goutham27/following{/other_user}","gists_url":"https://api.github.com/users/goutham27/gists{/gist_id}","starred_url":"https://api.github.com/users/goutham27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goutham27/subscriptions","organizations_url":"https://api.github.com/users/goutham27/orgs","repos_url":"https://api.github.com/users/goutham27/repos","events_url":"https://api.github.com/users/goutham27/events{/privacy}","received_events_url":"https://api.github.com/users/goutham27/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-30T06:46:37Z","updated_at":"2016-07-31T12:23:17Z","closed_at":null,"body":"Hi,\r\n\r\nI am getting below permission denied error when i try to do opatch upgrade, I was able to fix this by adding a file resource to change file permission of emocmrsp file. Could you pls check and let me know..If i am doing something wrong.\r\n\r\n\r\n\r\n```\r\n==> ve_oracle_centos6: Debug: Exec[extract opatch opatch_upgrade opatch.zip](provider=posix): Executing 'unzip -o /var/tmp/install/opatch.zip -d /u01/app/oracle/product/12'\r\n==> ve_oracle_centos6: Debug: Executing with uid=oracle gid=oinstall: 'unzip -o /var/tmp/install/opatch.zip -d /u01/app/oracle/product/12'\r\n==> ve_oracle_centos6: Notice: /Stage[main]/Ve_oracle::Patch/Oradb::Opatchupgrade[opatch_upgrade]/Exec[extract opatch opatch_upgrade opatch.zip]/returns: executed successfully\r\n==> ve_oracle_centos6: Debug: /Stage[main]/Ve_oracle::Patch/Oradb::Opatchupgrade[opatch_upgrade]/Exec[extract opatch opatch_upgrade opatch.zip]: The container Oradb::Opatchupgrade[opatch_upgrade] will propagate my refresh event\r\n==> ve_oracle_centos6: Debug: Exec[ksh /var/tmp/install/opatch_upgrade_opatch_upgrade_12.1.0.1.9.ksh](provider=posix): Executing 'ksh /var/tmp/install/opatch_upgrade_opatch_upgrade_12.1.0.1.9.ksh'\r\n==> ve_oracle_centos6: Debug: Executing with uid=oracle gid=oinstall: 'ksh /var/tmp/install/opatch_upgrade_opatch_upgrade_12.1.0.1.9.ksh'\r\n==> ve_oracle_centos6: Notice: /Stage[main]/Ve_oracle::Patch/Oradb::Opatchupgrade[opatch_upgrade]/Exec[ksh /var/tmp/install/opatch_upgrade_opatch_upgrade_12.1.0.1.9.ksh]/returns: spawn /u01/app/oracle/product/12/OPatch/ocm/bin/emocmrsp -no_banner\r\n==> ve_oracle_centos6: Notice: /Stage[main]/Ve_oracle::Patch/Oradb::Opatchupgrade[opatch_upgrade]/Exec[ksh /var/tmp/install/opatch_upgrade_opatch_upgrade_12.1.0.1.9.ksh]/returns: couldn't execute \"/u01/app/oracle/product/12/OPatch/ocm/bin/emocmrsp\": permission denied\r\n==> ve_oracle_centos6: Notice: /Stage[main]/Ve_oracle::Patch/Oradb::Opatchupgrade[opatch_upgrade]/Exec[ksh /var/tmp/install/opatch_upgrade_opatch_upgrade_12.1.0.1.9.ksh]/returns:     while executing\r\n==> ve_oracle_centos6: Notice: /Stage[main]/Ve_oracle::Patch/Oradb::Opatchupgrade[opatch_upgrade]/Exec[ksh /var/tmp/install/opatch_upgrade_opatch_upgrade_12.1.0.1.9.ksh]/returns: \"spawn /u01/app/oracle/product/12/OPatch/ocm/bin/emocmrsp -no_banner\"\r\n==> ve_oracle_centos6: Debug: Oradb::Opatchupgrade[opatch_upgrade]: Resource is being skipped, unscheduling all events\r\n==> ve_oracle_centos6: Info: Oradb::Opatchupgrade[opatch_upgrade]: Unscheduling all events on Oradb::Opatchupgrade[opatch_upgrade]\r\n==> ve_oracle_centos6: Notice: /Stage[main]/Ve_oracle::Patch/Exec[download-patch]: Dependency Exec[ksh /var/tmp/install/opatch_upgrade_opatch_upgrade_12.1.0.1.9.ksh] has failures: true\r\n==> ve_oracle_centos6: Debug: /Stage[main]/Ve_oracle::Patch/Exec[download-patch]: Resource is being skipped, unscheduling all events\r\n==> ve_oracle_centos6: Debug: Oradb::Opatch[_db_patch]: Resource is being skipped, unscheduling all events\r\n==> ve_oracle_centos6: Notice: /Stage[main]/Ve_oracle::Patch/Oradb::Opatch[_db_patch]/File[/var/tmp/install/p22191659_121020_Linux-x86-64.zip]: Dependency Exec[ksh /var/tmp/install/opatch_upgrade_opatch_upgrade_12.1.0.1.9.ksh] has failures: true\r\n==> ve_oracle_centos6: Debug: /Stage[main]/Ve_oracle::Patch/Oradb::Opatch[_db_patch]/File[/var/tmp/install/p22191659_121020_Linux-x86-64.zip]: Resource is being skipped, unscheduling all events\r\n==> ve_oracle_centos6: Notice: /Stage[main]/Ve_oracle::Patch/Oradb::Opatch[_db_patch]/Exec[extract opatch p22191659_121020_Linux-x86-64.zip _db_patch]: Dependency Exec[ksh /var/tmp/install/opatch_upgrade_opatch_upgrade_12.1.0.1.9.ksh] has failures: true\r\n==> ve_oracle_centos6: Debug: /Stage[main]/Ve_oracle::Patch/Oradb::Opatch[_db_patch]/Exec[extract opatch p22191659_121020_Linux-x86-64.zip _db_patch]: Resource is being skipped, unscheduling all events\r\n==> ve_oracle_centos6: Error: ksh /var/tmp/install/opatch_upgrade_opatch_upgrade_12.1.0.1.9.ksh returned 1 instead of one of [0]\r\n==> ve_oracle_centos6: Error: /Stage[main]/Ve_oracle::Patch/Oradb::Opatchupgrade[opatch_upgrade]/Exec[ksh /var/tmp/install/opatch_upgrade_opatch_upgrade_12.1.0.1.9.ksh]/returns: change from notrun to 0 failed: ksh /var/tmp/install/opatch_upgrade_opatch_upgrade_12.1.0.1.9.ksh returned 1 instead of one of [0]\r\n```\r\n\r\n**Below is my code**\r\n\r\n\r\n    oradb::opatchupgrade{'opatch_upgrade':\r\n      oracle_home               => hiera('oracle_home_dir'),\r\n      patch_file                => 'opatch.zip',\r\n      opversion                 => '12.1.0.1.9',\r\n      user                      => hiera('oracle_os_user'),\r\n      group                     => 'oinstall',\r\n      download_dir              => hiera('oracle_download_dir'),\r\n      puppet_download_mnt_point => hiera('oracle_source'),\r\n    } \r\n\r\n    file { '/u01/app/oracle/product/12/OPatch/ocm/bin/emocmrsp':\r\n       ensure => present,\r\n       mode   => '0755',\r\n       owner  => 'oracle',\r\n       group  => 'oinstall',\r\n    }  \r\n\r\n\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/biemond/biemond-oradb/issues/comments/236427067","html_url":"https://github.com/biemond/biemond-oradb/issues/111#issuecomment-236427067","issue_url":"https://api.github.com/repos/biemond/biemond-oradb/issues/111","id":236427067,"user":{"login":"biemond","id":1085004,"avatar_url":"https://avatars.githubusercontent.com/u/1085004?v=3","gravatar_id":"","url":"https://api.github.com/users/biemond","html_url":"https://github.com/biemond","followers_url":"https://api.github.com/users/biemond/followers","following_url":"https://api.github.com/users/biemond/following{/other_user}","gists_url":"https://api.github.com/users/biemond/gists{/gist_id}","starred_url":"https://api.github.com/users/biemond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biemond/subscriptions","organizations_url":"https://api.github.com/users/biemond/orgs","repos_url":"https://api.github.com/users/biemond/repos","events_url":"https://api.github.com/users/biemond/events{/privacy}","received_events_url":"https://api.github.com/users/biemond/received_events","type":"User","site_admin":false},"created_at":"2016-07-31T12:23:17Z","updated_at":"2016-07-31T12:23:17Z","body":"Hi,\r\n\r\nI don't know. What are the permission of this file and did you install Oracle home under a different user/group. Or maybe it is the umask\r\n\r\nThanks"}}
{"actor":{"display_login":"biemond"}}