Mostrando entradas con la etiqueta Upgrade. Mostrar todas las entradas
Mostrando entradas con la etiqueta Upgrade. Mostrar todas las entradas

sábado, 30 de agosto de 2014

Simple tip: qué son los archivos PSCDiagnostics y Upgrades Logs?

Los archivos PSCDiagnostics son los logs que se generan después de realizar alguna configuración sobre la granja de Sharepoint. Cada vez que abres la página del Central Administration se genera un nuevo archivo PSCDiagnostics. Estos archivos se generan en el mismo directorio de los trace logs (ULS logs).

Tienen el siguiente formato: PSCDiagnostics_MM_DD_YYYY_HH_MM_SS_SSS_randomnumber.log

Ejemplo:

PSCDiagnostics_8_30_2014_10_35_20_548_2921718791.log

Además estos logs son usados y analizados durante la instalación, patching, upgrades y ejecución del Sharepoint Configuration Wizard.

Cuando realizas upgrades especificamente de tu plataforma también te aparecerán los logs de upgrade, estos tienen el formato

Upgrade-DATE[YYYYMMDD]-TIME[HHMMSS-SSS].log

En el caso que el upgrade haya generado algún error, también te aparecerá otro tipo de archivo, el cual tiene el formato

Upgrade-DATE[YYYYMMDD]-TIME[HHMMSS-SSS]-error.logs

Ejemplos

Upgrade-20140825-103021-151.log

Upgrade-20140825-103021-151-error.log

 

La locación por default de estos logs son:

En SharePoint 2007: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\LOGS

En SharePoint 2010: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS

En SharePoint 2013: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS

sábado, 28 de junio de 2014

Ocultar el mensaje “Experience all that Sharepoint 2013 has to offer. Start Now or Remind me later”

image

Esta barra se muestra después de haber hecho un upgrade un site collection de 2010 a 2013. Al ocultarlo (remind me latter) se mostrará a los 30 días de nuevo.

Cómo podemos ocultar esta barra? Tan simple ejecutando el siguiente comando

Get-SPSite -Limit All -CompatibilityLevel 14 | % { $_.AllowSelfServiceUpgrade = $false }

sábado, 7 de junio de 2014

SharePoint_Config y WSS Usage: database in compatibility range and upgrade is recommended

En el central administration, en la sección “Manage Databases Upgrade Status ” me aparecería las bases de datos Sharepoint_Config y WSS UsageApplication con el mensaje “Database is in compatibility range and upgrade is recommended”

image

Para solucionarlo, abrir una consola de PowerShell (Run as a administrator) y ejecutar la siguiente línea de powershell:

PSConfig.exe -cmd upgrade -inplace b2b -force

image

image

Error al hacer un upgrade de una base de contenidos

Una de las bases de contenido estaba trabajando en modo compatibilidad. "Database is in compatibility range and upgrade is recommended"

image

Si quieren ver esta información mediante powershell, pueden ejecutar el siguiente comando:

Get-SPDatabase | ?{$_.NeedsUpgrade –eq $true} | Select Name

Pero al hacer el upgrade, me lanzó el siguiente mensaje: The feature with Id 71ad2dbb-db04-4323-b002-cffb64e57a98 is referenced in the database [WSS_Content_AppSPS], but is not installed on the current farm. The missing feature may cause upgrade to fail. Please install any solution which contains the feature and restart upgrade if necessary.

image

Claramente era una feature que no se había retractado correctamente (feature huérfana), la cual habrá que removerla de todas las bases de contenido.

La manera más fácil es usando SharePoint Feature Administration and Clean Up Tool (http://featureadmin.codeplex.com/), usando la funcionalidad “Find Faulty Feature in Farm”

image

Otra posibilidad es usar PowerShell

Mediante el nombre de la feature

$feature = Get-SPFeature | ? { $_.DisplayName -eq "My_Orphane_Feature" }
$feature.Delete()

Mediante el ID de la feature

$Feature = Get-SPFeature | ? { $_.Id -eq "featureid" }
$Feature.Delete()

Una ves que removí la feature huérfana, hago el upgrade.

Upgrade-SPContentDatabase -Identity NombreBaseContenido (en el caso de hacer el upgrade de una base de contenido)

image

sábado, 15 de febrero de 2014

Evitar que los site collection administrator hagan un upgrade de los sites collection

Get-SPSite | where compatibilitylevel –match '14' | foreach {$_.allowselfserviceupgrade=$false]

http://msdn.microsoft.com/es-es/library/microsoft.sharepoint.administration.spsiteadministration.allowselfserviceupgrade.aspx

Throttling de Upgrade en Sharepoint 2013

Es posible configurar varias settings de los upgrades de web application, a continuación lo más importantes:

  • AppPoolConcurrentUpgradeSessionLimit: setea cuantos upgrades por application pool son permitidos. Default=5
  • UsageStorageLimit: tamaño máximo de un site collection puede tener en megabytes para hacer un upgrade del sitio. Default=10 MB
  • SubWebCountLimit: número máximo de subites de un site collection que puede tener para hacer un upgrade. Default=10 subsites

Para setear los valores, ejecute el siguiente script reemplazando los valores deseados.

$wa=Get-SPWebApplication <URL>
$wa.SiteUpgradeThrottleSettings.AppPoolConcurrentUpgradeSessionLimit=<Value>
$wa.SiteUpgradeThrottleSettings.UsageStorageLimit=<Value>
$wa.SiteUpgradeThrottleSettings.SubwebCountLimit=<Value>

domingo, 25 de agosto de 2013

Sharepoint 2013 CU Junio 2013

Tratando de instalar el CU de Junio de Sharepoint 2013, al ejecutar psconfig para finalizar la instalación, me lanzaba el error que faltaban features (relacionadas al CU de junio) instalar en un par de servers, pero ya se había instalado el CU y se había reiniciado los servers.

Error: Missing on “Server”

Error: Some farm products and patches were not detected on this or other servers. If products or patches are missing locally, you must quit this program and install the required products and patches on this server before restarting this wizard.

image

Entonces lo que hice es ejecutar el siguiente comando

Get-SPProduct –local

Este comando refresca la información de hotfix instalados en el servidor local en la base de configuración. Una vez realizado la ejecución de este comando en cada servidor, actualizo (Refresh) el configuration wizard.

 

Para saber que Software falta instalar puede ejecutar el siguiente comando:

$spprod = Get-SPProduct
$spprod.Servers | select ServerName, Products, InstallStatus
$spprod.Servers | ? { $_.InstallStatus -eq "InstallRequired" } | % { $_.RequiredButMissingPatches }

Status Message

Description

No action required

Upgrade is complete on the database.

Upgrade in progress

Self-explanatory. This message will change once the database is upgraded.

Database is too old and upgrade is required

The database is outside of compatibility range and must be upgraded.

Database is in compatibility range and upgrade is recommended

The database is running within compatibility range, but can be upgraded.

Database is up to date, but some sites are not completely upgraded.

The schema of the database was successfully upgraded, however some children (site collections) within the database have failed to be completely upgraded within this content database.

Database is too new and is not supported

The database is outside of compatibility range and cannot be used by the farm because it is at a higher version level than the farm supports. Note, this shouldn’t occur for connected databases but can be reported when attempting to attach a database.

Installed

Shown to indicate that no action is required.

Missing/Required

Shown if a product is required on each server or if a patch for a given MSI is on one server but not the one this status is shown for.

Missing/Optional

Shown if a product is not required on each server.

Superseded

Shown if a patch is no longer required on a server because a newer patch supersedes it.

En el caso que necesites upgrade las bases de contenido, puedes ejecutar el siguiente script

Get-SPContentDatabase | select Name, NeedsUpgrade

 

Status Message

Description

No action required

Upgrade is complete on the database.

Upgrade in progress

Self-explanatory. This message will change once the database is upgraded.

Database is too old and upgrade is required

The database is outside of compatibility range and must be upgraded.

Database is in compatibility range and upgrade is recommended

The database is running within compatibility range, but can be upgraded.

Database is up to date, but some sites are not completely upgraded.

The schema of the database was successfully upgraded, however some children (site collections) within the database have failed to be completely upgraded within this content database.

Database is too new and is not supported

The database is outside of compatibility range and cannot be used by the farm because it is at a higher version level than the farm supports. Note, this shouldn’t occur for connected databases but can be reported when attempting to attach a database.

En el caso que hayas instalado todo el SW requerido, y te siga apareciendo el mensaje de error de “Missing on”, puedes ejecutar PSConfig  con el parámetro “-noinstallcheck”, este ignora la verificación del patch en los servers.

PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures -installcheck -noinstallcheck.

Algunos links útiles:

http://blogs.msdn.com/b/russmax/archive/2013/04/01/why-sharepoint-2013-cumulative-update-takes-5-hours-to-install.aspx

http://blogs.msdn.com/b/kaevans/archive/2013/06/11/sharepoint-2013-kb2726992-the-installation-of-this-package-failed.aspx

domingo, 18 de agosto de 2013

Error al realizar un upgrade mediante PSconfig – Sharepoint 2013

Al tratar de realizar un upgrade mediante el siguiente comando

PSCONFIG.EXE -cmd upgrade -inplace b2b -wait –force

Me lanzo el siguiente error.

An exception of type Microsoft.SharePoint.Administration.SPUpdatedConcurrencyException was thrown.  Additional exception information: An update conflict has occurred, and you must re-try this action. The object SPUpgradeSession Name=Upgrade-20130818-082650-609 was updated by XXXXXXX, in the PSCONFIG (10400) process, on machine XXXXXXX.  View the tracing log for more information about the conflict.
Microsoft.SharePoint.Administration.SPUpdatedConcurrencyException: An update conflict has occurred, and you must re-try this action. The object SPUpgradeSession Name=Upgrade-20130818-082650-609 was updated by XXXXX, in the PSCONFIG (10400) process, on machine XXXXX.  View the tracing log for more information about the conflict.
   at Microsoft.SharePoint.Administration.SPConfigurationDatabase.StoreObject(SPPersistedObject obj, Boolean storeClassIfNecessary, Boolean ensure)
   at Microsoft.SharePoint.Administration.SPPersistedObject.BaseUpdate()
   at Microsoft.SharePoint.Upgrade.SPUpgradeSession.Update()
   at Microsoft.SharePoint.Upgrade.SPUpgradeSession.ContinueOnLocalThread(Guid id, Boolean consoleOutput)
   at Microsoft.SharePoint.PostSetupConfiguration.UpgradeTask.Run()
   at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()

En los logs también aparecía

Resource id to be retrieved is UpgradeTaskFailConfigSyncDisplayLabel for language English (United States)

Para solucionarlo, tuve que limpiar toda la cache de Configuración de Sharepoint de cada servidor.

Detener el servicio de SharePoint Timer Service y Sharepoint Administration

image

Ir a hasta la carpeta de la cache, en mi caso.

%SystemDrive%\ProgramData\Microsoft\SharePoint\Config\GUID

Donde GUID es una carpeta donde está el archivo cache.ini

Ej:

image

Borrar todos los archivos XML, MENOS EL ARCHIVO INI (IMPORTANTE).

Edita el archivo Cache.Ini, reemplaza todo el contenido con el texto “1” (sin las comillas)

image

Reinicia los dos servicios windows que habias detenido. Espera hasta que se haya generado de nuevo los archivos .xml (5 minutos aproximandamente).

Hacer un iisreset

Ejecutar el siguiente comando

stsadm -o SetProperty -PropertyName command-line-upgrade-running -PropertyValue No

Y por último ejecutar de nuevo psconfig pero con más parámetros

PSCONFIG.EXE -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures

Para verificar si está todo actualizado, ejecutar el siguiente comando:

Get-SPFarm | Get-SPPendingUpgradeActions -Recursive | Out-File c:\scripts\test.txt

martes, 19 de marzo de 2013

Links útiles #26 Sharepoint 2013

1-Welcome dialog al crear MySites en Sharepoint 2013

image

http://www.ilovesharepoint.com/2013/03/get-rid-of-mysite-lets-get-social-dialog.html

2-Suite bar con el breadcrumb del site en Sharepoint 2013

Breadcrumb Sub-Sub-Site

http://sharepoint-community.net/profiles/blogs/transform-the-sharepoint-suite-bar-text-into-a-breadcrumb-with

3-Sharepoint 2013 y Live ID authentication

Guía para configurar claims authentication Live ID con Sharepoint 2013

http://projectserverblogs.com/?p=8064

4-Documentum y Sharepoint 2013

Esta guía describe como configurar el conector de Documentum en Sharepoint 2013 para indexar contenido del WebTop Documentum.

http://technet.microsoft.com/en-us/library/ff721975.aspx

5-Fuentes de resultados para el search en Sharepoint 2013

Esta guia describe las fuentes de resultados de las búsquedas de Sharepoint 2013.

http://technet.microsoft.com/en-us/library/dn186229.aspx

6-Upgrade Managed metadata de Sharepoint 2010 a 2013

Este artículo informa cómo realizar un upgrade del servicio de Metadata a 2013, y explica como consumir el servicio desde otra granja de Sharepoint 2010 existente.

http://blogs.msdn.com/b/alimaz/archive/2012/08/07/service-application-federation-between-sharepoint-2013-and-sharepoint-2010.aspx

7-Twitter Bootstrap en Sharepoint 2013

Esta guía describe la utilización del framework Booststrap con las aplicaciones de Sharepoint 2013

http://ranaictiu-technicalblog.blogspot.com.ar/2013/03/sharepoint-2013-use-twitter-bootstrap.html

8-Mapear los comandos de stsadm a comandos de powershell de Sharepoint 2013

Esta guía describe el mapeo entre los comandos de stsadm y los comandos de powershell de Sharepoint 2013

http://technet.microsoft.com/en-us/library/ff621084.aspx

9-CallOut en Sharepoint 2013

Información para utilizar la feature callout de Sharepoint, la misma permite mostrar información relevante al contexto y acciones acerca un ítem en particular.

Custom Callouts in SharePoint 2013 Preview (from Andrey Markeev's blog)

http://gluckdavid.wordpress.com/2013/03/05/create-callout-in-sharepoint-2013-basics/

http://chuvash.eu/2012/10/11/callouts-in-sharepoint-2013-preview/

http://blog.alexboev.com/2012/07/custom-callouts-in-sharepoint-2013.html

10-Extension FastDeploy para VS2012 y SP2013

Extensión para deployar archivos de recursos (scripts, css, etc) a Sharpeoint On-Premise App Model.

http://sharepointfieldnotes.blogspot.com.ar/2013/03/making-it-easy-to-develop-and-debug.html

http://visualstudiogallery.msdn.microsoft.com/9e03d0f5-f931-4125-a5d1-7c1529554fbd

sábado, 23 de febrero de 2013

Tips Info #8 Sharepoint 2013

1-Web part de Newsfeeds en otro web application diferente de MySite en Sharepoint 2013

image

Este web part pertenece a una feature oculta llamada “My Site Layout Feature”. El ID de esta feature es “”, su ubicación física es TEMPLATE\FEATURES\MySiteLayouts. Para activarla ejecute el siguiente comando, o utilice Sharepoint 2013 Manager

Enable-SPFeature -identity 6928B0E5-5707-46a1-AE16-D6E52522D52B -URL http://url_webApplication

2-Nuevo nivel de permisos en Sharepoint 2013: “Edit”

image

Más info: http://technet.microsoft.com/en-us/library/cc721640(v=office.15)

3-Remover la barra de status que informa sobre un upgrade disponible

image

Si se cierra el mensaje, la barra de status se mostrará en 30 días por default, si quiere cambiar este tiempo, puede ejecutar este comando de powershell

Get-SPWebApplication | % { $_.UpgradeReminderDelay = 90; $_.Update() }

Este comando seteará el recordatorio a 90 días. Recuerde que los administradores del site collection deben cerrar la barra, para que tome la nueva configuración.

En el caso que quieras deshabilitar el upgrade a los administradores del site collection, puede ejecutar lo siguiente:

Get-SPSite -Limit All -CompatibilityLevel 14 | % {
    $_.AllowSelfServiceUpgrade = $false }

image

4-Objeto de javascript _spPageContextInfo

Este objeto ya lo había comentado en el siguiente enlace para Sharepoint 2010. Para Sharepoint 2013 agregaron mayor cantidad de propiedades sobre el mismo.

Nombre Propiedaes

SP2010

SP2013

Valores de ejemplo

currentLanguage

X

X

3082

pageItemId

X

X

4 (Guid de la página)

pageListId

X

X

Guid de la lista

webLanguage

X

X

3082

webServerRelativeUrl

X

X

/

webUIVersion

X

X

15

alertsEnabled

X

X

True

allowSilverlightPrompt

X

X

False

userId

X

X

32

clientServerTimeDelta

 

X

Time

crossDomainPhotosEnabled

 

X

False

currentCultureName

 

X

es-es

currentUICultureName

 

X

es-es

layoutsUrl

 

X

_layouts/15

pagePersonalizationScope

 

X

1

serverRequestPath

 

X

/SitePages/Inicio.aspx

siteAbsoluteUrl

 

X

http://sp_sharepoint

siteClientTag

 

X

0$$15.0.4128.1020

siteServerRelativeUrl

 

X

/

systemUserKey

 

X

1:0).w|contoso\azcon

tenantAppVersion

 

X

0

webAbsoluteUrl

 

X

http://sp_sharepoint

webTemplate

 

X

1

webLogoUrl

 

X

_layouts/15/images/log.png

webPermMasks

 

X

{High:2147483647,Low:4294967295}

webTitle

 

X

Prueba de Contexto

5-Setear paleta de colores y theme vía powershell para Sharepoint 2013

$web = Get-SPWeb http://webapplicationURL/siteCollection/website
$file = $web.GetFile($web.ServerRelativeUrl + "/_catalogs/theme/15/MyTheme.spcolor")
$theme = [Microsoft.SharePoint.Utilities.SPTheme]::Open("MyTheme", $file)
$theme.ApplyTo($web, $false)

Para ver los nombres de los themes pueden ingresar a la siguiente url http://webapplicationURL/siteCollection/website/_catalogs/theme/forms/allitems.aspx

En el caso que quieras aplicar el theme a todos los MySites, ejecuta el siguiente script de powershell:

[Microsoft.SharePoint.SPSecurity]::RunWithElevatedPrivileges({
 
foreach ($site in (Get-SPSite http://urlWebApplicationMySite/* -Limit ALL))
{ ([Microsoft.SharePoint.Utilities.SPTheme]::Open("MyTheme", $site.RootWeb.GetFile($site.RootWeb.ServerRelativeUrl + "/_catalogs/theme/15/MyTheme.spcolor"))).ApplyTo($site.RootWeb, $true) }
})

Para mayor info de themes: http://msdn.microsoft.com/en-us/library/jj927174.aspx

Crear una custom composed look http://tommdaly.wordpress.com/2012/12/19/deploying-a-custom-composed-look-in-sharepoint-2013/