tag:blogger.com,1999:blog-15708189061683329672024-03-13T04:10:00.410+02:00The Sysadmin HimselfWindows Server, Linux, SharePoint, etc.Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.comBlogger62125tag:blogger.com,1999:blog-1570818906168332967.post-44441663820823658322014-08-08T00:22:00.002+03:002014-08-08T00:27:12.699+03:00Office365 SharePoint - Rename Multiple Files in Document LibraryUnfortunately, <b>Office 365 SharePoint</b> doesn't let you to do too much using the built-in <b>PowerShell </b>cmdlets. Sometimes this trick can also come in handy with <b>On Premise SharePoint </b>installations when you just need a quick way to manipulate files in a library. Using PowerShell commands this is much more complicated.<br />
Last day I ran into an issue (maybe I'll post that later) when I had to rename multiple files in a Document Library that resides on an <b>Office 365 SharePoint</b> instance.<br />
<br />
What I did was the following:<br />
<h4>
</h4>
<div>
<br />
<br /></div>
<h4>
Step1 - Add the website to the IE's Trusted Sites</h4>
<div>
<br /></div>
<div>
First of all, you have to use <b>Internet Explorer</b>. <b>Open in Explorer</b> mode only works with this browser. Add the website to the trusted site's list then <b>restart the browser</b>. Otherwise it will complain later.</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiB5Ui6tnGq7CHY4i-xs7m0C53NE5NQ0QkIT8R_RI3WSbqWjjbKJpRi-WsV8EEpqS41BJaSw9M6n8SbORSCeozTGBvqWYIGu7bsXHjmlThocJfNEkZGyepM6HO13S06i3-6N-GDM49bwKI/s1600/SharePoint+Office+365+Add+Website+to+Trusted+Sites.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiB5Ui6tnGq7CHY4i-xs7m0C53NE5NQ0QkIT8R_RI3WSbqWjjbKJpRi-WsV8EEpqS41BJaSw9M6n8SbORSCeozTGBvqWYIGu7bsXHjmlThocJfNEkZGyepM6HO13S06i3-6N-GDM49bwKI/s1600/SharePoint+Office+365+Add+Website+to+Trusted+Sites.PNG" height="320" width="250" /></a></div>
<div>
<br /></div>
<div>
Now browse to your <b>SharePoint Library</b> again.</div>
<h4>
</h4>
<div>
<br />
<br /></div>
<h4>
Step 2 - Open the Library in Explorer</h4>
<div>
<br /></div>
<div>
Go to <b>Library</b> -> <b>Open with Explorer</b></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlF18W_hj1KqN-yUrKYtGqp3g7MTzft1rLfImCgE-9YlxZBgGnJnHHhG3CdFxb_ul7o-BGXTIQzPjRqkAg3TX2PVEcMz3LVQAQIjBpXcdIH_O0rf2mdN65AM9sAYxwCQCUXD6HxqDQZa0/s1600/SharePoint+Office+365+Open+In+Explorer.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlF18W_hj1KqN-yUrKYtGqp3g7MTzft1rLfImCgE-9YlxZBgGnJnHHhG3CdFxb_ul7o-BGXTIQzPjRqkAg3TX2PVEcMz3LVQAQIjBpXcdIH_O0rf2mdN65AM9sAYxwCQCUXD6HxqDQZa0/s1600/SharePoint+Office+365+Open+In+Explorer.PNG" height="116" width="640" /></a></div>
<div>
<br /></div>
<h4>
</h4>
<div>
<br /></div>
<h4>
Step 3 - Map the location as a Network Drive</h4>
<div>
<br /></div>
<div>
Now that you can see the library in Explorer, you need to grab the <b>URL</b> from the <b>Address bar</b> (ctrl + c) and map a network drive:</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieGGTU1vrLPHHOjXj1u8MiMWvhOTuyR61Nte-UxDLMYm1e9xu6y13t5SMsBdM2fVwowfv6R_7Ts5GB7L6GzqmvTRS09N7mXXIZUcvxZX95bcdU84rnkQyOfi_1cibNLUdAeOUZMyAQMYE/s1600/SharePoint+Office+365+Explorer+View.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieGGTU1vrLPHHOjXj1u8MiMWvhOTuyR61Nte-UxDLMYm1e9xu6y13t5SMsBdM2fVwowfv6R_7Ts5GB7L6GzqmvTRS09N7mXXIZUcvxZX95bcdU84rnkQyOfi_1cibNLUdAeOUZMyAQMYE/s1600/SharePoint+Office+365+Explorer+View.PNG" height="187" width="400" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
Press the <b>ALT + T</b> -><b> Map Network Drive</b></div>
<div>
<b><br /></b></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9cZOS8xoF0MUqGJx6qSCyrPTMbXwdO2lhUpKuL7UeOHaQvJv_LpkgcALSFc745Ch4qooDnUd__s90rxoeLj_UU9A5xViVIeLB11LPATpkB6dvCoXX6mfOu63TkGSQU6rpamLzoyMeO9Q/s1600/SharePoint+Office+365+Explorer+View+Map+Network+Drive.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9cZOS8xoF0MUqGJx6qSCyrPTMbXwdO2lhUpKuL7UeOHaQvJv_LpkgcALSFc745Ch4qooDnUd__s90rxoeLj_UU9A5xViVIeLB11LPATpkB6dvCoXX6mfOu63TkGSQU6rpamLzoyMeO9Q/s1600/SharePoint+Office+365+Explorer+View+Map+Network+Drive.PNG" height="181" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div>
Choose a <b>drive letter</b>, paste your <b>path </b>and <b>Finish</b>. You may <b>not </b>want to reconnect the drive at logon.</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8Yo_swfHAduxUgJFqjLgFqcK3j9Qpi8jM7qkyF5kiVprqt0Ta6DXvTSkkkBFxaLFcHEqsALR7-DONWPjLMto8O1NgI9fYvqYBRyw1-yilQPaJpw8HJjavVig6nDJ-MsuI1dUO__iyajo/s1600/SharePoint+Office+365+Explorer+View+Map+Network+Drive+3.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8Yo_swfHAduxUgJFqjLgFqcK3j9Qpi8jM7qkyF5kiVprqt0Ta6DXvTSkkkBFxaLFcHEqsALR7-DONWPjLMto8O1NgI9fYvqYBRyw1-yilQPaJpw8HJjavVig6nDJ-MsuI1dUO__iyajo/s1600/SharePoint+Office+365+Explorer+View+Map+Network+Drive+3.PNG" height="315" width="400" /></a></div>
<div>
<br /></div>
<div>
Now, that you can see your files as a drive you can use your favorite tool to manipulate them.</div>
<div>
<br /></div>
<div>
<br /></div>
<h4>
Step 4 - Use your favorite tool to manipulate the files</h4>
<div>
<br /></div>
<div>
I just used cmd to rename all pdf files but you can do much, much more with <b>Total Commander</b> if you have to.</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgL3bvXJt_Y-j8wlK6vOZukFnF3YbHfavplcR0p91kaUH7ymMexNaE7PBP4HU_dsLgCZweJxIZoJ6BTyEo0MZQK_DA3ACUYSLZ29Y35vHhXtgDIRCWKkBP7ma_3Fru9oCWchgCJl_PE4LI/s1600/SharePoint+Office+365+Rename+Files+in+CMD.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgL3bvXJt_Y-j8wlK6vOZukFnF3YbHfavplcR0p91kaUH7ymMexNaE7PBP4HU_dsLgCZweJxIZoJ6BTyEo0MZQK_DA3ACUYSLZ29Y35vHhXtgDIRCWKkBP7ma_3Fru9oCWchgCJl_PE4LI/s1600/SharePoint+Office+365+Rename+Files+in+CMD.PNG" height="300" width="400" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
Of course, this method work with <b>SharePoint Server</b> (On Premise) as well.</div>
Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com0London, UK51.5073509 -0.1277582999999822351.1912379 -0.77320529999998222 51.8234639 0.51768870000001777tag:blogger.com,1999:blog-1570818906168332967.post-42291915209724043942014-04-17T15:02:00.000+03:002014-04-17T15:19:42.755+03:00Renewing JIRA's the SSL Certificate on WindowsBasically this is <b>JAVA</b> specific stuff.<br />
<br />
<h3>
Environment:</h3>
<br />
<ul>
<li>Windows Server 2008 R2</li>
<li>JIRA Standalone (6.2) (Installed in C:\JIRA)</li>
<li>JDK 1.7 (Installed to C:\JDK)</li>
</ul>
<div>
AFAIK this method applies to all JIRA and JAVA/JDK editions.</div>
<br />
<br />
<h3>
Step 1: Identifying the JKS (Java KeyStore) file location</h3>
<div>
<div>
<br />
This is the file where the certificates used by Tomcat are stored. The JKS file is linked with JIRA in the <b>server.xml</b> file that is located under the <b>JIRA INSTALL DIRECTORY\conf\server.xml</b> (In this example C:\JIRA\conf\server.xml). Open in notepad and search for JKS to find the section we're insterested in. </div>
<div>
<br /></div>
<div>
</div>
<div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<span style="color: #666600;"><span style="color: #000088;"><connector span=""><span style="color: #660066;">SSLEnabled</span><span style="color: #666600;">=</span><span style="color: #008800;">"true"</span> <span style="color: #660066;">acceptCount</span><span style="color: #666600;">=</span><span style="color: #008800;">"100"</span> <span style="color: #660066;">clientAuth</span><span style="color: #666600;">=</span><span style="color: #008800;">"false"</span> <span style="color: #660066;">connectionTimeout</span><span style="color: #666600;">=</span><span style="color: #008800;">"20000"</span> <span style="color: #660066;">disableUploadTimeout</span><span style="color: #666600;">=</span><span style="color: #008800;">"true"</span> <span style="color: #660066;">enableLookups</span><span style="color: #666600;">=</span><span style="color: #008800;">"false"</span> <b><span style="background-color: yellow;"><span style="color: #660066;">keyAlias</span><span style="color: #666600;">=</span><span style="color: #008800;">"tomcat"</span></span> <span style="background-color: yellow;"><span style="color: #660066;">keystoreFile</span><span style="color: #666600;">=</span><span style="color: #008800;">"C:\JIRA\cert\jira.jks"</span> <span style="color: #660066;">keystorePass</span><span style="color: #666600;">=</span><span style="color: #008800;">"somepass"</span></span> </b><span style="color: #660066;">keystoreType</span><span style="color: #666600;">=</span><span style="color: #008800;"><b>"JKS"</b></span> <span style="color: #660066;">maxHttpHeaderSize</span><span style="color: #666600;">=</span><span style="color: #008800;">"8192"</span> <span style="color: #660066;">maxSpareThreads</span><span style="color: #666600;">=</span><span style="color: #008800;">"75"</span> <span style="color: #660066;">maxThreads</span><span style="color: #666600;">=</span><span style="color: #008800;">"150"</span> <span style="color: #660066;">minSpareThreads</span><span style="color: #666600;">=</span><span style="color: #008800;">"25"</span> <span style="color: #660066;">port</span><span style="color: #666600;">=</span><span style="color: #008800;">"443"</span> <span style="color: #660066;">protocol</span><span style="color: #666600;">=</span><span style="color: #008800;">"org.apache.coyote.http11.Http11Protocol"</span> <span style="color: #660066;">scheme</span><span style="color: #666600;">=</span><span style="color: #008800;">"https"</span> <span style="color: #660066;">secure</span><span style="color: #666600;">=</span><span style="color: #008800;">"true"</span> <span style="color: #660066;">sslProtocol</span><span style="color: #666600;">=</span><span style="color: #008800;">"TLS"</span> <span style="color: #660066;">useBodyEncodingForURI</span><span style="color: #666600;">=</span><span style="color: #008800;">"true"</span> <span style="color: #000088;">/></span></connector></span></span></div>
</div>
</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<br />
<br /></div>
<div>
<h3>
Step 2: Creating a CSR</h3>
<div>
<br /></div>
<div>
For this you use <b>keytool.exe </b>that is located in your JDK instance's bin directory. You will be asked for the keystore password that can also be found on the xml mentioned earlier. Make sure to mention the <b>-alias</b> parameter with the <b>keyAlias</b> attribute from the <b>settings.xml </b>file.</div>
<div>
<br /></div>
<div>
C:\JDK\bin> keytool -certreq -keystore "C:\JIRA\cert\jira.jks" -alias tomcat</div>
<div>
<br /></div>
<div>
No questions asked, the request will use the same properties as your current certificate. Now copy-paste the CSR from the console and send it to your CA that will issue the certificate for you.</div>
</div>
<div>
<br />
<br /></div>
<div>
<h3>
Step 3: Installing the new certificate</h3>
<div>
<br /></div>
<div>
Once you got the new certificate save it as a <b>.cer</b> file (I'll save it as <b>C:\JIRA\cert\jira.cer</b> in this example) and open its properties to export <b>*all*</b> the CA certificates from the certification path:</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR2Lg3ouB0K8XiR2xgW1ulNz4nPNUz324Mhosah6rd6isGX7EktJe2H-lZR9ctcimjGs_MjONONtn8E-UrlsgZIy2h_0SuTpWGn0TDOIp2_DdDtCZQu4HsdKhaEjvx_SV-Gb0VzIFapwM/s1600/certificate+properties1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR2Lg3ouB0K8XiR2xgW1ulNz4nPNUz324Mhosah6rd6isGX7EktJe2H-lZR9ctcimjGs_MjONONtn8E-UrlsgZIy2h_0SuTpWGn0TDOIp2_DdDtCZQu4HsdKhaEjvx_SV-Gb0VzIFapwM/s1600/certificate+properties1.jpg" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div>
<br /></div>
<div>
Click on <b>View Certificate -> Details -> Copy to File </b>and export it in the <b>DER encoded binary X.509</b> format.</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivxWWnRfsaB6WjwEEAfVgVt86ivdawT5GkPGZalKd7_V80u2gzFPEfPXX3LoR1Jd4aYiAwdosrnQFbRPAHgO2xygynavfQb37iZ9r04tRR6hzwlFCae1s3Wgt9LEjOvwm96H8tU0Ed-bk/s1600/certificate+export.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivxWWnRfsaB6WjwEEAfVgVt86ivdawT5GkPGZalKd7_V80u2gzFPEfPXX3LoR1Jd4aYiAwdosrnQFbRPAHgO2xygynavfQb37iZ9r04tRR6hzwlFCae1s3Wgt9LEjOvwm96H8tU0Ed-bk/s1600/certificate+export.JPG" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div>
</div>
<div>
<br /></div>
<div>
After the exports, in this example I'll have 3 certificates to import into the KeyStore file:</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>• <b>jira.cer</b> (the certificate I got from the CA)</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>• <b>ca-root.cer</b> (the first certificate exported in the Certification Path)</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>• <b>ca-intermediary.cer</b> (the second certificate exported in the Certification Path)</div>
<div>
<br /></div>
<div>
So go back to the <b>Command Prompt</b>, you JAVA instance's <b>bin directory</b> and use <b>keytool.exe</b> to import all these certificates. When you're asked if you want to import the certificate, type <b>yes </b>at the console.</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
C:\JDK\bin><b>keytool.exe</b> -importcert -keystore "C:\JIRA\cert\jira.jks" -storepass somepass -trustcacerts -alias ca-root -file "C:\JIRA\cert\ca-root.cer"
C:\JDK\bin><b>keytool.exe</b> -importcert -keystore "C:\JIRA\cert\jira.jks" -storepass somepass -trustcacerts -alias ca-intermediate -file "C:\JIRA\cert\ca-intermediate.cer"
C:\JDK\bin><b>keytool.exe</b> -importcert -keystore "C:\JIRA\cert\jira.jks" -storepass somepass -trustcacerts -alias tomcat -file "C:\JIRA\cert\jira.cer"
</div>
<div>
<br /></div>
<div>
<b><br /></b>
<b>Restart Tomcat (JIRA) </b>and you're done.</div>
</div>
<div>
<br /></div>
Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com0tag:blogger.com,1999:blog-1570818906168332967.post-76058147042721604312014-04-09T22:21:00.000+03:002014-05-03T15:40:37.614+03:00Top FREE Cloud Storage Providers - 2014Short and on subject (as always :).<br />
<br />
Did some research on the market and currently these are the top <b>Cloud Storage Providers</b> that offer the <b>Most Free Space</b> and have <b>Desktop and Mobile </b>(iOS, Android) <b>Sync Clients</b>.<br />
Everyone is starting the list with Dropbox but that's outdated offering a shameful of 2GB.<br />
<br />
<ol>
<li><a href="http://mega.co.nz/">Mega.co.nz</a> - <b>50 GB</b></li>
<li><a href="http://www.firedrive.com/">FireDrive</a> - <b>50 GB</b></li>
<li><a href="http://bitcasa.com/">Bitcasa.com</a> - 2<b>0 GB </b>(Sync up to 3 devices)</li>
<li><a href="https://www.copy.com/">Copy.com</a><b> - 15 GB</b> (Or you get <b>20GB</b> if you register from <a href="https://copy.com/?r=Q1fkCV">this</a> referral)</li>
<li><a href="https://www.google.com/drive/">Google Drive</a> - <b>15 GB</b></li>
<li><a href="http://en.4sync.com/">4sync.com</a> - <b>15 GB</b></li>
<li><a href="http://www.mediafire.com/">MediaFire.com</a> - <b>10 GB</b></li>
<li><a href="https://www.box.com/">Box.com</a><b> - 10 GB</b> (250 MB max file size)</li>
<li><a href="https://onedrive.live.com/">Microsoft OneDrive</a> - <b>7 GB</b></li>
</ol>
<br />
<div>
Note - I personally recommend Copy.com, it's a great service. Works almost just like Dropbox but you get a ton of space. You get an additional 5GB for every referred friend.<br />
<br />
Although you can scrape up a bunch of free space this way I don't recommend installing more than two sync clients on your computer because it can seriously affect the computers performance.<br />
<div>
<br /></div>
</div>
<div>
I will update this list as soon as something interesting comes up.<br />
<br />
<h3>
Additional Resources</h3>
</div>
<div>
<ul>
<li><a href="http://www.cnet.com/how-to/how-to-score-50gb-of-free-cloud-storage-from-box/">http://www.cnet.com/how-to/how-to-score-50gb-of-free-cloud-storage-from-box/</a></li>
<li><a href="http://mobileoffice.about.com/b/2014/02/25/get-up-to-8gb-more-of-free-onedrive-storage-space.htm">http://mobileoffice.about.com/b/2014/02/25/get-up-to-8gb-more-of-free-onedrive-storage-space.htm</a></li>
</ul>
<br />
<h3>
Updates</h3>
</div>
<div>
<ul>
<li>5/3/14 - Adding <a href="http://www.firedrive.com/">FireDrive</a> to #2 offering a mind-blowing free space of <b>50GB </b>and no file size limit.</li>
</ul>
</div>
Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com0tag:blogger.com,1999:blog-1570818906168332967.post-77440033174092268702014-03-24T12:16:00.002+02:002014-03-24T12:22:43.841+02:00VBoxManage modifyhd Code CO_E_SERVER_EXEC_FAILURE (0x80080005) - Server execution failedThis is a lol one. I tried extending the hard disk of a Virtual Machine and received the following error:<br />
<br />
<pre class="brush: plain;">C:\Program Files\Oracle\VirtualBox>VBoxManage.exe modifyhd "E:\Virtual Machines\JIRA\Windows Server 2008.vdi" --resize 40960
VBoxManage.exe: error: Failed to create the VirtualBox object!
VBoxManage.exe: error: Code CO_E_SERVER_EXEC_FAILURE (0x80080005) - Server execution failed (extended info not available)
VBoxManage.exe: error: Most likely, the VirtualBox COM server is not running or failed to start.
</pre>
<br />
<h3>
The S<b>olution</b></h3>
<div>
<b><br /></b></div>
<div>
<b>Do *not* start Command Prompt as admin!</b></div>
<div>
<b><br /></b></div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQyS-TiV429wEnSBLz6ei8QvXmMt33VjUXAinjt1EVfSK2q4QP2I8HAeNxaJubbBWwB0n3mGxZCpxPLIYVNegUkjwX5Zd8v1swUhW8_A2QBYa91Of5pdsPsObpI3C1ib_zflbdXkLmhI8/s1600/vboxmanage+modifyhd.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQyS-TiV429wEnSBLz6ei8QvXmMt33VjUXAinjt1EVfSK2q4QP2I8HAeNxaJubbBWwB0n3mGxZCpxPLIYVNegUkjwX5Zd8v1swUhW8_A2QBYa91Of5pdsPsObpI3C1ib_zflbdXkLmhI8/s1600/vboxmanage+modifyhd.PNG" height="244" width="640" /></a></div>
Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com2tag:blogger.com,1999:blog-1570818906168332967.post-73299031569911244162014-03-21T20:44:00.000+02:002014-03-21T23:00:01.485+02:00Cannot set unknown member 'CompositeTask.PreserveIncompleteTasks'. HTTP headers received from the server<h3>
The problem</h3>
<div>
<br /></div>
<div>
Today I encountered a strange issue when trying to publish a basic <b>SharePoint 2013 Workflow</b> that has a <b>Start Task Process</b> action in it.</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWD3xOisUGudr-PvcXjZBG_WFtM9wTB5bZn-hClpNNbBCDvEPZp4Feo3BINdWCGYYI0Fmq7WiOCeip939bqsl9F74VDXuQzKlVnpKJA_loTZ-aoNxRLi1nDbFvxU2JpcZiMDoQHm1O2Gc/s1600/Start+Task+Process+Workflow.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWD3xOisUGudr-PvcXjZBG_WFtM9wTB5bZn-hClpNNbBCDvEPZp4Feo3BINdWCGYYI0Fmq7WiOCeip939bqsl9F74VDXuQzKlVnpKJA_loTZ-aoNxRLi1nDbFvxU2JpcZiMDoQHm1O2Gc/s1600/Start+Task+Process+Workflow.png" height="171" width="640" /></a></div>
<div>
<br /></div>
<div>
The error I received was the following:</div>
<div>
<br /></div>
<pre class="brush: plain;">Cannot set unknown member 'CompositeTask.PreserveIncompleteTasks'. HTTP headers received from the server
Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors:
Cannot set unknown member 'CompositeTask.PreserveIncompleteTasks'. HTTP headers received from the server - ActivityId: 51341428-f7a1-4856-8303-fcbc699335ea. NodeId: SPSRV. Scope: /SharePoint/default/8f0c9dfe-6f01-499c-a356-a417da9b39b4/53d5e7f1-0360-4909-8997-71eaf26b140d. Client ActivityId : a1627f9c-bdfc-80a3-b6fd-cf246a4e8993. ---> System.Net.WebException: The remote server ret
</pre>
<br />
<br />
<h3>
Solution</h3>
<br />
Checking the logs didn't provide any useful clue. Digging the net I found a post (linked at the bottom) that suggested re-registering the <b>SharePoint 2013 Workflow Service</b>. So I did that.
<br />
<br />
<pre class="brush: powershell;">Register-SPWorkflowService -SPSite https://portal.mydomain.net -WorkflowHostUri https://spsrv:12290 -Force
</pre>
<br />
<b>Question: </b>Will this command affect my currently running workflows?<br />
<b>Answer: </b>No, all workflows will continue running smoothly, even if they are in progress, paused or waiting for an item to change. Tested.<br />
<br />
<br />
<h3>
Resources</h3>
<br />
<ul>
<li><a href="http://social.technet.microsoft.com/Forums/en-US/15e9a231-7737-44fb-9207-3945c44b1001/spd2013-workflow-publish-failed-for-ept-site-workflow?forum=projserv2010setup">http://social.technet.microsoft.com/Forums/en-US/15e9a231-7737-44fb-9207-3945c44b1001/spd2013-workflow-publish-failed-for-ept-site-workflow?forum=projserv2010setup</a></li>
<li><a href="http://ranaictiu-technicalblog.blogspot.com/2013/02/sharepoint-2013-workflow-manager.html">http://ranaictiu-technicalblog.blogspot.com/2013/02/sharepoint-2013-workflow-manager.html</a></li>
</ul>
<br />
<div lang="x-none">
<br /></div>
Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com1tag:blogger.com,1999:blog-1570818906168332967.post-17053527823748757602014-03-17T20:17:00.000+02:002014-03-18T11:48:38.757+02:00SharePoint: Are there any Users currently on the site?<h3>
Problem</h3>
<div>
<br /></div>
<div>
Ever wondered is there anyone connected to the <b>SharePoint Site </b>before doing an <b>iisreset </b>or a <b>server reboot</b>? Or how much the site is used on a daily basis?</div>
<div>
<br /></div>
<div>
<br /></div>
<h3>
Solution</h3>
<div>
<br /></div>
<div>
The <b>Performance Monitor</b> tool is just about perfect for this. You can make a custom console, save it and use later. Or you can collect data over time to have a better overview on the server usage (Data Collector Sets section, not covered in this post).</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgasldKbVz1LiHxPONapOq0MWhyphenhyphengYt2qSJmEpy0TfTtfWfdPDYYggF7UDdokRKqSDJVA92ZPgN3FDNu4F3w3TfkiUvPPIzGygT4C_DdACRppcv-y4f9MaZMHkUT1lF20h21F2tkKeiOaWQ/s1600/perfmon.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgasldKbVz1LiHxPONapOq0MWhyphenhyphengYt2qSJmEpy0TfTtfWfdPDYYggF7UDdokRKqSDJVA92ZPgN3FDNu4F3w3TfkiUvPPIzGygT4C_DdACRppcv-y4f9MaZMHkUT1lF20h21F2tkKeiOaWQ/s1600/perfmon.PNG" height="428" width="640" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
Below I'll detail step by step how to create a custom <b>MMC Console</b>.</div>
<div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<ol>
<li>First, start a blank <b>mmc</b> console<br /><br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWw2Bput_NY58GIejvsbH99DrpOkwqCY7pajLKnGX8vSROldRTbtEHYA2MUjLacmBV9O8vwCoonW6pHHjrGNfF-jmShghPf4R0OcNaJw2vGcetjJ0sUrXEBtc1ZWN2ovIJ7rfw2f19klo/s1600/start+mmc.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWw2Bput_NY58GIejvsbH99DrpOkwqCY7pajLKnGX8vSROldRTbtEHYA2MUjLacmBV9O8vwCoonW6pHHjrGNfF-jmShghPf4R0OcNaJw2vGcetjJ0sUrXEBtc1ZWN2ovIJ7rfw2f19klo/s1600/start+mmc.PNG" /></a><br /><br /><br /></li>
<li>Add a <b>Performance Monitor</b> Snap-In<br /><br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDWPUnyzAzYHMsmOA8fS0KiR1vyO85wVtBtvWbgty6HQmz8ez_aIlT8yvYjNbIOSh94YCDuzMKnRqKhzavNuFjr1BRrqkt0Olce6aWks346M3ShLNxUsRvoJ4tUT7PdCqidpi63g3cVyc/s1600/Add-Remove+Snap-in.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDWPUnyzAzYHMsmOA8fS0KiR1vyO85wVtBtvWbgty6HQmz8ez_aIlT8yvYjNbIOSh94YCDuzMKnRqKhzavNuFjr1BRrqkt0Olce6aWks346M3ShLNxUsRvoJ4tUT7PdCqidpi63g3cVyc/s1600/Add-Remove+Snap-in.PNG" height="302" width="320" /></a><br /><br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgulNQsiOZeHFaH3HVG90a0q8Ty4UgvfXXF3PVjjCgYRoMX0j2sKC0YKTHEYClL1NHp7Ymyb3SRo-hjPOlS1USTrjaPDIZYKzsObz9gp8-nfyzdwlxWQ2IOPaOGCUykryVCiBu48ksg9X4/s1600/Add-Remove+Snap-in-2.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgulNQsiOZeHFaH3HVG90a0q8Ty4UgvfXXF3PVjjCgYRoMX0j2sKC0YKTHEYClL1NHp7Ymyb3SRo-hjPOlS1USTrjaPDIZYKzsObz9gp8-nfyzdwlxWQ2IOPaOGCUykryVCiBu48ksg9X4/s1600/Add-Remove+Snap-in-2.PNG" height="454" width="640" /></a><br /><br /><br /></li>
<li>You've got a blank <b>Performance Monitor Console</b>. Now you have to add the <b>Counters</b>.<br /><br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFq2E_VqdyjE5D2qlXiAAESSuqlYbtNgu5yyzT47lkoxtHDjJnXa3jfJKL3t0sAIFiOhxfF36FnMbJAikmmHKmSe-D3tomgM_YEG3TLIbok5gxE8iqC7MfhF1i7ZpCIeArDw1IxDkACU4/s1600/Blank+Performance+Monitor+Counter.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFq2E_VqdyjE5D2qlXiAAESSuqlYbtNgu5yyzT47lkoxtHDjJnXa3jfJKL3t0sAIFiOhxfF36FnMbJAikmmHKmSe-D3tomgM_YEG3TLIbok5gxE8iqC7MfhF1i7ZpCIeArDw1IxDkACU4/s1600/Blank+Performance+Monitor+Counter.PNG" height="315" width="640" /></a><br /><br /></li>
<li>Click on the green <b>Plus Sign </b>and find the following counters:<br /><br /><b>Web Service </b>Category<br />- Current Anonymous Users<br />- Current Non-Anonymous Users<br /><br />At the <b>Instances section </b>you can select a particular website or just <b>_Total</b>.<br /><br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwhsBoDH7_LA4MUl4Nu_ugmtHPIkZmNFtoQAnYDo1BFds2Wi4dTuWc-AkqHUeGZzxhwFZaAAvd2chh3-JCcnFRUAiedvDZ9i_UxI7eE-5a4gL02m25q0WPcL5Ofd7nsyvxT-A4hkUqvGc/s1600/Add+Counters+in+Performance+Monitor.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwhsBoDH7_LA4MUl4Nu_ugmtHPIkZmNFtoQAnYDo1BFds2Wi4dTuWc-AkqHUeGZzxhwFZaAAvd2chh3-JCcnFRUAiedvDZ9i_UxI7eE-5a4gL02m25q0WPcL5Ofd7nsyvxT-A4hkUqvGc/s1600/Add+Counters+in+Performance+Monitor.PNG" height="512" width="640" /></a><br /><br />I also like to add other helpful counters like CPU Usage, Memory, etc. For more info on counters please consult <a href="http://www.enduria.eu/key-performance-counters-and-their-thresholds-for-windows-server-recommended-by-microsoft/" target="_blank">this</a> blog post.<br /><br /><br /></li>
<li>Go to <b>View -> Customize</b> and remove the clutter<br /><br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMDxiYy4A4teE2H7BaF7WOKnzdXtVKY9Kj3yL3NPrde21JjEcY7MFT408fPzIGKwp_Kstingz2P6-jDja3qS8dTThS6QyKr6IRlN1H3Nk4k6YdaoMptItq4o1LvbjSvlv5cZDP6MPplsU/s1600/Customize+View.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMDxiYy4A4teE2H7BaF7WOKnzdXtVKY9Kj3yL3NPrde21JjEcY7MFT408fPzIGKwp_Kstingz2P6-jDja3qS8dTThS6QyKr6IRlN1H3Nk4k6YdaoMptItq4o1LvbjSvlv5cZDP6MPplsU/s1600/Customize+View.PNG" /></a><br /><br /><br /></li>
<li>Go to <b>File -> Save As</b> and save the console for later use. There you go.<br /><br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8oL72qKPcN7VNE1mp_1NYIcI67tijFc82aX5VuZ9s-CDXlNPmgiVRmc-xvR_NuPp2AeMdptIqISAMURViJreD5z0vXPJSxbJMyrxnONLVGc5IojJJVjliWT7lv4_q5RyJ_5EGsy_r3vk/s1600/Perfmon+Final.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8oL72qKPcN7VNE1mp_1NYIcI67tijFc82aX5VuZ9s-CDXlNPmgiVRmc-xvR_NuPp2AeMdptIqISAMURViJreD5z0vXPJSxbJMyrxnONLVGc5IojJJVjliWT7lv4_q5RyJ_5EGsy_r3vk/s1600/Perfmon+Final.PNG" height="326" width="640" /></a></li>
</ol>
<div>
<br /></div>
</div>
<div>
Obviously, you can use this to monitor any kind of IIS Website like TFS, etc.</div>
Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com0tag:blogger.com,1999:blog-1570818906168332967.post-76415503565411653882014-03-04T18:45:00.001+02:002014-03-04T18:45:02.522+02:00Updating Permissions on List Items via PowerShellThe following script crawls all document libraries from a path of site and looks for *budget*.xls* and will replace all permissions on the Item with Read.<br />
The script is useful to cut access for a pattern of files.<br />
<br />
<pre class="brush: powershell;">
if ((Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null)
{
Add-PSSnapin Microsoft.SharePoint.PowerShell
}
$site = get-spsite -identity "http://myspportal"
foreach($web in $site.AllWebs)
{
if ($web.Url.Contains("http://myspportal/HR/")) # Look for only under HR
{
$Lists = $web.Lists | Where-Object {$_.Title -Like "*Reports*"} # Pattern to look for in LISTS names
$roleReadOnly = $web.RoleDefinitions["Read"]
foreach($list in $lists)
{
foreach($item in $list.Items | Where-Object {$_.Name -like "*budget*.xls*"}) # Filename pattern is *budget*.xls*
{
Write-Host $item.ParentList.ParentWeb.Url+'/'+$item.URL + ' ' + $item.Name
if ($item.HasUniqueRoleAssignments -eq $false)
{
$item.BreakRoleInheritance($true);
}
foreach ($ra in $item.RoleAssignments | Where-Object {$_.RoleDefinitionBindings.Name -eq "Contribute" -or $_.RoleDefinitionBindings.Name -eq "Full Control" -or $_.RoleDefinitionBindings.Name -eq "Edit"})
{
$ra.RoleDefinitionBindings.RemoveAll()
$ra.RoleDefinitionBindings.Add($roleReadOnly)
$ra.Update()
}
}
}
}
}
</pre>Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com0tag:blogger.com,1999:blog-1570818906168332967.post-12409001184469515042014-02-27T13:04:00.001+02:002014-02-27T13:42:32.887+02:00SharePoint 2010 vs 2013 Workflow Inconsistencies<div class="separator" style="clear: both; text-align: center;">
</div>
These days I was tearing my hair out. I am rewriting some old workflows on my SharePoint system and can't decide whether to use v 2010 or 2013 workflows. There are definitely some useful features in the 2013 workflows but there are also some very basic features missing.<br />
<br />
Here they are:<br />
<br />
<h3>
There is no impersonation step</h3>
<br />
This is somewhat understandable. Impersonation step in unreliable because when the employee who deployed the workflow leaves the company and the AD user is removed, the workflow will fail to start.<br />
<br />
<br />
<h3>
Cannot set permission on items</h3>
<br />
There is no way to replace permission on items. This was very useful in some cases.<br />
<br />
<br />
<h3>
Lookup Field - Additional Fields</h3>
<br />
Consider having a Lookup field linked to another list that is retrieving some additional columns. For example the Title is the main column, and you also retrieve the ID and Status fields. In 2010 you can work with these additional columns, but in 2013 only the main Lookup column is showing up.<br />
<br />
In 2010 Workflow:<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd3sHn9kv_i_63GHgQplXNp5ddRfrEAUSU1njCc8t3wYbkBP-2-KYHgHjRLNbhPIwkkEVbg4DpmdAnq3XZlrlDcs9Qa19gfAn0jdEbYEi2fflZhivgsat_Ee1pPFLqs4ziw7npg0V59EI/s1600/2010+columns.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd3sHn9kv_i_63GHgQplXNp5ddRfrEAUSU1njCc8t3wYbkBP-2-KYHgHjRLNbhPIwkkEVbg4DpmdAnq3XZlrlDcs9Qa19gfAn0jdEbYEi2fflZhivgsat_Ee1pPFLqs4ziw7npg0V59EI/s1600/2010+columns.PNG" /></a></div>
<br />
In 2013 Workflow:<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR7_PlK5BF6wddUSxLP22OQHfyn6sqPP-_nYpHW76pfq_OcIOx-XDFAGMXfUBs2df3K1ST3LeU0P8uZ53lwP08X3t-xvZmXOIfBc8ay4PZWtNBB8qQv4ji0c657ED8Gql7LUyWwhiZUDw/s1600/2013+columns.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR7_PlK5BF6wddUSxLP22OQHfyn6sqPP-_nYpHW76pfq_OcIOx-XDFAGMXfUBs2df3K1ST3LeU0P8uZ53lwP08X3t-xvZmXOIfBc8ay4PZWtNBB8qQv4ji0c657ED8Gql7LUyWwhiZUDw/s1600/2013+columns.PNG" /></a></div>
<br />
<br />
This is crazy. Yes, you could retrieve the ID as the main column instead, then do a Lookup on the other list in the workflow. But in this case the New Item form shows a dropdown with some numbers instead the lookup field of your choice. Here you can use InfoPath to customize - which is retiring.<br />
<br />
<br />
<h3>
There is no Else-If</h3>
<br />
<a href="http://social.msdn.microsoft.com/Forums/sharepoint/en-US/3066a878-ffee-480d-919e-b17b82aa3f62/sharepoint-2013-workflows-where-did-my-elseif-branch-go?forum=sharepointcustomization" target="_blank">Serously??</a><br />
Even the Else branch is missing from the auto-complete.<br />
<br />
<br />
<h3>
Wait for field to <b>not </b>equal a value</h3>
<br />
In 2010 Workflow you have all the options:<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUzqAfM5-CR47ytORYeT8TB7sc8m5CC4Os1X_nHjX_1UzMvAtjJbaCm5w233kzcbHxJyHe8T5o90CKSLKxg34CjJOdfTq2c6R8q2Q653cgu4dC7w82H87S76Ts81lMrqcKEfG0usSz9X4/s1600/2010+wait+for+not+equal.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUzqAfM5-CR47ytORYeT8TB7sc8m5CC4Os1X_nHjX_1UzMvAtjJbaCm5w233kzcbHxJyHe8T5o90CKSLKxg34CjJOdfTq2c6R8q2Q653cgu4dC7w82H87S76Ts81lMrqcKEfG0usSz9X4/s1600/2010+wait+for+not+equal.PNG" /></a></div>
<br />
In 2013 Workflow there is only the Equal:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTldNvtOnewvPeFsJshfGSAIL0iCoz9UNKR9u9wyWwtyCXWgJ191zub9edR3FiiNuRdBe1ehBN1VMazPCe_x6rBq-6Lmhyphenhyphen43iAAOfu4afy8LAV7yVgrRtRkxfpt-rznzXAcL9WS-55nd4/s1600/2013+wait+for+equal.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTldNvtOnewvPeFsJshfGSAIL0iCoz9UNKR9u9wyWwtyCXWgJ191zub9edR3FiiNuRdBe1ehBN1VMazPCe_x6rBq-6Lmhyphenhyphen43iAAOfu4afy8LAV7yVgrRtRkxfpt-rznzXAcL9WS-55nd4/s1600/2013+wait+for+equal.PNG" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<h3>
Start List/Site Workflow</h3>
<br />
<br />
Via a 2013 WF you can only start a v2010 workflow. Wtf??<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKOPmqQCEkzRgUAct_u9GhBbBnRCc2awLZUXp1DIrtpYo_P5ytNsij3OD22FrVOUAMKaGG6ltwvBzgg06P-Xcisy4PQY2m19AdKEdYHu5JQshGTgO4zexf4yMrtpxMms7OpnWYThiYFRM/s1600/2013+start+workflow.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKOPmqQCEkzRgUAct_u9GhBbBnRCc2awLZUXp1DIrtpYo_P5ytNsij3OD22FrVOUAMKaGG6ltwvBzgg06P-Xcisy4PQY2m19AdKEdYHu5JQshGTgO4zexf4yMrtpxMms7OpnWYThiYFRM/s1600/2013+start+workflow.PNG" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
That's it for now... I'll update this post once I find some more annoyances.Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com1tag:blogger.com,1999:blog-1570818906168332967.post-87105810241640668652014-01-09T20:26:00.003+02:002014-01-09T20:28:20.419+02:00Tomcat 7 FindClass org/apache/catalina/startup/Bootstrap failed<h3>
Environment </h3>
<ul>
<li>Windows Server 2008 R2</li>
<li>Tomcat 7 x64</li>
<li>jdk1.7.0_45 x64</li>
</ul>
<br />
<h3>
Problem</h3>
<br />
After upgrading from Tomcat 6 to 7 the new Tomcat instance did not want to start up. This is what I saw in the logs:<br />
<br />
<pre class="brush: plain;">[2014-01-09 19:08:46] [info] [ 2516] Commons Daemon procrun (1.0.15.0 64-bit) started
[2014-01-09 19:08:46] [info] [ 2516] Running 'Tomcat7' Service...
[2014-01-09 19:08:46] [info] [ 6004] Starting service...
[2014-01-09 19:08:47] [error] [ 6080] FindClass org/apache/catalina/startup/Bootstrap failed
[2014-01-09 19:08:47] [error] [ 6004] Failed to start Java
[2014-01-09 19:08:47] [error] [ 6004] ServiceStart returned 4
[2014-01-09 19:08:47] [info] [ 2516] Run service finished.
[2014-01-09 19:08:47] [info] [ 2516] Commons Daemon procrun finished
</pre>
<br />
<pre class="brush: plain;">2014-01-09 19:08:46 Commons Daemon procrun stderr initialized
java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:60)
Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 1 more
Exception in thread "main" </clinit>
</pre>
<br />
All I found on the net was that Java 5 is not compatible with Tomcat 7. But I had the latest Java 7.<br />
<br />
<br />
<h3>
Solution</h3>
<br />
With trial and error I found the solution:<br />
<br />
I had to include <b>tomcat-juli.jar </b>also in the Java Classpath!<br />
<br />
I opened an administrative Command Prompt and edited the Tomcat instance's Properties<br />
<br />
<pre class="brush: plain;">D:\apps\tomcat7\bin> tomcat7w.exe //ES//Tomcat7
</pre>
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2oHpfuFFkpLd64CwQFj7oBss4Ig5V-Iw_DhZQSUd4rOd_Kl5e0lQTPNsyastXpMJI0s-X5fRrBp795p5QkleL0pYkECU52L59LzRSOWnBtF7_tZR_TGTzpwbHe8fqXvcDASqj2wxzG6c/s1600/tomcat+properties.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2oHpfuFFkpLd64CwQFj7oBss4Ig5V-Iw_DhZQSUd4rOd_Kl5e0lQTPNsyastXpMJI0s-X5fRrBp795p5QkleL0pYkECU52L59LzRSOWnBtF7_tZR_TGTzpwbHe8fqXvcDASqj2wxzG6c/s1600/tomcat+properties.PNG" /></a></div>
<br />
<br />Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com4tag:blogger.com,1999:blog-1570818906168332967.post-40749343913856529102014-01-06T17:51:00.000+02:002014-01-06T17:52:57.649+02:00Compress Old Files with PowerShell<h3>
The Story</h3>
<br />
The following <b>PowerShell </b>script will compress files that are older than the specified amount of time. It is handy for archiving <b>IIS Logs, SQL Backups</b>, etc.<br />
The script uses <b>7-zip </b>so you obviously have to have it installed (or the exe copied somewhere). It's using maximum compression which is resource intensive, if you don't want that just remove the "<b>-mx9 -m0=lzma2</b>" parameters.
<br />
<br />
<br />
<h3>
The Script</h3>
<pre class="brush: powershell;">$path = "C:\inetpub\logs\LogFiles\"
$mask = "*.log"
$days = 7
$files = dir $path -Recurse -Include $mask | where {($_.LastWriteTime -lt (Get-Date).AddDays(-$days).AddHours(-$hours).AddMinutes(-$mins)) -and ($_.psIsContainer -eq $false)}
ForEach ($file in $files) {
& "C:\Program Files\7-Zip\7z.exe" u -mx9 -t7z -m0=lzma2 ($file.FullName + ".7z") $file.FullName
if ($LASTEXITCODE -eq 0) {
Remove-Item $file
}
}
</pre>
<br />
<h3>
Resources</h3>
<div>
<ul>
<li><a href="http://stackoverflow.com/questions/16613656/how-can-i-check-if-a-file-is-older-than-a-certain-time-with-powershell">http://stackoverflow.com/questions/16613656/how-can-i-check-if-a-file-is-older-than-a-certain-time-with-powershell</a></li>
<li><a href="http://stackoverflow.com/questions/1673967/how-to-run-exe-in-powershell-with-parameters-with-spaces-and-quotes">http://stackoverflow.com/questions/1673967/how-to-run-exe-in-powershell-with-parameters-with-spaces-and-quotes</a></li>
<li><a href="http://blogs.msdn.com/b/daiken/archive/2007/02/12/compress-files-with-windows-powershell-then-package-a-windows-vista-sidebar-gadget.aspx">http://blogs.msdn.com/b/daiken/archive/2007/02/12/compress-files-with-windows-powershell-then-package-a-windows-vista-sidebar-gadget.aspx</a></li>
<li><a href="http://stackoverflow.com/questions/2081795/invoke-an-exe-from-powershell-and-get-feedback-on-succes-or-failure">http://stackoverflow.com/questions/2081795/invoke-an-exe-from-powershell-and-get-feedback-on-succes-or-failure</a></li>
</ul>
</div>
Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com3tag:blogger.com,1999:blog-1570818906168332967.post-62117265419153397922013-09-11T15:22:00.000+03:002013-09-11T15:24:02.202+03:00Set Permissions on Multiple Sites using PowerShellThese days I had a request to add an <b>Active Directory group</b> with <b>Contributor rights</b> on a <b>SharePoint Site Collection</b>. Since many sites had broken inheritance, using the UI was not an option so I created a small <b>PowerShell Script</b> that enumerates <b>all Webs</b> and if the Inheritance is broken, it adds the group with the specified Role.<br />
<br />
<h3>
Notes:</h3>
<br />
<ul>
<li>The <b>If</b> command uses the <b>$web.Url.Contains</b> directive in order to modify the rights only on a subset of sites. If all Webs have to be crawled, use<b> if <i>($web.HasUniquePerm -and $web.RequestAccessEnabled)</i></b> instead.</li>
<li>This script modifies permissions only on webs. Lists and Items with unique permission will not be touched.</li>
</ul>
<div>
<br /></div>
<pre class="brush: powershell;">if ((Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null)
{
Add-PSSnapin Microsoft.SharePoint.PowerShell
}
$site = Get-SPSite -Identity "http://spdev/sites/SiteCollection"
foreach($web in $site.AllWebs)
{
if ($web.HasUniquePerm -and $web.RequestAccessEnabled -and ($web.Url.Contains("/SiteCollection/BU1") -or $web.Url.Contains("/SiteCollection/BU2")))
{
$account = $web.EnsureUser("Domain\QATeam")
$role = $web.RoleDefinitions["Contribute"]
$assignment = New-Object Microsoft.SharePoint.SPRoleAssignment($account)
$assignment.RoleDefinitionBindings.Add($role)
$web.RoleAssignments.Add($assignment)
}
$web.Dispose()
}
$site.Dispose()
</pre>
<br />
<h3>
References</h3>
<div>
<ul>
<li><a href="http://social.technet.microsoft.com/Forums/sharepoint/en-US/4373cef1-2471-4199-aa16-784684fc82de/adding-permission-to-list-using-powershell">http://social.technet.microsoft.com/Forums/sharepoint/en-US/4373cef1-2471-4199-aa16-784684fc82de/adding-permission-to-list-using-powershell</a></li>
</ul>
</div>
Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com2tag:blogger.com,1999:blog-1570818906168332967.post-16167800021972453892013-09-09T14:53:00.002+03:002013-10-17T16:39:11.455+03:00SharePoint Start Workflow on All Items of a List via PowerShellTo start a <b>List Workflow </b>in <b>SharePoint </b>on <b>All Items </b>of a list is a pain through GUI but it's a piece of cake in <b>PowerShell</b>. Note that the Workflow will not start instantly (as opposed to triggering through the UI) but in maximum 5 minutes because it's started through the <b>SharePoint Timer Service</b>.<br />
<br />
<br />
<pre class="brush: powershell;">#updated on 10/17/2013
# URL of the Site
$web = Get-SPWeb -Identity "https://sharepointsrv/site1"
$manager = $web.Site.WorkFlowManager
# Name of the list
$list = $web.Lists["Shared Documents"]
# Name of the Workflow
$assoc = $list.WorkflowAssociations.GetAssociationByName("On Item Created","en-US")
$data = $assoc.AssociationData
$items = $list.Items
foreach($item in $items)
{
$wf = $manager.StartWorkFlow($item,$assoc,$data,$true)
}
$manager.Dispose()
$web.Dispose()
#
</pre>
<br />
<h3>
References</h3>
<div>
<ul>
<li><a href="http://social.technet.microsoft.com/Forums/sharepoint/en-US/dffdceab-f2fe-4886-8e2a-ea26cf08c78a/how-to-start-a-speific-workflow-programatically-in-sharepoint-2010-via-powershell">http://social.technet.microsoft.com/Forums/sharepoint/en-US/dffdceab-f2fe-4886-8e2a-ea26cf08c78a/how-to-start-a-speific-workflow-programatically-in-sharepoint-2010-via-powershell</a></li>
</ul>
</div>Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com7tag:blogger.com,1999:blog-1570818906168332967.post-12526234115037184712013-09-03T10:35:00.000+03:002013-09-03T11:41:58.934+03:00ls - no colors on UbuntuI have some older <b>Ubuntu </b>servers that don't display colors when executing the <b>ls </b>command over Putty. So I took a <b>.bashrc</b> file from a different Ubuntu server and copied over the relevant section that contains the <b>ls --color </b>command. After that I applied the <b>~/.bashrc </b>file so I don't have to restart the session. This will set the foloring for <b>grep </b>and <b>vi </b>as well.<br />
<br />
<br />
<pre class="brush: bash;">~$ vim ~/.bashrc
if [ "$TERM" != "dumb" ]; then
eval "`dircolors -b`"
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias vi='vim'
else
alias ls="ls -F"
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
fi
~$ source ~/.bashrc
</pre>
<br />
<h3>
References</h3>
<br />
<ul>
<li><a href="http://askubuntu.com/questions/194039/no-terminal-colors-in-ubuntu-server-12-04">http://askubuntu.com/questions/194039/no-terminal-colors-in-ubuntu-server-12-04</a></li>
<li><a href="http://silviowangler.blogspot.ro/2010/09/apply-changes-in-bashrc-immediately.html">http://silviowangler.blogspot.ro/2010/09/apply-changes-in-bashrc-immediately.html</a></li>
</ul>
Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com0tag:blogger.com,1999:blog-1570818906168332967.post-27813015640592407452013-08-22T17:07:00.001+03:002013-09-03T11:42:10.143+03:00SharePoint 2013 Meeting Workspace Page Not Found<h3>
The Problem</h3>
<br />
I have some legacy <b>Meeting Workspaces</b> imported over from <b>SharePoint 2010</b> that are still in use. Recently I enabled the <b>Navigate Up button</b> on a test site collection using <a href="http://www.manageprojectsonsharepoint.com/blog/2012/12/19/restore-navigate-up-on-sharepoint-2013/">this</a> guide because users are really missing that feature. After applying the new master page to all subsites, I observed that the meeting workspace is no longer working. If I click on a meeting from a different date, a <b>Page Not Found</b> error is displayed on the site.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDrNE5bZIlIVckDrmSBJXzje0uvhBsk1z4akjlD7kPSuEYgcvl4strNmU5SkSKmLmVbsVD8BlTWz6AvsPqxoemR5gfcw7H7J39neP59hLD0uX09iYWUcCIGIx9ILgeXemJ41bvCTQgEyQ/s1600/SharePoint+Page+Not+Found.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDrNE5bZIlIVckDrmSBJXzje0uvhBsk1z4akjlD7kPSuEYgcvl4strNmU5SkSKmLmVbsVD8BlTWz6AvsPqxoemR5gfcw7H7J39neP59hLD0uX09iYWUcCIGIx9ILgeXemJ41bvCTQgEyQ/s1600/SharePoint+Page+Not+Found.png" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
The logs:</div>
<pre class="brush: plain;"> 20635 08/22/2013 15:56:05.84 w3wp.exe (0x15D0) 0x2EDC SharePoint Foundation Logging Correlation Data xmnv Medium Name=Request (GET:https://spdevsrv:443/sites/dev1/WeeklyStatus/undefined?InstanceID=20130710&Paged=Next&p_StartTimeUTC=20130703T120000Z&View=%7bFEF87B6F%2d54D6%2d44CD%2d8055%2dFA404C0A5B50%7d) 57843b9c-4d5d-80a3-b6fd-c40b260782c1
20636 08/22/2013 15:56:05.84 w3wp.exe (0x15D0) 0x2EDC SharePoint Foundation Authentication Authorization agb9s Medium Non-OAuth request. IsAuthenticated=True, UserIdentityName=0#.w|domain\user, ClaimsCount=43 57843b9c-4d5d-80a3-b6fd-c40b260782c1
20637 08/22/2013 15:56:05.85 w3wp.exe (0x15D0) 0x58E8 SharePoint Foundation General af71 Medium HTTP Request method: GET 57843b9c-4d5d-80a3-b6fd-c40b260782c1
20638 08/22/2013 15:56:05.85 w3wp.exe (0x15D0) 0x58E8 SharePoint Foundation General af75 Medium Overridden HTTP request method: GET 57843b9c-4d5d-80a3-b6fd-c40b260782c1
20639 08/22/2013 15:56:05.85 w3wp.exe (0x15D0) 0x58E8 SharePoint Foundation General af74 Medium HTTP request URL: /sites/dev1/WeeklyStatus/undefined?InstanceID=20130710&Paged=Next&p_StartTimeUTC=20130703T120000Z&View=%7bFEF87B6F%2d54D6%2d44CD%2d8055%2dFA404C0A5B50%7d 57843b9c-4d5d-80a3-b6fd-c40b260782c1
20640 08/22/2013 15:56:05.85 w3wp.exe (0x15D0) 0x58E8 SharePoint Foundation Files aise3 Medium Failure when fetching document. 0x80070002 57843b9c-4d5d-80a3-b6fd-c40b260782c1
20641 08/22/2013 15:56:05.87 w3wp.exe (0x15D0) 0x5198 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Request (GET:https://spdevsrv:443/sites/dev1/WeeklyStatus/undefined?InstanceID=20130710&Paged=Next&p_StartTimeUTC=20130703T120000Z&View=%7bFEF87B6F%2d54D6%2d44CD%2d8055%2dFA404C0A5B50%7d)). Execution Time=37.2469 57843b9c-4d5d-80a3-b6fd-c40b260782c1
</pre>
<br />
<h3>
The Solution</h3>
<div>
<br />
You need to apply the <b>mwsdefaultv15.master</b> page to all <b>Meeting Workspace</b> sites. Since the <b>SharePoint Server Publishing feature</b> is not enabled (and cannot be enabled) on this type of site, you have to do the job in <b>PowerShell</b>.</div>
<div>
<br /></div>
<pre class="brush: powershell;">$web = Get-SPWeb -Identity "https://spdevsrv:443/sites/dev1"
$web.MasterUrl = "/sites/dev1/_catalogs/masterpage/mwsdefaultv15.master"
$web.CustomMasterUrl = "/sites/dev1/_catalogs/masterpage/mwsdefaultv15.master"
$web.Update()
$web.Dispose()
</pre>
<br />
If you have a bunch of <b>Meeting Workspaces</b> then the script below might come in handy. For the sake of safety please <b>back up</b> your <b>Site Collection</b> first.<br />
<br />
<pre class="brush: powershell;">$site = Get-SPSite -Identity "https://spdevsrv:443/sites/dev1"
$webs = $site.AllWebs
$CorrectMasterPage = "/_catalogs/masterpage/mwsdefaultv15.master"
foreach($web in $webs)
{
if (($web.WebTemplate -eq "MPS") -and ($web.WebTemplateId -eq 2))
{
write-host "Updating" $web.Url
$MasterPageURL = $web.ServerRelativeUrl + $CorrectMasterPage
$web.MasterUrl = $MasterPageURL
$web.CustomMasterUrl = $MasterPageURL
$web.Update()
}
$web.Dispose()
}
</pre>
<br />
<h3>
References</h3>
<br />
<ul>
<li><a href="http://www.manageprojectsonsharepoint.com/blog/2012/12/19/restore-navigate-up-on-sharepoint-2013/">http://www.manageprojectsonsharepoint.com/blog/2012/12/19/restore-navigate-up-on-sharepoint-2013/</a></li>
<li><a href="http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=226">http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=226</a></li>
<li><a href="http://social.technet.microsoft.com/Forums/en-US/34039e09-7b66-4bf6-9087-4bac24f6cae8/meeting-workspace-woes-custom-master-page">http://social.technet.microsoft.com/Forums/en-US/34039e09-7b66-4bf6-9087-4bac24f6cae8/meeting-workspace-woes-custom-master-page</a></li>
</ul>
Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com1tag:blogger.com,1999:blog-1570818906168332967.post-68498566344821432862013-08-22T13:37:00.000+03:002013-09-11T15:26:37.078+03:00Find SharePoint Web Template Name using PowerShellYou can find out the <b>Template Name</b> and <b>Id </b>of a <b>SharePoint Site</b> using the following <b>PowerShell </b>command:<br />
<br />
<pre class="brush: powershell;">$web = Get-SPWeb -Identity "http://spsrv/sites/web1/"
Write-Host $web.WebTemplate "," $web.WebTemplateId
</pre>
<br />
To list all <b>Template Names</b> and <b>IDs</b>:<br />
<br />
<pre class="brush: powershell;">Get-SPWebTemplate | select ID, Name, Title | Sort-Object ID
</pre>
<br />
<h3>
References:</h3>
<ul>
<li><a href="http://blogs.technet.com/b/praveenh/archive/2013/04/04/get-a-list-of-web-templates-and-ids-in-a-sharepoint-site.aspx">http://blogs.technet.com/b/praveenh/archive/2013/04/04/get-a-list-of-web-templates-and-ids-in-a-sharepoint-site.aspx</a></li>
<li><a href="http://social.technet.microsoft.com/Forums/sharepoint/en-US/07cf57c3-8965-4f85-8911-2c95aa78fed5/how-to-get-the-name-of-the-template-in-sharepoint-2010-using-powershell">http://social.technet.microsoft.com/Forums/sharepoint/en-US/07cf57c3-8965-4f85-8911-2c95aa78fed5/how-to-get-the-name-of-the-template-in-sharepoint-2010-using-powershell</a></li>
</ul>
Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com0tag:blogger.com,1999:blog-1570818906168332967.post-67401101806595794802013-08-19T11:48:00.003+03:002013-08-19T11:50:52.320+03:00MySQL Backup Script in Bash / Cron JobThe following is a handy <b>cron job</b> that backs up a <b>MySQL </b>database, compress it with <b>gzip</b> and will delete the ones older than 30 days. Make sure the user running the job has <b>write permissions</b> (in my case the user levente@testsrv) on the <b>backup output directory</b>. The mysql backup job will be executed daily at 2:15am and the cleanup job at 2:20am.<br />
<br />
<br />
<pre class="brush: bash;">levente@testsrv:~$ crontab -e
# ....
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
15 2 * * * mysqldump -u mysqluser -pmysqlpassword db_name | gzip > /var/backups/mysql/db_name_`date '+\%Y\%m\%d-\%H\%M\%S'`.sql.gz
20 2 * * * find /var/backups/mysql/db_name* -mtime +30 -exec rm {} \;
</pre>
<br />
If you want to run the MySQL backup script directly at the shell, you have to remove the backslash characters before the % because these are escaped in cron.<br />
<br />
<br />
<pre class="brush: bash;">levente@testsrv:~$ mysqldump -u mysqluser -pmysqlpassword db_name | gzip > /var/backups/mysql/db_name_`date '+%Y%m%d-%H%M%S'`.sql.gz
</pre>
Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com0tag:blogger.com,1999:blog-1570818906168332967.post-75782823568212657192013-08-09T15:36:00.000+03:002014-04-10T10:21:38.659+03:00Installing/Enabling RPMForge on CentOS 6.5 (latest binaries)The steps needed to install <b>RPMForge</b> on <b>CentOS </b>are already described on <a href="http://wiki.centos.org/AdditionalResources/Repositories/RPMForge">this</a> excellent page, I'll just update the script to use the <b>latest binaries</b>.<br />
<br />
<pre class="brush: bash;">rnd=$RANDOM
wget -O /tmp/rpmforge-`echo $rnd`.rpm http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
rpm -i /tmp/rpmforge-`echo $rnd`.rpm
rm -f /tmp/rpmforge-`echo $rnd`.rpm
#
</pre>
<br />
<br />
To test you can try installing something from the <b>RPMForge</b> repositories, like <b>htop</b>:
<br />
<pre class="brush: bash;">yum install htop
</pre>
Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com0tag:blogger.com,1999:blog-1570818906168332967.post-10921566250539786882013-08-09T13:51:00.000+03:002013-08-09T13:55:52.077+03:00Configuring Web Proxy on CentOSIf your internet connection is behind a web proxy, you need to configure the following on your <b>CentOS</b> server:<br />
<br />
System-wide proxy settings - add the following lines to your <b>/etc/environment</b> file:<br />
<pre class="brush: bash;"># vi /etc/environment
http_proxy="http://proxysrv:8080/"
https_proxy="https://proxysrv:8080/"
ftp_proxy="ftp://proxysrv:8080/"
no_proxy=".mylan.local,.domain1.com,host1,host2"
</pre>
<br />
To apply these settings without restarting the machine run the following commands on the bash shell:<br />
<pre class="brush: bash;">
export http_proxy="http://proxysrv:8080/"
export https_proxy="https://proxysrv:8080/"
export ftp_proxy="ftp://proxysrv:8080/"
export no_proxy=".mylan.local,.domain1.com,host1,host2"
</pre>
<br />
You also need to configure <b>yum</b>:<br />
<pre class="brush: bash;"># vi /etc/yum.conf
proxy=http://proxysrv:8080/
</pre>Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com2tag:blogger.com,1999:blog-1570818906168332967.post-16678196004619422432013-08-09T13:36:00.000+03:002013-10-09T14:49:09.822+03:00CentOS 6.4 on HyperV - No Neworking on eth0Just installed <b>CentOS 6.4</b> from the <b>CentOS-6.4-x86_64-bin-DVD1.iso</b> image as a <b>HyperV virtual machine</b>.<br />
<br />
After installation I observed that the eth0 adapter is not configured.<br />
<a href="https://rutger-vitae.rhcloud.com/?p=127">This</a> blog post helped me to start networking, thanks <b>Rutger Thomschutz</b>!<br />
<br />
Based on the blog post mentioned I did the following:<br />
<br />
<pre class="brush: bash;">vi /etc/sysconfig/network-scripts/ifcfg-eth0
# changed ONBOOT to Yes
ONBOOT = yes
</pre>
Created the hard links, brang up the adapter and rebooted the server:<br />
<pre class="brush: bash;"># edit 9/10/2013 - in most cases you don't have to create the links below. </pre>
<pre class="brush: bash;"># ln /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/networking/devices/ifcfg-eth0
# ln /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/networking/profiles/default/ifcfg-eth0
ifconfig eth0 up
reboot now
#
</pre>
Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com0Satu Mare, Romania47.792091 22.88518899999996847.6214445 22.56246549999997 47.962737499999996 23.207912499999967tag:blogger.com,1999:blog-1570818906168332967.post-17400870269939989532013-08-06T18:58:00.003+03:002013-08-06T18:58:59.160+03:00Icecast + VLC Installation and Configuration GuideMaking <b>VLC </b>work with <b>IceCast </b>is not hard but there are some minor settings that were not obvious to me and I spent some time to figure them out.<br />
<br />
<h3>
IceCast</h3>
<div>
<br /></div>
First, download and install <a href="http://www.icecast.org/download.php">IceCast</a>. That's pretty much a next next next installation. When done start the <b>IceCast Server</b>.<br />
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj69_pskx_BQQwDLhEWVguNWfZQnMgwZ2VLpz5_0d_888V_xo4EU16CaTZlGjBRsYm-g4Whe2a9hGmiP2DbOsoz38ml-EjaNccahXjb_aqjUJL6hq_V7E_303HS4o9RnMDrhpK68Gp9qts/s1600/Start+IceCast+Server.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj69_pskx_BQQwDLhEWVguNWfZQnMgwZ2VLpz5_0d_888V_xo4EU16CaTZlGjBRsYm-g4Whe2a9hGmiP2DbOsoz38ml-EjaNccahXjb_aqjUJL6hq_V7E_303HS4o9RnMDrhpK68Gp9qts/s1600/Start+IceCast+Server.JPG" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Now, if you open this address with a browser, you can see that the server is running.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj422t5B8kochGivjiO2MfdMIbEyKzkUu2dq1lvcIx5hGA0LMI7paKK9TK3Ahdj3vq2ZDfDIXUDiABu-fsCBLnC61T9QMNjsScwgJI8oPEG1dLC0F63j_hDbWHx3MPmA_OEkGmNMZw8rwg/s1600/IceCast+Running.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="264" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj422t5B8kochGivjiO2MfdMIbEyKzkUu2dq1lvcIx5hGA0LMI7paKK9TK3Ahdj3vq2ZDfDIXUDiABu-fsCBLnC61T9QMNjsScwgJI8oPEG1dLC0F63j_hDbWHx3MPmA_OEkGmNMZw8rwg/s640/IceCast+Running.JPG" width="640" /></a></div>
<br />
Eventually, you may want to edit the IceCast configuration to customize the port, the number of streams and the passwords. (Configuration -> Edit Configration).<br />
<br />
<br />
<h3>
VLC</h3>
<div>
<br /></div>
<div>
I have <b>VLC Media Player </b>2.0.8 Installed. I am going to stream some mp3 files to IceCast.<br />
<br />
First, I have to enable <b>MP3 streaming</b> at the IceCast Output plugin module.<br />
<br />
In VLC, go to <b>Preferences </b>(Enable advanced settings)<b> -> Stream Output -> Access Output -> Shoutcast </b>and check Stream MP3. On this page you can also set the name of the radio station, genre and other details.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8VsJeC2eAMAjS3_iwoLX4gcJKd0CyPzQlD4KZ_4PJs0LOjN4bLjNQB1TH0TDl-CFF2dwRNaamb0dkwoqM5Y3gdkOj90KlSCmJglJsfid82Yw2qZV8eD5Ng3T22Pjy3RfMlDLHNBgVjfw/s1600/VLC+Shoutcast+settings.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="323" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8VsJeC2eAMAjS3_iwoLX4gcJKd0CyPzQlD4KZ_4PJs0LOjN4bLjNQB1TH0TDl-CFF2dwRNaamb0dkwoqM5Y3gdkOj90KlSCmJglJsfid82Yw2qZV8eD5Ng3T22Pjy3RfMlDLHNBgVjfw/s400/VLC+Shoutcast+settings.JPG" width="400" /></a></div>
<br />
<br /></div>
<div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br /></div>
<div>
Now, let's add the mp3 files for streaming:</div>
<div>
<ul>
<li>In VLC go to <b>Media -> Stream</b></li>
<li>Add the mp3 files</li>
<li>Click <b>Stream</b></li>
</ul>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCbZ6cKypw4hnejSkuje-R_wuUIQdKhvLZxG5t1TSu5YkUt1n6_1lyfqoLffYkUW6GivV95tWcyUl1h2FDO1ArCMVvABJ6pZj35m1MDHO1onsBY3giN4T9J7IyMFglJ_AD3CXLD1lP9QI/s1600/VLC+Stream.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCbZ6cKypw4hnejSkuje-R_wuUIQdKhvLZxG5t1TSu5YkUt1n6_1lyfqoLffYkUW6GivV95tWcyUl1h2FDO1ArCMVvABJ6pZj35m1MDHO1onsBY3giN4T9J7IyMFglJ_AD3CXLD1lP9QI/s400/VLC+Stream.JPG" width="400" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<br />
<ul>
<li>Click <b>Next</b></li>
</ul>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdtsZfHL38uCb0_Lp7RI5eLu6wAuS7xP1wPVneur26pJkMpIQMHC0fxY4OlTJQXNgWxq3BO0lEs7QpB6TrOtnkWoAjuZvpHExL3fhD12XxkA-gfkzmvhyphenhyphenNn4uErCZIptI3aDwAoVCfWFI/s1600/VLC+Stream+2.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="302" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdtsZfHL38uCb0_Lp7RI5eLu6wAuS7xP1wPVneur26pJkMpIQMHC0fxY4OlTJQXNgWxq3BO0lEs7QpB6TrOtnkWoAjuZvpHExL3fhD12XxkA-gfkzmvhyphenhyphenNn4uErCZIptI3aDwAoVCfWFI/s400/VLC+Stream+2.JPG" width="400" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<ul>
<li>Select <b>IceCast </b>from the dropdown and click <b>Add</b></li>
</ul>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEUHEL3JJM9YJDszg2EAboNF9_5XQQjReO3NZqRQ1J2NaJkGlb_T4laqO-EeULtQ81jeqCatlo72QaIxd4gHtCKxaFqR1LMavxAFqcqpm_FnzF4Z7tp7iCcipqJ_GFsd61yPJit8eCvAI/s1600/VLC+Stream+3.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="287" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEUHEL3JJM9YJDszg2EAboNF9_5XQQjReO3NZqRQ1J2NaJkGlb_T4laqO-EeULtQ81jeqCatlo72QaIxd4gHtCKxaFqR1LMavxAFqcqpm_FnzF4Z7tp7iCcipqJ_GFsd61yPJit8eCvAI/s400/VLC+Stream+3.JPG" width="400" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<ul>
<li>I'll enter <b>localhost </b>for the address since both VLC and IceCast are on the same machine. Otherwise I would enter the IP Address of the computer running IceCast.</li>
<li>I'll enter <b>radio1</b> for the mount point. It is highly recommended to specify a mount point, I couldn't make this working without entering one.</li>
<li><b>source:hackme</b> is the Login:pass combo in my case because I did not change the default password in the configration file. You should do that. The login is always "<b>source</b>".</li>
<li>I won't activate transcoding since my files are already in mp3 format.</li>
<li>Click <b>Stream</b></li>
</ul>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOWYaHfp-hj-8Ur9PWYMomGEHPhYlxZ-naadXHHo_bm9RnEKzZkaC9bAfE5XwWgduz1YDqkASOGSgMsxRzgt7d6GqBRcnYgCp2yc6BJT6wPQgHWQKHM_p32SjE2oKAvFHT-Uu71eS9Fds/s1600/VLC+Stream+5.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOWYaHfp-hj-8Ur9PWYMomGEHPhYlxZ-naadXHHo_bm9RnEKzZkaC9bAfE5XwWgduz1YDqkASOGSgMsxRzgt7d6GqBRcnYgCp2yc6BJT6wPQgHWQKHM_p32SjE2oKAvFHT-Uu71eS9Fds/s1600/VLC+Stream+5.JPG" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOWYaHfp-hj-8Ur9PWYMomGEHPhYlxZ-naadXHHo_bm9RnEKzZkaC9bAfE5XwWgduz1YDqkASOGSgMsxRzgt7d6GqBRcnYgCp2yc6BJT6wPQgHWQKHM_p32SjE2oKAvFHT-Uu71eS9Fds/s1600/VLC+Stream+5.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><br /></a></div>
<br />
Now I can see that the music is "playing" in VLC.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOqDNLU4CZELU8yWwNgJXrzmMAI0F94gtKkmbmyO3HvcbNU3GRiISCMKXeScYnqmw7V0_0LnPUs6IxWyih8CbKd0k8T4xe6lxGb-tk_J0hVXwtdhf_4c7cXnehREou9HxlfvhrMLuEuJo/s1600/VLC+Playing.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="380" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOqDNLU4CZELU8yWwNgJXrzmMAI0F94gtKkmbmyO3HvcbNU3GRiISCMKXeScYnqmw7V0_0LnPUs6IxWyih8CbKd0k8T4xe6lxGb-tk_J0hVXwtdhf_4c7cXnehREou9HxlfvhrMLuEuJo/s640/VLC+Playing.JPG" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
For the proof of concept, I will open this stream on a different computer with <b>foobar2000</b>. Note the<b> /radio1</b> at the end of the URL, this is the mount point.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNUGOZwxOLZM8hRT3yMdkcA8WoA0uBUz4FQ8eeSW5Au_02-aQu_D9iRb0y4d9DJfsubZR_n3Qqe-ivfSVoaVBSh-I0vA0ZWMvUUL1CFEOmxYZjhRgcNuTdsa5u9owr-nQVUAdAtguDstQ/s1600/Foobar2000+Add+Location.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="185" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNUGOZwxOLZM8hRT3yMdkcA8WoA0uBUz4FQ8eeSW5Au_02-aQu_D9iRb0y4d9DJfsubZR_n3Qqe-ivfSVoaVBSh-I0vA0ZWMvUUL1CFEOmxYZjhRgcNuTdsa5u9owr-nQVUAdAtguDstQ/s400/Foobar2000+Add+Location.JPG" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihNvh3QPbB0lpxy1plcjtc-8LarVx8UOQELb2EJrD8JKGUUNp1yEUUpLgbGcW3AsoRApoky0k0i6NMjn3DmsTrXEIr9eC0DNbYi3YR33ESHrsElWEsLwv1MymkfWiPHeFKL1Vzln8apIE/s1600/Foobar2000+Playing.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="167" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihNvh3QPbB0lpxy1plcjtc-8LarVx8UOQELb2EJrD8JKGUUNp1yEUUpLgbGcW3AsoRApoky0k0i6NMjn3DmsTrXEIr9eC0DNbYi3YR33ESHrsElWEsLwv1MymkfWiPHeFKL1Vzln8apIE/s400/Foobar2000+Playing.JPG" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<h3>
Notes</h3>
<div>
<br /></div>
<div>
When everything is running, opening the Stream URL in the browser will bring up the IceCast status & admin page with some useful info. The default admin credentials are admin / hackme.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHWC4UDxrjpdpHY7H-EUyuDLu8_D1XlYTZu4OKyLh6v1UjG4JXY8gdEZmsRhS3vFg77fIYnnVtY7_Jhx6ljmIyRR9gZlYOlUf_Mo6xYLAa4R4Lbh7nmIg4_7SpmILvfF9m-pCiHjSR6yg/s1600/IceCast+Status.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="383" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHWC4UDxrjpdpHY7H-EUyuDLu8_D1XlYTZu4OKyLh6v1UjG4JXY8gdEZmsRhS3vFg77fIYnnVtY7_Jhx6ljmIyRR9gZlYOlUf_Mo6xYLAa4R4Lbh7nmIg4_7SpmILvfF9m-pCiHjSR6yg/s400/IceCast+Status.JPG" width="400" /></a></div>
<br /></div>
<div>
<b><br /></b></div>
<div>
<b><br /></b></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<h3>
Additional resources</h3>
<div>
<br /></div>
<div>
<b>IceCast Official Documentation</b> - <a href="http://www.icecast.org/docs/icecast-2.3.3/">http://www.icecast.org/docs/icecast-2.3.3/</a></div>
<div>
<br /></div>
<h3>
<br /></h3>
<br /></div>
Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com2tag:blogger.com,1999:blog-1570818906168332967.post-75448295927602919732013-08-06T14:16:00.000+03:002013-08-06T14:16:49.831+03:00CentOS + Centreon - No Graphs Showing Up<br />
<ul>
<li>CentOS 6</li>
<li>Centreon 2.4</li>
</ul>
<br />
No graphs showing up after restarting the server<br />
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCF1auNe6bvOcU-SO7lhausJHXNsJBSaebqD3-77k0SbH-Pe0kxgyj0WzupnebzVjXf93HMV68b_Azv9knym665Jr_tdplcSRwbBILkiFFfk5D1uirtRB5ozh5NgJ50p05Z52_RXHU2_A/s1600/CentOS+Centreon+No+Graphs+Showing+Up.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCF1auNe6bvOcU-SO7lhausJHXNsJBSaebqD3-77k0SbH-Pe0kxgyj0WzupnebzVjXf93HMV68b_Azv9knym665Jr_tdplcSRwbBILkiFFfk5D1uirtRB5ozh5NgJ50p05Z52_RXHU2_A/s1600/CentOS+Centreon+No+Graphs+Showing+Up.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<h3>
<br /></h3>
<h3>
Solution</h3>
<div>
<br /></div>
<div>
This is not actually a solution, but a workaround. The culprit is SELinux so turning it off brings the graphs back. I had so many issues with SELinux so I don't bother anymore trying to configure it to work with Centreon, I'll just turn it off.</div>
<div>
<br /></div>
<div>
<pre class="brush: bash;"># setenforce permissive</pre>
</div>
<br />
<br />To disable SELinux completely, modify the following file:<br />
<br />
<pre class="brush: bash;">
# vim /etc/sysconfig/selinux
<br>
SELINUX=permissive
</pre>Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com0tag:blogger.com,1999:blog-1570818906168332967.post-20126414254397570072013-08-05T19:22:00.000+03:002013-08-05T19:22:32.588+03:00SharePoint 30 Minute Time Out for FormsWhen you open a form to fill out, Out-of-the-box SharePoint will time out that form after 30 minutes.<br />
This is very annoying because the form will just disappear and the data will be gone so the user has to start filling the form all over again.<br />
<br />
You see in the logs a <b>Failed to find entry in cache</b> error message:<br />
<br />
<pre class="brush: bash;"> 34823 04/08/2013 16:18:42.29 w3wp.exe (0x2D84) 0x10A8 SharePoint Foundation General ajb4t Monitorable ViewStateLog: Failed to find entry in cache: https://portal/sites/Site1/List1/CreateForm.aspx?RootFolder=&IsDlg=1, de60c66b-76f5-4f24-8582-2205a96a949f 94bf0f9c-dd82-80a3-b6fd-cdd46cdfc506
34824 04/08/2013 16:18:42.33 w3wp.exe (0x2D84) 0x10A8 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (EnsureListItemsData). Execution Time=33.8073 94bf0f9c-dd82-80a3-b6fd-cdd46cdfc506
34826 04/08/2013 16:18:42.41 w3wp.exe (0x2D84) 0x10A8 SharePoint Foundation Database ahjqp High [Forced due to logging gap, cached @ 04/08/2013 16:18:42.36, Original Level: Verbose] SQL connection time: 0.0708 94bf0f9c-dd82-80a3-b6fd-cdd46cdfc506
34827 04/08/2013 16:18:42.41 w3wp.exe (0x2D84) 0x10A8 SharePoint Foundation General g3ql High [Forced due to logging gap, Original Level: Verbose] GetUriScheme(/sites/Site1/List1/) 94bf0f9c-dd82-80a3-b6fd-cdd46cdfc506
34828 04/08/2013 16:18:42.46 w3wp.exe (0x2D84) 0x10A8 SharePoint Foundation General af4yd High [Forced due to logging gap, cached @ 04/08/2013 16:18:42.46, Original Level: Verbose] TenantAppEtag record requested but there is no sitesubscription or tenantId for site {0} so we will use the WebApp Id for the cache. 94bf0f9c-dd82-80a3-b6fd-cdd46cdfc506
34829 04/08/2013 16:18:42.46 w3wp.exe (0x2D84) 0x10A8 SharePoint Foundation General af4yd High [Forced due to logging gap, Original Level: Verbose] TenantAppEtag record requested but there is no sitesubscription or tenantId for site {0} so we will use the WebApp Id for the cache. 94bf0f9c-dd82-80a3-b6fd-cdd46cdfc506
34830 04/08/2013 16:18:42.49 w3wp.exe (0x2D84) 0x10A8 SharePoint Foundation General aj007 Medium skip refreshToken because the token in memory is not fresh 94bf0f9c-dd82-80a3-b6fd-cdd46cdfc506
34831 04/08/2013 16:18:42.50 w3wp.exe (0x2D84) 0x10A8 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Render Ribbon.). Parent SharePointForm Control Render 94bf0f9c-dd82-80a3-b6fd-cdd46cdfc506
34832 04/08/2013 16:18:42.51 w3wp.exe (0x2D84) 0x10A8 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Render Ribbon.). Execution Time=4.2422 94bf0f9c-dd82-80a3-b6fd-cdd46cdfc506
34833 04/08/2013 16:18:42.51 w3wp.exe (0x2D84) 0x10A8 SharePoint Server Search Query dn4s High FetchDataFromURL start at(outside if): 1 param: start 94bf0f9c-dd82-80a3-b6fd-cdd46cdfc506
34834 04/08/2013 16:18:42.53 w3wp.exe (0x2D84) 0x10A8 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Request (POST:https://portal/sites/Site1/List1/CreateForm.aspx?RootFolder=&IsDlg=1)). Execution Time=313.8202 94bf0f9c-dd82-80a3-b6fd-cdd46cdfc506
</pre>
<br />
<h3>
Solution</h3>
<div>
<br />
There are a so many types of timeouts so finding the right one to tamper was a real quest.</div>
<div>
<br />
Here's the solution:</div>
<div>
<br /></div>
<div>
<br /></div>
<pre class="brush: bash;">PS> $SPSite = Get-SPSite("https://portal")
PS> $webApp = $SPSite.WebApplication
PS> $webApp.FormDigestSettings
Enabled Expires Timeout UpgradedPersistedProperties
------- ------- ------- ---------------------------
True False 0:30:00 {}
PS> $webApp.FormDigestSettings.Timeout = New-TimeSpan -Hours 8
PS> $webApp.Update()
</pre>
Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com2tag:blogger.com,1999:blog-1570818906168332967.post-52250669056223534862013-08-05T19:03:00.001+03:002013-08-05T19:29:24.856+03:00SharePoint Search Index/Partition DegradedToday I reconfigured my <b>Search Service Application</b> following <a href="http://www.ashokraja.me/tips/Fixing-Performance-Issue-Caused-By-Node-Runner-In-SharePoint-2013-Preview">this</a> post. After restarting the <b>SharePoint Search Host Controller</b> in <b>services.msc</b>, I observed that the search is not working in SharePoint.<br />
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhufWCd50AFJnR852_JP2oo5abyeWdlJTa_zMZEcHB0iOzF7Ea_8yXRJOLSQtWB7X6VwnZb7HQHQdCBsshQuP5tbSO4mWQKMc-esCNMZpqji8djC2KimOiB901JG2nQu4WSTtdoPkeTiuY/s1600/SearchNotWorking.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="201" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhufWCd50AFJnR852_JP2oo5abyeWdlJTa_zMZEcHB0iOzF7Ea_8yXRJOLSQtWB7X6VwnZb7HQHQdCBsshQuP5tbSO4mWQKMc-esCNMZpqji8djC2KimOiB901JG2nQu4WSTtdoPkeTiuY/s640/SearchNotWorking.JPG" width="640" /></a></div>
<br />
Lots of logs, not much sense:<br />
<br />
<br />
<pre class="brush: bash;"> 63479 08/05/2013 16:54:39.47 w3wp.exe (0x5604) 0x5BA8 SharePoint Foundation Logging Correlation Data xmnv Medium Name=Request (POST:https://spsrv:443/_vti_bin/client.svc/ProcessQuery) ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63480 08/05/2013 16:54:39.47 w3wp.exe (0x5604) 0x5BA8 SharePoint Foundation Authentication Authorization agb9s Medium Non-OAuth request. IsAuthenticated=True, UserIdentityName=0#.w|domain\levente.rog, ClaimsCount=44 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63481 08/05/2013 16:54:39.47 w3wp.exe (0x5604) 0x4FC4 SharePoint Foundation CSOM agw10 Medium Begin CSOM Request ManagedThreadId=129, NativeThreadId=20420 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63482 08/05/2013 16:54:39.47 w3wp.exe (0x5604) 0x4FC4 SharePoint Foundation Logging Correlation Data xmnv Medium Site=/ ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63483 08/05/2013 16:54:39.48 w3wp.exe (0x5604) 0x4FC4 SharePoint Foundation CSOM ai3c0 Medium Do not Check SPBasePermissions.UseRemoteAPIs permission. Site.ClientObjectModelRequiresUseRemoteAPIsPermission=True, IisSettings.ClientObjectModelRequiresUseRemoteAPIsPermission=False ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63484 08/05/2013 16:54:39.48 w3wp.exe (0x5604) 0x4FC4 SharePoint Portal Server Microfeeds aizmk High serviceHost_RequestExecuting ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63485 08/05/2013 16:54:39.48 w3wp.exe (0x5604) 0x4FC4 SharePoint Server Search Query dka1 High SearchServiceApplicationProxy::Execute--Proxy Name:Search Service Application EndPoint: http://spsrv:32843/10a7e48389aa4a9fa6d2bc80ef80c1e2/SearchService.svc ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63486 08/05/2013 16:54:39.48 w3wp.exe (0x5604) 0x4FC4 SharePoint Server Search Query dk8z High SearchServiceApplicationProxy::GetChannel--Channel Creation time: 0 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63487 08/05/2013 16:54:39.48 w3wp.exe (0x5604) 0x4FC4 SharePoint Foundation Topology e5mc Medium WcfSendRequest: RemoteAddress: 'http://spsrv:32843/10a7e48389aa4a9fa6d2bc80ef80c1e2/SearchService.svc' Channel: 'Microsoft.Office.Server.Search.Administration.ISearchServiceApplication' Action: 'http://tempuri.org/ISearchQueryServiceApplication/Execute' MessageId: 'urn:uuid:ed03e528-5d72-49fd-81c3-33f6c61a6eb5' ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63489 08/05/2013 16:54:39.50 w3wp.exe (0x1A6C) 0x1A98 SharePoint Foundation Topology e5mb Medium WcfReceiveRequest: LocalAddress: 'http://spsrv.domain.local:32843/10a7e48389aa4a9fa6d2bc80ef80c1e2/SearchService.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://tempuri.org/ISearchQueryServiceApplication/Execute' MessageId: 'urn:uuid:ed03e528-5d72-49fd-81c3-33f6c61a6eb5' ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63490 08/05/2013 16:54:39.50 w3wp.exe (0x1A6C) 0x1A98 SharePoint Server Search Query fla3 High SearchServiceApplication::Execute--Correlation Id: ef0e369c-1d6f-80a3-b6fd-c7ca2505f527 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63491 08/05/2013 16:54:39.50 w3wp.exe (0x1A6C) 0x1A98 SharePoint Server Search Query ac3iu High Ims::EndPoints: Candidate FewestQueries: net.tcp://spsrv/921B21/QueryProcessingComponent1/ImsQueryInternal, status: Succeeded, queries-in-progress: 0 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63492 08/05/2013 16:54:39.50 w3wp.exe (0x1A6C) 0x1A98 SharePoint Server Search Query ac3ik High Ims::EndPoint: net.tcp://spsrv/921B21/QueryProcessingComponent1/ImsQueryInternal ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63493 08/05/2013 16:54:39.50 w3wp.exe (0x1A6C) 0x1A98 SharePoint Server Search Query aep7z High Ims::GetChannel--Channel Creation time: 0 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63494 08/05/2013 16:54:39.50 w3wp.exe (0x1A6C) 0x1A98 SharePoint Foundation Topology e5mc Medium WcfSendRequest: RemoteAddress: 'net.tcp://spsrv/921B21/QueryProcessingComponent1/ImsQueryInternal' Channel: 'Microsoft.Office.Server.Search.Query.IImsService' Action: 'http://tempuri.org/IImsService/Execute' MessageId: 'urn:uuid:319c9a03-9de0-4a7f-a4c3-ea000616cb0e' ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63495 08/05/2013 16:54:39.50 NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x38C4 Search Query Processing aizc0 High Microsoft.Office.Server.Search.Query.Ims.ImsQueryInternal : New request: Query text 'improve', Query template '{searchboxquery}'; HiddenConstraints: site:"https://spsrv"; SiteSubscriptionId: 00000000-0000-0000-0000-000000000000 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63496 08/05/2013 16:54:39.50 NodeRunner.exe (0x2094) 0x38C4 SharePoint Server Search Query aj41n Medium QueryTemplateHelper: Query template '{searchboxquery}' transformed to query text 'improve'. ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63497 08/05/2013 16:54:39.50 NodeRunner.exe (0x2094) 0x38C4 SharePoint Server Search Query aj41o High ProductivitySearchFlowExecutor: New request: Query template '{searchboxquery}' transformed to query text 'improve'. ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63498 08/05/2013 16:54:39.52 NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x38C4 Search Linguistic Processing ai4ah Medium Microsoft.Ceres.ContentEngine.NlpEvaluators.Tokenizer.QueryWordBreakerProducer: Expanded query tree (language en): StringNode(FirstChild=TokenNode(FirstChild=null,NextSibling=null,Length=1,Linguistics=True,Token=improve,Weight=1),NextSibling=null,Linguistics=True,Mode=And,Text=improve,Weight=0,Wildcard=False) ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63499 08/05/2013 16:54:39.52 NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x38C4 Search Query Processing aizgm Medium Microsoft.Office.Server.Search.Query.Pipeline.Executors.QueryPipelineFlowExecutor : FlowExecutor done: SearchApplication=10a7e483-89aa-4a9f-a6d2-bc80ef80c1e2. ParentFlow= SubFlowTimings: Linguistics=0 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63500 08/05/2013 16:54:39.52 NodeRunner.exe (0x2094) 0x38C4 SharePoint Server Search Query aj41n Medium QueryTemplateHelper: Query template '{?{searchTerms} -ContentClass=urn:content-class:SPSPeople}' transformed to query text 'improve -ContentClass=urn:content-class:SPSPeople'. ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63501 08/05/2013 16:54:39.52 NodeRunner.exe (0x2094) 0x38C4 SharePoint Server Search Query af5cy Medium QueryRouterEvaluator: QueryId PersonalFavorite Query, QueryRule , CorrelationId 78ec7bfc-2658-42f1-8cc2-6703c797f143, ParentCorrelationId ef0e369c-1d6f-80a3-b6fd-c7ca2505f527, SourceId cd0b4ea8-749c-4bcb-9c27-3cd8355bb774 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63502 08/05/2013 16:54:39.52 NodeRunner.exe (0x2094) 0x38C4 SharePoint Server Search Query af5cy Medium QueryRouterEvaluator: QueryId BestBet Query, QueryRule , CorrelationId cd08eaa1-9834-4151-924a-9c0726addff5, ParentCorrelationId ef0e369c-1d6f-80a3-b6fd-c7ca2505f527, SourceId 88279e87-6b55-4cd7-99a3-2cc5cc2e4924 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63503 08/05/2013 16:54:39.52 NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x4328 Search Query Processing aizgm Medium Microsoft.Office.Server.Search.Query.Pipeline.Executors.QueryPipelineFlowExecutor : FlowExecutor done: SearchApplication=10a7e483-89aa-4a9f-a6d2-bc80ef80c1e2. ParentFlow=Microsoft.SharePointSearchProviderFlow SubFlowTimings: Parsing=0 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63504 08/05/2013 16:54:39.52 NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x4328 Search Linguistic Processing ai4ah Medium Microsoft.Ceres.ContentEngine.NlpEvaluators.Tokenizer.QueryWordBreakerProducer: Expanded query tree (language en): AndNode(FirstChild=StringNode(FirstChild=TokenNode(FirstChild=null,NextSibling=null,Length=1,Linguistics=True,Token=improve,Weight=1),NextSibling=FilterNode(FirstChild=NotNode(FirstChild=ScopeNode(FirstChild=BoundaryNode(FirstChild=TokenNode(FirstChild=null,NextSibling=null,Length=1,Linguistics=True,Token=urn:content-class:SPSPeople,Weight=1),NextSibling=null,BoundaryMode=Exact),NextSibling=null,Scope=Contentclass),NextSibling=null),NextSibling=FilterNode(FirstChild=ScopeNode(FirstChild=WildcardNode(FirstChild=null,NextSibling=null,Token=https://spsrv/),NextSibling=null,Scope=SitePath),NextSibling=null)),Linguistics=True,Mode=And,Text=improve,Weight=0,Wildcard=False),... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63505 08/05/2013 16:54:39.52* NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x4328 Search Linguistic Processing ai4ah Medium ...NextSibling=null) ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63507 08/05/2013 16:54:39.53 NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x5CF0 Search Query Processing aizi4 Medium Microsoft.Office.Server.Search.Query.Pipeline.Processing.QueryRouterEvaluator : QueryRouterEvaluator:RetrieveResultsForQuery improve CorrelationId cd08eaa1-9834-4151-924a-9c0726addff5 ParentCorrelationId ef0e369c-1d6f-80a3-b6fd-c7ca2505f527 cd08eaa1-9834-4151-924a-9c0726addff5
63508 08/05/2013 16:54:39.53 NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x5CF0 Search Query Processing aizi5 Medium Microsoft.Office.Server.Search.Query.Pipeline.Processing.QueryRouterEvaluator : QueryRouterEvaluator: Received 1 SpecialTermResults results for query improve CorrelationId cd08eaa1-9834-4151-924a-9c0726addff5 ParentCorrelationId ef0e369c-1d6f-80a3-b6fd-c7ca2505f527 cd08eaa1-9834-4151-924a-9c0726addff5
63509 08/05/2013 16:54:39.53 NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x4328 Search Query Processing aizf6 High Microsoft.Office.Server.Search.Query.Pipeline.Executors.LinguisticQueryProcessingExecutor : QSC: All Annotations: <annotation attributes="{normalizedForm=" id="1" improve="" name="token" numericalattributes="{}/" range="[0,7)">,<annotation attributes="{}" id="2" name="querysegment" numericalattributes="{}/" range="[0,7)">,<annotation attributes="{Fuzzy=" core="1" dynamic="" id="2001" improve="" name="spellcheck" numericalattributes="{}/" range="[0,7)" value="4">,<annotation attributes="{Fuzzy=" core="0.857142857142857" dynamic="" id="2002" improved="" name="spellcheck" numericalattributes="{}/" range="[0,7)" value="5">,<annotation attributes="{Fuzzy=" core="0.857142857142857" dynamic="" id="2003" improves="" name="spellcheck" numericalattributes="{}/" range="[0,7)" value="6">,<annotation attributes="{value=" id="4001" name="qsc_kn... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63510 08/05/2013 16:54:39.53* NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x4328 Search Query Processing aizf6 High ...own_word" numericalattributes="{}/" range="[0,7)"> ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63511 08/05/2013 16:54:39.53 NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x4328 Search Linguistic Processing ai39e Medium Microsoft.Ceres.ContentEngine.NlpEvaluators.QuerySuggestionEvaluator: Query not changed. ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63513 08/05/2013 16:54:39.53 NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x433C Search Query Processing aizi4 Medium Microsoft.Office.Server.Search.Query.Pipeline.Processing.QueryRouterEvaluator : QueryRouterEvaluator:RetrieveResultsForQuery improve CorrelationId 78ec7bfc-2658-42f1-8cc2-6703c797f143 ParentCorrelationId ef0e369c-1d6f-80a3-b6fd-c7ca2505f527 78ec7bfc-2658-42f1-8cc2-6703c797f143
63514 08/05/2013 16:54:39.53 NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x433C Search Query Processing aizi5 Medium Microsoft.Office.Server.Search.Query.Pipeline.Processing.QueryRouterEvaluator : QueryRouterEvaluator: Received 0 PersonalFavoriteResults results for query improve CorrelationId 78ec7bfc-2658-42f1-8cc2-6703c797f143 ParentCorrelationId ef0e369c-1d6f-80a3-b6fd-c7ca2505f527 78ec7bfc-2658-42f1-8cc2-6703c797f143
63515 08/05/2013 16:54:39.53 NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x4328 Search Query Processing aizgm Medium Microsoft.Office.Server.Search.Query.Pipeline.Executors.QueryPipelineFlowExecutor : FlowExecutor done: SearchApplication=10a7e483-89aa-4a9f-a6d2-bc80ef80c1e2. ParentFlow=Microsoft.SharePointSearchProviderFlow SubFlowTimings: Linguistics=15 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63516 08/05/2013 16:54:39.53 NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x4328 Search Query Processing aizgm Medium Microsoft.Office.Server.Search.Query.Pipeline.Executors.QueryPipelineFlowExecutor : FlowExecutor done: SearchApplication=10a7e483-89aa-4a9f-a6d2-bc80ef80c1e2. ParentFlow=Microsoft.SharePointSearchProviderFlow SubFlowTimings: RecommendationsSecurityTrimming=0 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63517 08/05/2013 16:54:39.55 NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x4328 Search Search Component ajkor High Microsoft.Ceres.SearchCore.Query.MarsLookupComponent.MarsLookupUtils: Skipping requested field Rank because this is a duplicate request ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63518 08/05/2013 16:54:39.55 NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x4328 Search Search Component ajkor High Microsoft.Ceres.SearchCore.Query.MarsLookupComponent.MarsLookupUtils: Skipping requested field DocId because this is a duplicate request ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63519 08/05/2013 16:54:39.55 NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x4328 Search Search Component akebx High Microsoft.Ceres.SearchCore.Services.Query.AbstractQueryParameters: Query compressed from: 8019 to 1430 bytes. ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63520 08/05/2013 16:54:39.55 NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x4328 Search Query Processing aizgm Medium Microsoft.Office.Server.Search.Query.Pipeline.Executors.QueryPipelineFlowExecutor : FlowExecutor done: SearchApplication=10a7e483-89aa-4a9f-a6d2-bc80ef80c1e2. ParentFlow=Microsoft.SharePointSearchProviderFlow SubFlowTimings: IndexLookupPreProcessing=15 CustomSecurityTrimmingPre=0 SecurityPreProcessing=0 PeopleExpertise=0 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63521 08/05/2013 16:54:39.55 NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x4328 Search Common Processing 28 Information Component and System=Query1-10a7e483-89aa-4a9f-a6d2-bc80ef80c1e2, Correlation ID=ef0e369c-1d6f-80a3-b6fd-c7ca2505f527, Tenant ID=00000000-0000-0000-0000-000000000000 Error code=0, Flow Name=Microsoft.SharePointSearchProviderFlow, Operator Name=ParserExecutor, Message=The processing of item fails with error Cannot plan query for index system SPfb9d40f9a806. Index fragment '0' has no available cells. Cell statuses: [Cell I.0.0 on node IndexComponent1: Cell status is set to 'not available' (cell out of sync or seeding)] ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63522 08/05/2013 16:54:39.55 NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x4328 Search Query Processing aizag Unexpected Microsoft.Ceres.InteractionEngine.Component.FlowHandleRegistry : Exceptions occurred when evaluating the flow. Microsoft.Ceres.Evaluation.DataModel.EvaluationException: Cannot plan query for index system SPfb9d40f9a806. Index fragment '0' has no available cells. Cell statuses: [Cell I.0.0 on node IndexComponent1: Cell status is set to 'not available' (cell out of sync or seeding)] at Microsoft.Ceres.Evaluation.Engine.ErrorHandling.HandleExceptionRecordSetSink.DoWithTryCatch(IRecord record) at Microsoft.Ceres.InteractionEngine.Component.FlowHandleRegistry.SubmitData(FlowExecutionInfo handle, InputData inputData, Stopwatch timer, String correlationId, Guid tenantId, String query, String flowName, Int32 queryTimeoutMillis) at Microsoft.Ceres.InteractionEngine.Component.FlowHandle... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63523 08/05/2013 16:54:39.55* NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x4328 Search Query Processing aizag Unexpected ...Registry.ExecuteFlow(String flowName, InputData input, Int32 queryTimeoutMillis) ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63524 08/05/2013 16:54:39.55 NodeRunner.exe (0x2094) 0x4328 SharePoint Server Search Query af9s9 High ExecuteFlowInternal Flow:Microsoft.SharePointSearchProviderFlow Exception: Microsoft.Ceres.Evaluation.DataModel.EvaluationException: Cannot plan query for index system SPfb9d40f9a806. Index fragment '0' has no available cells. Cell statuses: [Cell I.0.0 on node IndexComponent1: Cell status is set to 'not available' (cell out of sync or seeding)] at Microsoft.Ceres.Evaluation.Engine.ErrorHandling.HandleExceptionRecordSetSink.DoWithTryCatch(IRecord record) at Microsoft.Ceres.InteractionEngine.Component.FlowHandleRegistry.SubmitData(FlowExecutionInfo handle, InputData inputData, Stopwatch timer, String correlationId, Guid tenantId, String query, String flowName, Int32 queryTimeoutMillis) at Microsoft.Ceres.InteractionEngine.Component.FlowHandleRegistry.ExecuteFlow(String flowName,... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63525 08/05/2013 16:54:39.55* NodeRunner.exe (0x2094) 0x4328 SharePoint Server Search Query af9s9 High ... InputData input, Int32 queryTimeoutMillis) ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63528 08/05/2013 16:54:39.55 NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x4328 Search Query Processing aiy95 High Microsoft.Ceres.InteractionEngine.Component.EvaluationResult : The flow handle 7e5459b9-01f5-49c2-822e-74edef5ef172 for the requested flow Microsoft.SharePointSearchProviderFlow is not in Running state. Server clean-up has been done. ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63529 08/05/2013 16:54:39.55 NodeRunner.exe (0x2094) 0x4328 SharePoint Server Search Query af9ta High QueryRouterEvaluator: evaluation failure for query improve -ContentClass=urn:content-class:SPSPeople against source 8413cd39-2156-4e00-b54d-11efd9abdb89 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63530 08/05/2013 16:54:39.55 NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x38C4 Search Query Processing aizgm Medium Microsoft.Office.Server.Search.Query.Pipeline.Executors.QueryPipelineFlowExecutor : FlowExecutor done: SearchApplication=10a7e483-89aa-4a9f-a6d2-bc80ef80c1e2. ParentFlow=Microsoft.ProductivitySearchFlow SubFlowTimings: QueryRuleConditionMatching=15 QueryTransformer=0 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63531 08/05/2013 16:54:39.55 NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x38C4 Search Query Processing aizgn Medium Microsoft.Office.Server.Search.Query.Pipeline.Executors.QueryPipelineHardWiredFlowExecutor : (FlowExecutor)eventSearchFlowDone: 10a7e483-89aa-4a9f-a6d2-bc80ef80c1e2, improve, Microsoft.ProductivitySearchFlow, 41, spsrv, Error=Cannot plan query for index system SPfb9d40f9a806. Index fragment '0' has no available cells. Cell statuses: [Cell I.0.0 on node IndexComponent1: Cell status is set to 'not available' (cell out of sync or seeding)] ef0e369c-1d6f-80a3-b6fd-c7ca2505f527 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63532 08/05/2013 16:54:39.55 NodeRunner.exe (0x2094) 0x38C4 SharePoint Server Search Query aisyt High ExecuteFlowInternal FlowExecutor:Microsoft.ProductivitySearchFlow Exception: Microsoft.Ceres.Evaluation.DataModel.EvaluationException: Cannot plan query for index system SPfb9d40f9a806. Index fragment '0' has no available cells. Cell statuses: [Cell I.0.0 on node IndexComponent1: Cell status is set to 'not available' (cell out of sync or seeding)] Server stack trace: at Microsoft.Ceres.InteractionEngine.Component.EvaluationResult.ThrowExceptionsInEvaluationEngine() at Microsoft.Ceres.InteractionEngine.Component.EvaluationResult.<getrecords>d__8.MoveNext() at Microsoft.Ceres.InteractionEngine.Component.EvaluationResult.ReadToEnd(String output) at Microsoft.Ceres.InteractionEngine.Component.EvaluationResult.Dispose(Boolean isNotAfterAbortFlow) at Microsoft.Ceres.Inter... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63533 08/05/2013 16:54:39.55* NodeRunner.exe (0x2094) 0x38C4 SharePoint Server Search Query aisyt High ...actionEngine.Component.EvaluationResult.Dispose() at Microsoft.Office.Server.Search.Query.Pipeline.QueryPipelineComponent.ExecuteFlowInternal(String flowName, KeywordQueryProperties keywordProperties, Int32 timeout) at Microsoft.Office.Server.Search.Query.Pipeline.QueryPipelineComponent.ExecuteFlow(String flowName, KeywordQueryProperties keywordProperties, Int32 timeout) at Microsoft.Office.Server.Search.Query.Pipeline.Processing.QueryRouterEvaluator.QueryRouterProducer.ExecuteQueryFlow(String flowName, KeywordQueryProperties input) at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink rep... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63534 08/05/2013 16:54:39.55* NodeRunner.exe (0x2094) 0x38C4 SharePoint Server Search Query aisyt High ...lySink) Exception rethrown at [0]: at Microsoft.Office.Server.Search.Query.Pipeline.Processing.QueryRouterEvaluator.QueryRouterProducer.ExecuteQueries(IRecord originalQueryRecord, IEnumerable`1 routingRecords, QueryExecutionContext executionContext, IUpdateableDictionaryField`2 resultField) at Microsoft.Office.Server.Search.Query.Pipeline.Processing.QueryRouterEvaluator.QueryRouterProducer.ProcessRecordCore(IRecord record) at Microsoft.Ceres.Evaluation.Processing.Executor.ProducerOperatorExecutor`1.ProcessProducerRecord(IRecord inputRecord) at Microsoft.Office.Server.Search.Query.Pipeline.Executors.ProductivitySearchFlowExecutor.ExecuteCore(KeywordQueryProperties keywordProperties) at Microsoft.Office.Server.Search.Query.Pipeline.Executors.QueryPipelineFlowExecutor.... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63535 08/05/2013 16:54:39.55* NodeRunner.exe (0x2094) 0x38C4 SharePoint Server Search Query aisyt High ...Execute(KeywordQueryProperties keywordProperties) at Microsoft.Office.Server.Search.Query.Pipeline.Executors.QueryPipelineHardWiredFlowExecutor.Execute(KeywordQueryProperties keywordProperties) at Microsoft.Office.Server.Search.Query.Pipeline.QueryPipelineComponent.ExecuteFlowInternal(IQueryPipelineFlowExecutor executor, KeywordQueryProperties keywordProperties, String flowName, Int32 timeout) ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63536 08/05/2013 16:54:39.55 NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x38C4 Search Query Processing aizc8 Monitorable Microsoft.Office.Server.Search.Query.Ims.ImsQueryInternal : Unhandled exception Microsoft.Ceres.Evaluation.DataModel.EvaluationException: Cannot plan query for index system SPfb9d40f9a806. Index fragment '0' has no available cells. Cell statuses: [Cell I.0.0 on node IndexComponent1: Cell status is set to 'not available' (cell out of sync or seeding)] Server stack trace: at Microsoft.Ceres.InteractionEngine.Component.EvaluationResult.ThrowExceptionsInEvaluationEngine() at Microsoft.Ceres.InteractionEngine.Component.EvaluationResult.<getrecords>d__8.MoveNext() at Microsoft.Ceres.InteractionEngine.Component.EvaluationResult.ReadToEnd(String output) at Microsoft.Ceres.InteractionEngine.Component.EvaluationResult.Dispose(Boolean isNotAfterAbortFlow) at Microsoft.Ceres.In... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63537 08/05/2013 16:54:39.55* NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x38C4 Search Query Processing aizc8 Monitorable ...teractionEngine.Component.EvaluationResult.Dispose() at Microsoft.Office.Server.Search.Query.Pipeline.QueryPipelineComponent.ExecuteFlowInternal(String flowName, KeywordQueryProperties keywordProperties, Int32 timeout) at Microsoft.Office.Server.Search.Query.Pipeline.QueryPipelineComponent.ExecuteFlow(String flowName, KeywordQueryProperties keywordProperties, Int32 timeout) at Microsoft.Office.Server.Search.Query.Pipeline.Processing.QueryRouterEvaluator.QueryRouterProducer.ExecuteQueryFlow(String flowName, KeywordQueryProperties input) at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink ... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63538 08/05/2013 16:54:39.55* NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x38C4 Search Query Processing aizc8 Monitorable ...replySink) Exception rethrown at [0]: at Microsoft.Office.Server.Search.Query.Pipeline.Processing.QueryRouterEvaluator.QueryRouterProducer.ExecuteQueries(IRecord originalQueryRecord, IEnumerable`1 routingRecords, QueryExecutionContext executionContext, IUpdateableDictionaryField`2 resultField) at Microsoft.Office.Server.Search.Query.Pipeline.Processing.QueryRouterEvaluator.QueryRouterProducer.ProcessRecordCore(IRecord record) at Microsoft.Ceres.Evaluation.Processing.Executor.ProducerOperatorExecutor`1.ProcessProducerRecord(IRecord inputRecord) at Microsoft.Office.Server.Search.Query.Pipeline.Executors.ProductivitySearchFlowExecutor.ExecuteCore(KeywordQueryProperties keywordProperties) at Microsoft.Office.Server.Search.Query.Pipeline.Executors.QueryPipelineFlowExecut... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63539 08/05/2013 16:54:39.55* NodeRunnerQuery1-10a7e483-89aa- (0x2094) 0x38C4 Search Query Processing aizc8 Monitorable ...or.Execute(KeywordQueryProperties keywordProperties) at Microsoft.Office.Server.Search.Query.Pipeline.Executors.QueryPipelineHardWiredFlowExecutor.Execute(KeywordQueryProperties keywordProperties) at Microsoft.Office.Server.Search.Query.Pipeline.QueryPipelineComponent.ExecuteFlowInternal(IQueryPipelineFlowExecutor executor, KeywordQueryProperties keywordProperties, String flowName, Int32 timeout) at Microsoft.Office.Server.Search.Query.Pipeline.QueryPipelineComponent.ExecuteFlow(String flowName, KeywordQueryProperties keywordProperties, Int32 timeout) at Microsoft.Office.Server.Search.Query.Ims.ImsQueryInternal.Execute(QueryProperties properties, Guid ssaId) ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63540 08/05/2013 16:54:39.55 w3wp.exe (0x1A6C) 0x1A98 SharePoint Server Search Query ac3io High Ims::Execute--Error occured: System.ServiceModel.FaultException`1[Microsoft.Office.Server.Search.Administration.SearchServiceApplicationFault]: Cannot plan query for index system SPfb9d40f9a806. Index fragment '0' has no available cells. Cell statuses: [Cell I.0.0 on node IndexComponent1: Cell status is set to 'not available' (cell out of sync or seeding)] (Fault Detail is equal to Microsoft.Office.Server.Search.Administration.SearchServiceApplicationFault). ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63541 08/05/2013 16:54:39.55 w3wp.exe (0x1A6C) 0x1A98 Search Query Processing 225 Warning w3wp.exe: Query processing component 'net.tcp://spsrv/921B21/QueryProcessingComponent1/ImsQueryInternal' changes its status to 'Failed'. ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63542 08/05/2013 16:54:39.55 w3wp.exe (0x1A6C) 0x1A98 SharePoint Server Search Query ac3is High Ims::All endpoints down, resetting... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63543 08/05/2013 16:54:39.55 w3wp.exe (0x1A6C) 0x1A98 SharePoint Server Search Query ac3iu High Ims::EndPoints: Candidate FewestQueries: net.tcp://spsrv/921B21/QueryProcessingComponent1/ImsQueryInternal, status: Succeeded, queries-in-progress: 0 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63544 08/05/2013 16:54:39.55 w3wp.exe (0x1A6C) 0x1A98 Search Query Processing 223 Critical w3wp.exe: All query processing components are in 'Failed' status. ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63545 08/05/2013 16:54:39.55 w3wp.exe (0x1A6C) 0x1A98 SharePoint Server Search Query dk68 High SearchServiceApplication::Execute--Exception: Microsoft.SharePoint.SPException: Tried IMS endpoints for operation Execute: Cannot plan query for index system SPfb9d40f9a806. Index fragment '0' has no available cells. Cell statuses: [Cell I.0.0 on node IndexComponent1: Cell status is set to 'not available' (cell out of sync or seeding)] at Microsoft.Office.Server.Search.Query.Ims.LoadBalancer.RoundRobinLoadBalancerContext.NextEndpoint(String operationName, String failMessage) at Microsoft.Office.Server.Search.Administration.SearchServiceApplication._ImsQueryInternalType.DoSpLoadBalancedImsOp[T](ImsBackedOperation`1 imsCall, Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, String operationName) at Microsoft.Office.Server.Search.Administration.SearchServiceApplication.... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63546 08/05/2013 16:54:39.55* w3wp.exe (0x1A6C) 0x1A98 SharePoint Server Search Query dk68 High ..._ImsQueryInternalType.Execute(QueryProperties properties, Guid ssaId) at Microsoft.Office.Server.Search.Administration.SearchServiceApplication.Execute(QueryProperties properties) ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63547 08/05/2013 16:54:39.55 w3wp.exe (0x1A6C) 0x1A98 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (ExecuteWcfServerOperation). Execution Time=58.3592 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63548 08/05/2013 16:54:39.56 w3wp.exe (0x5604) 0x4FC4 SharePoint Server Search Query dka5 High SearchServiceApplicationProxy::Execute--Error occured: System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Tried IMS endpoints for operation Execute: Cannot plan query for index system SPfb9d40f9a806. Index fragment '0' has no available cells. Cell statuses: [Cell I.0.0 on node IndexComponent1: Cell status is set to 'not available' (cell out of sync or seeding)] (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is: Microsoft.SharePoint.SPException: Tried IMS endpoints for operation Execute: Cannot plan query for index system SPfb9d40f9a806. Index fragment '0' has no available cells. Cell statuses: [Cell I.0.0 on node IndexComponent1: Cell status is set to 'not available' (cell out of sync or seeding)] ... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63549 08/05/2013 16:54:39.56* w3wp.exe (0x5604) 0x4FC4 SharePoint Server Search Query dka5 High ...at Microsoft.Office.Server.Search.Query.Ims.LoadBalancer.RoundRobinLoadBalancerContext.NextEndpoint(String operationName, String failMessage) at Microsoft.Office.Server.Search.Administration.SearchServiceApplication._ImsQueryInternalType.DoSpLoadBalancedImsOp[T](ImsBackedOperation`1 imsCall, Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, String operationName) at Microsoft.Office.Server.Search.Administration.SearchServiceApplication._ImsQueryInternalType.Execute(QueryProperties properties, Guid ssaId) at Microsoft.Office.Server.Search.Administration.SearchServiceApplication.Execute(QueryProperties prope...). ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63550 08/05/2013 16:54:39.56 w3wp.exe (0x5604) 0x4FC4 SharePoint Foundation CSOM ahjq1 High Exception occured in scope Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueries. Exception=Microsoft.Office.Server.Search.Query.InternalQueryErrorException: Search has encountered a problem that prevents results from being returned. If the issue persists, please contact your administrator. at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.ThrowGenericQueryException(String operationName) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoSpLoadBalancedUriWsOp[T](WebServiceBackedOperation`1 webServiceCall, Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, String operationName) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoWebServiceBackedOperation[T](String oper... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63551 08/05/2013 16:54:39.56* w3wp.exe (0x5604) 0x4FC4 SharePoint Foundation CSOM ahjq1 High ...ationName, Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, WebServiceBackedOperation`1 webServiceCall) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.Execute(QueryProperties properties) at Microsoft.Office.Server.Search.Query.Query.ExecuteQuery() at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueryInternal(Query query) at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQuery(Query query) at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueries(Dictionary`2 queries, Boolean handleExceptions) at Microsoft.Office.Server.Search.Query.SearchExecutor.<>c__DisplayClass16.<executequeries_client>b__14() at Microsoft.Office.Server.Search.Query.SearchExecutor.RunWithRemoteAPIsPermission[T](... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63552 08/05/2013 16:54:39.56* w3wp.exe (0x5604) 0x4FC4 SharePoint Foundation CSOM ahjq1 High ...Func`1 f) at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueries_Client(String[] queryIds, Query[] queries, Boolean handleExceptions) at Microsoft.Office.Server.Search.Query.SearchExecutorServerStub.ExecuteQueries_MethodProxy(SearchExecutor target, XmlNodeList xmlargs, ProxyContext proxyContext) at Microsoft.Office.Server.Search.Query.SearchExecutorServerStub.InvokeMethod(Object target, String methodName, XmlNodeList xmlargs, ProxyContext proxyContext, Boolean& isVoid) at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, XmlNodeList args, ProxyContext proxyContext, Boolean& isVoid) ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63553 08/05/2013 16:54:39.56 w3wp.exe (0x5604) 0x4FC4 SharePoint Foundation CSOM agmjp High Original error: Microsoft.Office.Server.Search.Query.InternalQueryErrorException: Search has encountered a problem that prevents results from being returned. If the issue persists, please contact your administrator. at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.ThrowGenericQueryException(String operationName) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoSpLoadBalancedUriWsOp[T](WebServiceBackedOperation`1 webServiceCall, Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, String operationName) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoWebServiceBackedOperation[T](String operationName, Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, WebServiceBackedO... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63554 08/05/2013 16:54:39.56* w3wp.exe (0x5604) 0x4FC4 SharePoint Foundation CSOM agmjp High ...peration`1 webServiceCall) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.Execute(QueryProperties properties) at Microsoft.Office.Server.Search.Query.Query.ExecuteQuery() at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueryInternal(Query query) at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQuery(Query query) at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueries(Dictionary`2 queries, Boolean handleExceptions) at Microsoft.Office.Server.Search.Query.SearchExecutor.<>c__DisplayClass16.<executequeries_client>b__14() at Microsoft.Office.Server.Search.Query.SearchExecutor.RunWithRemoteAPIsPermission[T](Func`1 f) at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueries_Clien... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63555 08/05/2013 16:54:39.56* w3wp.exe (0x5604) 0x4FC4 SharePoint Foundation CSOM agmjp High ...t(String[] queryIds, Query[] queries, Boolean handleExceptions) at Microsoft.Office.Server.Search.Query.SearchExecutorServerStub.ExecuteQueries_MethodProxy(SearchExecutor target, XmlNodeList xmlargs, ProxyContext proxyContext) at Microsoft.Office.Server.Search.Query.SearchExecutorServerStub.InvokeMethod(Object target, String methodName, XmlNodeList xmlargs, ProxyContext proxyContext, Boolean& isVoid) at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, XmlNodeList args, ProxyContext proxyContext, Boolean& isVoid) ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63556 08/05/2013 16:54:39.56 w3wp.exe (0x5604) 0x4FC4 SharePoint Portal Server Microfeeds aizmo Medium SocialRESTExceptionProcessingHandler.DoServerExceptionProcessing - SharePoint Server Exception [Microsoft.Office.Server.Search.Query.InternalQueryErrorException: Search has encountered a problem that prevents results from being returned. If the issue persists, please contact your administrator. at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.ThrowGenericQueryException(String operationName) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoSpLoadBalancedUriWsOp[T](WebServiceBackedOperation`1 webServiceCall, Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, String operationName) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoWebServiceBackedOperation[T](String operationName... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63557 08/05/2013 16:54:39.56* w3wp.exe (0x5604) 0x4FC4 SharePoint Portal Server Microfeeds aizmo Medium ..., Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, WebServiceBackedOperation`1 webServiceCall) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.Execute(QueryProperties properties) at Microsoft.Office.Server.Search.Query.Query.ExecuteQuery() at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueryInternal(Query query) at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQuery(Query query) at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueries(Dictionary`2 queries, Boolean handleExceptions) at Microsoft.Office.Server.Search.Query.SearchExecutor.<>c__DisplayClass16.<executequeries_client>b__14() at Microsoft.Office.Server.Search.Query.SearchExecutor.RunWithRemoteAPIsPermission[T](Func`1 f)... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63558 08/05/2013 16:54:39.56* w3wp.exe (0x5604) 0x4FC4 SharePoint Portal Server Microfeeds aizmo Medium ... at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueries_Client(String[] queryIds, Query[] queries, Boolean handleExceptions) at Microsoft.Office.Server.Search.Query.SearchExecutorServerStub.ExecuteQueries_MethodProxy(SearchExecutor target, XmlNodeList xmlargs, ProxyContext proxyContext) at Microsoft.Office.Server.Search.Query.SearchExecutorServerStub.InvokeMethod(Object target, String methodName, XmlNodeList xmlargs, ProxyContext proxyContext, Boolean& isVoid) at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, XmlNodeList args, ProxyContext proxyContext, Boolean& isVoid)] ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63559 08/05/2013 16:54:39.56 w3wp.exe (0x5604) 0x4FC4 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueries). Execution Time=74.2895 ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63560 08/05/2013 16:54:39.56 w3wp.exe (0x5604) 0x4FC4 SharePoint Foundation CSOM 2mxe High Got exception 'Microsoft.Office.Server.Search.Query.InternalQueryErrorException: Search has encountered a problem that prevents results from being returned. If the issue persists, please contact your administrator. at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.ThrowGenericQueryException(String operationName) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoSpLoadBalancedUriWsOp[T](WebServiceBackedOperation`1 webServiceCall, Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, String operationName) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoWebServiceBackedOperation[T](String operationName, Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, WebServiceBackedOp... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63561 08/05/2013 16:54:39.56* w3wp.exe (0x5604) 0x4FC4 SharePoint Foundation CSOM 2mxe High ...eration`1 webServiceCall) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.Execute(QueryProperties properties) at Microsoft.Office.Server.Search.Query.Query.ExecuteQuery() at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueryInternal(Query query) at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQuery(Query query) at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueries(Dictionary`2 queries, Boolean handleExceptions) at Microsoft.Office.Server.Search.Query.SearchExecutor.<>c__DisplayClass16.<executequeries_client>b__14() at Microsoft.Office.Server.Search.Query.SearchExecutor.RunWithRemoteAPIsPermission[T](Func`1 f) at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueries_Client... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63562 08/05/2013 16:54:39.56* w3wp.exe (0x5604) 0x4FC4 SharePoint Foundation CSOM 2mxe High ...(String[] queryIds, Query[] queries, Boolean handleExceptions) at Microsoft.Office.Server.Search.Query.SearchExecutorServerStub.ExecuteQueries_MethodProxy(SearchExecutor target, XmlNodeList xmlargs, ProxyContext proxyContext) at Microsoft.Office.Server.Search.Query.SearchExecutorServerStub.InvokeMethod(Object target, String methodName, XmlNodeList xmlargs, ProxyContext proxyContext, Boolean& isVoid) at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, XmlNodeList args, ProxyContext proxyContext, Boolean& isVoid) at Microsoft.SharePoint.Client.ClientMethodsProcessor.InvokeMethod(Object obj, String methodName, XmlNodeList xmlargs, Boolean& isVoid) at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessMethod(XmlE... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63563 08/05/2013 16:54:39.56* w3wp.exe (0x5604) 0x4FC4 SharePoint Foundation CSOM 2mxe High ...lement xe) at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessOne(XmlElement xe) at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessStatements(XmlNode xe) at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessExceptionHandlingScope(XmlElement xe)' when executing '<exceptionhandlingscope id="25" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><tryscope id="27"><method id="29" name="ExecuteQueries" objectpathid="23"><parameters><parameter type="Boolean">true</parameter></parameters></method></tryscope><catchscope id="31"></catchscope></exceptionhandlingscope>'. ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63564 08/05/2013 16:54:39.56 w3wp.exe (0x5604) 0x4FC4 SharePoint Foundation CSOM agmjp High Original error: Microsoft.Office.Server.Search.Query.InternalQueryErrorException: Search has encountered a problem that prevents results from being returned. If the issue persists, please contact your administrator. at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.ThrowGenericQueryException(String operationName) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoSpLoadBalancedUriWsOp[T](WebServiceBackedOperation`1 webServiceCall, Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, String operationName) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoWebServiceBackedOperation[T](String operationName, Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, WebServiceBackedO... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63565 08/05/2013 16:54:39.56* w3wp.exe (0x5604) 0x4FC4 SharePoint Foundation CSOM agmjp High ...peration`1 webServiceCall) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.Execute(QueryProperties properties) at Microsoft.Office.Server.Search.Query.Query.ExecuteQuery() at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueryInternal(Query query) at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQuery(Query query) at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueries(Dictionary`2 queries, Boolean handleExceptions) at Microsoft.Office.Server.Search.Query.SearchExecutor.<>c__DisplayClass16.<executequeries_client>b__14() at Microsoft.Office.Server.Search.Query.SearchExecutor.RunWithRemoteAPIsPermission[T](Func`1 f) at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueries_Clien... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63566 08/05/2013 16:54:39.56* w3wp.exe (0x5604) 0x4FC4 SharePoint Foundation CSOM agmjp High ...t(String[] queryIds, Query[] queries, Boolean handleExceptions) at Microsoft.Office.Server.Search.Query.SearchExecutorServerStub.ExecuteQueries_MethodProxy(SearchExecutor target, XmlNodeList xmlargs, ProxyContext proxyContext) at Microsoft.Office.Server.Search.Query.SearchExecutorServerStub.InvokeMethod(Object target, String methodName, XmlNodeList xmlargs, ProxyContext proxyContext, Boolean& isVoid) at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, XmlNodeList args, ProxyContext proxyContext, Boolean& isVoid) at Microsoft.SharePoint.Client.ClientMethodsProcessor.InvokeMethod(Object obj, String methodName, XmlNodeList xmlargs, Boolean& isVoid) at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessMethod(Xml... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63567 08/05/2013 16:54:39.56* w3wp.exe (0x5604) 0x4FC4 SharePoint Foundation CSOM agmjp High ...Element xe) at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessOne(XmlElement xe) at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessStatements(XmlNode xe) at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessExceptionHandlingScope(XmlElement xe) ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63568 08/05/2013 16:54:39.56 w3wp.exe (0x5604) 0x4FC4 SharePoint Portal Server Microfeeds aizmo Medium SocialRESTExceptionProcessingHandler.DoServerExceptionProcessing - SharePoint Server Exception [Microsoft.Office.Server.Search.Query.InternalQueryErrorException: Search has encountered a problem that prevents results from being returned. If the issue persists, please contact your administrator. at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.ThrowGenericQueryException(String operationName) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoSpLoadBalancedUriWsOp[T](WebServiceBackedOperation`1 webServiceCall, Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, String operationName) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.DoWebServiceBackedOperation[T](String operationName... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63569 08/05/2013 16:54:39.56* w3wp.exe (0x5604) 0x4FC4 SharePoint Portal Server Microfeeds aizmo Medium ..., Int32 timeoutInMilliseconds, Int32 wcfTimeoutInMilliseconds, WebServiceBackedOperation`1 webServiceCall) at Microsoft.Office.Server.Search.Administration.SearchServiceApplicationProxy.Execute(QueryProperties properties) at Microsoft.Office.Server.Search.Query.Query.ExecuteQuery() at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueryInternal(Query query) at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQuery(Query query) at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueries(Dictionary`2 queries, Boolean handleExceptions) at Microsoft.Office.Server.Search.Query.SearchExecutor.<>c__DisplayClass16.<executequeries_client>b__14() at Microsoft.Office.Server.Search.Query.SearchExecutor.RunWithRemoteAPIsPermission[T](Func`1 f)... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63570 08/05/2013 16:54:39.56* w3wp.exe (0x5604) 0x4FC4 SharePoint Portal Server Microfeeds aizmo Medium ... at Microsoft.Office.Server.Search.Query.SearchExecutor.ExecuteQueries_Client(String[] queryIds, Query[] queries, Boolean handleExceptions) at Microsoft.Office.Server.Search.Query.SearchExecutorServerStub.ExecuteQueries_MethodProxy(SearchExecutor target, XmlNodeList xmlargs, ProxyContext proxyContext) at Microsoft.Office.Server.Search.Query.SearchExecutorServerStub.InvokeMethod(Object target, String methodName, XmlNodeList xmlargs, ProxyContext proxyContext, Boolean& isVoid) at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, XmlNodeList args, ProxyContext proxyContext, Boolean& isVoid) at Microsoft.SharePoint.Client.ClientMethodsProcessor.InvokeMethod(Object obj, String methodName, XmlNodeList xmlargs, Boolean& isV... ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63571 08/05/2013 16:54:39.56* w3wp.exe (0x5604) 0x4FC4 SharePoint Portal Server Microfeeds aizmo Medium ...oid) at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessMethod(XmlElement xe) at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessOne(XmlElement xe) at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessStatements(XmlNode xe) at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessExceptionHandlingScope(XmlElement xe)] ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63572 08/05/2013 16:54:39.56 w3wp.exe (0x5604) 0x4FC4 SharePoint Portal Server Microfeeds aizmj High serviceHost_RequestExecuted ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
63573 08/05/2013 16:54:39.56 w3wp.exe (0x5604) 0x4FC4 SharePoint Foundation CSOM agw11 Medium End CSOM Request. Duration=85 milliseconds. ef0e369c-1d6f-80a3-b6fd-c7ca2505f527
</executequeries_client></executequeries_client></executequeries_client></executequeries_client></executequeries_client></executequeries_client></getrecords></getrecords></annotation></annotation></annotation></annotation></annotation></annotation></pre>
<b>Get-SPEnterpriseSearchStatus</b> tells me that the Index Component and the Partition is degraded:<br />
<br />
<br />
<pre class="brush: bash;">PS C:\Windows\system32> $ssa = Get-SPEnterpriseSearchServiceApplication
PS C:\Windows\system32> Get-SPEnterpriseSearchStatus -Text -SearchApplication $ssa
Name : IndexComponent1
State : Degraded
State : List of degraded cells: Cell:IndexComponent1-SPeb9d40f9a806I.0.0;
Partition : 0
Host : SPSRV
Name : Cell:IndexComponent1-SPeb9d40f9a806I.0.0
State : Degraded
State : (Secondary index cell)
Primary : False
Partition : 0
Name : Partition:0
State : Degraded
State :
Degraded cells: Cell:IndexComponent1-SPeb9d40f9a806I.0.0;
Name : AdminComponent1
State : Active
Host : SPSRV
Name : QueryProcessingComponent1
State : Active
Host : SPSRV
Name : ContentProcessingComponent1
State : Active
Host : SPSRV
Name : AnalyticsProcessingComponent1
State : Active
Host : SPSRV
Name : CrawlComponent0
State : Active
Host : SPSRV
</pre>
<br />
<h3>
Solution:</h3>
<br />
Index reset + full crawl of all my content sources.<br />
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSkaP92YKgaGmDe-3INUVdrWsXetyxLqGDKqhEAU0BVt8WFOTv1pI2Mwu05FCrJcCwDj6uIHtEK4j_1zpFbRJKCiGzVrFXRhbkxa1tmJQod0V-HF1q3kmE4ZNZYcCCaP78wPVFSqf7xww/s1600/Index+Reset.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="216" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSkaP92YKgaGmDe-3INUVdrWsXetyxLqGDKqhEAU0BVt8WFOTv1pI2Mwu05FCrJcCwDj6uIHtEK4j_1zpFbRJKCiGzVrFXRhbkxa1tmJQod0V-HF1q3kmE4ZNZYcCCaP78wPVFSqf7xww/s640/Index+Reset.JPG" width="640" /></a></div>
<br />
<br />Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com9Cluj-Napoca, Romania46.777248 23.59988989999999446.6032395 23.277166399999995 46.9512565 23.922613399999992tag:blogger.com,1999:blog-1570818906168332967.post-21813252832632699932013-03-12T13:46:00.001+02:002013-03-12T13:46:15.790+02:00SharePoint PowerShell Create View Based on Existing ViewThe following PowerShell script crawls the specified lists, copies the fields from the All Items views and creates a new view named "Created By Me" and sets it as default. Tested with SharePoint 2010 but should work with 2013 as well. Tested with list but not with Document Libraries.<br />
<br />
I used <a href="http://social.technet.microsoft.com/Forums/en-US/sharepointdevelopmentprevious/thread/67693d88-9a80-46a9-b733-e9a0bb167f0a">this</a> script as a base.<br />
<br />
<br />
<pre class="brush: powershell;">$ver = $host | select version
if ($ver.Version.Major -gt 1) {$host.Runspace.ThreadOptions = "ReuseThread"}
if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null)
{
Add-PSSnapin "Microsoft.SharePoint.PowerShell"
}
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
$web = Get-SPWeb -Identity "http://portal/sites/Requests"
$lists=$web.Lists["User Request", "Hardware Request", "Employee Request"]
$SourceView="All Items"
$NewViewName="Created By Me"
$NewViewDefault=$true
foreach($list in $lists) {
$view = $list.Views[$SourceView]
$Viewfields = $list.Views[$SourceView].ViewFields.ToStringCollection()
$viewRowLimit="100"
$viewPaged=$true
$viewDefaultView=$NewViewDefault
# Setting the Query for the View
$viewQuery = "<orderby><fieldref ascending="" false="" id="" name=""></fieldref></orderby><where><eq><fieldref author="" name=""><value integer="" type=""><userid integer="" type=""></userid></value></fieldref></eq></where>"
$viewName = $NewViewName
# Finally – Provisioning the View
$myListView = $list.Views.Add($viewName, $viewFields, $viewQuery, 100, $True, $False, "HTML", $False)
# You need to Update the View for changes made to the view
# Updating the List is not enough
$myListView.DefaultView = $True
$myListView.Update()
$list.Update()
}
$web.Dispose()
</pre>
Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com2tag:blogger.com,1999:blog-1570818906168332967.post-29642562271652428332013-02-18T22:57:00.001+02:002013-02-22T10:55:45.318+02:00Microsoft.Office.Web.Environment.Sharepoint.CacheCreationJob - Object reference not set to an instance of an object.<h3>
Problem</h3>
<div>
<br /></div>
<div>
The Event Log of the SharePoint Server is reddish due to events occurring every 5 minutes:</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipgbikL_uyRo2hi4T4xBlvTgcVW19Nx8ow8fz36OsZDSfnmyElo2x2j6MO4n3gIvCSAqYitUfXfQvX7s-kn1xHDwhEXqnhCIpg8laQwneWQxJzZakqNKgGMqFFIOB0XPunBKHPEOHIAo8/s1600/Object+reference+not+set+to+an+instance+of+an+object.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="190" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipgbikL_uyRo2hi4T4xBlvTgcVW19Nx8ow8fz36OsZDSfnmyElo2x2j6MO4n3gIvCSAqYitUfXfQvX7s-kn1xHDwhEXqnhCIpg8laQwneWQxJzZakqNKgGMqFFIOB0XPunBKHPEOHIAo8/s640/Object+reference+not+set+to+an+instance+of+an+object.JPG" width="640" /></a></div>
<div>
<br /></div>
<h4>
Event Log Error:</h4>
<div>
<br /></div>
<div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;">Log Name:<span style="mso-spacerun: yes;"> </span>Application</span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;">Source:<span style="mso-spacerun: yes;"> </span>Microsoft-SharePoint
Products-SharePoint Foundation</span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;">Date:<span style="mso-spacerun: yes;"> </span>2/18/2013 7:00:01 PM</span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;">Event ID:<span style="mso-spacerun: yes;"> </span>6398</span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;">Task Category: Timer</span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;">Level:<span style="mso-spacerun: yes;"> </span>Critical</span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;">Keywords:<span style="mso-spacerun: yes;"> </span></span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;">Description:</span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;">The Execute method
of job definition<b> Microsoft.Office.Web.Environment.Sharepoint.CacheCreationJob</b>
(ID 8ea0b71c-08c4-4644-a0bc-c361c391bc45) threw an exception. More information
is included below.</span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;"><b>Object reference not
set to an instance of an object.</b></span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;">Event Xml:</span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;"><event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"></event></span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;"><span style="mso-spacerun: yes;"> </span><system></system></span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;"><span style="mso-spacerun: yes;"> </span><provider guid="{6FB7E0CD-52E7-47DD-997A-241563931FC2}" name="Microsoft-SharePoint Products-SharePoint Foundation"></provider></span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;"><span style="mso-spacerun: yes;"> </span><eventid>6398</eventid></span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;"><span style="mso-spacerun: yes;"> </span><version>14</version></span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;"><span style="mso-spacerun: yes;"> </span><level>1</level></span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;"><span style="mso-spacerun: yes;"> </span><task>12</task></span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;"><span style="mso-spacerun: yes;"> </span><opcode>0</opcode></span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;"><span style="mso-spacerun: yes;">
</span><keywords>0x4000000000000000</keywords></span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;"><span style="mso-spacerun: yes;"> </span><timecreated systemtime="2013-02-18T17:00:01.054083700Z"></timecreated></span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;"><span style="mso-spacerun: yes;">
</span><eventrecordid>355489</eventrecordid></span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;"><span style="mso-spacerun: yes;"> </span><correlation activityid="{C230A054-358B-4D9F-B4FA-E1D526B47E02}"></correlation></span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;"><span style="mso-spacerun: yes;"> </span><execution processid="2720" threadid="9792"></execution></span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;"><span style="mso-spacerun: yes;"> </span><channel>Application</channel></span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;"><span style="mso-spacerun: yes;"> </span></span></i></div>
</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;"><span style="mso-spacerun: yes;"> </span><eventdata></eventdata></span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;"><span style="mso-spacerun: yes;"> </span><data name="string0">Microsoft.Office.Web.Environment.Sharepoint.CacheCreationJob</data></span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;"><span style="mso-spacerun: yes;"> </span><data name="string1">8ea0b71c-08c4-4644-a0bc-c361c391bc45</data></span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;"><span style="mso-spacerun: yes;"> </span><data name="string2">Object
reference not set to an instance of an object.</data></span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;"><span style="mso-spacerun: yes;"> </span></span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #444444;"></span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<br /></div>
<h4>
ULS Log:</h4>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<br /></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #666666;">3880 02/18/2013
19:05:00.04<span style="mso-spacerun: yes;"> </span>OWSTIMER.EXE (0x0AA0)<span style="mso-spacerun: yes;"> </span>0x2C2C<span style="mso-spacerun: yes;"> </span>SharePoint Foundation<span style="mso-spacerun: yes;"> </span>Monitoring<span style="mso-spacerun: yes;"> </span>nasq<span style="mso-spacerun: yes;"> </span>Medium<span style="mso-spacerun: yes;">
</span>Entering monitored scope (Timer Job
OfficeWebApplicationsCacheCreationJob)<span style="mso-spacerun: yes;">
</span>1ad52fe0-5766-4a71-8991-e4aa0cb9b356</span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #666666;">3881 02/18/2013
19:05:00.04<span style="mso-spacerun: yes;"> </span>OWSTIMER.EXE (0x0AA0)<span style="mso-spacerun: yes;"> </span>0x2C2C<span style="mso-spacerun: yes;"> </span>Office Web Apps<span style="mso-spacerun: yes;"> </span>Office Viewing
Architecture<span style="mso-spacerun: yes;"> </span>cu85<span style="mso-spacerun: yes;"> </span>Medium<span style="mso-spacerun: yes;">
</span>Cache Creation Job Starting [JobId:
8ea0b71c-08c4-4644-a0bc-c361c391bc45]<span style="mso-spacerun: yes;">
</span>1ad52fe0-5766-4a71-8991-e4aa0cb9b356</span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #666666;">3882 02/18/2013
19:05:00.04<span style="mso-spacerun: yes;"> </span>OWSTIMER.EXE (0x0AA0)<span style="mso-spacerun: yes;"> </span>0x2C2C<span style="mso-spacerun: yes;"> </span>Office Web Apps<span style="mso-spacerun: yes;"> </span>Office Viewing
Architecture<span style="mso-spacerun: yes;"> </span>cu86<span style="mso-spacerun: yes;"> </span>Exception<span style="mso-spacerun: yes;">
</span>Cache Creation Job encountered an exception [JobId:
8ea0b71c-08c4-4644-a0bc-c361c391bc45] System.NullReferenceException: Object
reference not set to an instance of an object.<span style="mso-spacerun: yes;"> </span>at
Microsoft.SharePoint.SPSite.PreinitializeServer(SPRequest request)<span style="mso-spacerun: yes;"> </span>at
Microsoft.SharePoint.SPSite.GetSPRequest()<span style="mso-spacerun: yes;">
</span>at Microsoft.SharePoint.SPSite.get_Request()<span style="mso-spacerun: yes;"> </span>at Microsoft.SharePoint.SPSite.get_Usage()<span style="mso-spacerun: yes;"> </span>at
Microsoft.Office.Web.Environment.Sharepoint.WacSharepointCacheOM.EnsureCacheSiteCollection(SPWebApplication
webApp, Boolean elevateReturn, String ownerLogin, String ownerName, String
ownerEmail)<span style="mso-spacerun: yes;"> </span>at
Microsoft.Office.Web.Environment.Sharepoint.WacSharepointCacheOM.EnsureCacheSiteCollection(SPWebApplication
webApp)<span style="mso-spacerun: yes;"> </span>at
Microsoft.Office.Web.Environment.Sharepoint.CacheCreationJob.Execute(SPJo...<span style="mso-spacerun: yes;"> </span>1ad52fe0-5766-4a71-8991-e4aa0cb9b356</span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #666666;">3883 02/18/2013
19:05:00.04*<span style="mso-spacerun: yes;"> </span>OWSTIMER.EXE (0x0AA0)<span style="mso-spacerun: yes;"> </span>0x2C2C<span style="mso-spacerun: yes;"> </span>Office Web Apps<span style="mso-spacerun: yes;"> </span>Office Viewing
Architecture<span style="mso-spacerun: yes;"> </span>cu86<span style="mso-spacerun: yes;"> </span>Exception<span style="mso-spacerun: yes;">
</span>...bState jobState)<span style="mso-spacerun: yes;">
</span>1ad52fe0-5766-4a71-8991-e4aa0cb9b356</span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #666666;">3884 02/18/2013
19:05:00.04<span style="mso-spacerun: yes;"> </span>OWSTIMER.EXE (0x0AA0)<span style="mso-spacerun: yes;"> </span>0x2C2C<span style="mso-spacerun: yes;"> </span>Office Web Apps<span style="mso-spacerun: yes;"> </span>Unified Logging Service<span style="mso-spacerun: yes;"> </span>c91s<span style="mso-spacerun: yes;">
</span>Monitorable<span style="mso-spacerun: yes;"> </span>Watson bucket
parameters: Office Web Apps, ULSException14, 52a97675 "office web
apps", 0e00178d "14.0.6029.0", 1f65804a
"microsoft.sharepoint", 0e0017ee "14.0.6126.0", 5021a68d
"wed aug 08 02:36:45 2012", 000057b1 "000057b1", 01ab21e4
"01ab21e4", 4a6d3421 "nullreferenceexception", 63753836
"cu86"<span style="mso-spacerun: yes;">
</span>1ad52fe0-5766-4a71-8991-e4aa0cb9b356</span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #666666;">3885 02/18/2013
19:05:00.04<span style="mso-spacerun: yes;"> </span>OWSTIMER.EXE (0x0AA0)<span style="mso-spacerun: yes;"> </span>0x2C2C<span style="mso-spacerun: yes;"> </span>SharePoint Foundation<span style="mso-spacerun: yes;"> </span>Timer<span style="mso-spacerun: yes;"> </span>6398<span style="mso-spacerun: yes;"> </span>Critical<span style="mso-spacerun: yes;">
</span>The Execute method of job definition
Microsoft.Office.Web.Environment.Sharepoint.CacheCreationJob (ID
8ea0b71c-08c4-4644-a0bc-c361c391bc45) threw an exception. More information is
included below.<span style="mso-spacerun: yes;"> </span>Object reference not set
to an instance of an object.<span style="mso-spacerun: yes;">
</span>1ad52fe0-5766-4a71-8991-e4aa0cb9b356</span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #666666;">3886 02/18/2013
19:05:00.04<span style="mso-spacerun: yes;"> </span>OWSTIMER.EXE (0x0AA0)<span style="mso-spacerun: yes;"> </span>0x2C2C<span style="mso-spacerun: yes;"> </span>SharePoint Foundation<span style="mso-spacerun: yes;"> </span>Timer<span style="mso-spacerun: yes;"> </span>72ae<span style="mso-spacerun: yes;"> </span>Unexpected<span style="mso-spacerun: yes;">
</span>Exception stack trace:<span style="mso-spacerun: yes;"> </span>at
Microsoft.SharePoint.SPSite.PreinitializeServer(SPRequest request)<span style="mso-spacerun: yes;"> </span>at
Microsoft.SharePoint.SPSite.GetSPRequest()<span style="mso-spacerun: yes;">
</span>at Microsoft.SharePoint.SPSite.get_Request()<span style="mso-spacerun: yes;"> </span>at
Microsoft.SharePoint.SPSite.get_Usage()<span style="mso-spacerun: yes;">
</span>at
Microsoft.Office.Web.Environment.Sharepoint.WacSharepointCacheOM.EnsureCacheSiteCollection(SPWebApplication
webApp, Boolean elevateReturn, String ownerLogin, String ownerName, String
ownerEmail)<span style="mso-spacerun: yes;"> </span>at
Microsoft.Office.Web.Environment.Sharepoint.WacSharepointCacheOM.EnsureCacheSiteCollection(SPWebApplication
webApp)<span style="mso-spacerun: yes;"> </span>at
Microsoft.Office.Web.Environment.Sharepoint.CacheCreationJob.Execute(SPJobState
jobState)<span style="mso-spacerun: yes;"> </span>at
Microsoft.SharePoint.Administration.SPTimerJobInvokeInternal.Invoke(SPJobDefinition
jd, Guid targetInstanceId, Boolean isTimerSer...<span style="mso-spacerun: yes;"> </span>1ad52fe0-5766-4a71-8991-e4aa0cb9b356</span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #666666;">3887 02/18/2013
19:05:00.04*<span style="mso-spacerun: yes;"> </span>OWSTIMER.EXE (0x0AA0)<span style="mso-spacerun: yes;"> </span>0x2C2C<span style="mso-spacerun: yes;"> </span>SharePoint Foundation<span style="mso-spacerun: yes;"> </span>Timer<span style="mso-spacerun: yes;"> </span>72ae<span style="mso-spacerun: yes;"> </span>Unexpected<span style="mso-spacerun: yes;">
</span>...vice, Int32& result)<span style="mso-spacerun: yes;">
</span>1ad52fe0-5766-4a71-8991-e4aa0cb9b356</span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #666666;">3891 02/18/2013
19:05:00.05<span style="mso-spacerun: yes;"> </span>OWSTIMER.EXE (0x0AA0)<span style="mso-spacerun: yes;"> </span>0x2C2C<span style="mso-spacerun: yes;"> </span>SharePoint Foundation<span style="mso-spacerun: yes;"> </span>Monitoring<span style="mso-spacerun: yes;"> </span>b4ly<span style="mso-spacerun: yes;"> </span>Medium<span style="mso-spacerun: yes;">
</span>Leaving Monitored Scope (Timer Job OfficeWebApplicationsCacheCreationJob).
Execution Time=14.8229<span style="mso-spacerun: yes;">
</span>1ad52fe0-5766-4a71-8991-e4aa0cb9b356</span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<i><span class="Apple-style-span" style="color: #666666;">3892 02/18/2013
19:05:00.05<span style="mso-spacerun: yes;"> </span>OWSTIMER.EXE (0x0AA0)<span style="mso-spacerun: yes;"> </span>0x2C2C<span style="mso-spacerun: yes;"> </span>SharePoint Foundation<span style="mso-spacerun: yes;"> </span>Performance<span style="mso-spacerun: yes;"> </span>nask<span style="mso-spacerun: yes;"> </span>Monitorable<span style="mso-spacerun: yes;">
</span>An SPRequest object was not disposed before the end of this thread.<span style="mso-spacerun: yes;"> </span>To avoid wasting system resources, dispose of
this object or its parent (such as an SPSite or SPWeb) as soon as you are done
using it.<span style="mso-spacerun: yes;"> </span>This object will now be
disposed.<span style="mso-spacerun: yes;"> </span>Allocation Id:
{ADFDB253-11D8-4E24-806E-DF9C81239608}<span style="mso-spacerun: yes;">
</span>To determine where this object was allocated, set
Microsoft.SharePoint.Administration.SPWebService.ContentService.CollectSPRequestAllocationCallStacks
= true.<span style="mso-spacerun: yes;">
</span>1ad52fe0-5766-4a71-8991-e4aa0cb9b356</span></i></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<br /></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
The problem is the "<b>Office Web Apps Cache Creation</b>" SP Job tries to run every 5 minutes but fails for some reason. The Cleanup job also fails that is scheduled to run daily.</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg23n_0u02_PO9S1Q2ZiSZ5oZ6VknDS2yFX1UNSG1EmmigBtMRF7bVro14Argi0UoQHuARvgzMPeCvWHfzf5t4RRufJm-dIPjGp5qDIA0LvIfm2XMgdJNodeO3rS6M6X296TYJwUNPQOBo/s1600/Office+Web+Apps+Cache+Creation.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg23n_0u02_PO9S1Q2ZiSZ5oZ6VknDS2yFX1UNSG1EmmigBtMRF7bVro14Argi0UoQHuARvgzMPeCvWHfzf5t4RRufJm-dIPjGp5qDIA0LvIfm2XMgdJNodeO3rS6M6X296TYJwUNPQOBo/s1600/Office+Web+Apps+Cache+Creation.png" /></a></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<br /></div>
<h3>
Solution</h3>
<div>
<br /></div>
<div>
I tried without luck:</div>
<div>
<ul>
<li>modifying the Cache DB's settings with Set-SPOfficeWebAppsCache</li>
<li>moving the Cache Db onto a different Content Database</li>
<li>removing the Word Viewing Service Application</li>
<li>stopping Excel Calculation Services, PowerPoint Service, Word Viewing Service</li>
<li>disabling and re-enabling the Office Web Apps Site Collection Feature</li>
</ul>
<div>
<br /></div>
</div>
<div>
Then, I mounted the Office Web Apps ISO, and started a repair. Rebooted the server and good to go! No more errors.</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-RCnqPqgNTmH0udLHiWWofPul5JGt0c7NN0UnDfWY6JHQUVP9_lUd0HqZs2A0NW9ooLvdWi-zwXTGOuBMqlVwBH3HJak1a9lm-SSHb2-wb-RjmFQ9zl40YENQxsUhOrQJbYXB5PV2GYI/s1600/Office+Web+Apps+Repair+CD.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="325" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-RCnqPqgNTmH0udLHiWWofPul5JGt0c7NN0UnDfWY6JHQUVP9_lUd0HqZs2A0NW9ooLvdWi-zwXTGOuBMqlVwBH3HJak1a9lm-SSHb2-wb-RjmFQ9zl40YENQxsUhOrQJbYXB5PV2GYI/s400/Office+Web+Apps+Repair+CD.JPG" width="400" /></a></div>
<div>
<br /></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<br /></div>
<b>UPDATE:</b> Don't forget to run the<b> SharePoint 2010 Products Configuration Wizard</b> after the installation if your search doesn't work.<br />
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<br /></div>
Levente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.com0