Worldserver crashing - azerothcore

Hello i have everything running just fine but when i try to restart the server with (restat server 20) worldserver is crashing here is the report i god is a bunch of jubrish to me :D i have trued to replace the dll`s but for some reason i dont have permison to replace them i have tried varius scripts for services fix etc and nothing its like this even on a vps so i think it my be not connected to them the crash report is from the VPS
Date 11:2:2021. Time 15:33
//=====================================================
*** Hardware ***
Processor: Intel Xeon Processor (Skylake, IBRS)
Number Of Processors: 2
Physical Memory: 4095460 KB (Available: 1320484 KB)
Commit Charge Limit: 5537252 KB
*** Operation System ***
Windows Server 2016 Standard (Version 10.0, Build 14393)
//=====================================================
Exception code: C0000005 ACCESS_VIOLATION
Fault address: 00007FFDBCC8F47B 01:000000000002E47B C:\Windows\SYSTEM32\ntdll.dll
Registers:
RAX:0000000000000000
RBX:0000027F56DA0D60
RCX:0000027F56DA0D60
RDX:FFFFFFFFFFFFFFFF
RSI:0000000000000000
RDI:0000000000000000
R8: 00007FF688EB44C0
R9: 0000000000000000
R10:00000083AC0FF4A0
R11:0000000000000000
R12:0000000000000000
R13:0000000000000001
R14:0000000000000000
R15:0000000000000001
CS:RIP:0033:00007FFDBCC8F47B
SS:RSP:002B:00000000AC0FF3A0 RBP:ABFE2000
DS:002B ES:002B FS:0053 GS:002B
Flags:00010213
Call stack:
Address Frame Function SourceFile
00007FFDBCC8F47B 00000083AC0FF460 RtlpUnWaitCriticalSection+2EB
00007FFDBCC90984 00000083AC0FF490 RtlEnterCriticalSection+114
00007FFDBCC908B0 00000083AC0FF4C0 RtlEnterCriticalSection+40
00007FF688B19FBA 00000083AC0FF530 Player::SetEquipmentSet+24A C:\Users\KiLLSeT\Desktop\azerothcore\src\server\game\Entities\Player\Player.cpp line 26337
00007FF6883824A5 00000083AC0FF560 #ILT+464030(??0?$_List_unchecked_const_iterator#V?$_List_val#U?$_List_simple_types#VEffectApplyHandler#AuraScript###std###std##U_Iterator_base12#2##std##QEAA#PEAU?$_List_node#VEffectApplyHandler#AuraScript##PEAX#1#PEBV?$_List_val#U?$_List_simple_types#VEffectApplyHandler#AuraScript###std###1##Z)+2
00007FF688B4BDBE 00000083AC0FF5C0 Player::UpdateCharmedAI+11C9E
00007FF6883825D1 00000083AC0FF5F0 #ILT+464330(?GetTimeZoneTime#CalendarEvent##QEBA_JXZ)+2
00007FF688B667DF 00000083AC0FF620 std::list<Item *,std::allocator<Item *> >::_Emplace<Item * const &>+7F C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\list line 1018
00007FFDB9AD07B3 00000083AC0FF680 _execute_onexit_table+103
00007FFDB9ACCE0B 00000083AC0FF6B0 _register_onexit_function+EB
00007FFDB9AD06E4 00000083AC0FF6E0 _execute_onexit_table+34
00007FFDB9ADBB69 00000083AC0FF720 _lock_locales+89
00007FFDB9ACF5AB 00000083AC0FF750 isspace+AEB
00007FFDB9AC62CE 00000083AC0FF7A0 exit+6E
00007FF688B4C3AF 00000083AC0FF7E0 Player::UpdateCharmedAI+1228F
00007FFDBCB38364 00000083AC0FF810 BaseThreadInitThunk+14
00007FFDBCCC7091 00000083AC0FF860 RtlUserThreadStart+21
Call stack:
Address Frame Function SourceFile
00007FFDBCD07D64 00000083AC0FCD70 NtGetContextThread+14
00000000000001E0 00000083AC0FCD78 0000:0000000000000000
000000000000000B 00000083AC0FCD80 0000:0000000000000000
00000083AC0FDDD0 00000083AC0FCD88 0000:0000000000000000
0000000000000001 00000083AC0FCD90 0000:0000000000000000
00000000000004A0 00000083AC0FCD98 0000:0000000000000000
========================
Local Variables And Parameters
Call stack:
Address Frame Function SourceFile
00007FFDBCC8F47B 00000083AC0FF460 RtlpUnWaitCriticalSection+2EB
00007FFDBCC90984 00000083AC0FF490 RtlEnterCriticalSection+114
00007FFDBCC908B0 00000083AC0FF4C0 RtlEnterCriticalSection+40
00007FF688B19FBA 00000083AC0FF530 Player::SetEquipmentSet+24A C:\Users\KiLLSeT\Desktop\azerothcore\src\server\game\Entities\Player\Player.cpp line 26337
Local <user defined> data = 0x83AC0FF558
Local <user defined>* this = 0x83AC0FF708
Parameter unsigned int index = 0xB9AD07B3
Parameter <user defined>* eqset = 0x27F56D5F018
Local <user defined>& eqslot = 0x7FF6883824A5
Local EquipmentSetUpdateState old_state = 0x1
00007FF6883824A5 00000083AC0FF560 #ILT+464030(??0?$_List_unchecked_const_iterator#V?$_List_val#U?$_List_simple_types#VEffectApplyHandler#AuraScript###std###std##U_Iterator_base12#2##std##QEAA#PEAU?$_List_node#VEffectApplyHandler#AuraScript##PEAX#1#PEBV?$_List_val#U?$_List_simple_types#VEffectApplyHandler#AuraScript###std###1##Z)+2
00007FF688B4BDBE 00000083AC0FF5C0 Player::UpdateCharmedAI+11C9E
Local <user defined>* this = 0x2
Local <user defined>* target = 0x27F56D5E590
Local <user defined>* charmInfo = 0x7FF6883825D1
Local <user defined>* charmer = 0x27F09A7F0D8
Local bool Mages = 0xD0
00007FF6883825D1 00000083AC0FF5F0 #ILT+464330(?GetTimeZoneTime#CalendarEvent##QEBA_JXZ)+2
00007FF688B667DF 00000083AC0FF620 std::list<Item *,std::allocator<Item *> >::_Emplace<Item * const &>+7F C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\list line 1018
Local <user defined>* this = 0x83AC0FF6F8
Parameter <user defined>* _Where = 0x7FFDB9ACCE0B
Parameter <user defined>&* <_Val_0> = 0x2
Local unsigned int& _Mysize = 0x83AC0FF6F0
Local <user defined> _Op = 0x83AC0FF638
00007FFDB9AD07B3 00000083AC0FF680 _execute_onexit_table+103
00007FFDB9ACCE0B 00000083AC0FF6B0 _register_onexit_function+EB
00007FFDB9AD06E4 00000083AC0FF6E0 _execute_onexit_table+34
00007FFDB9ADBB69 00000083AC0FF720 _lock_locales+89
00007FFDB9ACF5AB 00000083AC0FF750 isspace+AEB
00007FFDB9AC62CE 00000083AC0FF7A0 exit+6E
00007FF688B4C3AF 00000083AC0FF7E0 Player::UpdateCharmedAI+1228F
Local <user defined>* this = NULL
Local <user defined>* target = 0x7FFDB91B4E10
Local <user defined>* charmInfo = NULL
Local <user defined>* charmer = NULL
Local bool Mages = 0xD0
00007FFDBCB38364 00000083AC0FF810 BaseThreadInitThunk+14
00007FFDBCCC7091 00000083AC0FF860 RtlUserThreadStart+21
Call stack:
Address Frame Function SourceFile
00007FFDBCD07D64 00000083AC0FCD70 NtGetContextThread+14
00000000000001E0 00000083AC0FCD78 0000:0000000000000000
000000000000000B 00000083AC0FCD80 0000:0000000000000000
00000083AC0FDDD0 00000083AC0FCD88 0000:0000000000000000
0000000000000001 00000083AC0FCD90 0000:0000000000000000
00000000000004A0 00000083AC0FCD98 0000:0000000000000000
0000000000000001 00000083AC0FCDA0 0000:0000000000000000
00007FF68836B02D 00000083AC0FD2D0 #ILT+368680(?GetRecruiterId#WorldSession##QEBAIXZ)+0
00007FF688369051 00000083AC0FD960 #ILT+360520(?end#?$DBCStorage#ULFGDungeonEntry####QEAA?AV?$DBCStorageIterator#ULFGDungeonEntry####XZ)+4
00007FF68836A204 00000083AC0FDC60 #ILT+365055(?find#?$_Tree#V?$_Tmap_traits#IPEAVBattlefield##U?$less#I#std##V?$allocator#U?$pair#$$CBIPEAVBattlefield###std###3#$0A##std###std##QEAA?AV?$_Tree_iterator#V?$_Tree_val#U?$_Tree_simple_types#U?$pair#$$CBIPEAVBattlefield###std###std###std###2#AEBI#Z)+0
00007FFDB91B4F67 00000083AC0FDD60 UnhandledExceptionFilter+157
00007FFDBCD0ECDB 00000083AC0FDD90 memset+239B
00007FFDBCCF6BA6 00000083AC0FDE00 __C_specific_handler+96
00007FFDBCD0AB2D 00000083AC0FDE30 __chkstk+11D
00007FFDBCCA95C3 00000083AC0FE530 RtlImageNtHeaderEx+483
00007FFDBCD09C9A 00000083AC0FF390 KiUserExceptionDispatcher+3A
00007FFDBCC8F47B 00000083AC0FF460 RtlpUnWaitCriticalSection+2EB
00007FFDBCC90984 00000083AC0FF490 RtlEnterCriticalSection+114
00007FFDBCC908B0 00000083AC0FF4C0 RtlEnterCriticalSection+40
00007FF688B19FBA 00000083AC0FF530 Player::SetEquipmentSet+24A C:\Users\KiLLSeT\Desktop\azerothcore\src\server\game\Entities\Player\Player.cpp line 26337
Local <user defined> data = 0x83AC0FF558
Local <user defined>* this = 0x83AC0FF708
Parameter unsigned int index = 0xB9AD07B3
Parameter <user defined>* eqset = 0x27F56D5F018
Local <user defined>& eqslot = 0x7FF6883824A5
Local EquipmentSetUpdateState old_state = 0x1
00007FF6883824A5 00000083AC0FF560 #ILT+464030(??0?$_List_unchecked_const_iterator#V?$_List_val#U?$_List_simple_types#VEffectApplyHandler#AuraScript###std###std##U_Iterator_base12#2##std##QEAA#PEAU?$_List_node#VEffectApplyHandler#AuraScript##PEAX#1#PEBV?$_List_val#U?$_List_simple_types#VEffectApplyHandler#AuraScript###std###1##Z)+2
00007FF688B4BDBE 00000083AC0FF5C0 Player::UpdateCharmedAI+11C9E
Local <user defined>* this = 0x2
Local <user defined>* target = 0x27F56D5E590
Local <user defined>* charmInfo = 0x7FF6883825D1
Local <user defined>* charmer = 0x27F09A7F0D8
Local bool Mages = 0xD0
00007FF6883825D1 00000083AC0FF5F0 #ILT+464330(?GetTimeZoneTime#CalendarEvent##QEBA_JXZ)+2
00007FF688B667DF 00000083AC0FF620 std::list<Item *,std::allocator<Item *> >::_Emplace<Item * const &>+7F C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\list line 1018
Local <user defined>* this = 0x83AC0FF6F8
Parameter <user defined>* _Where = 0x7FFDB9ACCE0B
Parameter <user defined>&* <_Val_0> = 0x2
Local unsigned int& _Mysize = 0x83AC0FF6F0
Local <user defined> _Op = 0x83AC0FF638
00007FFDB9AD07B3 00000083AC0FF680 _execute_onexit_table+103
00007FFDB9ACCE0B 00000083AC0FF6B0 _register_onexit_function+EB
00007FFDB9AD06E4 00000083AC0FF6E0 _execute_onexit_table+34
00007FFDB9ADBB69 00000083AC0FF720 _lock_locales+89
00007FFDB9ACF5AB 00000083AC0FF750 isspace+AEB
00007FFDB9AC62CE 00000083AC0FF7A0 exit+6E
00007FF688B4C3AF 00000083AC0FF7E0 Player::UpdateCharmedAI+1228F
Local <user defined>* this = NULL
Local <user defined>* target = 0x7FFDB91B4E10
Local <user defined>* charmInfo = NULL
Local <user defined>* charmer = NULL
Local bool Mages = 0xD0
00007FFDBCB38364 00000083AC0FF810 BaseThreadInitThunk+14
00007FFDBCCC7091 00000083AC0FF860 RtlUserThreadStart+21

Related

Unknown Error when install Microsoft Machine Learning Server 9.4.7 and Microsoft R Client 3.5.2

I want to install Microsoft Machine Learning Server 9.4.7 and Microsoft R Client 3.5.2, and I download the exe file from https://my.visualstudio.com/Downloads?q=Machine%20Learning%20Server%209.4.7%20for%20Windows&pgroup= and https://my.visualstudio.com/Downloads?q=R%20client&pgroup=.
I followed the instructions to install the software but failed. (https://learn.microsoft.com/en-us/machine-learning-server/install/machine-learning-server-windows-install)
Log file for Microsoft Machine Learning Server
[4868:486C][2020-01-13T20:06:38]i001: Burn v3.10.1.2213, Windows v10.0 (Build 17763: Service Pack 0), path: K:\ServerSetup.exe
[4868:486C][2020-01-13T20:06:38]i000: Initializing string variable 'InstallFolder' to value '[ProgramFiles64Folder]Microsoft\ML Server'
[4868:486C][2020-01-13T20:06:38]i000: Initializing string variable 'CacheFolder' to value '[TempFolder]'
[4868:486C][2020-01-13T20:06:38]i000: Initializing string variable 'MediaFolder' to value '[TempFolder]'
[4868:486C][2020-01-13T20:06:38]i009: Command Line: ''
[4868:486C][2020-01-13T20:06:38]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\lzw\AppData\Local\Temp\Microsoft_Machine_Learning_Server_20200113200638.log'
[4868:486C][2020-01-13T20:06:38]i000: Setting string variable 'WixBundleOriginalSource' to value 'K:\ServerSetup.exe'
[4868:486C][2020-01-13T20:06:38]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'K:\'
[4868:486C][2020-01-13T20:06:38]i000: Setting string variable 'WixBundleName' to value 'Microsoft Machine Learning Server'
[4868:486C][2020-01-13T20:06:38]i000: Setting string variable 'WixBundleManufacturer' to value 'Microsoft'
[4868:486C][2020-01-13T20:06:38]i000: Loading managed bootstrapper application.
[4868:486C][2020-01-13T20:06:38]i000: Creating BA thread to run asynchronously.
[4868:486C][2020-01-13T20:06:43]i500: Shutting down, exit code: 0x0
[4868:486C][2020-01-13T20:06:43]i410: Variable: CacheFolder = C:\Users\lzw\AppData\Local\Temp\
[4868:486C][2020-01-13T20:06:43]i410: Variable: InstallFolder = C:\Program Files\Microsoft\ML Server
[4868:486C][2020-01-13T20:06:43]i410: Variable: MediaFolder = C:\Users\lzw\AppData\Local\Temp\
[4868:486C][2020-01-13T20:06:43]i410: Variable: ProgramFiles64Folder = C:\Program Files\
[4868:486C][2020-01-13T20:06:43]i410: Variable: TempFolder = C:\Users\lzw\AppData\Local\Temp\
[4868:486C][2020-01-13T20:06:43]i410: Variable: WixBundleAction = 5
[4868:486C][2020-01-13T20:06:43]i410: Variable: WixBundleElevated = 0
[4868:486C][2020-01-13T20:06:43]i410: Variable: WixBundleLog = C:\Users\lzw\AppData\Local\Temp\Microsoft_Machine_Learning_Server_20200113200638.log
[4868:486C][2020-01-13T20:06:43]i410: Variable: WixBundleManufacturer = Microsoft
[4868:486C][2020-01-13T20:06:43]i410: Variable: WixBundleName = Microsoft Machine Learning Server
[4868:486C][2020-01-13T20:06:43]i410: Variable: WixBundleOriginalSource = K:\ServerSetup.exe
[4868:486C][2020-01-13T20:06:43]i410: Variable: WixBundleOriginalSourceFolder = K:\
[4868:486C][2020-01-13T20:06:43]i410: Variable: WixBundleProviderKey = {efdbcc7a-24e7-4b05-a849-1568a9737a42}
[4868:486C][2020-01-13T20:06:43]i410: Variable: WixBundleTag =
[4868:486C][2020-01-13T20:06:43]i410: Variable: WixBundleVersion = 9.4.7.0
[4868:486C][2020-01-13T20:06:43]i007: Exit code: 0x0, restarting: No
Log file for Microsoft R client
[4498:5098][2020-01-13T20:24:09]i001: Burn v3.10.1.2213, Windows v10.0 (Build 17763: Service Pack 0), path: D:\360极速浏览器下载\RClientSetup.exe
[4498:5098][2020-01-13T20:24:09]i000: Initializing string variable 'InstallFolder' to value '[ProgramFiles64Folder]Microsoft\R Client'
[4498:5098][2020-01-13T20:24:09]i000: Initializing string variable 'CacheFolder' to value '[TempFolder]'
[4498:5098][2020-01-13T20:24:09]i000: Initializing string variable 'MediaFolder' to value '[TempFolder]'
[4498:5098][2020-01-13T20:24:09]i009: Command Line: ''
[4498:5098][2020-01-13T20:24:09]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\lzw\AppData\Local\Temp\Microsoft_R_Client_20200113202409.log'
[4498:5098][2020-01-13T20:24:09]i000: Setting string variable 'WixBundleOriginalSource' to value 'D:\360极速浏览器下载\RClientSetup.exe'
[4498:5098][2020-01-13T20:24:09]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'D:\360极速浏览器下载\'
[4498:5098][2020-01-13T20:24:09]i000: Setting string variable 'WixBundleName' to value 'Microsoft R Client'
[4498:5098][2020-01-13T20:24:09]i000: Setting string variable 'WixBundleManufacturer' to value 'Microsoft'
[4498:5098][2020-01-13T20:24:09]i000: Loading managed bootstrapper application.
[4498:5098][2020-01-13T20:24:09]i000: Creating BA thread to run asynchronously.
[4498:5098][2020-01-13T20:24:09]i500: Shutting down, exit code: 0x0
[4498:5098][2020-01-13T20:24:09]i410: Variable: CacheFolder = C:\Users\lzw\AppData\Local\Temp\
[4498:5098][2020-01-13T20:24:09]i410: Variable: InstallFolder = C:\Program Files\Microsoft\R Client
[4498:5098][2020-01-13T20:24:09]i410: Variable: MediaFolder = C:\Users\lzw\AppData\Local\Temp\
[4498:5098][2020-01-13T20:24:09]i410: Variable: ProgramFiles64Folder = C:\Program Files\
[4498:5098][2020-01-13T20:24:09]i410: Variable: TempFolder = C:\Users\lzw\AppData\Local\Temp\
[4498:5098][2020-01-13T20:24:09]i410: Variable: WixBundleAction = 5
[4498:5098][2020-01-13T20:24:09]i410: Variable: WixBundleElevated = 0
[4498:5098][2020-01-13T20:24:09]i410: Variable: WixBundleLog = C:\Users\lzw\AppData\Local\Temp\Microsoft_R_Client_20200113202409.log
[4498:5098][2020-01-13T20:24:09]i410: Variable: WixBundleManufacturer = Microsoft
[4498:5098][2020-01-13T20:24:09]i410: Variable: WixBundleName = Microsoft R Client
[4498:5098][2020-01-13T20:24:09]i410: Variable: WixBundleOriginalSource = D:\360极速浏览器下载\RClientSetup.exe
[4498:5098][2020-01-13T20:24:09]i410: Variable: WixBundleOriginalSourceFolder = D:\360极速浏览器下载\
[4498:5098][2020-01-13T20:24:09]i410: Variable: WixBundleProviderKey = {4657acfe-78d8-4b9a-bbd6-ef29b555d84e}
[4498:5098][2020-01-13T20:24:09]i410: Variable: WixBundleTag =
[4498:5098][2020-01-13T20:24:09]i410: Variable: WixBundleVersion = 3.5.2.0
[4498:5098][2020-01-13T20:24:09]i007: Exit code: 0x0, restarting: No
Are you using an internet proxy by any chance?
I ran into the same issue. Running the installation script without a proxy solved the issue for me.

Voximal: Unable to connect to UniMRCP compiled with custom ASR plugin

I have written a custom UniMRCP ASR plugin and wanted it to work with Voximal on Asterisk.
I followed the doc here: https://wiki.voximal.com/doku.php?id=asrproviders:unimrcp.
The VXML works fine but, when I try to record in VXML, I can't see any stream being sent to the UniMRCP server. My UniMRCP server and Asterisk are both on the same machine. I've tried the Voxibot installation installation on EC2 too but encountered the same issue
Below are some of the configurations in Asterisk:
mrcp.conf
[general]
; Default ASR and TTS profiles.
default-asr-profile = uni2
default-tts-profile = speech-nuance5-mrcp2
log-level = DEBUG,NOTICE,INFO
max-connection-count = 100
offer-new-connection = 1
; rx-buffer-size = 1024
; tx-buffer-size = 1024
; request-timeout = 5000
; speech-channel-timeout = 30000
[uni2]
version = 2
; SIP settings
server-ip = 172.17.0.2
server-port = 8060
; SIP user agent
;client-ip = 172.17.0.2
;client-port = 25097
sip-transport = udp
; RTP factory
rtp-ip = 172.17.0.2
rtp-port-min = 4000
rtp-port-max = 5000
; Jitter buffer settings
playout-delay = 50
max-playout-delay = 200
res-speech-unimrcp.conf
[general]
; UniMRCP named profile. Options are:
unimrcp-profile = uni2 ; UniMRCP MRCPv2 Server
log-level = DEBUG,INFO,NOTICE
; Preloaded grammars
[grammars]
;grammar-name = path-to-grammar-file
[mrcpv2-properties]
Recognition-Timeout = 20000
No-Input-Timeout = 15000
[mrcpv1-properties]
Recognition-Timeout = 20000
No-Input-Timeout = 15000
voximal.conf
[general]
autoanswer=yes
videosilence=
audiosilence=
; tried with speechprovider=unimrcp too
speechprovider=unimrcp:uni2
speechscore=50
[control]
forward=#
reverse=*
stop=123456789
pause=
restart=0
skipms=5000
;Optional local license
[license]
;max=1
;key=trial
tts=yes
speech=auto
[prompt]
uri=http://ttsf.voximal.net/tts/pico/tts.php
method=post
format=wav
maxage=-1
[recognize]
sendproperties=0
[account1]
number=8965
name=helloworld
url=file:///var/lib/voximal/record.vxml
speech=automatic
record.vxml
<!-- for testing recording -->
<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml" xml:lang="en-US">
<form>
<block>
<prompt>
<audio src="/var/lib/asterisk/sounds/speech_start.wav"/>
</prompt>
</block>
<record name="msg" beep="true" maxtime="10s" finalsilence="4000ms" dtmfterm="true" type="audio/x-wav">
<prompt timeout="5s">
<audio src="/var/lib/asterisk/sounds/speech_start.wav"/>
</prompt>
</record>
</form>
</vxml>
I don't see the link between the ASR and the record feature (used to record the user's voice without .
If you want to record the audio flow sent to the ASR, you can use the property "recordutterance" (true/false), you will have a shadow variable field_name$.recording, field_name$.recordingsize, field_name$.recordingduration.

After Deploying mywebsite to server can I encrypt the web.config file?

I am trying to encrypt the web.config file after deploying automatically.
As per the Link :https://blogs.iis.net/msdeploy/archive/2013/07/09/webdeploy-3-5-rtw.aspx
I am using below command:
msdeploy.exe –verb:sync –source:iisapp=”sourceTestSite” –dest:iisapp=”destinationTestSite” –EnableRule:EncryptWebConfig
But then I am getting error:
Error Code: ERROR_FAILED_TO_ENCRYPT_WEB_CONFIG
I do not want to first encrypt and then deploy. I am thinking to run deployment script and after deployment it should encrypt automatically probably using MSDEploy command.
I tried below threads but did not get any help:
Failed to encrypt destination web.config when using MS build plugin in Jenkins
Also I wanted to keep my secret file in separate location but I found encryption process will not work for that
How to encrypt a file linked to a web.config
This time I am trying to run command on remote server to encrypt the web.config file by using below code. I am running below code in my machine and trying to encrypt the web.config file present on my myRemoteServer.
$currentDirectory = (Get-Location)
$user = "domain1\username1"
$section = "appSettings"
$app= "/MyWeb"
$version="v4.0.30319"
$computername ="myRemoteServer"
$pwd = ConvertTo-SecureString -String "mysecret#11" -AsPlainText -Force
$credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $user,$pwd
$encryptcmd1= Set-Location "C:\windows\Microsoft.Net\Framework\$version"
$encryptCmd2 = ".\aspnet_regiis.exe -pe ""appSettings"" -app ""/MyWeb"""
$encryptCmd = "$encryptcmd1 $encryptcmd2"
try
{
invoke-command -ComputerName $computername -Credential $credential -ScriptBlock {$encryptCmd}
}
catch
{
Log-Message $_
}
Set-Location $currentDirectory
It doesn't throw any exception. However it is not working and not encrypting web.config file on that server.
I want to know where / what is wrong here.
his function will encrypt a sections of a web.config file.
function Encrypt-ConfigurationSection([int] $id, [string] $app, [string] $section, [string] $version){
$currentDirectory = (Get-Location)
Set-Location "C:\windows\Microsoft.Net\Framework\$version\"
.\aspnet_regiis.exe -pe $section -app $app -site $id -prov "RsaProtectedConfigurationProvider"
Set-Location $currentDirectory
}
Example call
Encrypt-ConfigurationSection 1 ‘/WebApplication1’ ‘connectionStrings’ ‘v4.0.30319’
This function will decrypt a sections of a web.config file.
function Decrypt-ConfigurationSection([int] $id, [string] $app, [string] $section, [string] $version){
$currentDirectory = (Get-Location)
Set-Location "C:\windows\Microsoft.Net\Framework\$version\"
.\aspnet_regiis.exe -pd $section -app $app -site $id
Set-Location $currentDirectory
}
Example Call
Decrypt-ConfigurationSection 1 ‘/WebApplication1’ ‘connectionStrings’ ‘v4.0.30319’
I got help from this website:
https://joshjoubert.wordpress.com/2013/03/28/encrypting-and-decrypting-sections-of-a-web-config-with-powershell/

Oracle not available 11g R2

I had one environment installed Oracle 11g R2 for few months, it was working well for past few months, but this week, I got error when I connect.
My environment:
Windows 7 64 bit with SP1
So I trying to investigate:
Here is my listener.ora
# listener.ora Network Configuration File: D:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\app\Administrator\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME = orcl)
(ORACLE_HOME = D:\app\Administrator\product\11.2.0\dbhome_1)
(GLOBAL_DBNAME=orcl)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.100.134)(PORT = 1521))
)
)
)
ADR_BASE_LISTENER = D:\app\Administrator\product\11.2.0\dbhome_1\log
and my tnsnames.ora
# tnsnames.ora Network Configuration File: D:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.100.134)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
(GLOBAL_NAME = orcl)
)
)
Here is my investigate process:
using LSNRCTL to check listener status(sorry I translate from Chinese to English)
LSNRCTL> status
Connect to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
Listener status
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Production
Start Date 24-12-2014 11:13:04
Normal operation Time 0 day 0 hour 21 minute 32 second
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener config file D:\app\Administrator\product\11.2.0\dbhome_1\network\admin\listener.ora
Listener log file d:\app\administrator\product\11.2.0\dbhome_1\log\diag\tnslsnr\1300313-PC\listener\alert\log.xml
Listener summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.1.100.134)(PORT=1521)))
Service Summary...
service "PLSExtProc" has 1 execute process.
execute process "PLSExtProc", status UNKNOWN, has 1 handler for this service...
service "orcl" has 1 execute process.
execute process "orcl", status UNKNOWN, has 1 handler for this service...
command complete
Using TNSPING
D:\app\Administrator\product\11.2.0\dbhome_1\BIN>tnsping orcl
TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 24-12-2014 11:39:23
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Config file:
D:\app\Administrator\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
Using TNSNAMES adaptor to parse alias
try connecting (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.100.134)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = orcl) (GLOBAL_NAME = orcl)))
OK (40 msec)
Using SQLPLUS
D:\app\Administrator\product\11.2.0\dbhome_1\BIN>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Wednesday 12.24 11:43:17 2014
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connect to idle execution process.
SQL> startup
ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00132: syntax error or unresolved network name 'LISTENER_ORCL'
SQL> exit
disconnected
D:\app\Administrator\product\11.2.0\dbhome_1\BIN>sqlplus scott/tiger#orcl
SQL*Plus: Release 11.2.0.1.0 Production on Wednesday 12.24 11:44:01 2014
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Process ID: 0
Session ID: 0 Sequence: 0
my environment variable as
D:\app\Administrator\product\11.2.0\dbhome_1\BIN>echo %ORACLE_HOME%
D:\app\Administrator\product\11.2.0\dbhome_1
D:\app\Administrator\product\11.2.0\dbhome_1\BIN>echo %ORACLE_SID%
orcl
Appreciated if any idea.
Sorry, I found wired thing, that oracle init config missing. Thank you very much.

How can I have a Windows Service, installed using OctopusDeploy, use an app.config?

So far, I've been able to create a Windows Service, which I can then get TeamCity to build and pack up and make available for Octopus Deploy.
What I can't seem to do, is have an app.config which has a connection string in it and use that connection string.
The following is my Deploy.ps1:
# These variables should be set via the Octopus web portal:
#
# ServiceName - Name of the Windows service
#
# sc.exe is the Service Control utility in Windows
# Default the service name
if (! $ServiceName)
{
$ServiceName = "OctoService"
}
Write-Host "Service Name:" $ServiceName
# Get the exe name based ont the directory
$contentPath = (Join-Path $OctopusPackageDirectoryPath "content")
$configName = (Get-ChildItem $contentPath\*.config -Name | Select-Object -First 1)
$binPath = (Join-Path $OctopusPackageDirectoryPath "lib\net40")
$exeName = (Get-ChildItem $binPath\*.exe -Name | Select-Object -First 1)
$fullPath = (Join-Path $binPath $exeName)
Write-Host "Service Path:" $fullPath
Write-Host "Config Path:" (Join-Path $contentPath $configName)
Copy-Item (Join-Path $contentPath $configName) $binPath
$service = Get-Service $ServiceName -ErrorAction SilentlyContinue
if (! $service)
{
Write-Host "The service will be installed"
New-Service -Name $ServiceName -BinaryPathName $fullPath -StartupType Automatic
}
else
{
Stop-Service $ServiceName -Force
$fullPath = Resolve-Path $fullPath
& "sc.exe" config "$ServiceName" binPath= $fullPath start= auto | Write-Host
Start-Service $ServiceName
}
Here's my .nuspec file:
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>$author$</authors>
<owners>$author$</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
<copyright>Copyright 2012</copyright>
</metadata>
<files>
<file src="app.config" target="content" />
<file src="Deploy.ps1" />
</files>
</package>
If I try to access ConfigurationManager.ConnectionStrings["MyConnectionString"], I'll get a null reference.
Any suggestions?
my money is on you needing to name your app.config to exename.exe.config so it is picked up by your service.
App.config is the 'temporary' name used in the ide, it gets renamed as part of the build to whatever the exe name is

Resources