Rundeck error when job is running with success - windows

I have a job defined on Rundeck with a step that has a remote command. This command calls PSExec that calls a .cmd that executes DTSXExec.
After I running the job, I got an error on Rundeck. Altough, the DTSXExec runs smoothly.
Here is the log:
PsExec v2.2 - Execute processes remotely
14:39:11 Copyright (C) 2001-2016 Mark Russinovich
14:39:11 Sysinternals - www.sysinternals.com
14:39:11
14:39:11
14:39:11 C:\Windows\system32>D:
14:39:11
14:39:11 D:\>cd D:\DTEXEC
14:39:11
14:39:11 D:\DTEXEC\DTSXExec.exe 32 CAR_ESTRUTURA_HIER
14:39:25
14:39:25 25-02-2019 14:39:10 - >>>>>>>>>>>>>>>>>>>>> BEGIN LOG <<<<<<<<<<<<<<<<<<<<<
14:39:25
14:39:25 25-02-2019 14:39:10 - CAR_ESTRUTURA_HIER - CAR_ESTRUTURA_HIER 32 bits execution.
14:39:25
14:39:25 25-02-2019 14:39:25 - Microsoft (R) SQL Server Execute Package Utility
14:39:25 Version 11.0.7001.0 for 32-bit
14:39:25 Copyright (C) Microsoft Corporation. All rights reserved.
14:39:25
14:39:25 DTExec: The package execution returned DTSER_SUCCESS (0).
14:39:25 Started: 14:39:10
14:39:25 Finished: 14:39:25
14:39:25 Elapsed: 14.867 seconds
14:39:25
14:39:25
14:39:25 25-02-2019 14:39:25 - RETURN CODE: 0.
14:39:25
14:39:25 25-02-2019 14:39:25 - RETURN CODE: 0. No errors.
14:39:25
14:39:25 25-02-2019 14:39:25 - >>>>>>>>>>>>>>>>>>>>> END LOG <<<<<<<<<<<<<<<<<<<<<
14:39:25
14:39:25 Connecting to localhost...
14:39:25 Starting PSEXESVC service on localhost...
14:39:25 Connecting with PsExec service on localhost...
14:39:25 Starting D:\teste3.cmd on localhost...
14:39:25 D:\teste3.cmd exited on localhost with error code 0.
14:39:25 Execution finished with the following error:
14:39:25 Failed: NonZeroResultCode: [WinRMPython] Result code: 1
Thanks in advance.

Check the service.log file (usually on /var/log/rundeck/service.log) for more clues. But in most cases that error is because exists a conflict with python libraries on your operating system (usually urllib3 or pywinrm), you can see your Python libs executing 'pip list' and install with 'pip install '.
Check that:
https://github.com/rundeck-plugins/py-winrm-plugin/issues/6
And that for PIP reference:
https://pip.pypa.io/en/stable/reference/pip/

Related

In Sysinternals' livekd, how can we find the information associated with a process from its PID?

I want to get information on a process from Sysinternals' livekd using its process ID. How do I do this?
The documentation for WinDBG's !process command on MSDN (https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/-process) says,
!process [/s Session] [/m Module] [Process [Flags]]
gives information about the process specified by "Process". The documentation further says,
Process - Specifies the hexadecimal address or the process ID of the process on the target computer.
But try as I might, specifying the PID gives nothing, and I can't see a way to find the hexadecimal address of the process structure for a running process.
For e.g., from Sysinternals' Process Explorer, I see a process with PID 672 backed by svchost.exe, as follows:
But when I use the !process command with the PID 672 or its hexadecimal, 2A0, I get nothing. See below:
0: kd> !process 672
Searching for Process with Cid == 672
Cannot resolve nt!_EPROCESS object type
0: kd> !process 2A0
Searching for Process with Cid == 2a0
Cannot resolve nt!_EPROCESS object type
But !process svchost.exe works (for a some instance of that image that's running):
0: kd> !process svchost.exe
PROCESS ffffdc0a4b49b180
SessionId: none Cid: 0004 Peb: 00000000 ParentCid: 0000
DirBase: 001ad002 ObjectTable: ffff9a0ba4e3ee40 HandleCount: 6664.
Image: System
VadRoot ffffdc0a66ea3200 Vads 58 Clone 0 Private 30. Modified 31341619. Locked 192.
DeviceMap ffff9a0ba4e36360
Token ffff9a0ba4e072b0
ElapsedTime 5 Days 13:59:48.702
I can also use !process ffffdc0a4b49b180 using the information gained from !process svchost.exe, but I want to use the process ID to get this information. How do I do this?
Edit 1: I think that I am setting the symbols correctly, based on information here: https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/symbol-path . Please see the output below.
0: kd> .sympath
Symbol search path is: srv*c:\symbols\*https://msdl.microsoft.com/download/symbols
Expanded Symbol search path is: srv*c:\symbols\*https://msdl.microsoft.com/download/symbols
************* Path validation summary **************
Response Time (ms) Location
Deferred srv*c:\symbols\*https://msdl.microsoft.com/download/symbols
0: kd> lml
start end module name
fffff804`82200000 fffff804`83246000 nt (pdb symbols) c:\symbols\ntkrnlmp.pdb\1F9BB45B28B806E4D18925C06E924B8C1\ntkrnlmp.pdb
fffff804`a3420000 fffff804`a342d000 LiveKdD (no symbols)
0: kd> !sym noisy
noisy mode - symbol prompts on
0: kd> .reload nt
SYMSRV: BYINDEX: 0xF
c:\symbols\*https://msdl.microsoft.com/download/symbols
ntoskrnl.exe
F05723421046000
SYMSRV: PATH: c:\symbols\ntoskrnl.exe\F05723421046000\ntoskrnl.exe
SYMSRV: RESULT: 0x00000000
DBGHELP: c:\symbols\ntoskrnl.exe\F05723421046000\ntoskrnl.exe - OK
DBGENG: c:\symbols\ntoskrnl.exe\F05723421046000\ntoskrnl.exe - Mapped image memory
SYMSRV: BYINDEX: 0x10
c:\symbols\*https://msdl.microsoft.com/download/symbols
ntkrnlmp.pdb
1F9BB45B28B806E4D18925C06E924B8C1
SYMSRV: PATH: c:\symbols\ntkrnlmp.pdb\1F9BB45B28B806E4D18925C06E924B8C1\ntkrnlmp.pdb
SYMSRV: RESULT: 0x00000000
DBGHELP: nt - public symbols
c:\symbols\ntkrnlmp.pdb\1F9BB45B28B806E4D18925C06E924B8C1\ntkrnlmp.pdb
0: kd> dt nt!_EPROCESS
+0x000 Pcb : _KPROCESS
+0x438 ProcessLock : _EX_PUSH_LOCK
+0x440 UniqueProcessId : Ptr64 Void
+0x448 ActiveProcessLinks : _LIST_ENTRY
+0x458 RundownProtect : _EX_RUNDOWN_REF
+0x460 Flags2 : Uint4B
+0x460 JobNotReallyActive : Pos 0, 1 Bit
+0x460 AccountingFolded : Pos 1, 1 Bit
+0x460 NewProcessReported : Pos 2, 1 Bit
....
Edit 2:
I just discovered that LiveKdD.sys is not getting loaded. I have reinstalled Windows SDK, and uninstalled my antivirus software. That doesn't fix this issue.
But, LivekdD.sys is present in the directory it's trying to load it from. See below.
PS C:\WINDOWS\system32\drivers> dir livekdd.sys
Directory: C:\WINDOWS\system32\drivers
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 24-11-2021 21:53 39272 livekdd.sys
Launching D:\Windows Kits\10\Debuggers\x64\kd.exe:
Microsoft (R) Windows Debugger Version 10.0.22000.194 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [C:\WINDOWS\livekd.dmp]
Kernel Complete Dump File: Full address space is available
Comment: 'LiveKD live system view'
************* Path validation summary **************
Response Time (ms) Location
Deferred srv*c:\Symbols*http://msdl.microsoft.com/download/symbols
Symbol search path is: srv*c:\Symbols*http://msdl.microsoft.com/download/symbols
Executable search path is:
Windows 8 Kernel Version 9200 MP (4 procs) Free x64
Product: WinNt, suite: TerminalServer SingleUserTS Personal
Edition build lab: 19041.1.amd64fre.vb_release.191206-1406
Machine Name:
Kernel base = 0xfffff807`75400000 PsLoadedModuleList = 0xfffff807`7602a2d0
Debug session time: Wed Nov 24 22:03:56.831 2021 (UTC + 5:30)
System Uptime: 0 days 0:13:04.851
Loading Kernel Symbols
...............................................................
................................................................
................................................................
..................................
Loading User Symbols
..........................................
Loading unloaded module list
............
For analysis of this file, run !analyze -v
0: kd> .tlist notepad.exe
Unable to load image \??\C:\WINDOWS\system32\Drivers\LiveKdD.SYS, Win32 error 0n2
0n3176 notepad.exe
As Already commented several times it works
here is an output from livekd
0: kd> .tlist calculator.exe
0n1872 Calculator.exe
0: kd> !process 0n1872 0
Searching for Process with Cid == 750
PROCESS ffffc388a8cd5080
SessionId: 5 Cid: 0750 Peb: 806522f000 ParentCid: 0250
DirBase: 7a081002 ObjectTable: ffff8985feda39c0 HandleCount: 467.
Image: Calculator.exe
0: kd> !process 0 0 calculator.exe
PROCESS ffffc388a8cd5080
SessionId: 5 Cid: 0750 Peb: 806522f000 ParentCid: 0250
DirBase: 7a081002 ObjectTable: ffff8985feda39c0 HandleCount: 467.
Image: Calculator.exe
EDIT
a complete session
D:\>livekd
LiveKd v5.63 - Execute kd/windbg on a live system
Sysinternals - www.sysinternals.com
Copyright (C) 2000-2020 Mark Russinovich and Ken Johnson
Launching C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\kd.exe:
Microsoft (R) Windows Debugger Version 10.0.17763.132 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [C:\WINDOWS\livekd.dmp]
Kernel Complete Dump File: Full address space is available
Comment: 'LiveKD live system view'
************* Path validation summary **************
Response Time (ms) Location
Deferred srv*f:\symbols*https://msdl.microsoft.com/download/symbols
Symbol search path is: srv*f:\symbols*https://msdl.microsoft.com/download/symbols
Executable search path is:
Windows 8 Kernel Version 9200 MP (4 procs) Free x64
Product: WinNt, suite: TerminalServer SingleUserTS
Built by: 18362.1.amd64fre.19h1_release.190318-1202
Machine Name:
Kernel base = 0xfffff803`3cc00000 PsLoadedModuleList = 0xfffff803`3d045f30
Debug session time: Wed Nov 24 06:55:11.500 2021
System Uptime: 3 days 5:19:28.286
Loading Kernel Symbols
...............................................................
................................................................
................................................................
................................................
Loading User Symbols
Loading unloaded module list
..................................................
0: kd> .tlist cmd.exe
*** ERROR: Module load completed but symbols could not be loaded for LiveKdD.SYS
0n7836 cmd.exe
0: kd> !process 0n7836 0
Searching for Process with Cid == 1e9c
PROCESS ffffc388b2810080
SessionId: 9 Cid: 1e9c Peb: 7f78344000 ParentCid: 1468
DirBase: 115d4a002 ObjectTable: ffff8985fed9ad40 HandleCount: 68.
Image: cmd.exe
0: kd>
edit 2
my module is as follows
0: kd> lmv live
start end module name
fffff803`59090000 fffff803`5909d000 LiveKdD (no symbols)
Symbol file: LiveKdD.SYS
Image path: \??\C:\WINDOWS\system32\Drivers\LiveKdD.SYS
Image name: LiveKdD.SYS
Timestamp: Mon Apr 27 21:28:28 2020 (5EA70124)
CheckSum: 00014362
ImageSize: 0000D000
Translations: 0000.04b0 0000.04e4 0409.04b0 0409.04e4
Information from resource tables:
0: kd>

During RMAN backup, shutdown immediate database and facing error ORA-12514: TNS:listener?

I was taking an RMAN backup.
RMAN> SHUTDOWN IMMEDIATE;
After Shutdown Immediate i am not able to startup database.
I have tried
conn sys#databasename as sysdba
RMAN target sys#database
lsnrctl stop start status
But i am getting this error.
C:\Users\Umair>rman target sys#ora_prep
Recovery Manager: Release 12.1.0.2.0 - Production on Mon Jul 13 00:18:00 2020
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
target database Password:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04005: error from target database:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Advice, please.Thank you.
Oracle 12.1.0
Windows 10
Static listener registration:
https://docs.oracle.com/en/database/oracle/oracle-database/18/spmss/adding-static-service-to-listener.html
https://support.oracle.com/knowledge/Oracle%20Database%20Products/2312510_1.html

VirtualBox V5.1.24 r1170 not working Windows 7 due to Beyond Trust privman64.dll

I was running VB V5.1.24 & Vagrant 1.9.8 on a Windows 7 Professional. I I could not start the VM from vagrant.
Failed to open a session for the virtual machine Centos.
Console Error
Stderr: VBoxManage.exe: error: The virtual machine 'dt-os' has terminated unexpectedly during startup with exit code -1073741819 (0xc0000005). More details may be available
in 'C:\Users\Logs\VBoxHardening.log'
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine
Log File
257c.17c0: supR3HardenedMonitor_LdrLoadDll: pName=C:\Windows\system32\privman64.dll (Input=privman64.dll, rcNtResolve=0xc0150008) *pfFlags=0xffffffff pwszSearchPath=0000000000000000:<flags> [calling]
257c.17c0: supR3HardenedScreenImage/NtCreateSection: cache hit (VINF_SUCCESS) on \Device\HarddiskVolume1\Windows\System32\privman64.dll [lacks WinVerifyTrust]
257c.17c0: supR3HardenedDllNotificationCallback: load 000007fefcf30000 LB 0x0002c000 C:\Windows\system32\privman64.dll [fFlags=0x0]
257c.17c0: supR3HardenedScreenImage/LdrLoadDll: cache hit (VINF_SUCCESS) on \Device\HarddiskVolume1\Windows\System32\privman64.dll [lacks WinVerifyTrust]
784.203c: supR3HardNtChildWaitFor[2]: Quitting: ExitCode=0xc0000005 (rcNtWait=0x0, rcNt1=0x0, rcNt2=0x103, rcNt3=0x103, 506 ms, the end);
20d4.1c98: supR3HardNtChildWaitFor[1]: Quitting: ExitCode=0xc0000005 (rcNtWait=0x0, rcNt1=0x0, rcNt2=0x103, rcNt3=0x103, 1137 ms, the end);
I find out the error was caused by privman64.dll[from power broker windows client] certificate is un-trusted by virtual box because the installed version privman64 certificate is valid only 2012-2015.
Unfortunately i could not uninstall power broker software,
So i updated new version which have valid certificate, then issue gone.
Otherwise downgrade virtual box to V 4.1.12 then issue not occurs.

Oracle g11r2 installation on rhel7 return a [INS-20802] error

I'm trying to install Oracle 11gR2 on rhel7 but I obtain an error on the final steps running the Configuration Assistant. The problem is that the log does not give any kind of information about the error:
INFO: Starting 'Oracle Database Configuration Assistant'
INFO: Executing DBCA
INFO: Command /opt/oracle/app/oracle/product/11.2.0/dbhome_1/bin/dbca
-progress_only -createDatabase -templateName General_Purpose.dbc -sid
oraclespm -gdbName oraclespm.mydomain -emConfiguration LOCAL
-storageType FS -datafileDestination /opt/oracle/app/oracle/oradata
-datafileJarLocation /opt/oracle/app/oracle/product/11.2.0/dbhome_1/assistants/dbca/templates
-responseFile NO_VALUE -characterset AL32UTF8 -obfuscatedPasswords false
-sampleSchema true -oratabLocation /opt/oracle/app/oracle/product/11.2.0/dbhome_1/install/oratab
-automaticMemoryManagement true -totalMemory 794 -maskPasswords false
-oui_internal -oui_internal -oui_internal -oui_internal -oui_internal
INFO: ... GenericInternalPlugIn.handleProcess() entered.
INFO: ... GenericInternalPlugIn: getting configAssistantParmas.
INFO: ... GenericInternalPlugIn: checking secretArguments.
INFO: ... GenericInternalPlugIn: starting read loop.
INFO: Read: SYS_PASSWORD_PROMPT
INFO: Processing: SYS_PASSWORD_PROMPT for argument tag -sysPassword
INFO: Read: SYSTEM_PASSWORD_PROMPT
INFO: Processing: SYSTEM_PASSWORD_PROMPT for argument tag -systemPassword
INFO: Read: DBSNMP_PASSWORD_PROMPT
INFO: Processing: DBSNMP_PASSWORD_PROMPT for argument tag -dbsnmpPassword
INFO: Read: SYSMAN_PASSWORD_PROMPT
INFO: Processing: SYSMAN_PASSWORD_PROMPT for argument tag -sysmanPassword
INFO: End of argument passing to stdin
INFO: Completed Plugin named: Oracle Database Configuration Assistant
Is there a way to improve the log or have a trace to discover the error?
Thanks,
Michele.
Not sure about why but the problem seems solved. I still follow the same steps described here (https://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm#BHCBCFDI). Only changes I made:
- I deselected the creation of the sample schema
- I changed the SID name from a 8 letter name to a 6 (not sure if there is any limitation)
Anyway, I'm still interested in how to increase the log level of the installation.

Import terminated unsuccessfully - Oracle

I'm trying to import a dump file using imp command in oracle 10g. The following error message is displayed. Kindly assist
C:\Documents and Settings>imp 'rdata/rdata#nxtgen' file="D:\oracle\schema.dmp"
log=D:\oracle\schema.log full=y
Import: Release 10.2.0.1.0 - Production on Fri Jun 21 11:54:29 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
IMP-00058:
IMP-00000: Import terminated unsuccessfully
C:\Documents and Settings>

Resources