Async operation always fails
Hello everybody.
I've a a problem when I want to apply the security changes to a community and all his sub-objects.
The "Async operation for ..." always fails.
That's what the log says :
Nov 7, 2006 10:23:52 AM- Starting to run all 1 operation(s) for job 'Async operation for Communication-Evénements'. Will continue on errors.
Nov 7, 2006 10:23:52 AM- *** Job Operation #1 of 1 with ClassID 20 and ObjectID 359 cannot be run, probably because the operation has been deleted.
Nov 7, 2006 10:23:52 AM- Done with job operations.
What is the problem ? I didn't delete the operation.
Thanks for your help.
Kind regards.
ghxin wrote:
Hi. I had the same problem for the last few days. I just figured out that it seemed that something went wrong (didn't complete) in the 'Install Packages' step. Rerun this step immediately after the error and the install could continue normally.
Update:
I just realized that doing the above will NOT for sure solve the problem, but it's something to try. Anyway, you should see a lot of:
Installing a ...
Installing b ...
Parsing hook [...]
Parsing hook [...]
after the packages you select finish downloading. When the error in this post happens, I'm guessing you don't see these.
Correct, I read somewhere else that the packages not installing correctly (ie at all) is having the arch kernel already installed in /boot, although not the best solution, during the install I reformated my /boot partition and it fixed my error of none of the packages installing correctly. However if you do get the "failed to import network settings" and some of the packages have already been installed, try redownloading the packages again, and try a different mirror.
Similar Messages
-
Always failed during operating system checking while installing NetWeaver.
I have installed NetWeaver Composition Envrionment Sneak Preview - Java EE only but always failed during operating system checking. Does this version not support Window XP Professional SP2? This is mostly used window system.
I checked the instruction and comfirmed that it does support Window XP Professional (SP2):
System Requirements
<b>Windows XP Professional (Service Pack 2)</b> or Windows 2003 Server (Service Pack 1)
<b>This version runs on Windows XP (SP2)</b> with password accounts and Windows Server 2003 (32bit)
NTFS file system
Micrsoft Internet Explorer 6.0 or higher, or Firefox 1.0 or higher
Min. 1 GB, recommended 2 GB RAM
7 GB free hard disc space
Download file 1.8 GB
1.5 GHz PC or higher
Monitor 1024x768 pixels or more, 256 colors
Internet access (for CE online documentation)
If no DHCP server is available on your network (which dynamically determines the IP address) or your computer is not connected to any network, you need to install the virtual interface adapter MS Loopback Adapter.
To use SAP Interactive Forms by Adobe, you must install the necessary credential file and activate it using a unique password. Download the latest credential and passwort from SDN -
Hi,
I have flexunit project which I am trying to run on linux server.
1. I have Tests project.
2. I am trying to compile it on linux server and creating Tests.swf file and then executing Tests.swf using ant on 64 bit linux server using standalone flash debug player.
3. Tests project contains 4 tests and first tests always fail with following error,
test:
[flexunit] Validating task attributes ...
[flexunit] Generating default values ...
[flexunit] Using default working dir [/mnt/build/VinitFlexUnitBranch/workspace/src/Tests]
[flexunit] Using the following settings for the test run:
[flexunit] FLEX_HOME: [/var/lib/flex4.1sdk]
[flexunit] haltonfailure: [true]
[flexunit] headless: [false]
[flexunit] display: [99]
[flexunit] localTrusted: [true]
[flexunit] player: [flash]
[flexunit] port: [1024]
[flexunit] swf: [/mnt/build/VinitFlexUnitBranch/workspace/bin/Tests.swf]
[flexunit] timeout: [60000ms]
[flexunit] toDir: [/mnt/build/VinitFlexUnitBranch/workspace/src/Tests/report]
[flexunit] Setting up server process ...
[flexunit] Entry [/mnt/build/VinitFlexUnitBranch/workspace/bin] already available in local trust file at [/home/deploy/.macromedia/Flash_Player/#Security/FlashPlayerTrust/flexUnit.cfg].
[flexunit] Executing 'gflashplayer' with arguments:
[flexunit] '/mnt/build/VinitFlexUnitBranch/workspace/bin/Tests.swf'
[flexunit]
[flexunit] The ' characters around the executable and arguments are
[flexunit] not part of the command.
[flexunit]
[flexunit] Starting server ...
[flexunit] Opening server socket on port [1024].
[flexunit] Waiting for client connection ...
[flexunit] Client connected.
[flexunit] Setting inbound buffer size to [262144] bytes.
[flexunit] Receiving data ...
[flexunit] Sending acknowledgement to player to start sending test data ...
[flexunit]
[flexunit] FlexUnit test pause in suite Tests.Classes.DummyASyncTest had errors.
[flexunit]
[flexunit] Stopping server ...
[flexunit] End of test data reached, sending acknowledgement to player ...
[flexunit] Closing client connection ...
[flexunit] Closing server on port [1024] ...
[flexunit] <testcase classname="Tests.Classes::DummyASyncTest" name="pause" time="8" status="error"><error message="Error #1009: Cannot access a property or method of a null object reference." type="Tests.Classes::DummyASyncTest.pause" ><![CDATA[TypeError: Error #1009: Cannot access a property or method of a null object reference.
[flexunit] at org.fluint.uiImpersonation.flex::FlexEnvironmentBuilder/buildVisualTestEnvironment()
[flexunit] at org.fluint.uiImpersonation::VisualTestEnvironmentBuilder/buildVisualTestEnvironment()
[flexunit] at org.flexunit.internals.runners.watcher::FrameWatcher/getStage()
[flexunit] at org.flexunit.internals.runners.watcher::FrameWatcher()
[flexunit] at org.flexunit.internals.runners.statements::StackAndFrameManagement()
[flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/withStackManagement()
[flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/withDecoration()
[flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/methodBlock()
[flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/runChild()
[flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
[flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
[flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
[flexunit] at org.flexunit.runners::ParentRunner/run()
[flexunit] at org.flexunit.runners::Suite/runChild()
[flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
[flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
[flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
[flexunit] at org.flexunit.runners::ParentRunner/run()
[flexunit] at org.flexunit.runners::Suite/runChild()
[flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
[flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
[flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
[flexunit] at org.flexunit.runners::ParentRunner/run()
[flexunit] at org.flexunit.runner::FlexUnitCore/beginRunnerExecution()
[flexunit] at org.flexunit.runner::FlexUnitCore/verifyRunnerCanBegin()
[flexunit] at org.flexunit.token::AsyncCoreStartupToken/sendReady()
[flexunit] at org.flexunit.runner.notification.async::AsyncListenerWatcher/sendReadyNotification()
[flexunit] at org.flexunit.runner.notification.async::AsyncListenerWatcher/handleListenerReady()
[flexunit] at flash.events::EventDispatcher/dispatchEventFunction()
[flexunit] at flash.events::EventDispatcher/dispatchEvent()
[flexunit] at org.flexunit.listeners::CIListener/setStatusReady()
[flexunit] at org.flexunit.listeners::CIListener/dataHandler()
[flexunit] at flash.events::EventDispatcher/dispatchEventFunction()
[flexunit] at flash.events::EventDispatcher/dispatchEvent()
[flexunit] at flash.net::XMLSocket/scanAndSendEvent()]]></error></testcase>
[flexunit] <endOfTestRun/>
[flexunit] Analyzing reports ...
[flexunit]
[flexunit] Suite: Tests.Classes.DummyASyncTest
[flexunit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec
[flexunit]
[flexunit] Results :
[flexunit]
[flexunit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec
[flexunit]
BUILD FAILED
/mnt/build/VinitFlexUnitBranch/workspace/src/Tests/build.xml:26: FlexUnit tests failed during the test run.
at org.flexunit.ant.tasks.TestRun.analyzeReports(Unknown Source)
at org.flexunit.ant.tasks.TestRun.run(Unknown Source)
at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
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 org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Total time: 1 second
Exited with status 1
[deploy]$
4. Everytime I run this, any test which is run first will fail and all other tests will pass.
My Tests.as file is as below:
* Tests.as
package
import Tests.XTestSuite;
import flash.display.Sprite;
import mx.core.FlexSprite;
import org.flexunit.listeners.CIListener;
import org.flexunit.listeners.UIListener;
import org.flexunit.runner.FlexUnitCore;
public class Tests extends Sprite
public var flexSprite:FlexSprite;
public function Tests()
onCreationComplete();
public function onCreationComplete() : void {
var core : FlexUnitCore = new FlexUnitCore();
core.addListener(new CIListener());
core.runClasses(Tests.XTestSuite);
public function currentRunTestSuite():Array
var testsToRun:Array = new Array();
testsToRun.push(Tests.XTestSuite);
return testsToRun;
XTestSuite try to run 4 flexunit test classes.
one of that flexunit test script class is as below:
package Tests.Classes
import flexunit.framework.Assert;
import org.flexunit.Assert;
import org.flexunit.asserts.assertEquals;
public class DummyASyncTest
[Test]
public function pause() : void
assertEquals(true, true);
trace("I M in dummy");
All other tests are dummy tests which just asserts(true, true).
I am not sure if I doing something wrong or forgot to take care of something.Hi,
I have flexunit project which I am trying to run on linux server.
1. I have Tests project.
2. I am trying to compile it on linux server and creating Tests.swf file and then executing Tests.swf using ant on 64 bit linux server using standalone flash debug player.
3. Tests project contains 4 tests and first tests always fail with following error,
test:
[flexunit] Validating task attributes ...
[flexunit] Generating default values ...
[flexunit] Using default working dir [/mnt/build/VinitFlexUnitBranch/workspace/src/Tests]
[flexunit] Using the following settings for the test run:
[flexunit] FLEX_HOME: [/var/lib/flex4.1sdk]
[flexunit] haltonfailure: [true]
[flexunit] headless: [false]
[flexunit] display: [99]
[flexunit] localTrusted: [true]
[flexunit] player: [flash]
[flexunit] port: [1024]
[flexunit] swf: [/mnt/build/VinitFlexUnitBranch/workspace/bin/Tests.swf]
[flexunit] timeout: [60000ms]
[flexunit] toDir: [/mnt/build/VinitFlexUnitBranch/workspace/src/Tests/report]
[flexunit] Setting up server process ...
[flexunit] Entry [/mnt/build/VinitFlexUnitBranch/workspace/bin] already available in local trust file at [/home/deploy/.macromedia/Flash_Player/#Security/FlashPlayerTrust/flexUnit.cfg].
[flexunit] Executing 'gflashplayer' with arguments:
[flexunit] '/mnt/build/VinitFlexUnitBranch/workspace/bin/Tests.swf'
[flexunit]
[flexunit] The ' characters around the executable and arguments are
[flexunit] not part of the command.
[flexunit]
[flexunit] Starting server ...
[flexunit] Opening server socket on port [1024].
[flexunit] Waiting for client connection ...
[flexunit] Client connected.
[flexunit] Setting inbound buffer size to [262144] bytes.
[flexunit] Receiving data ...
[flexunit] Sending acknowledgement to player to start sending test data ...
[flexunit]
[flexunit] FlexUnit test pause in suite Tests.Classes.DummyASyncTest had errors.
[flexunit]
[flexunit] Stopping server ...
[flexunit] End of test data reached, sending acknowledgement to player ...
[flexunit] Closing client connection ...
[flexunit] Closing server on port [1024] ...
[flexunit] <testcase classname="Tests.Classes::DummyASyncTest" name="pause" time="8" status="error"><error message="Error #1009: Cannot access a property or method of a null object reference." type="Tests.Classes::DummyASyncTest.pause" ><![CDATA[TypeError: Error #1009: Cannot access a property or method of a null object reference.
[flexunit] at org.fluint.uiImpersonation.flex::FlexEnvironmentBuilder/buildVisualTestEnvironment()
[flexunit] at org.fluint.uiImpersonation::VisualTestEnvironmentBuilder/buildVisualTestEnvironment()
[flexunit] at org.flexunit.internals.runners.watcher::FrameWatcher/getStage()
[flexunit] at org.flexunit.internals.runners.watcher::FrameWatcher()
[flexunit] at org.flexunit.internals.runners.statements::StackAndFrameManagement()
[flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/withStackManagement()
[flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/withDecoration()
[flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/methodBlock()
[flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/runChild()
[flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
[flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
[flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
[flexunit] at org.flexunit.runners::ParentRunner/run()
[flexunit] at org.flexunit.runners::Suite/runChild()
[flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
[flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
[flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
[flexunit] at org.flexunit.runners::ParentRunner/run()
[flexunit] at org.flexunit.runners::Suite/runChild()
[flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
[flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
[flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
[flexunit] at org.flexunit.runners::ParentRunner/run()
[flexunit] at org.flexunit.runner::FlexUnitCore/beginRunnerExecution()
[flexunit] at org.flexunit.runner::FlexUnitCore/verifyRunnerCanBegin()
[flexunit] at org.flexunit.token::AsyncCoreStartupToken/sendReady()
[flexunit] at org.flexunit.runner.notification.async::AsyncListenerWatcher/sendReadyNotification()
[flexunit] at org.flexunit.runner.notification.async::AsyncListenerWatcher/handleListenerReady()
[flexunit] at flash.events::EventDispatcher/dispatchEventFunction()
[flexunit] at flash.events::EventDispatcher/dispatchEvent()
[flexunit] at org.flexunit.listeners::CIListener/setStatusReady()
[flexunit] at org.flexunit.listeners::CIListener/dataHandler()
[flexunit] at flash.events::EventDispatcher/dispatchEventFunction()
[flexunit] at flash.events::EventDispatcher/dispatchEvent()
[flexunit] at flash.net::XMLSocket/scanAndSendEvent()]]></error></testcase>
[flexunit] <endOfTestRun/>
[flexunit] Analyzing reports ...
[flexunit]
[flexunit] Suite: Tests.Classes.DummyASyncTest
[flexunit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec
[flexunit]
[flexunit] Results :
[flexunit]
[flexunit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec
[flexunit]
BUILD FAILED
/mnt/build/VinitFlexUnitBranch/workspace/src/Tests/build.xml:26: FlexUnit tests failed during the test run.
at org.flexunit.ant.tasks.TestRun.analyzeReports(Unknown Source)
at org.flexunit.ant.tasks.TestRun.run(Unknown Source)
at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
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 org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Total time: 1 second
Exited with status 1
[deploy]$
4. Everytime I run this, any test which is run first will fail and all other tests will pass.
My Tests.as file is as below:
* Tests.as
package
import Tests.XTestSuite;
import flash.display.Sprite;
import mx.core.FlexSprite;
import org.flexunit.listeners.CIListener;
import org.flexunit.listeners.UIListener;
import org.flexunit.runner.FlexUnitCore;
public class Tests extends Sprite
public var flexSprite:FlexSprite;
public function Tests()
onCreationComplete();
public function onCreationComplete() : void {
var core : FlexUnitCore = new FlexUnitCore();
core.addListener(new CIListener());
core.runClasses(Tests.XTestSuite);
public function currentRunTestSuite():Array
var testsToRun:Array = new Array();
testsToRun.push(Tests.XTestSuite);
return testsToRun;
XTestSuite try to run 4 flexunit test classes.
one of that flexunit test script class is as below:
package Tests.Classes
import flexunit.framework.Assert;
import org.flexunit.Assert;
import org.flexunit.asserts.assertEquals;
public class DummyASyncTest
[Test]
public function pause() : void
assertEquals(true, true);
trace("I M in dummy");
All other tests are dummy tests which just asserts(true, true).
I am not sure if I doing something wrong or forgot to take care of something. -
DG端不定期报waiting for async I/Os failed错误
大家好,我这边数据库主库是RAC,物理DG端也是RAC,都采用的ASM,存储,DG端最近总是时不时的报错:
Errors in file /u01/oracle/diag/rdbms/racstandby/rac1/trace/rac1_arcr_11381.trc:
ORA-27061: waiting for async I/Os failed
Linux-x86_64 Error: 5: Input/output error
Additional information: -1
Additional information: 1048576
WARNING: Read Failed. group:2 disk:0 AU:247 offset:0 size:1048576
WARNING: failed to read mirror side 1 of virtual extent 19 logical extent 0 of file 277 in group [2.1197980967] from disk DATA_0000 allocation unit 247 reason error; if possible, will try another mirror side
Errors in file /u01/oracle/diag/rdbms/racstandby/rac1/trace/rac1_arcr_11381.trc:
ORA-00333: redo log read error block 38912 count 2048
ORA-00312: online log 7 thread 1: '+DATA/racstandby/onlinelog/group_7.277.797513635'
ORA-15081: failed to submit an I/O operation to a disk
ORA-15081: failed to submit an I/O operation to a disk
有时就报一两次,有时一下报一天,但看DG进程还都在,数据也都实时追着,不知道有什么影响,甚至有一次MRP0自己DOWN掉不知道和这个有没有关系,实际去ASM中查看文件可以访问,检测坏块也没有,删掉重建redo仍有此问题,删掉整个库从新做主从仍然有此问题,希望大家帮看看,感激
TRACE文件内容:
Trace file /u01/oracle/diag/rdbms/racstandby/rac1/trace/rac1_arcr_11381.trc
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
ORACLE_HOME = /u01/oracle/11.2.0.3/product
System name: Linux
Node name: racstandby1
Release: 2.6.18-274.el5
Version: #1 SMP Fri Jul 22 04:43:29 EDT 2011
Machine: x86_64
Instance name: rac1
Redo thread mounted by this instance: 1
Oracle process number: 62
Unix process pid: 11381, image: oracle@racstandby1 (ARCR)
*** 2012-10-24 22:00:56.861
*** SESSION ID:(1714.1) 2012-10-24 22:00:56.861
*** CLIENT ID:() 2012-10-24 22:00:56.861
*** SERVICE NAME:(SYS$BACKGROUND) 2012-10-24 22:00:56.861
*** MODULE NAME:() 2012-10-24 22:00:56.861
*** ACTION NAME:() 2012-10-24 22:00:56.861
Initial buffer sizes: read 1024K, overflow 832K, change 805K
ORA-27061: waiting for async I/Os failed
*** 2012-10-25 10:04:19.253
Linux-x86_64 Error: 5: Input/output error
Additional information: -1
Additional information: 1048576
WARNING: Read Failed. group:2 disk:0 AU:247 offset:0 size:1048576
path:/dev/oracleasm/disks/VOL_DATA1
incarnation:0xefd74ddb asynchronous result:'I/O error'
subsys:System iop:0x2b3b7a33e780 bufp:0x2b3b7b42d000 osderr:0x0 osderr1:0x0
WARNING: failed to read mirror side 1 of virtual extent 19 logical extent 0 of file 277 in group [2.1197980967] from disk DATA_0000 allocation unit 247 reason error; if possible, will try another mirror side
DDE: Problem Key 'ORA 312' was flood controlled (0x1) (no incident)
ORA-00312: online log 7 thread 1: '+DATA/racstandby/onlinelog/group_7.277.797513635'
ORA-15081: failed to submit an I/O operation to a disk
ORA-15081: failed to submit an I/O operation to a disk
ORA-00333: redo log read error block 38912 count 2048
ORA-00312: online log 7 thread 1: '+DATA/racstandby/onlinelog/group_7.277.797513635'
ORA-15081: failed to submit an I/O operation to a disk
ORA-15081: failed to submit an I/O operation to a disk
ORA-27072: File I/O error
Linux-x86_64 Error: 5: Input/output error
Additional information: 4
Additional information: 505856
Additional information: -1
WARNING: Read Failed. group:2 disk:0 AU:247 offset:0 size:1048576
path:/dev/oracleasm/disks/VOL_DATA1
incarnation:0xefd74ddb synchronous result:'I/O error'
subsys:System iop:0x2b3b7a33e780 bufp:0x2b3b7b42d000 osderr:0x0 osderr1:0x0
WARNING: failed to read mirror side 1 of virtual extent 19 logical extent 0 of file 277 in group [2.1197980967] from disk DATA_0000 allocation unit 247 reason error; if possible, will try another mirror side
DDE: Problem Key 'ORA 312' was flood controlled (0x1) (no incident)
ORA-00312: online log 7 thread 1: '+DATA/racstandby/onlinelog/group_7.277.797513635'
ORA-15081: failed to submit an I/O operation to a disk
ORA-00333: redo log read error block 38912 count 2048
ORA-00312: online log 7 thread 1: '+DATA/racstandby/onlinelog/group_7.277.797513635'
ORA-15081: failed to submit an I/O operation to a disk
Incomplete read from log member '+DATA/racstandby/onlinelog/group_7.277.797513635'. Trying next member.
ORA-27072: File I/O error
Linux-x86_64 Error: 5: Input/output error
Additional information: 4
Additional information: 251904
Additional information: -1
WARNING: Read Failed. group:3 disk:0 AU:123 offset:0 size:1048576
path:/dev/oracleasm/disks/VOL_FRA1
incarnation:0xefd74ddd synchronous result:'I/O error'
subsys:System iop:0x2b3b7a33e780 bufp:0x2b3b7b42d000 osderr:0x0 osderr1:0x0
WARNING: failed to read mirror side 1 of virtual extent 19 logical extent 0 of file 325 in group [3.1197980968] from disk FRA_0000 allocation unit 123 reason error; if possible, will try another mirror side
DDE: Problem Key 'ORA 312' was flood controlled (0x1) (no incident)
ORA-00312: online log 7 thread 1: '+FRA/racstandby/onlinelog/group_7.325.797513637'
ORA-15081: failed to submit an I/O operation to a disk
ORA-00333: redo log read error block 38912 count 2048
ORA-00312: online log 7 thread 1: '+FRA/racstandby/onlinelog/group_7.325.797513637'
ORA-15081: failed to submit an I/O operation to a disk
Incomplete read from log member '+FRA/racstandby/onlinelog/group_7.325.797513637'. Trying next member.
*** 2012-10-25 10:04:19.372 4320 krsh.c
ARCr: All Archive destinations made inactive due to error 333
*** 2012-10-25 10:04:19.398 2932 krsi.c
krsi_dst_fail: dest:1 err:333 force:0 blast:1
ORA-27061: waiting for async I/Os failed
Linux-x86_64 Error: 5: Input/output error
Additional information: -1
Additional information: 1048576
WARNING: Read Failed. group:2 disk:0 AU:248 offset:0 size:1048576
path:/dev/oracleasm/disks/VOL_DATA1
incarnation:0xefd74ddb asynchronous result:'I/O error'
subsys:System iop:0x2b3b7a33e500 bufp:0x2b3b7b53d000 osderr:0x0 osderr1:0x0
WARNING: failed to read mirror side 1 of virtual extent 20 logical extent 0 of file 277 in group [2.1197980967] from disk DATA_0000 allocation unit 248 reason error; if possible, will try another mirror side
DDE: Problem Key 'ORA 312' was flood controlled (0x1) (no incident)
ORA-00312: online log 7 thread 1: '+FRA/racstandby/onlinelog/group_7.325.797513637'
DDE: Problem Key 'ORA 312' was flood controlled (0x1) (no incident)
ORA-00312: online log 7 thread 1: '+DATA/racstandby/onlinelog/group_7.277.797513635'
ORA-00312: online log 7 thread 1: '+FRA/racstandby/onlinelog/group_7.325.797513637'
*** 2012-10-25 10:04:19.546 4481 kcrr.cORA-15081: failed to submit an I/O operation to a disk
ORA-15081: failed to submit an I/O operation to a disk
ORA-27072: File I/O error
Linux-x86_64 Error: 5: Input/output error
Additional information: 4
Additional information: 505856
15081, 00000, "failed to submit an I/O operation to a disk"
// *Cause: A submission of an I/O operation to a disk has failed.
// *Action: Make sure that all the disks are operational.
ORA-15081一般与 存储磁盘有关, 请把/var/log/messages、dmesg日志发给我
在11gR2中ORA-15081 可能导致instance crash
有问题请去OTN中文论坛开个帖子 我会回复 地址:http://www.otncn.org
如果需要发送附件,可以直接发邮件到 [email protected] -
Naming sync and async operation
Hi there,
Does somebody know what is the rule for naming the synchronous version of an asynchronous operation (or vice verse)? Also, is the implementation pattern for the Create/Update/Delete/Sync EBO based EBS operations always supposed to be asynchronous request-response (while synchronous for Query/QueryList)?
I know that Process() can be designed as both synchronous and asynchronous, but can the aforementioned have their synchronous version as well (asynchronous for Query/QueryList)?
Regards,
/Miko839396 wrote:
Dear Friends,
In 11g databgurad ,
I planned to used 2 physical standy once in the same LAN and another in the DR site
I need to have SYNC between primary and Standby 1 which is in same LAN
I need to have ASYNC between primary an standy 2 which is in DR site
Is it possible , if so how do i achieve this?
Because i believe SYNC and ASYNC will be decided by oracle internally based on the Protection mode we choose so in that case
we can't have mix up (SYNC and ASYNC) for standby databases?
Regards,
DBI think John already mentioned how to do, let me derive more .
SQL> alter system set log_archive_dest_2='SERVICE=same_lan SYNC NOAFFIRM VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=<db_unique_name>'
SQL> alter system set log_archive_dest_3='SERVICE=DR ASYNC NOAFFIRM VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=<db_unique_name>'
>
839396
Newbie
Handle: 839396
Status Level: Newbie
Registered: Feb 23, 2011
Total Posts: 14
Total Questions: 8 (8 unresolved)
>
why all the questions are unanswered? Please close the threads and keep the forum clean. https://forums.oracle.com/forums/ann.jspa?annID=718 -
Software update always fails due to "unknown error"
When I attempt to install software updates on my Macbook Air the process always fails with an error message that says "unable to install due to unexpected error" (or something like that). Any ideas how to fix this problem? I've found some references to this problem in the discussions but the proposed fix didn't work for me.
BruceNov 12 10:37:29 Bruces-MacBook-Air Software Update[986]: JS: 10.7.4
Nov 12 10:37:30 Bruces-MacBook-Air diskmanagementd[1006]: DM ->T-[DMToolBootPreference recoveryPartitionInfoForVolume:what:dict:]: inHostDiskUDS=0x10ad36c20=disk0s2=Macintosh HD inWhatStr=RecoveryInfoBaseSystemVersion
Nov 12 10:37:30 Bruces-MacBook-Air diskmanagementd[1006]: DM ..T-[DMToolBootPreference recoveryPartitionInfoForVolume:what:dict:]: did get booterRecoveryUDS=0x10ad36ae0=disk0s3=Recovery HD
Nov 12 10:37:30 Bruces-MacBook-Air diskmanagementd[1006]: DM ..T-[DMToolBootPreference recoveryPartitionInfoForVolume:what:dict:]: did mount nobrowse; MP=/Volumes/Recovery HD OMS=0x7fdf6a5067f0
Nov 12 10:37:30 Bruces-MacBook-Air diskmanagementd[1006]: DM ..T-[DMToolBootPreference recoveryPartitionInfoForVolume:what:dict:]: getting dict from file=/Volumes/Recovery HD/com.apple.recovery.boot/SystemVersion.plist
Nov 12 10:37:30 Bruces-MacBook-Air diskmanagementd[1006]: DM ..T-[DMToolBootPreference recoveryPartitionInfoForVolume:what:dict:]: got dict (or NULL=will return err): oooInfoDict=0x7fdf6c006f00
Nov 12 10:37:30 Bruces-MacBook-Air diskmanagementd[1006]: DM ..T-[DMToolBootPreference recoveryPartitionInfoForVolume:what:dict:]: did if-needed-best-effort unmount
Nov 12 10:37:30 Bruces-MacBook-Air diskmanagementd[1006]: DM <-T-[DMToolBootPreference recoveryPartitionInfoForVolume:what:dict:]: retErr=0 outInfoDict={
ProductBuildVersion = 11E2702;
ProductCopyright = "1983-2012 Apple Inc.";
ProductName = "Mac OS X";
ProductUserVisibleVersion = "10.7.4";
ProductVersion = "10.7.4";
Nov 12 10:37:30 Bruces-MacBook-Air Software Update[986]: JS: 10.7.4
Nov 12 10:37:31: --- last message repeated 1 time ---
Nov 12 10:37:31 Bruces-MacBook-Air Software Update[986]: JS: Firmware is up to date.
Nov 12 10:37:31 Bruces-MacBook-Air Software Update[986]: JS: model = MacBookAir5,2
Nov 12 10:37:31 Bruces-MacBook-Air Software Update[986]: JS: 10.7.4
Nov 12 10:37:37: --- last message repeated 4 times ---
Nov 12 10:37:37 Bruces-MacBook-Air Software Update[996]: Acquired Lock: 501, 986, 0
Nov 12 10:37:37 Bruces-MacBook-Air Software Update[996]: Releasing Lock: 501, 986, 0
Nov 12 10:37:41 Bruces-MacBook-Air Software Update[986]: Calculated need 5167.634 MB; 91316.322 MB free; 91316.322 MB available with MTM reclaim
Nov 12 10:37:50 Bruces-MacBook-Air Software Update[996]: Acquired Lock: 501, 986, 0
---- download, install and reboot started here -----
Nov 12 11:12:15 Bruces-MacBook-Air Software Update[986]: Calculated need 3686.898 MB; 89835.094 MB free; 89835.094 MB available with MTM reclaim
Nov 12 11:12:15 Bruces-MacBook-Air Software Update[996]: Releasing Lock: 501, 986, 0
Nov 12 11:12:18 Bruces-MacBook-Air Software Update[996]: Acquired Lock: 0, 1060, 0
Nov 12 11:12:20 Bruces-MacBook-Air installd[1061]: PackageKit: ----- Begin install -----
Nov 12 11:12:20 Bruces-MacBook-Air installd[1061]: PackageKit: request=PKInstallRequest <5 packages, destination=/>
Nov 12 11:12:20 Bruces-MacBook-Air installd[1061]: PackageKit: packages=(
"PKLeopardPackage <file://localhost/Library/Updates/041-6215/FlashbackMalwareRemover.pkg>",
"PKLeopardPackage <file://localhost/Library/Updates/041-6259/MacBookAirMid2012SoftwareUpd1.0.pkg> ",
"PKLeopardPackage <file://localhost/Library/Updates/041-6725/MacBookAirandMacBookProUpd1.0.pkg>",
"PKLeopardPackage <file://localhost/Library/Updates/041-7916/MacOSXUpd10.7.5.pkg>",
"PKLeopardPackage <file://localhost/Library/Updates/041-7916/RemoteDesktop.pkg>"
Nov 12 11:12:20 Bruces-MacBook-Air installd[1061]: PackageKit: Skipping component "com.apple.ColorSyncUtility" (4.7.4-4.7.4-235011000000000-*) because version 4.7.5-4.7.5-235012000000000-* will also be installed.
--- many more lines of "Skipping component" deleted ---
Nov 12 11:12:21 Bruces-MacBook-Air installd[1061]: PackageKit: Skipping component "com.apple.iokit.IOUSBFamily" (5.0.8-5.0.8-508004001000000-*) because version 5.1.0-5.1.0-510004006000000-* will also be installed.
Nov 12 11:12:26 Bruces-MacBook-Air installd[1061]: PackageKit: Will do receipt-based obsoleting for package identifier com.apple.pkg.RemoteDesktop (prefix path=/)
Nov 12 11:12:26 Bruces-MacBook-Air installd[1061]: PackageKit: Extracting file://localhost/Library/Updates/041-6215/FlashbackMalwareRemover.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root, uid=0)
Nov 12 11:12:27 Bruces-MacBook-Air installd[1061]: PackageKit: Extracting file://localhost/Library/Updates/041-6259/MacBookAirMid2012SoftwareUpd1.0.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root, uid=0)
Nov 12 11:12:30 Bruces-MacBook-Air installd[1061]: PackageKit: Extracting file://localhost/Library/Updates/041-6725/MacBookAirandMacBookProUpd1.0.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root, uid=0)
Nov 12 11:12:36 Bruces-MacBook-Air installd[1061]: PackageKit: Extracting file://localhost/Library/Updates/041-7916/MacOSXUpd10.7.5.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root, uid=0)
Nov 12 11:13:12 Bruces-MacBook-Air installd[1061]: PackageKit: Extracting file://localhost/Library/Updates/041-7916/RemoteDesktop.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root, uid=0)
Nov 12 11:13:12 Bruces-MacBook-Air installd[1061]: PackageKit: update_dyld_shared_cache -overlay /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root
Nov 12 11:13:13 Bruces-MacBook-Air installd[1061]: update_dyld_shared_cache[1068] updating i386 cache because current cache file contains a different set of dylibs
Nov 12 11:13:18 Bruces-MacBook-Air installd[1061]: update_dyld_shared_cache[1068] updating x86_64 cache because current cache file contains a different set of dylibs
Nov 12 11:13:23 Bruces-MacBook-Air installd[1061]: PackageKit: Using sandbox version of /usr/libexec/xpchelper
Nov 12 11:13:23 Bruces-MacBook-Air installd[1061]: PackageKit: xpchelper --rebuild-cache --overlay /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root
Nov 12 11:13:23 Bruces-MacBook-Air installd[1061]: Deferred path /System/Library/PreferencePanes/.Displays/V1/Displays.prefPane/Contents/Resourc es/Dutch.lproj/DisplaysPref.nib/objects.nib is not in sandbox and will be skipped.
--- many, many more lines of "Deferred path ... is not in sandbot and will be skipped ---
Nov 12 11:13:24 Bruces-MacBook-Air installd[1061]: Deferred path /System/Library/PreferencePanes/UniversalAccessPref.prefPane/Contents/version.p list is not in sandbox and will be skipped.
Nov 12 11:13:24 Bruces-MacBook-Air installd[1061]: open on /System/DeferredInstall/Scripts/Shove: File exists
Nov 12 11:13:26 Bruces-MacBook-Air installd[1061]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=114 "An error occurred while setting up files for deferred installation." UserInfo=0x7fd263b62cc0 {NSLocalizedDescription=An error occurred while setting up files for deferred installation., NSUnderlyingError=0x7fd263c16a20 "“Shove” couldn’t be copied to “Scripts” because an item with the same name already exists."} {
NSLocalizedDescription = "An error occurred while setting up files for deferred installation.";
NSUnderlyingError = "Error Domain=NSCocoaErrorDomain Code=516 \"\U201cShove\U201d couldn\U2019t be copied to \U201cScripts\U201d because an item with the same name already exists.\" UserInfo=0x7fd263ba9890 {NSUserStringVariant=(\n Copy\n), NSDestinationFilePath=/System/DeferredInstall/Scripts/Shove, NSFilePath=/private/tmp/PKInstallSandbox.RfMmtE/Scripts/com.apple.pkg.update.os .10.7.5.11G63b.delta.6mH88d/Shove, NSUnderlyingError=0x7fd263c4da50 \"The operation couldn\U2019t be completed. File exists\"}";
Nov 12 11:13:26 Bruces-MacBook-Air Software Update[996]: Releasing Lock: 0, 1060, 0
Nov 12 11:13:26 Bruces-MacBook-Air Software Update[1060]: Error: An error occurred while setting up files for deferred installation. (PKInstallErrorDomain code 114) -
I've done just about everything I know how to do... but NetRestore via System Image Utility always fails. Here's what I get in the log. I thought it was a permissions issue, but I fixed perms and did the "get info/apply to enclosed items" trick and I still get the same error. Please help as I'm about to throw this thing against a wall lol...
Log:
Starting image creation.
Workflow Started (2014-04-23 10:26:39 -0600)
OS X 10.8.5 (12F45), System Image Utility 10.8.3 (624)
Starting action: Define Image Source (1.4)
Finished running action: Define Image Source
Starting action: Create Image (1.7.2)
Starting image creation process...
Create NetRestore Image
Initiating NetRestore from installed volume.
2014-04-23 10:28:12.085 copy-helper[1163:707] copy error (canceling): /Volumes/Macintosh HD 1/Applications/Citrix Receiver.app/Contents/CodeResources: Operation not supported
could not access /Volumes/Macintosh HD 1/Applications/Citrix Receiver.app/Contents/CodeResources - Operation not supported
hdiutil: create failed - Operation not supported
Execution of 'makeNetRestoreFromItem.sh' failed. Cleaning up.
rm: /Users/ceastwood/Desktop/Crocs 10.8.5.nbi/System.dmg: No such file or directory
Execution of 'asrFromVolume.sh' failed. Cleaning up.
Script is done.
Bridge exited with status 256
Failed to create image from restore source.
An unknown error has occurred.
An unknown error has occurred.
Image creation process finished...
Stopping image creation.
Image creation failed.It looks like the application 'Citrix Receiver' is damaged in some way.
One way to get around this would be to go into System Image Utility Preferences and make sure "Block copy the source volume" is checked under "Apple Software Restore Options". This will do a device level copy of the disk, instead of a file level copy. -
ORA-27070: async read/write failed
Hi,
We have a 2 node RAC on AIX 5.3 TL10 with CRS & ASM on 11.1.0.7
The DB is running on 10.2.0.4
The servers use VIO-server connection to SAN & LAN
This morning the flashbackrecovery diskgroup got unmounted because of a
ORA-27070: async read/write failed
WARNING: IO Failed. subsys:System dg:2, diskname:/dev/asmreco3 disk:0x2.0x93e51c34 au:895
iop:0x110b7bbc0 bufp:0x700000006190000 offset(bytes):938913792 iosz:4096 operation:2(Write) synchronous:0
result: 4 osderr:0x0 osderr1:0x0 pid:11739286
NOTE: cache initiating offline of disk 2 group 2
WARNING: initiating offline of disk 2.2481265716 (FB01_0002) with mask 0x7e
NOTE: initiating PST update: grp = 2, dsk = 2, mode = 0x15
kfdp_updateDsk(): 7
Thu Dec 31 08:58:13 2009
kfdp_updateDskBg(): 7
ERROR: too many offline disks in PST (grp 2)
NOTE: halting all I/Os to diskgroup FB01
Thu Dec 31 08:58:13 2009
SQL> alter diskgroup FB01 dismount force
NOTE: active pin found: 0x70000000ddfe530
NOTE: active pin found: 0x70000000ddfe110
NOTE: active pin found: 0x70000000ddfe428
NOTE: active pin found: 0x70000000ddfe320
NOTE: active pin found: 0x70000000ddfe740
NOTE: active pin found: 0x70000000ddfe218
NOTE: active pin found: 0x70000000ddfe638
NOTE: active pin found: 0x70000000ddfe530
NOTE: active pin found: 0x70000000ddfe110
NOTE: active pin found: 0x70000000ddfe428
NOTE: active pin found: 0x70000000ddfe320
NOTE: active pin found: 0x70000000ddfe740
NOTE: active pin found: 0x70000000ddfe218
NOTE: active pin found: 0x70000000ddfe638
NOTE: cache dismounting group 2/0xCD55ECD5 (FB01)
Thu Dec 31 08:58:14 2009
kjbdomdet send to node 1
detach from dom 2, sending detach message to node 1
Thu Dec 31 08:58:14 2009
Dirty detach reconfiguration started (old inc 24, new inc 24)
List of nodes:
0 1
Global Resource Directory partially frozen for dirty detach
* dirty detach - domain 2 invalid = TRUE
2617 GCS resources traversed, 1 cancelled
Dirty Detach Reconfiguration complete
Thu Dec 31 08:58:15 2009
WARNING: dirty detached from domain 2
NOTE: cache dismounted group 2/0xCD55ECD5 (FB01)
kfdp_dismount(): 8
kfdp_dismountBg(): 8
NOTE: De-assigning number (2,0) from disk (/dev/asmreco1)
NOTE: De-assigning number (2,1) from disk (/dev/asmreco2)
NOTE: De-assigning number (2,2) from disk (/dev/asmreco3)
SUCCESS: diskgroup FB01 was dismounted
There are however no errors on the OS level
Any hints are welcomeAll has been checked, and rechecked.
We now have a very strange situation:
We testen failover by manually turning of one LPAR at a time.
After this reboot, the Async I/O error seem to have gone.
That is, they haven't appeared now for two days
Why they occurred and why they don't occur anymore is not found/explained
There I'll close this thread. -
WSUS 3.0 SP2 installation is always failed.
Hi All
I follow the steps of
uninstall WSUS directly and then install the WSUS again, Unfortunately it always failed with this error message:
"Windows Server Update Services 3.0 SP2 could not install Windows Internal Database. For more information, see the Setup log "C:\Users\ADMINI~1\AppData\Local\Temp\2\WSUSSetup.log".
Error Log is:
2014-05-12 19:29:49 Success MWUSSetup Validating pre-requisites...
2014-05-12 19:29:49 Error MWUSSetup Failed to determine if an higher version of WSUS is installed. Assuming it is not... (Error 0x80070002: The system cannot find the file specified.)
2014-05-12 19:29:49 Error MWUSSetup WSUS is outdated. But this will not block setup (Error 0x00000000: The operation completed successfully.)
2014-05-12 19:29:54 Success MWUSSetup Initializing installation details
2014-05-12 19:29:54 Success MWUSSetup Skipping Asp.Net install since not running on win2k3...
2014-05-12 19:29:54 Success MWUSSetup Installing wYukon using ocsetup
2014-05-12 19:29:54 Success MWUSSetup Installing Windows Internal database using ocsetup with command line as "ocsetup "WSSEE" /quiet /norestart"
2014-05-12 19:29:56 Error MWUSSetup The process ocsetup "WSSEE" /quiet /norestart returned error: 0x643 (Error 0x80070643: Fatal error during installation.)
2014-05-12 19:29:56 Error MWUSSetup ExecCmd failed (Error 0x80070643: Fatal error during installation.)
2014-05-12 19:29:56 Error MWUSSetup Install Windows Internal database: Failed to execute "ocsetup "WSSEE" /quiet /norestart" (Error 0x80070643: Fatal error
during installation.)
2014-05-12 19:29:56 Error MWUSSetup CInstallDriver::PerformSetup: Installation of wYukon failed (Error 0x80070643: Fatal error during installation.)
2014-05-12 19:29:56 Error MWUSSetup CSetupDriver::LaunchSetup: Setup failed (Error 0x80070643: Fatal error during installation.)
2014-05-12 19:29:57 Error MWUSSetup DoInstall: Wsus setup failed (Error 0x80070643: Fatal error during installation.)
MANY THANKS
包山包海的工作Hi,
Have you tried this sticky thread,
how to uninstall WSUS?
This article discussed how to uninstall WSUS completely.
And someone fixed this error via KB971187
http://support.microsoft.com/kb/971187
Hope this helps. -
Find All Occurrences always fails within loop
Dear forumers,
There's this strange problem that requires a fix.
Finding all occurences of '#' works fine here:-
REPORT zz_test.
DATA: lv_text TYPE string,
ls_result TYPE match_result,
et_release type table of yytc_release,
lt_result TYPE match_result_tab.
lv_text = '"RFC-1234#Create ""Payroll"" under NL directory"'.
FIND ALL OCCURRENCES OF REGEX '#'
IN lv_text
RESULTS lt_result IGNORING CASE IN CHARACTER MODE.
IF sy-subrc = 0. " SY-SUBRC is always 0
READ TABLE lt_result INTO ls_result INDEX 1.
WRITE :'Offset: ' .
WRITE: ls_result-offset .
WRITE: lv_text+00(ls_result-offset).
ENDIF.
But it always fails here, within a loop at an internal table:-
SELECT * .... INTO TABLE it_jira ...
LOOP AT it_jira ASSIGNING <jira>.
<release>-summary = <jira>-summary.
IF <release>-type CS 'Subtask'.
" <release>-summary is of data type CHAR255
PERFORM get_subtask USING <release>-summary.
ENDIF.
ENDLOOP.
FORM get_subtask USING pv_summary TYPE yytc_release-summary.
DATA:
lv_string TYPE char255,
lv_final TYPE char255,
lv_summary TYPE string,
lv_strlen TYPE i,
lt_result TYPE match_result_tab.
lv_string = pv_summary. " LV_STRING = '"RFC-1234#Create ""Payroll"" under NL directory"''
CONDENSE lv_string.
lv_strlen = STRLEN( lv_string ).
lv_strlen = lv_strlen - 1.
IF lv_string+0(1) = '"' AND lv_string+lv_strlen(1) = '"'.
lv_strlen = lv_strlen - 1.
WRITE lv_string+1(lv_strlen) TO lv_final+1(254).
ENDIF.
lv_summary = lv_final.
" FIND ALL OCCURRENCES OF '#'
" IN lv_summary
" RESULTS lt_result IGNORING CASE. * SY-SUBRC is always 4 here too
FIND ALL OCCURRENCES OF REGEX '#'
IN lv_summary
RESULTS lt_result IGNORING CASE IN CHARACTER MODE.
IF sy-subrc = 0. " SY-SUBRC is always 4 here - why?! :(
ENDIF.
CLEAR: lv_string,
lt_result.
ENDFORM. " GET_SUBTASK
Only when the string LV_SUMMARY is edited from within the debugger (add space to the string prefix, etc), the SY-SUBRC will be 0 and there'll be data found in LT_RESULT.
How can I resolve this issue? Please do help. Thanks.I think the subtle difference is that in your first example the character is actually '#' whereas in the second example it is actually another (unprintable)value such-as line-feed and only APPEARS to be '#'.
You must find out what the value in question is(will it always be the same value?) and then replace that instead of '#'. -
im trying to install new version of itunes in my macbook but always failed.i can download it but failed to install and always says to contact with software manufacturer for assistance...please heblp me i couldn’t connect my iphone to iktunes..please coz in my mac their is old version of i tunes.....
Welcome to the Apple Support Communities
See if your computer is supported > http://support.apple.com/kb/sp575 Buy Snow Leopard > http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard Then, make a backup, insert the DVD and upgrade. Finally, go to > Software Update and update to the latest version.
If your computer is compatible, you can use Mountain Lion. Open App Store and purchase Mountain Lion. Check if your programs are supported > http://www.roaringapps.com -
System Image Utility always fails, why?
Hi everyone,
on my clean and fresh install of 10.7.4 Server the System Image Utility always fails to create an image. I want to create a NetInstall image and have put the OS X Lion Installer in /Applications. I can select it in SIU and choose to create a NetInstall image. It asks for the admin pw and always presents an error at the very end: Image creation failed. An unknown error has occured.
If I select to create a NetBoot image instead it fails directly after clicking on the Create button with this slightly different message: Image creation failed. An error has occured. At least it’s no unknown error…
Any ideas what might be causing this? I have succesfully created NetInstall images with 10.6 Server and 10.8 Server, but 10.7 Server somehow won’t play nice.
Thanks
BjörnHi Brian,
I first deleted the Installer and redownloaded it from the App Store, just to make sure there was no problem with it. Even though I now have the 10.7.4 Installer (had 10.7.0 before) nothing has changed. I then went on to set the log level as suggested. I now get different errors based on the chosen log level.
Log level set to debug:
Image creation failed.
*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil
Log level set to verbose:
Image creation failed.
An unknown error has occurred.
I did not see anything helpful in the logs unfortunately. The only noticeable thing mentioned was: Failed to create image from installer media.
Any additional ideas? I will attach both logs here, just in case.
VERBOSE LOG:
Starting image creation.
Workflow Started (2012-09-08 14:08:00 +0200)
Mac OS X Server 10.7.4 (11E53), System Image Utility 10.7.3 (543)
Starting action: Define Image Source (1.3)
Finished running action: Define Image Source
Starting action: Create Image (1.6.2)
Starting image creation process...
Create NetInstall Image
Initiating NetInstall from Installer media.
Creating working path at /Users/vm/Desktop/NetInstall of Install Mac OS X Lion
Creating disk image (Size: 4062 MB)
Finalizing disk image.
created: /Users/vm/Desktop/NetInstall of Install Mac OS X Lion/NetInstall.dmg
Attaching disk image
Copying /Volumes/Mac OS X Install ESD
Preparing the kernel and boot loader for the boot image
/Users/vm/Desktop/NetInstall of Install Mac OS X Lion/i386
/Users/vm/Desktop/NetInstall of Install Mac OS X Lion/i386/x86_64
Copying /Volumes/Mac OS X Install ESD/boot.efi
Copying /Volumes/Mac OS X Install ESD/System/Library/CoreServices/PlatformSupport.plist
Performing post install cleanup
Detaching disk image
"disk4" unmounted.
"disk4" ejected.
Correcting permissions. 501:20 /Users/vm/Desktop/NetInstall of Install Mac OS X Lion
Script is done.
Failed to create image from installer media.
An unknown error has occurred.
NetInstall creation failed.
Image creation process finished...
Stopping image creation.
Image creation failed.
DEBUG LOG:
Starting image creation.
Workflow Started (2012-09-08 13:59:22 +0200)
Mac OS X Server 10.7.4 (11E53), System Image Utility 10.7.3 (543)
Starting action: Define Image Source (1.3)
Finished running action: Define Image Source
Starting action: Create Image (1.6.2)
Starting image creation process...
Create NetInstall Image
Initiating NetInstall from Installer media.
progressPrefix="_progress"
++ progressPrefix=_progress
scriptsDebugKey="DEBUG"
++ scriptsDebugKey=DEBUG
imageIsUDIFKey="1"
++ imageIsUDIFKey=1
mountPoint=""
++ mountPoint=
ownershipInfoKey="501:20"
++ ownershipInfoKey=501:20
destVolFSType="HFS+"
++ destVolFSType=HFS+
installSource="/Volumes/Mac OS X Install ESD"
++ installSource='/Volumes/Mac OS X Install ESD'
dmgTarget="NetInstall"
++ dmgTarget=NetInstall
destPath="/Users/vm/Desktop/NetInstall of Install Mac OS X Lion"
++ destPath='/Users/vm/Desktop/NetInstall of Install Mac OS X Lion'
dmgVolName="NetInstall"
++ dmgVolName=NetInstall
. "${1}/createCommon.sh"
+ . /tmp/niutemp.Yv8Z6Mqx/createCommon.sh
# createCommon.sh
# Common functionality for the Image creation process.
# sourced in by the various SIU scripts
# Copyright © 2007-2011 Apple Inc. All rights reserved.
# Using dscl, create a user account
AddLocalUser()
# $1 volume whose local node database to modify
# $2 long name
# $3 short name
# $4 isAdminUser key
# $5 password data
# $6 password hint
# $7 user picture path
# $8 Language string
local databasePath="/Local/Default/Users/${3}"
local targetVol="${1}"
# Find a free UID between 501 and 599
for ((i=501; i<600; i++)); do
output=`/usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -search /Local/Default/Users UniqueID $i`
# If there is already an account dscl returns it, so we're looking for an empty return value.
if [ "$output" == "" ]; then
break
fi
done
# Create the user record
/usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -create $databasePath
if [ $? != 0 ]; then
echo "Failed to create '${databasePath}'."
return 1
fi
# Add long name
/usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath RealName "${2}"
if [ $? != 0 ]; then
echo "Failed to set the RealName."
return 1
fi
# Add PrimaryGroupID
if [ "${4}" == 1 ]; then
/usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath PrimaryGroupID 80
else
/usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath PrimaryGroupID 20
fi
if [ $? != 0 ]; then
echo "Failed to set the PrimaryGroupID."
return 1
fi
# Add UniqueID
/usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath UniqueID ${i}
if [ $? != 0 ]; then
echo "Failed to set the UniqueID."
return 1
fi
# Add Home Directory entry
/usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath NFSHomeDirectory /Users/${3}
if [ $? != 0 ]; then
echo "Failed to set the NFSHomeDirectory."
fi
if [ "${6}" != "" ]; then
/usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath AuthenticationHint "${6}"
if [ $? != 0 ]; then
echo "Failed to set the AuthenticationHint."
return 1
fi
fi
/usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath picture "${7}"
if [ $? != 0 ]; then
echo "Failed to set the picture."
return 1
fi
/usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -passwd $databasePath "${5}"
if [ $? != 0 ]; then
echo "Failed to set the passwd."
return 1
fi
# Add shell
/usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath UserShell "/bin/bash"
if [ $? != 0 ]; then
echo "Failed to set the UserShell."
return 1
fi
# Create Home directory
if [ -e "/System/Library/User Template/${8}.lproj/" ]; then
/usr/bin/ditto "/System/Library/User Template/${8}.lproj/" "${targetVol}/Users/${3}"
else
/usr/bin/ditto "/System/Library/User Template/English.lproj/" "${targetVol}/Users/${3}"
fi
if [ $? != 0 ]; then
echo "Failed to copy the User Template."
return 1
fi
/usr/sbin/chown -R $i:$i "${targetVol}/Users/${3}"
if [ $? != 0 ]; then
echo "Failed to set ownership on the User folder."
return 1
fi
# Copies a list of files (full paths contained in the file at $1) from source to the path specified in $2
CopyEntriesFromFileToPath()
local theFile="$1"
local theDest="$2"
local opt=""
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
opt="-v"
fi
while read FILE
do
if [ -e "${FILE}" ]; then
local leafName=`basename "${FILE}"`
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Copying ${FILE}."
fi
/usr/bin/ditto $opt "${FILE}" "${theDest}/${leafName}" || return 1
fi
done < "${theFile}"
return 0
# Copies a list of packages (full path, destination pairs contained in the file at $1) from source to .../System/Installation/Packages/
CopyPackagesWithDestinationsFromFile()
local theFile="$1"
local opt=""
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
opt="-v"
fi
while read FILE
do
if [ -e "${FILE}" ]; then
local leafName=`basename "${FILE}"`
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Copying ${FILE}."
fi
read SUB_PATH
/usr/bin/ditto $opt "${FILE}" "${mountPoint}/Packages/${SUB_PATH}${leafName}" || return 1
fi
done < "${theFile}"
return 0
# Create an installer package in ${1} wrapping the supplied script ${2}
CreateInstallPackageForScript()
local tempDir="$1"
local scriptPath="$2"
local scriptName=`basename "${scriptPath}"`
local entryDir=`pwd`
local opt=""
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Create installer for script ${scriptName}"
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
opt="-v"
fi
fi
# shouldn't exist on entry...
if [ -e "${tempDir}/emptyDir" ]; then
/bin/rm -rf "${tempDir}/emptyDir"
fi
# make some directories to work in
/bin/mkdir $opt -p "${tempDir}/${scriptName}.pkg/Contents/Resources" || return 1
/bin/mkdir $opt "${tempDir}/emptyDir" || return 1
# Create Archive.pax.gz
cd "${tempDir}/emptyDir"
/bin/pax -w -x cpio -f "${tempDir}/${scriptName}.pkg/Contents/Archive.pax" .
/usr/bin/gzip "${tempDir}/${scriptName}.pkg/Contents/Archive.pax"
cd "${entryDir}"
# Create the Archive.bom file
/usr/bin/mkbom "${tempDir}/emptyDir/" "${tempDir}/${scriptName}.pkg/Contents/Archive.bom" || return 1
# Create the Info.plist
/bin/cat > "${tempDir}/${scriptName}.pkg/Contents/Info.plist" << END
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleIdentifier</key>
<string>com.apple.server.SystemImageUtility.${scriptName}</string>
<key>CFBundleShortVersionString</key>
<string>1</string>
<key>IFMajorVersion</key>
<integer>1</integer>
<key>IFMinorVersion</key>
<integer>0</integer>
<key>IFPkgFlagDefaultLocation</key>
<string>/tmp</string>
<key>IFPkgFlagInstallFat</key>
<false/>
<key>IFPkgFlagIsRequired</key>
<false/>
<key>IFPkgFormatVersion</key>
<real>0.10000000149011612</real>
</dict>
</plist>
END
echo "pkmkrpkg1" > "${tempDir}/${scriptName}.pkg/Contents/PkgInfo"
echo "major: 1\nminor: 0" > "${tempDir}/${scriptName}.pkg/Contents/Resources/package_version"
# Copy the script
/bin/cp "$scriptPath" "${tempDir}/${scriptName}.pkg/Contents/Resources/postflight"
# clean up
/bin/rm -r "${tempDir}/emptyDir"
return 0
# Validate or create the requested directory
CreateOrValidatePath()
local targetDir="$1"
if [ ! -d "${targetDir}" ]; then
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Creating working path at ${targetDir}"
fi
/bin/mkdir -p "${targetDir}" || return 1
fi
# If any exist, apply any user accounts
CreateUserAccounts()
# $1 volume whose local node database to modify
local count="${#userFullName[*]}"
local targetVol="${1}"
if [ $count -gt 0 ]; then
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Adding $count user account(s) to the image"
fi
for ((index=0; index<$count; index++)); do
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Adding user ${userFullName[$index]}"
fi
#lay down user here
AddLocalUser "${targetVol}" "${userFullName[$index]}" "${userUnixName[$index]}" "${userIsAdmin[$index]}" "${userPassword[$index]}" "${userPassHint[$index]}" "${userImagePath[$index]}" "${userLanguage[$index]}"
if [ $? != 0 ]; then
echo "Failed to create the User '${userUnixName[$index]}'."
return 1
fi
done
# "touch"
/usr/bin/touch "${targetVol}/private/var/db/.AppleSetupDone"
/usr/bin/touch "${targetVol}/Library/Receipts/.SetupRegComplete"
fi
# retry the hdiutil detach until we either time out or it succeeds
retry_hdiutil_detach()
local mount_point="${1}"
local tries=0
local forceAt=0
local limit=24
local opt=""
forceAt=$(($limit - 1))
while [ $tries -lt $limit ]; do
tries=$(( tries + 1 ))
/bin/sleep 5
echo "Attempting to detach the disk image again..."
/usr/bin/hdiutil detach "${mount_point}" $opt
if [ $? -ne 0 ]; then
# Dump a list of any still open files on the mountPoint
if [ "${scriptsDebugKey}" == "DEBUG" ]; then
/usr/sbin/lsof +fg "${mount_point}"
fi
if [ $tries -eq $forceAt ]; then
echo "Failed to detach disk image at '${mount_point}' normally, adding -force."
opt="-force"
fi
if [ $tries -eq $limit ]; then
echo "Failed to detach disk image at '${mount_point}'."
exit 1
fi
else
tries=$limit
fi
done
# Create the dyld shared cache files
DetachAndRemoveMount()
local theMount="${1}"
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Detaching disk image"
# Dump a list of any still open files on the mountPoint
if [ "${scriptsDebugKey}" == "DEBUG" ]; then
/usr/sbin/lsof +fg "${theMount}"
fi
fi
# Finally detach the image and dispose the mountPoint directory
/usr/bin/hdiutil detach "${theMount}" || retry_hdiutil_detach "${theMount}" || return 1
/bin/rmdir "${theMount}" || return 1
return 0
# If the pieces exist, enable remote access for the shell image
EnableRemoteAccess()
local srcVol="${1}"
local opt=""
if [ -e "${srcVol}/usr/lib/pam/pam_serialnumber.so.2" ]; then
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Enabling shell image remote access support"
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
opt="-v"
fi
fi
# install some things (again which aren't part of BaseSystem) needed for remote ASR installs
/usr/bin/ditto $opt "${srcVol}/usr/lib/pam/pam_serialnumber.so.2" "${mountPoint}/usr/lib/pam/pam_serialnumber.so.2" || return 1
if [ -e "${srcVol}/usr/sbin/installer" ]; then
/usr/bin/ditto $opt "${srcVol}/usr/sbin/installer" "${mountPoint}/usr/sbin/installer" || return 1
fi
# copy the sshd config and add our keys to the end of it
if [ -e "${srcVol}/etc/sshd_config" ]; then
/bin/cat "${srcVol}/etc/sshd_config" - > "${mountPoint}/etc/sshd_config" << END
HostKey /private/var/tmp/ssh_host_key
HostKey /private/var/tmp/ssh_host_rsa_key
HostKey /private/var/tmp/ssh_host_dsa_key
END
fi
fi
return 0
# If it exists, install the sharing names and/or directory binding support to the install image
HandleNetBootClientHelper()
local tempDir="${1}"
local targetVol="${2}"
local opt=""
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
opt="-v"
fi
if [ -e "${tempDir}/bindingNames.plist" ]; then
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Installing Directory Service binding information"
fi
/usr/bin/ditto $opt "${tempDir}/bindingNames.plist" "${targetVol}/etc/bindingNames.plist" || return 1
/usr/sbin/chown root:wheel "${targetVol}/etc/bindingNames.plist"
/bin/chmod 644 "${targetVol}/etc/bindingNames.plist"
fi
if [ -e "${tempDir}/sharingNames.plist" ]; then
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Installing Sharing Names support"
fi
/usr/bin/ditto $opt "${tempDir}/sharingNames.plist" "${targetVol}/etc/sharingNames.plist" || return 1
/usr/sbin/chown root:wheel "${targetVol}/etc/sharingNames.plist"
/bin/chmod 644 "${targetVol}/etc/sharingNames.plist"
fi
if [ -e "${tempDir}/NetBootClientHelper" ]; then
/usr/bin/ditto $opt "${tempDir}/NetBootClientHelper" "${targetVol}/usr/sbin/NetBootClientHelper" || return 1
/usr/sbin/chown root:wheel "${targetVol}/usr/sbin/NetBootClientHelper"
/bin/chmod 555 "${targetVol}/usr/sbin/NetBootClientHelper"
/usr/bin/ditto $opt "${tempDir}/com.apple.NetBootClientHelper.plist" "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist" || return 1
/usr/sbin/chown root:wheel "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist"
/bin/chmod 644 "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist"
# finally, make sure it isn't disabled...
/usr/libexec/PlistBuddy -c "Delete :com.apple.NetBootClientHelper" "${targetVol}/var/db/launchd.db/com.apple.launchd/overrides.plist" > /dev/null 2>&1
fi
return 0
# If any exist, install configuration profiles to the install image
InstallConfigurationProfiles()
local tempDir="${1}"
local targetVol="${2}"
local profilesDir="${targetVol}/var/db/ConfigurationProfiles"
local opt=""
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
opt="-v"
fi
if [ -e "${tempDir}/configProfiles.txt" ]; then
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Installing Configuration Profiles"
fi
/bin/mkdir -p "${profilesDir}/Setup" || return 1
# Make sure the perms are correct
/usr/sbin/chown root:wheel "${profilesDir}"
/bin/chmod 755 "${profilesDir}"
/usr/sbin/chown root:wheel "${profilesDir}/Setup"
/bin/chmod 755 "${profilesDir}/Setup"
/usr/bin/touch "${profilesDir}/.profilesAreInstalled"
CopyEntriesFromFileToPath "${tempDir}/configProfiles.txt" "${profilesDir}/Setup" || return 1
# Enable MCX debugging
if [ 1 == 1 ]; then
if [ -e "${targetVol}/Library/Preferences/com.apple.MCXDebug.plist" ]; then
/usr/libexec/PlistBuddy -c "Delete :debugOutput" "${targetVol}/Library/Preferences/com.apple.MCXDebug.plist" > /dev/null 2>&1
/usr/libexec/PlistBuddy -c "Delete :collateLogs" "${targetVol}/Library/Preferences/com.apple.MCXDebug.plist" > /dev/null 2>&1
fi
/usr/libexec/PlistBuddy -c "Add :debugOutput string -2" "${targetVol}/Library/Preferences/com.apple.MCXDebug.plist" > /dev/null 2>&1
/usr/libexec/PlistBuddy -c "Add :collateLogs string 1" "${targetVol}/Library/Preferences/com.apple.MCXDebug.plist" > /dev/null 2>&1
fi
fi
# Converts a list of scripts (full paths contained in the file at $1) into packages in $3
InstallScriptsFromFile()
local tempDir="${1}"
local theFile="${2}"
local targetDir="${3}"
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Converting scripts into install packages"
fi
while read FILE
do
if [ -e "${FILE}" ]; then
# make an installer package out of the script
CreateInstallPackageForScript "$tempDir" "${FILE}" || return 1
# copy the resulting package to the Packages directory
local leafName=`basename "${FILE}"`
/usr/bin/ditto $opt "${tempDir}/${leafName}.pkg" "${targetDir}/${leafName}.pkg" || return 1
# clean up
/bin/rm -r "${tempDir}/${leafName}.pkg"
fi
done < "${theFile}"
return 0
# Prepare the source by deleting stuff we don't want to copy if sourcing a volume
PostFlightDestination()
local tempDir="${1}"
local destDir="${2}"
local opt=""
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Performing post install cleanup"
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ] ; then
opt="-v"
fi
fi
# delete the DS indices to force reindexing...
if [ -e "${mountPoint}/var/db/dslocal/indices/Default/index" ]; then
/bin/rm $opt "${mountPoint}/var/db/dslocal/indices/Default/index"
fi
# detach the disk and remove the mount folder
DetachAndRemoveMount "${mountPoint}"
if [ $? != 0 ]; then
echo "Failed to detach and clean up the mount at '${mountPoint}'."
return 1
fi
echo "Correcting permissions. ${ownershipInfoKey} $destDir"
/usr/sbin/chown -R "${ownershipInfoKey}" "$destDir"
# Prepare the source by deleting stuff we don't want to copy if sourcing a volume
PreCleanSource()
local srcVol="$1"
local opt=""
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ] ; then
opt="-v"
fi
fi
if [ -e "$srcVol/private/var/vm/swapfile*" ]; then
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Removing swapfiles on $1"
fi
/bin/rm $opt "$srcVol/private/var/vm/swapfile*"
fi
if [ -d "$srcVol/private/tmp" ]; then
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Cleaning out /private/tmp on $1"
fi
/bin/rm -r $opt "$srcVol/private/tmp/*"
fi
if [ -d "$srcVol/private/var/tmp" ]; then
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Cleaning out /private/var/tmp on $1"
fi
/bin/rm -r $opt "$srcVol/private/var/tmp/*"
fi
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Cleaning out devices and volumes on $1"
fi
if [ -d "$srcVol/Volumes" ]; then
/bin/rm -r $opt "$srcVol/Volumes/*"
fi
if [ -d "$srcVol/dev" ]; then
/bin/rm $opt "$srcVol/dev/*"
fi
if [ -d "$srcVol/private/var/run" ]; then
/bin/rm -r $opt "$srcVol/private/var/run/*"
fi
# Copy kernel and build the kext cache on the boot image
PrepareKernelAndKextCache()
local srcDir="$1"
local destDir="$2"
local opt=""
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Preparing the kernel and kext cache for t /bin/rmdir "${theMount}" || return 1
return 0
# If the pieces exist, enable remote access for the shell image
EnableRemoteAccess()
local srcVol="${1}"
local opt=""
if [ -e "${srcVol}/usr/lib/pam/pam_serialnumber.so.2" ]; then
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Enabling shell image remote access support"
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
opt="-v"
fi
fi
# install some things (again which aren't part of BaseSystem) needed for remote ASR installs
/usr/bin/ditto $opt "${srcVol}/usr/lib/pam/pam_serialnumber.so.2" "${mountPoint}/usr/lib/pam/pam_serialnumber.so.2" || return 1
if [ -e "${srcVol}/usr/sbin/installer" ]; then
/usr/bin/ditto $opt "${srcVol}/usr/sbin/installer" "${mountPoint}/usr/sbin/installer" || return 1
fi
# copy the sshd config and add our keys to the end of it
if [ -e "${srcVol}/etc/sshd_config" ]; then
/bin/cat "${srcVol}/etc/sshd_config" - > "${mountPoint}/etc/sshd_config" << END
HostKey /private/var/tmp/ssh_host_key
HostKey /private/var/tmp/ssh_host_rsa_key
HostKey /private/var/tmp/ssh_host_dsa_key
END
fi
fi
return 0
# If it exists, install the sharing names and/or directory binding support to the install image
HandleNetBootClientHelper()
local tempDir="${1}"
local targetVol="${2}"
local opt=""
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
opt="-v"
fi
if [ -e "${tempDir}/bindingNames.plist" ]; then
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Installing Directory Service binding information"
fi
/usr/bin/ditto $opt "${tempDir}/bindingNames.plist" "${targetVol}/etc/bindingNames.plist" || return 1
/usr/sbin/chown root:wheel "${targetVol}/etc/bindingNames.plist"
/bin/chmod 644 "${targetVol}/etc/bindingNames.plist"
fi
if [ -e "${tempDir}/sharingNames.plist" ]; then
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Installing Sharing Names support"
fi
/usr/bin/ditto $opt "${tempDir}/sharingNames.plist" "${targetVol}/etc/sharingNames.plist" || return 1
/usr/sbin/chown root:wheel "${targetVol}/etc/sharingNames.plist"
/bin/chmod 644 "${targetVol}/etc/sharingNames.plist"
fi
if [ -e "${tempDir}/NetBootClientHelper" ]; then
/usr/bin/ditto $opt "${tempDir}/NetBootClientHelper" "${targetVol}/usr/sbin/NetBootClientHelper" || return 1
/usr/sbin/chown root:wheel "${targetVol}/usr/sbin/NetBootClientHelper"
/bin/chmod 555 "${targetVol}/usr/sbin/NetBootClientHelper"
/usr/bin/ditto $opt "${tempDir}/com.apple.NetBootClientHelper.plist" "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist" || return 1
/usr/sbin/chown root:wheel "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist"
/bin/chmod 644 "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist"
# finally, make sure it isn't disabled...
/usr/libexmountPoint=`mktemp -d "/tmp/mnt.XXXXXXXX"`
errExit()
echo "Execution of '`basename ${0}`' failed. Cleaning up."
# detach the disk and remove the mount folder
DetachAndRemoveMount "${mountPoint}"
/bin/rm -r "${destPath}"
exit 1
# Set up for script debugging
debug_opt=""
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ] ; then
debug_opt="-v"
fi
# Prepare the destination
CreateOrValidatePath "$destPath" || errExit
# update progress information
echo "${progressPrefix}_creatingImage_"
if [ -e "${installSource}/BaseSystem.dmg" ]; then
size=$2
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ] ; then
echo "Creating disk image (Size: $size MB)"
fi
/usr/bin/hdiutil create "$destPath/$dmgTarget" -megabytes $size -volname "${dmgVolName}" -uid 0 -gid 80 -mode 1775 -layout "SPUD" -fs "$destVolFSType" -stretch 500g -ov -puppetstrings || errExit
echo "${progressPrefix}_copyingSource_"
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ] ; then
echo "Attaching disk image"
fi
/usr/bin/hdiutil attach "${destPath}/${dmgTarget}.dmg" -owners on -nobrowse -noautoopen -mountpoint "${mountPoint}" -quiet || errExit
# Copy source Volume base system to
/usr/bin/ditto $debug_opt "${installSource}" "${mountPoint}" || errExit
else
echo "This does not appear to be a Mac OS X Install DVD."
errExit
fi
# If adding any additional packages or scripts
if [ -e "${1}/OSInstall.collection" ]; then
/usr/bin/ditto $debug_opt "${1}/OSInstall.collection" "${mountPoint}/Packages/OSInstall.collection" || errExit
/usr/sbin/chown root:wheel "${mountPoint}/Packages/OSInstall.collection"
# If adding any additional packages
if [ -e "${1}/additionalPackages.txt" ]; then
CopyPackagesWithDestinationsFromFile "${1}/additionalPackages.txt" || errExit
fi
# If adding any scripts
if [ -e "${1}/additionalScripts.txt" ]; then
InstallScriptsFromFile "${1}" "${1}/additionalScripts.txt" "${mountPoint}/Packages" || errExit
fi
fi
# If it exists, install the partition data onto the install image
ProcessAutoPartition "${1}" || errExit
# If it exists, install minstallconfig.xml (AutoInstall data) onto the install image
ProcessMinInstall "${1}" || errExit
# update progress information
echo "${progressPrefix}_buildingBooter_"
# Copy kernel and boot loader
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Preparing the kernel and boot loader for the boot image"
fi
# make sure this doesn't exist
if [ -e "${destPath}/i386" ]; then
/bin/rm -rf "${destPath}/i386"
fi
/bin/mkdir -p $debug_opt "${destPath}/i386/x86_64" || errExit
# copy these directly off the install media
/usr/bin/ditto $debug_opt "${installSource}/boot.efi" "${destPath}/i386/booter" || errExit
/usr/bin/chflags nohidden "${destPath}/i386/booter"
# Grab the relevant portion of the com.apple.Boot.plist
kernelFlags=`/usr/libexec/PlistBuddy -c "print :'Kernel Flags'" "${installSource}/Library/Preferences/SystemConfiguration/com.apple.Boot.plist"`
/usr/libexec/PlistBuddy -c "add :'Kernel Flags' string ${kernelFlags}" "${destPath}/i386/com.apple.Boot.plist" > /dev/null 2>&1
/usr/bin/ditto $debug_opt "${installSource}/System/Library/CoreServices/PlatformSupport.plist" "${destPath}/i386/PlatformSupport.plist" || errExit
# extract the kernel & kernelcache for the boot shell
/usr/bin/lipo -extract i386 "${mountPoint}/kernelcache" -output "${destPath}/i386/kernelcache" || errExit
/usr/bin/lipo -extract x86_64 "${mountPoint}/kernelcache" -output "${destPath}/i386/x86_64/kernelcache" || errExit
# Apply choice changes, if any
if [ -e "${1}/MacOSXInstaller.choiceChanges" ]; then
echo "Copy over package choice selection."
/usr/bin/ditto $debug_opt "${1}/MacOSXInstaller.choiceChanges" "${mountPoint}/Packages/Extras/MacOSXInstaller.choiceChanges"
fi
# update progress information
echo "${progressPrefix}_finishingUp_"
# perform the final cleanup
PostFlightDestination "${1}" "$destPath" || errExit
errExit
Vol/private/tmp" ]; then
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Cleaning out /private/tmp on $1"
fi
/bin/rm -r $opt "$srcVol/private/tmp/*"
fi
if [ -d "$srcVol/private/var/tmp" ]; then
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Cleaning out /private/var/tmp on $1"
fi
/bin/rm -r $opt "$srcVol/private/var/tmp/*"
fi
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Cleaning out devices and volumes on $1"
fi
if [ -d "$srcVol/Volumes" ]; then
/bin/rm -r $opt "$srcVol/Volumes/*"
fi
if [ -d "$srcVol/dev" ]; then
/bin/rm $opt "$srcVol/dev/*"
fi
if [ -d "$srcVol/private/var/run" ]; then
/bin/rm -r $opt "$srcVol/private/var/run/*"
fi
# Copy kernel and build the kext cache on the boot image
PrepareKernelAndKextCache()
local srcDir="$1"
local destDir="$2"
local opt=""
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Preparing the kernel and kext cache for tPERCENT:0.000000
PERCENT:4.332841
PERCENT:8.985722
PERCENT:12.358444
PERCENT:14.524864
PERCENT:16.617430
PERCENT:19.522402
PERCENT:21.614967
PERCENT:23.535204
PERCENT:26.070902
PERCENT:29.271296
PERCENT:33.111767
PERCENT:38.847858
PERCENT:42.343674
PERCENT:44.707043
PERCENT:46.578041
PERCENT:49.138355
PERCENT:51.772526
PERCENT:55.563763
PERCENT:58.567207
PERCENT:62.210735
PERCENT:64.795670
PERCENT:69.719353
PERCENT:74.741508
PERCENT:77.055641
PERCENT:79.591331
PERCENT:83.013290
PERCENT:85.548988
PERCENT:88.010834
PERCENT:91.728210
PERCENT:97.710487
PERCENT:100.000000
PERCENT:-1.000000
Finalizing disk image.
created: /Users/vm/Desktop/NetInstall of Install Mac OS X Lion/NetInstall.dmg
/bin/rmdir "${theMount}" || return 1
return 0
# If the pieces exist, enable remote access for the shell image
EnableRemoteAccess()
local srcVol="${1}"
local opt=""
if [ -e "${srcVol}/usr/lib/pam/pam_serialnumber.so.2" ]; then
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Enabling shell image remote access support"
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
opt="-v"
fi
fi
# install some things (again which aren't part of BaseSystem) needed for remote ASR installs
/usr/bin/ditto $opt "${srcVol}/usr/lib/pam/pam_serialnumber.so.2" "${mountPoint}/usr/lib/pam/pam_serialnumber.so.2" || return 1
if [ -e "${srcVol}/usr/sbin/installer" ]; then
/usr/bin/ditto $opt "${srcVol}/usr/sbin/installer" "${mountPoint}/usr/sbin/installer" || return 1
fi
# copy the sshd config and add our keys to the end of it
if [ -e "${srcVol}/etc/sshd_config" ]; then
/bin/cat "${srcVol}/etc/sshd_config" - > Creating working path at /Users/vm/Desktop/NetInstall of Install Mac OS X Lion
Creating disk image (Size: 4062 MB)
/tmp/ssh_host_dsa_key
END
fi
fi
return 0
# If it exists, install the sharing names and/or directory binding support to the install image
HandleNetBootClientHelper()
local tempDir="${1}"
local targetVol="${2}"
local opt=""
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
opt="-v"
fi
if [ -e "${tempDir}/bindingNames.plist" ]; then
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Installing Directory Service binding information"
fi
/usr/bin/ditto $opt "${tempDir}/bindingNames.plist" "${targetVol}/etc/bindingNames.plist" || return 1
/usr/sbin/chown root:wheel "${targetVol}/etc/bindingNames.plist"
/bin/chmod 644 "${targetVol}/etc/bindingNames.plist"
fi
if [ -e "${tempDir}/sharingNames.plist" ]; then
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Installing Sharing Names support"
fi
/usr/bin/ditto $opt "${tempDir}/sharingNames.plist" "${targetVol}/etc/sharingNames.plist" || return 1
/usr/sbin/chown root:wheel "${targetVol}/etc/sharingNames.plist"
/bin/chmod 644 "${targetVol}/etc/sharingNames.plist"
fi
if [ -e "${tempDir}/NetBootClientHelper" ]; then
/usr/bin/ditto $opt "${tempDir}/NetBootClientHelper" "${targetVol}/usr/sbin/NetBootClientHelper" || return 1
/usr/sbin/chown root:wheel "${targetVol}/usr/sbin/NetBootClientHelper"
/bin/chmod 555 "${targetVol}/usr/sbin/NetBootClientHelper"
/usr/bin/ditto $opt "${tempDir}/com.apple.NetBootClientHelper.plist" "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist" || return 1
/usr/sbin/chown root:wheel "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist"
/bin/chmod 644 "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist"
# finally, make sure it isn't disabled...
/usr/libex
# update progress information
echo "${progressPrefix}_creatingImage_"
if [ -e "${installSource}/BaseSystem.dmg" ]; then
size=$2
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ] ; then
echo "Creating disk image (Size: $size MB)"
fi
/usr/bin/hdiutil create "$destPath/$dmgTarget" -megabytes $size -volname "${dmgVolName}" -uid 0 -gid 80 -mode 1775 -layout "SPUD" -fs "$destVolFSType" -stretch 500g -ov -puppetstrings || errExit
echo "${progressPrefix}_copyingSource_"
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ] ; then
echo "Attaching disk image"
fi
/usr/bin/hdiutil attach "${destPath}/${dmgTarget}.dmg" -owners on -nobrowse -noautoopen -mountpoint "${mountPoint}" -quiet || errExit
# Copy source Volume base system to
/usr/bin/ditto $debug_opt "${installSource}" "${mountPoint}" || errExit
else
echo "This does not appear to be a Mac OS X Install DVD."
errExit
fi
# If adding any additional packages or scripts
if [ -e "${1}/OSInstall.collection" ]; then
/usr/bin/ditto $debug_opt "${1}/OSInstall.collection" "${mountPoint}/Packages/OSInstall.collection" || errExit
/usr/sbin/chown root:wheel "${mountPoint}/Packages/OSInstall.collection"
# If adding any additional packages
if [ -e "${1}/additionalPackages.txt" ]; then
CopyPackagesWithDestinationsFromFile "${1}/additionalPackages.txt" || errExit
fi
# If adding any scripts
if [ -e "${1}/additionalScripts.txt" ]; then
InstallScriptsFromFile "${1}" "${1}/additionalScripts.txt" "${mountPoint}/Packages" || errExit
fi
fi
# If it exists, install the partition data onto the install image
ProcessAutoPartition "${1}" || errExit
# If it exists, install minstallconfig.xml (AutoInstall data) onto the install image
ProcessMinInstall "${1}" || errExit
# update progress information
echo "${progressPrefix}_buildingBooter_"
# Copy kernel and boot loader
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Preparing the kernel and boot loader for the boot image"
fi
# make sure this doesn't exist
if [ -e "${destPath}/i386" ]; then
/bin/rm -rf "${destPath}/i386"
fi
/bin/mkdir -p $debug_opt "${destPath}/i386/x86_64" || errExit
# copy these directly off the install media
/usr/bin/ditto $debug_opt "${installSource}/boot.efi" "${destPath}/i386/booter" || errExit
/usr/bin/chflags nohidden "${destPath}/i386/booter"
# Grab the relevant portion of the com.apple.Boot.plist
kernelFlags=`/usr/libexec/PlistBuddy -c "print :'Kernel Flags'" "${installSource}/Library/Preferences/SystemConfiguration/com.apple.Boot.plist"`
/usr/libexec/PlistBuddy -c "add :'Kernel Flags' string ${kernelFlags}" "${destPath}/i386/com.apple.Boot.plist" > /dev/null 2>&1
/usr/bin/ditto $debug_opt "${installSource}/System/Library/CoreServices/PlatformSupport.plist" "${destPath}/i386/PlatformSupport.plist" || errExit
# extract the kernel & kernelcache for the boot shell
/usr/bin/lipo -extract i386 "${mountPoint}/kernelcache" -output "${destPath}/i386/kernelcache" || errExit
/usr/bin/lipo -extract x86_64 "${mountPoint}/kernelcache" -output "${destPath}/i386/x86_64/kernelcache" || errExit
# Apply choice changes, if any
if [ -e "${1}/MacOSXInstaller.choiceChanges" ]; then
echo "Copy over package choice selection."
/usr/bin/ditto $debug_opt "${1}/MacOSXInstaller.choiceChanges" "${mountPoint}/Packages/Extras/MacOSXInstaller.choiceChanges"
fi
# update progress information
echo "${progressPrefix}_finishingUp_"
# perform the final cleanup
PostFlightDestination "${1}" "$destPath" || errExit
rrExit
# Apply choice changes, if any
if [ -e "${1}/MacOSXInstaller.choiceChanges" ]; then
echo "Copy over package choice selection."
/usr/bin/ditto $debug_opt "${1}/MacOSXInstaller.choiceChanges" "${mountPoint}/Packages/Extras/MacOSXInstaller.choiceChanges"
fi
# update progress information
echo "${progressPrefix}_finishingUp_"
# perform the final cleanup
PostFlightDestination "${1}" "$destPath" || errExit
tDestination "${1}" "$destPath" || errExit
errExit
Vol/private/tmp" ]; then
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Cleaning out /private/tmp on $1"
fi
/bin/rm -r $opt "$srcVol/private/tmp/*"
fi
if [ -d "$srcVol/private/var/tmp" ]; then
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Cleaning out /private/var/tmp on $1"
fi
/bin/rm -r $opt "$srcVol/private/var/tmp/*"
fi
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
echo "Cleaning out devices and volumes on $1"
fi
if [ -d "$srcVol/Volumes" ]; then
/bin/rm -r $opt "$srcVol/Volumes/*"
fi
if [ -d "$srcVol/dev" ]; then
/bin/rm $opt "$srcVol/dev/*"
fi
if [ -d "$srcVol/private/var/run" ]; then
/bin/rm -r $opt "$srcVol/private/var/run/*"
fi
# Copy kernel and build the kext cache on the boot image
PrepareKernelAndKextCache()
local srcDir="$1"
local destDir="$2"
local opt=""
if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
Stopping image creation.
Terminating script!
Image creation failed. -
Always fail to deploy to server when (Create a Simple EJB Session Bean )
Hi,
I'm trying the "Oracle JDeveloper 11g Tutorials" - "Create a Simple EJB Session Bean", I just follow the instructions in that page. But when I tried to run it, it always failed. Can anyone help me to have a look. I paste the log below. thank you.
There's an error in the log "java.lang.ClassNotFoundException: oracle.security.jps.wls.listeners.JpsApplicationLifecycleListener". but I don't know what's that meaning.
E:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.56\DefaultDomain\bin\startWebLogic.cmd
[waiting for the server to complete its initialization...]
JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m
WLS Start Mode=Development
CLASSPATH=;e:\Oracle\MIDDLE~1\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;e:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;e:\Oracle\MIDDLE~1\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;e:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;e:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.0.0.jar;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;e:\Oracle\MIDDLE~1\modules\ORGAPA~1.5/lib/ant-all.jar;e:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;;E:\Oracle\MIDDLE~1\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar;;
PATH=e:\Oracle\MIDDLE~1\patch_wls1030\profiles\default\native;e:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\native;e:\Oracle\MIDDLE~1\patch_cie660\profiles\default\native;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;e:\Oracle\MIDDLE~1\modules\ORGAPA~1.5\bin;e:\Oracle\MIDDLE~1\JDK160~1\jre\bin;e:\Oracle\MIDDLE~1\JDK160~1\bin;C:\oracle\product\10.2.0\client_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;G:\D\JACKYH\Installed\apache-ant-1.7.1\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\CollabNet Subversion;U:.;V:.;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at http:\\hostname:port\console *
starting weblogic with Java version:
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode)
Starting WLS with line:
e:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -DproxySet=false -Djbo.34010=false -Xverify:none -da -Dplatform.home=E:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=E:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=E:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=e:\Oracle\MIDDLE~1\patch_wls1030\profiles\default\sysext_manifest_classpath;e:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sysext_manifest_classpath;e:\Oracle\MIDDLE~1\patch_cie660\profiles\default\sysext_manifest_classpath -Dweblogic.Name=DefaultServer -Djava.security.policy=E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy weblogic.Server
<12/11/2008 10:54:31 AM EST> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
E:\Oracle\Middleware\patch_wls1030\profiles\default\sysext_manifest_classpath\weblogic_ext_patch.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\beehive_ja.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\beehive_ko.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\beehive_zh_CN.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\beehive_zh_TW.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ja.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ko.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_zh_CN.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_zh_TW.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\testclient_ja.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\testclient_ko.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\testclient_zh_CN.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\testclient_zh_TW.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ja.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ko.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_zh_CN.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_zh_TW.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\workshop_ja.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\workshop_ko.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\workshop_zh_CN.jar;E:\Oracle\Middleware\wlserver_10.3\L10N\workshop_zh_TW.jar>
<12/11/2008 10:54:32 AM EST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 10.0-b19 from Sun Microsystems Inc.>
<12/11/2008 10:54:32 AM EST> <Info> <Management> <BEA-141107> <Version: WebLogic Server Temporary Patch for CR380042 Thu Sep 11 13:33:40 PDT 2008
WebLogic Server Temporary Patch for 7372756 Fri Sep 12 17:05:44 EDT 2008
WebLogic Server 10.3 Mon Aug 18 22:39:18 EDT 2008 1142987 >
<12/11/2008 10:54:33 AM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<12/11/2008 10:54:33 AM EST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
<12/11/2008 10:54:34 AM EST> <Notice> <Log Management> <BEA-170019> <The server log file E:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.56\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log is opened. All server side log events will be written to this file.>
<12/11/2008 10:54:36 AM EST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<12/11/2008 10:54:38 AM EST> <Warning> <Deployer> <BEA-149617> <Non-critical internal application uddi was not deployed. Error: [Deployer:149158]No application files exist at 'E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\uddi.war'.>
<12/11/2008 10:54:38 AM EST> <Warning> <Deployer> <BEA-149617> <Non-critical internal application uddiexplorer was not deployed. Error: [Deployer:149158]No application files exist at 'E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\uddiexplorer.war'.>
<12/11/2008 10:54:39 AM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
<12/11/2008 10:54:39 AM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<12/11/2008 10:54:39 AM EST> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
<12/11/2008 10:54:39 AM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
<12/11/2008 10:54:39 AM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
<12/11/2008 10:54:39 AM EST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7101 for protocols iiop, t3, ldap, snmp, http.>
<12/11/2008 10:54:39 AM EST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.12.54:7101 for protocols iiop, t3, ldap, snmp, http.>
<12/11/2008 10:54:39 AM EST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "DefaultServer" for domain "DefaultDomain" running in Development Mode>
<12/11/2008 10:54:39 AM EST> <Warning> <Server> <BEA-002611> <Hostname "jackyh.dst.com.au", maps to multiple IP addresses: 192.168.12.54, 127.0.0.1>
<12/11/2008 10:54:39 AM EST> <Warning> <Server> <BEA-002611> <Hostname "localhost", maps to multiple IP addresses: 192.168.12.54, 127.0.0.1>
<12/11/2008 10:54:39 AM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
<12/11/2008 10:54:39 AM EST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
DefaultServer startup time: 13829 ms.
DefaultServer started.
[Running application SessionEJB on Server Instance DefaultServer...]
---- Deployment started. ---- 12/11/2008 10:54:43
Target platform is (Weblogic 10.3).
Running dependency analysis...
2008-11-12 10:54:43.882: Writing EJB JAR file to E:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.56\o.j2ee\drs\SessionEJB\SessionEJB-Project1-ejb
2008-11-12 10:54:43.914: Wrote EJB JAR file to E:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.56\o.j2ee\drs\SessionEJB\SessionEJB-Project1-ejb
2008-11-12 10:54:44.148: Writing EAR file to E:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.56\o.j2ee\drs\SessionEJB
2008-11-12 10:54:44.164: Wrote EAR file to E:\Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.56\o.j2ee\drs\SessionEJB
Deploying Application...
<12/11/2008 10:54:46 AM EST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1226447686226' for task '0'. Error is: 'weblogic.management.DeploymentException: '
weblogic.management.DeploymentException:
at weblogic.application.internal.flow.BaseLifecycleFlow$CreateListenerAction.run(BaseLifecycleFlow.java:171)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.application.internal.flow.BaseLifecycleFlow$BaseAction.invoke(BaseLifecycleFlow.java:99)
at weblogic.application.internal.flow.HeadLifecycleFlow.createListener(HeadLifecycleFlow.java:117)
Truncated. see log file for complete stacktrace
java.lang.ClassNotFoundException: oracle.security.jps.wls.listeners.JpsApplicationLifecycleListener
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:176)
Truncated. see log file for complete stacktrace
>
<12/11/2008 10:54:46 AM EST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'SessionEJB'.>
<12/11/2008 10:54:46 AM EST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.management.DeploymentException:
at weblogic.application.internal.flow.BaseLifecycleFlow$CreateListenerAction.run(BaseLifecycleFlow.java:171)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.application.internal.flow.BaseLifecycleFlow$BaseAction.invoke(BaseLifecycleFlow.java:99)
at weblogic.application.internal.flow.HeadLifecycleFlow.createListener(HeadLifecycleFlow.java:117)
Truncated. see log file for complete stacktrace
java.lang.ClassNotFoundException: oracle.security.jps.wls.listeners.JpsApplicationLifecycleListener
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:176)
Truncated. see log file for complete stacktrace
>
[Deployer:149034]An exception occurred for task [Deployer:149026]deploy application SessionEJB on DefaultServer.: .
weblogic.management.DeploymentException:
#### Deployment incomplete. #### 12/11/2008 10:54:46
oracle.jdeveloper.deploy.DeployException
at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.doDeploymentAction(Jsr88RemoteDeployer.java:247)
at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.deployImpl(Jsr88RemoteDeployer.java:157)
at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
at oracle.jdeveloper.deploy.common.BatchDeployer.deployImpl(BatchDeployer.java:82)
at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
at oracle.jdevimpl.deploy.fwk.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:436)
at oracle.jdeveloper.deploy.DeploymentManager.deploy(DeploymentManager.java:209)
at oracle.jdevimpl.runner.adrs.AdrsStarter$4$1.run(AdrsStarter.java:1316)
Caused by: oracle.jdeveloper.deploy.DeployException
at oracle.jdevimpl.deploy.common.Jsr88DeploymentHelper.deployApplication(Jsr88DeploymentHelper.java:413)
at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.doDeploymentAction(Jsr88RemoteDeployer.java:238)
... 11 more
Caused by: oracle.jdeveloper.deploy.DeployException: Deployment Failed
at oracle.jdevimpl.deploy.common.Jsr88DeploymentHelper.deployApplication(Jsr88DeploymentHelper.java:395)
... 12 more
#### Cannot run application SessionEJB due to error deploying to DefaultServer.
[Application SessionEJB stopped and undeployed from Server Instance DefaultServer]Steve,
I'm facing the same issue as user#####.
Your workaround does not work ; when I deploy manuelly the ear file, with a new weblogic-application.xml, I get the same error.
Does that happen a lot ? :p
Edit :
my web.xml :
<?xml version = '1.0' encoding = 'windows-1252'?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
<description>Empty web.xml file for Web Application</description>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<context-param>
<description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>
<param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<description>Whether the 'Generated by...' comment at the bottom of ADF Faces HTML pages should contain version number information.</description>
<param-name>oracle.adf.view.rich.versionString.HIDDEN</param-name>
<param-value>false</param-value>
</context-param>
<filter>
<filter-name>JpsFilter</filter-name>
<filter-class>oracle.security.jps.ee.http.JpsFilter</filter-class>
</filter>
<filter>
<filter-name>trinidad</filter-name>
<filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
</filter>
<filter>
<filter-name>adfBindings</filter-name>
<filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>JpsFilter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>trinidad</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>adfBindings</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>resources</servlet-name>
<servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>resources</servlet-name>
<url-pattern>/adf/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>resources</servlet-name>
<url-pattern>/afr/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>35</session-timeout>
</session-config>
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>txt</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
</web-app>Luc-
Edited by: Lucas Ismag on 4 déc. 2008 05:33 -
ORA-22288: file or LOB operation FILEOPEN failed (The data is invalid)
Dear All,
I am trying to insert a image file (gif) to one of my field.
1. Here is my table structure and trying to insert gif image file to PIC file.
SQL> desc cis2.david_pic
Name Null? Type
ID VARCHAR2(5)
PIC BLOB
2. I using sql command to create directory and the path is pointing where the DB
server was installed.
SQL> create or replace directory MY_FILES as '\\hkqaa-db1\TEXT_IMPORT';
3. Written a script to insert empty blob first and than trying to use the dbms_lob.fileopen
to upload the gif file.
SQL> declare
2 l_blob blob;
3 l_bfile bfile;
4 begin
5 insert into cis2.david_pic values ( '1', empty_blob())
6 returning pic into l_blob;
7 l_bfile := bfilename('MY_FILES', 'bess_signature.gif');
8 dbms_lob.fileopen(l_bfile);
9 dbms_lob.loadfromfile(l_blob, l_bfile, dbms_lob.getlength(l_bfile));
10 dbms_lob.fileclose(l_bfile);
11 end;
12 /
4. After I ran my script I got this error message.
declare
ERROR at line 1:
ORA-22288: file or LOB operation FILEOPEN failed
The data is invalid.
ORA-06512: at "SYS.DBMS_LOB", line 475
ORA-06512: at line 8
Can any tell me what wrong? is this the way to insert image?
ThanksKnow this is an old post: (for sharing sake.)
Please try avoiding
1. the 'hyphen' in between the path (hkqaadb1 instead of hkqaa-db1)
2. Give direct path like 'C:\TEXT_IMPORT' instead of network path.
create or replace directory MY_FILES as '\\hkqaa-db1\TEXT_IMPORT'; -- Not working.
create or replace directory MY_FILES as 'C:\hkqaadb1\TEXT_IMPORT'; -- Working.
and this worked fine.
Edited by: Arunan.KL on Mar 23, 2011 5:04 PM -
Operations manager failed to run a wmi query for wmi events (0x800706ba)
Hi everyone,
I've been working on this issue for a while and I am still no closer to finding out what the problem is. If anybody can offer any other advice or things to check, I'm all ears.
I'm running SCOM 2012 R2 with UR2, and the Cluster Management Pack v6.0.7063.0
My problem is on one particular batch of cluster servers where I am getting the following error.
Name: Operations Manager failed to run a WMI query for WMI events
Alert Description:
Module was unable to enumerate the WMI data
Error: 0x800706ba
Details: The RPC server is unavailable
Workflow name: Microsoft.Windows.Cluster.Node.StateMonitoring
Instance Name: servername.domain.local
Instance ID: {instance_id}
Management group: SCOM_Management_Grp_Name
I am getting this alert regardless of whether I run the Windows Cluster Action Account as Local System, or as a domain user with full local admin privileges on all the cluster nodes.
When looking at the management pack and the workflow in particular (Microsoft.Windows.Cluster.Node.StateMonitoring), I can see that it's trying to access
MSCluster_Node in the root\MSCLUSTER WMI namespace.
This is the workflow for your information...
<UnitMonitor> ID="Microsoft.Windows.Cluster.Node.StateMonitoring" Accessibility="Public" Enabled="onEssentialMonitoring" Target="ClusLibrary!Microsoft.Windows.Cluster.Node" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="ClusLibrary!Microsoft.Windows.Cluster.CheckState" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Cluster.Node.StateMonitoring.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter1>
<AlertParameter2>$Target/Property[Type="ClusLibrary!Microsoft.Windows.Cluster.Node"]/ClusterName$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Success" MonitorTypeStateID="Online" HealthState="Success" />
<OperationalState ID="Warning" MonitorTypeStateID="Partial" HealthState="Warning" />
<OperationalState ID="Error" MonitorTypeStateID="NotOnline" HealthState="Error" />
</OperationalStates>
<Configuration>
<ClusterObjectName>$Target/Property[Type='ClusLibrary!Microsoft.Windows.Cluster.Node']/NodeName$</ClusterObjectName>
<PollInterval>60</PollInterval>
<ClusterObjectClass>MSCLUSTER_Node</ClusterObjectClass>
<OnlineExpression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='EventNewState']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">0</Value>
</ValueExpression>
</SimpleExpression>
</OnlineExpression>
<OnlineExpressionOnDemand>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='State']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">0</Value>
</ValueExpression>
</SimpleExpression>
</OnlineExpressionOnDemand>
<PartialExpression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='EventNewState']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">2</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='EventNewState']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">3</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</PartialExpression>
<PartialExpressionOnDemand>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='State']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">2</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='State']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">3</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</PartialExpressionOnDemand>
<NotOnlineExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='EventNewState']</XPathQuery>
</ValueExpression>
<Operator>NotEqual</Operator>
<ValueExpression>
<Value Type="String">0</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='EventNewState']</XPathQuery>
</ValueExpression>
<Operator>NotEqual</Operator>
<ValueExpression>
<Value Type="String">2</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='EventNewState']</XPathQuery>
</ValueExpression>
<Operator>NotEqual</Operator>
<ValueExpression>
<Value Type="String">3</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</NotOnlineExpression>
<NotOnlineExpressionOnDemand>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='State']</XPathQuery>
</ValueExpression>
<Operator>NotEqual</Operator>
<ValueExpression>
<Value Type="String">0</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='State']</XPathQuery>
</ValueExpression>
<Operator>NotEqual</Operator>
<ValueExpression>
<Value Type="String">2</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='State']</XPathQuery>
</ValueExpression>
<Operator>NotEqual</Operator>
<ValueExpression>
<Value Type="String">3</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</NotOnlineExpressionOnDemand>
<WMIFields>Name, State</WMIFields>
</Configuration>
</UnitMonitor>
I can confirm that I am able to browse the MSCluster_Node class locally, as well as remotely using WMIEXPLORER and WBEMTEST,
however it only works when I set the Authentication Level to
Packet Privacy. If I do not select Packet Privacy, a WMI event log error 5605 is logged on the remote servers application log that says...
The root\mscluster namespace is marked with the RequiresEncryption flag. Access to this namespace might be denied if the script or application does not have the appropriate authentication level. Change the authentication level to Pkt_Privacy
and run the script or application again.
I can confirm that all firewalls are turned off, and there are no firewalls between the management servers and the agents in question. AV exclusions have been done and appear to be in place. The nodes are all Windows 2008 R2 with SP1. As
far as I can tell there is plenty of memory available on each of the nodes in question (50%+) of RAM is available.
If I manually run the "Discover the Windows Server 2008 R2 Cluster Components" task in the Cluster Service State section of the management pack in the Monitoring Pane in the console, on the nodes in question - the discovery runs successfully.
Does anybody have any other ideas or suggestions I could try?
Many thanks in advance,
Noel.
http://www.dreamension.netHi,
Common causes of RPC errors include:
Errors resolving a DNS or NetBIOS name.
The RPC service or related services may not be running.
Problems with network connectivity.
File and printer sharing is not enabled.
For more information, please review the link below:
Windows Server Troubleshooting: "The RPC server is unavailable"
http://social.technet.microsoft.com/wiki/contents/articles/4494.windows-server-troubleshooting-the-rpc-server-is-unavailable.aspx#Identify
Troubleshooting RPC Errors
http://technet.microsoft.com/en-us/magazine/2007.07.howitworks.aspx
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place.
Maybe you are looking for
-
I cannotg open photos in Photgoshop CS6. I can open them in Photoshop Browser and Camera Raw, but cannotg open them in Photoshop. Blue circle comes on for about three seconds, then changes to a plus sign, and nothing else happens. Please help. Ad
-
I am having an issue with group messages. When someone sends a group message that I'm part of, I receive it as an individual message even though I have the group function enabled. Furthermore, I can receive replies from someone else in the group to
-
Error in assining MT to service interface
Hi PI 7.1 experts, i am working on PI 7.1, i have SLD components like this Product: XYZ SWCV XYZ version 1.0 Product: ABC_CANONIC SWCV ABC_CANONIC version
-
I use the Apple Software Update 1.0.0.7 It shows new software for me: Apple Software Update 1.0.2 Apple Software Update for Windows 2.0.2 If I start updating the updater says that the downloaded program is invalid. Even if I start the option 'Downloa
-
I have tried every HP download to reinstall my wireless driver Ralink WLAN. I have even done a full restore of the computer. The WLAN does not show up under network adapters and I have even tried to download by recovery manager(hardware). The HP down