Archivo de la Categoría “Sistemas”

Hago un C&P completo de un post de Mundonix, que me ha pasado un compi y no quiero perder ;)
About Nagios (http://www.nagios.org)
Nagios is a host and service monitor designed to inform you of network problems before your clients, end-users or managers do. It has been designed to run under the Linux operating system, but works fine under most *NIX variants as well. The monitoring daemon runs intermittent checks on hosts and services you specify using external “plugins” which return status information to Nagios. When problems are encountered, the daemon can send notifications out to administrative contacts in a variety of different ways (email, instant message, SMS, etc.). Current status information, historical logs, and reports can all be accessed via a web browser.
About Centreon (http://www.centreon.com)
Centreon is a network, system, applicative supervision and monitoring tool, it is based upon the most effective Open Source monitoring engine: Nagios. Centreon provides a new frontend and new functionalities to Nagios.
Prerequisites that not covered in this guide:
- You will need some knowledge of basic Linux administration, in case you will need to do troubleshooting.
- You will need to be familiar with Nagios architecture, and know how to solve errors that comes from nagios config validation.
- You will need an MTA daemon installed & configured, so nagios will able to send notifications, good examples are sendmail, postfix, exim.
Notes before we begin:
- This guide is intended for Debian/Ubuntu based distributions. It was tested on Debian 5.0 64-bit, and Ubuntu 8.10/9.04 Server 64-bit
- Centreon version 2.1.x is required for this gude to work, version 2.0.x of Centreon won’t work with this article.
- It’s recommended to use a clean install of Debian/Ubuntu.
- All commands in this article must be run as root user, in Ubuntu you can become a root user by using command “sudo -s”.
Install required Ubuntu/Debian packages:
Debian only:
# apt-get install sudo lsb-release
dos2unix, Converts DOS <-> Unix text files, alias tofromdos:
# apt-get install tofrodos
MTA (exim by default) and mail utilities:
# apt-get install mailx
Apache web server and PHP5:
# apt-get install apache2 php5 php-pear php5-mysql php5-ldap php5-snmp php5-gd
MySQL-Server:
# apt-get install mysql-server-5.0
You will be asked to specify a new password for the MySQL “root” user. Remember it, we will use it later.

RRDTool:
# apt-get install rrdtool librrds-perl
Required Perl modules:
# apt-get install libconfig-inifiles-perl libcrypt-des-perl libdigest-hmac-perl libdigest-sha1-perl libgd-gd2-perl
SNMP daemon:
# apt-get install snmp snmpd libnet-snmp-perl libsnmp-perl
Install Nagios 3 and NDOutils for MySQL:
Type:
# apt-get install nagios3 nagios-nrpe-plugin ndoutils-nagios3-mysql
When asked for “Configure database for ndoutils-mysql with dbconfig-common?”, answer NO, Centreon installation script will deal with it.
Now let’s move/backup the original Nagios configuration directory, as Centreon will use its own structure for Nagios configuration files:
# mv /etc/nagios3 /etc/nagios3.orig
# mkdir /etc/nagios3
# cp -Rt /etc/nagios3 /etc/nagios3.orig/nagios.cfg /etc/nagios3.orig/apache2.conf /etc/nagios3.orig/stylesheets/
# chown nagios:www-data /etc/nagios3
# chmod ug+w /etc/nagios3
Install optional packages (not required):
OpenSSH server (Every linux server must have it!):
# apt-get install ssh
PHPMyAdmin – web based Mysql console:
# apt-get install phpmyadmin
Install Centreon:
Note: Before beginning the installation make sure you have an internet connection!
Now download the latest Centreon distribution (by the time of writing latest version was 2.1.1):
# cd; wget http://download.centreon.com/centreon/centreon-2.1.1.tar.gz
Centreon installation script will update PEAR modules (if required). If you are behind proxy, use following command for PEAR proxy configuration:
# pear config-set http_proxy http://<my_proxy>:<port>/
Replace “<my_proxy>” with to your proxy address and “<port>” with your proxy port.
Next, type following commands (remember to replace the names to Centreon version you use):
# tar xzf centreon-2.1.1.tar.gz
# cd centreon-2.1.1
# ./install.sh -i
Let’s follow the installation script questions:
Press “Enter” to read the Centreon License, then type “y” to accept it.
Do you want to install : Centreon Web Front
[y/n], default to [n]: y
Do you want to install : Centreon CentCore
[y/n], default to [n]: y
Do you want to install : Centreon Nagios Plugins
[y/n], default to [n]: y
Do you want to install : Centreon Snmp Traps process
[y/n], default to [n]: y
Where is your Centreon directory?
default to [/usr/local/centreon]: /usr/local/centreon
Do you want me to create this directory ? [/usr/local/centreon]
[y/n], default to [n]: y
Where is your Centreon log directory
default to [/usr/local/centreon/log]: /usr/local/centreon/log
Do you want me to create this directory ? [/usr/local/centreon/log]
[y/n], default to [n]: y
Where is your Centreon etc directory
default to [/etc/centreon]: /etc/centreon
Do you want me to create this directory ? [/etc/centreon]
[y/n], default to [n]: y
Where is your Centreon generation_files directory?
default to [/usr/local/centreon]: /usr/local/centreon
Where is your Centreon variable library directory?
default to [/var/lib/centreon]: /var/lib/centreon
Do you want me to create this directory ? [/var/lib/centreon]
[y/n], default to [n]: y
Where is your CentPlugins Traps binary
default to [/usr/local/centreon/bin]: /usr/local/centreon/bin
Do you want me to create this directory ? [/usr/local/centreon/bin]
[y/n], default to [n]: y
Where is the RRD perl module installed [RRDs.pm]
default to [/usr/lib/perl5/RRDs.pm]: /usr/lib/perl5/RRDs.pm
Where is PEAR [PEAR.php]
default to [/usr/share/php/PEAR.php]: /usr/share/php/PEAR.php
Where is installed Nagios ?
default to [/usr/local/nagios]: /usr/lib/cgi-bin/nagios3
Where is your nagios config directory
default to [/usr/local/nagios/etc]: /etc/nagios3
Where is your Nagios var directory ?
default to [/usr/local/nagios/var]: /var/lib/nagios3
Where is your Nagios plugins (libexec) directory ?
default to [/usr/local/nagios/libexec]: /usr/lib/nagios/plugins
Where is your Nagios image directory ?
default to [/usr/local/nagios/share/images/logos]: /usr/share/nagios/htdocs/images/logos
Where is your NDO ndomod binary ?
default to [/usr/sbin/ndomod.o]: /usr/lib/ndoutils/ndomod-mysql-3x.o
Where is sudo configuration file
default to [/etc/sudoers]: /etc/sudoers
Do you want me to configure your sudo ? (WARNING)
[y/n], default to [n]: y
Do you want to add Centreon Apache sub configuration file ?
[y/n], default to [n]: y
Do you want to reload your Apache ?
[y/n], default to [n]: y
Do you want me to install/upgrade your PEAR modules
[y/n], default to [y]: y
Where is your Centreon Run Dir directory?
default to [/var/run/centreon]: /var/run/centreon
Do you want me to create this directory ? [/var/run/centreon]
[y/n], default to [n]: y
Where is your CentStorage binary directory
default to [/usr/local/centreon/bin]: /usr/local/centreon/bin
Where is your CentStorage RRD directory
default to [/var/lib/centreon]: /var/lib/centreon
Do you want me to install CentStorage init script ?
[y/n], default to [n]: y
Do you want me to install CentStorage run level ?
[y/n], default to [n]: y
Where is your CentCore binary directory
default to [/usr/local/centreon/bin]: /usr/local/centreon/bin
Do you want me to install CentCore init script ?
[y/n], default to [n]: y
Do you want me to install CentCore run level ?
[y/n], default to [n]: y
Where is your CentPlugins lib directory
default to [/var/lib/centreon/centplugins]: /var/lib/centreon/centplugins
Do you want me to create this directory ? [/var/lib/centreon/centplugins]
[y/n], default to [n]: y
Where is your SNMP configuration directory
default to [/etc/snmp]: /etc/snmp
Where is your SNMPTT binaries directory
default to [/usr/local/centreon/bin/]: /usr/local/centreon/bin/
Continue the installation with the Centreon Web interface:
Open in web browser: “http://<yourserverip>/centreon/” replace “<yourserverip>” with your Centreon server ip address or hostname.
Follow Centreon Setup instructions:
- Press Start
- Check “I Accept” and press Next
- Make sure that selected “Nagios Version” is “3.x”, then press Next
- On next screen, make sure that all components status is “OK”, then press Next
- If all components are “OK”, then press Next again
- Fill required DB info as follows, then press Next
· Root Password for MySQL: [MySQL root password which you entered during MySQL installation]
· Centreon Database Name: centreon
· Centreon Data Storage Database Name: centstorage
· Database Password: centreon
· Confirm it: centreon
· MySQL Client version (Password Haching Changes): >=4.1 – PASSWORD()
- Press Next in the screen of DataBase Verification
- Fill required Admin user info, then press next (make sure that a username is Admin)
- Check “No” in “LDAP Authentication” screen, then press Next
- Press Next again
- Press Next in “Creating Database” screen
- Press on “Click here to complete your install”
NDOUtils configuration (from command line):
In Centreon version 2.1 and newer, NDO database is configured as part of the Centreon installation. We don’t need to configure manually. We only need to enable NDO, in “/usr/default/ndoutils”.
Edit the “/usr/default/ndoutils” by typing:
# vi /etc/default/ndoutils
Change “ENABLE_NDOUTILS=0″ to “ENABLE_NDOUTILS=1″
Finalize Centreon configuration:
Open in webrowser: “http://<yourserverip>/centreon/”, replace “<yourserverip>” with your Centreon server ip address or hostname.
Go to: Configuration -> Nagios -> cgi (in sidebar), Press on “CGI.cfg” link
Change settings to some options, as writed below:
- Physical HTML Path: /usr/share/nagios3/htdocs
- URL HTML Path     : /nagios3
- Nagios Process Check Command: /usr/lib/nagios/plugins/check_nagios /var/cache/nagios3/status.dat 5 ‘/usr/sbin/nagios3′
Press Save
Go to: Configuration -> Nagios -> nagios.cfg (in sidebar), Press on “Nagios CFG 1″ link, you should be in “Files” section of the configuration screen.
Make sure to set folowing configuration values:
- Log File              : /var/log/nagios3/nagios.log
- Downtime File         : /var/lib/nagios3/downtime.dat
- Comment File          : /var/lib/nagios3/comment.dat
- Temp File             : /var/cache/nagios3/nagios.tmp
- P1 File               : /usr/lib/nagios3/p1.pl
- Lock File             : /var/run/nagios3/nagios3.pid
- Object Cache File     : /var/cache/nagios3/objects.cache
- Status File           : /var/cache/nagios3/status.dat
- External Command File : /var/lib/nagios3/rw/nagios.cmd
Now Press on “Logs Options” tab to go to “Logs Options” section.
Make sure to set folowing configuration values:
- Log Archive Path     : /var/log/nagios3/archives/
- State Retention File : /var/lib/nagios3/retention.dat
Press Save
Go to: Administration -> Options -> CentStorage (in sidebar)
Make sure to set folowing configuration values:
- Nagios current log file to parse: /var/log/nagios3/nagios.log
Press Save
Now let’s apply our changes, go to: Configuration -> Nagios
Select as below:
- Generate Configuration Files
- Include Comments
- Run Nagios debug (-v)
- Move Export Files
- Restart Nagios
- Method: “External Command”
Press Export
This will restart Nagios & apply all changes you made in Web Interface.
You will do it every time you make changes, e.g. adding/modifying of hosts, commands, contacts, services…etc…
The installation of Centreon is completed.
Final fixes (very important):
Go to terminal console, then…
In Debian/Ubuntu the user “nagios” is set to “/bin/false” shell. Because of it “centcore” and “centstorage” daemons won’t start. A reason for that is because those daemons use “su -c” command which requires a real shell, so the shell for “nagios” user must be set to “/bin/sh”:
# usermod -s /bin/sh nagios
Apply permissions for Web interface to be able to send “External Commands”, perform the following commands to change directory permissions and to make the changes permanent:
# invoke-rc.d nagios3 stop
# dpkg-statoverride –update –add nagios www-data 2710 /var/lib/nagios3/rw
# dpkg-statoverride –update –add nagios nagios 751 /var/lib/nagios3
Add htaccess user with password “P@ssw0rd” for nagios CGI:
# htpasswd -bc /etc/nagios3/htpasswd.users nagiosadmin P@ssw0rd
Allow SNMP readonly access:
# echo “rocommunity public” > /etc/snmp/snmpd.conf
If you want to allow SNMP access only for localhost then use this instead:
# echo “rocommunity public 127.0.0.1″ > /etc/snmp/snmpd.conf
Now, restart the server
# sync;sync;init 6
That’s it, after reboot, you will have a fully functional Nagios & Centreon environment.
Feel free to add comments/suggestions.

Comments No Hay Comentarios »

En Plesk 9 se ha modificado la forma de realizar los backups que se usaba desde Plesk 7.5 y se ha sustituido el formato en el que se almacenaban.

Por tanto, para poder restaurar un backup de una versión antigua de Plesk, antes es necesario convertirlo a un formato que la nueva versión pueda manejar. Vamos a ello:

1. Sino tenemos aún el backup creado, en el servidor de origen, ejecutamos:

# /usr/local/psa/bin/pleskbackup all mibackup.psa

En caso de no encontrarse pleskbackup instalado, hay que entrar al panel de control y en SERVIDOR –> ACTUALIZADOR e instalar PLESK BACKUP MANAGER.

2. Una vez tenemos el archivo de backup generado, lo movemos al servidor de destino y convertimos el archivo a formato Plesk 9.

# /usr/local/psa/bin/pre9-backup-convert -v convert -d /var/lib/psa/dumps/ mibackup.psa

El directorio /var/lib/psa/dumps es la ubicación por defecto para almacenar los backups con Plesk 9. Ahí se creará un archivo .xml con los metadatos del backup.

3. En el panel de control, accedemos a SERVIDOR –> ADMINISTRADOR DE BACKUPS –> REPOSITORIO DEL SERVIDOR.

Ahora veremos un listado de los backups disponibles, entre ellos debería aparecer el que hemos convertido, pinchamos en él y veremos las opciones y podemos empezar el proceso de restauración.

Comments 4 Comentarios »

Si se da este problema al intentar levantar el firewall de Plesk

/etc/init.d/psa-firewall start
psa-firewall: service is disabled

Prueba con esto para solucionarlo:

touch /usr/local/psa/var/modules/firewall/active.flag

Resultado:

# /etc/init.d/psa-firewall start
psa-firewall: firewall configuration successfully applied

:)

Comments No Hay Comentarios »

SYMPTOMS

I update two nodes to Windows 2003 Server SP2 and Virtuozzo containers doesn´t start.

C:\>vzlist -a

    VEID  NPROC  STATUS   IP_ADDR        HOSTNAME
        1     –  stopped  10.89.222.125  SERVICECT
      101     –  stopped  X.X.X.X      vps1
      102     –  stopped  X.X.X.X      vps2
      103   –  stopped  X.X.X.X     vps3
      104     –  stopped  X.X.X.X     vps4
      105     –  stopped  X.X.X.X     vps5

I get an error when we try to start a CT:

C:\>vzctl –verbose start 1
Starting container …
INFO:  Notify container 1: stopped starting
INFO:  start_vps_locked: container 1
INFO:  VpsVolumeMount() DISK_TYPE = 3 : 2
INFO:  VpsVolumeMount() DISK_TYPE = 3 : 2
INFO: Completed successfully VzhiveMount: "C:\vz\Private\1\root\vzquota" "C:\vz\
Templates" "w2k3"
INFO: Applying patch to C:\vz\Private\1\root\WINDOWS\system32\win32k.sys…
INFO: Patching security database…
INFO: Done!
ERROR: Error 0×1 while executing script ‘on_vps_startup.cmd 1′
INFO:  Notify container 1: stopped none

The log file shows this error:

VPS 1: ISMIGRATED=
VPS 1:  starting gateway:  nodetype: 2
VPS 1:   starting with gateway:  domain: dnsservers:  nodetype: 2  
VPS 1: sp1_sp2 upgrade failed 

 

RESOLUTION

1. Backup all containers for emergency.
2. Run Virtuozzo autoinstaller vzinstall.exe, choose Download only mode. Once components list is fetched, please choose architecture and language you have installed on this node, click OK. Autoinstaller will download both SP1 and SP2 templates.
Note: If you run vzinstall.exe on SP1 server it does not download SP2 template, because the tool checks SP level of the server and downloads corresponding templates only.
3. Go to download folder specified on step 2 and find downloaded OS template archive: e.g. w2k3en_SP2_x86.ex_
3. Rename it to w2k3en_SP2_x86.exe and run to extracte template .efd file. E.g. it would be w2k3sp2_std_20070911_en_x86.efd
4. Copy extracted w2k3sp2_std_20070911_en_x86.efd to \vz\Templates\__cache folder next to the old SP1 template.
5. Stop all containers, including the Service Container:

for /F "skip=2 usebackq tokens=*" %i in (`cmd /c "vzlist -o veid"`) do vzctl stop %i

6. Ensure that all containers are stopped using "vzlist -a" command. 
7. Uninstall current w2k3 OS template:

vzpkgdeploy -u w2k3

8. Ensure that \vz\Templates\w2k3 folder is removed.
9. Install w2k3 sp2 OS template:

vzpkgdeploy -i w2k3sp2_std_20070911_en_x86

Independently of complex template name it will be unpacked in \vz\Templates\w2k3 folder.
10. Install Microsoft Windows 2003 Service Pack 2 on the Node.
11. Reboot the Node.
IMPORTANT: Do not reboot the Hardware Node any time between steps 5 and 10.

http://kb.parallels.com/en/3596

Comments No Hay Comentarios »

Interesante y completo listado de todos los lenguajes en los que se puede programar para .NET Framework:

 

          Comments No Hay Comentarios »

          La mayoría de la gente que conozco utiliza Putty como cliente SSH bajo Windows. En muchos casos puede ser más que suficiente, pero cuando te es necesario acceder simultáneamente a varios servidores a la vez me parece un engorro un cliente sin TABS y tan poco flexible a la hora de personalizar el aspecto de las ventanas.

          Por eso, desde que mi compañero Ivan Pereiro me mostró esta herramienta no he dejado de usarla desde Windows.

          Las principales características frente a Putty son:

          - Integración con Cygwin: Si tienes instalado Cygwin, cuando instales Poderosa este se integrará de forma que puedas abrir shells Cygwin desde poderosa.

          - Tabs: Tener varias shells abiertas no implica ejecutar nuevas instancias de la aplicación, se integran todas ellas en la misma ventana de Poderosa y se cambia de una a otra a través de pestañas.

          - Dividir la ventana horizontal y verticalmente tantas veces como se desee para mostrar distintas shells: En la imagen se puede ver que la ventana se divide horizontalmente, en la parte inferior se puede ver un “top” a un server mientras la parte superior muestra a su vez una división vertical en la que a la izquierda se ve una sesión local con Cygwin y a la derecha una conexión SSH2 a un servidor remoto.

          image 

          Además de esto, cuenta con más mejoras y se pueden desarrollar plugins para la aplicación. Lo que me sorprende es que la última versión es de Noviembre del 2006. Pero aún así no conozco otro cliente de SSH para Windows gratuito que sea mejor que este.

          La página oficial de la aplicación es http://en.poderosa.org

          Comments 6 Comentarios »

          Hace poco me he enfrentado a un problema que puede suceder al migrar una base de datos a otro entorno mssql que no comparta el mismo lenguaje de instalación que el que teníamos en un principio.

          En este caso ha sido al restaurar una base de datos que se encontraba en un sql con lenguaje “español” a otro que habían instalado en “us_english”. Con el primero las fechas (campos de tipo datetime) se muestran en formato “dd/mm/yyy” pero en inglés las fechas tienen el formato “mm/dd/yyyy”.

          Si mostramos la tabla desde el Microsoft Sql Server Managmentent Studio veremos que las fechas se muestran tal y como hemos importado, pero el problema viene cuando queremos hacer una consulta por ejemplo desde nuestra web y Sql Server nos devuelve la fecha, entonces veremos que se produce un error que esta relacionado con el formato de la fecha.

          Puestos en situación, vamos manos a la obra.

          ¿Como ver el lenguaje de Sql Server?

          select @@language

          Si mssql ha sido instalado en inglés seguramente obtendrás us_english como resultado.

          ¿Como ver todos los lenguajes disponibles y sus propiedades?

          sp_helplanguage

          image

          ¿Como establecer el lenguaje?

          De esta manera establecemos el lenguaje español para todas las consultas que lancemos desde la sesión y con el usuario que estemos conectados:

          SET LANGUAGE Español

          También podemos, por ejemplo en el caso de nuestra web, antes de lanzar una consulta sql especificar el dateformat deseado en cada caso, indicando:  

          set dateformat dmy

          ¿Como establecer el lenguaje predeterminado para TODAS las bases de datos del servidor?

          De esta manera conseguimos que por defecto se devuelvan las fechas en formato dd/mm/yyyy. Lo que debemos hacer es abrir Microsoft Sql Server Managmentent Studio, ir a las propiedades del servidor SQL y en el apartado avanzado, modificar la opción idioma predeterminado por Español.

          image

           

           

           

           

           

           

           

           

           

           

           

           

          Además hay que tener en cuenta el lenguaje por defecto de los Inicios de sesión que existan en el servidor, ya que los que creemos nuevos a partir de ahora lo harán con lenguaje español. Para ello:

          USE [master]
          GO
          ALTER LOGIN [serversql\sergiosainz] WITH DEFAULT_DATABASE=[master], DEFAULT_LANGUAGE=[Spanish]
          GO

          También es posible modificar el idioma por el deseado desde las propiedades del usuario.

          image

          Comments No Hay Comentarios »

          Estos son algunos de los problemas con los que me he encontrado al instalar componentes de Persits y que suelen ser recurrentes en la mayoría de las instalaciones.

          Los componentes que ofrece Persits son: AspEmail, AspUpload, AspJpeg, AspPdf, AspEncrypt, AspGrid, AspUser, Jupload, y Xupload.

          Componentes de Persits

          ¿Instalación automática o manual?

          La instalación automática crea por defecto un directorio llamado Persits Software en Archivos de programa y además de extraer y registrar el  componente (la .dll), extrae toda la documentación del mismo, los ejemplos…

          En ocasiones falla la instalación o simplemente se quiere los componentes y ningún “extra” más. Para ello:

          1. Copia la dll en el servidor, por ejemplo aspupload.dll. Sino tienes la .dll puedes instalar en cualquier otro equipo y hacer un copy/paste del archivo.
          2. Registra el componente. Para ello debes utilizar el siguiente comando:

          regsvr32 c:\componentesasp\aspupload.dll

          3.   Da permisos a los componentes y directorios donde estos vayan a escribir. El usuario de IIS que ejecuta el sitio necesita permisos NTFS de escritura en los directorios donde tenga que escribir y necesita control total al componente para poder crear el objeto.

          La documentación de Persits recomienda Control total a todos en los directorios donde tenga que escribir y en los dll, aunque a mí me gusta ser algo más restrictivo que eso al menos en los directorios publicados con IIS.

          4.   Para todos los servicios de IIS y vuelve a levantarlos.

          net stop iisadmin /y

          iisreset /start

          Reinicio de IIS

           

          ¿x32 o x64, Qué versión escoger?

          La duda sólo la puedes tener si tu Windows es 64 bits, sino directamente escoge la versión de los componentes en 32 bits.

          Hay que tener en cuenta que cada versión de componente es un producto diferente.

          Lo que debes hacer es verificar el modo en el que corre IIS, esto se ve en la propiedad Enable32BitAppOnWin64 de la Metabase. Si esta a True IIS lanza sus procesos en modo de emulación 32 bits y si está a False (valor por defecto) entonces está corriendo en modo 64 bits.

          ¿Qué hacer si ya has adquirido la versión 64 bits y la que necesitas es la 32 bits?

          No es necesario comprar la versión 32 bits del producto si sigues estos pasos:

          1. Desinstala la versión de 64 bits.
          2. Instala la versión de 32 bits. Si lo haces de forma automática cuando te pida el key dejalo en blanco y continua, así se instala en modo trial-license.
          3. Abre el registro de windows y crea una nueva entrada llamada RegKey y que contenga la llave que tengas de Persits (Cambia AspEmail por el nombre del componente que corresponda):

          HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Persits Software\AspEmail\RegKey

          ¿Qué hacer si ya has adquirido la versión 32 bits y la que necesitas es la 64 bits?

          En este caso tienes 2 posibilidades:

          1. Comprar la versión de 64 bits.
          2. Pasar IIS a funcionar en modo 32 bits.

          cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 True

           

          Algunos errores típicos

          • AspPdf, AspUpload…

          Persits.PdfManager.1 error ’800a002e’
          Opening Output file failed: Access is denied.

          ====================================

          Persits.Upload.1 (0x800A0005)
          Access is denied.

          La solución es dar permisos al usuario de IIS (IUSR_XXXX) sobre el directorio donde vamos a guardar los archivos generados.

          • AspEmail

          Persits.MailSender.4 error ’800a0011′
          Access is denied.

          Este es otro problema común de permisos donde el usuario de IIS necesita permisos sobre el directorio de cola de mensajes (queue).

          550 Relaying Denied

          El motivo es que no se están cumpliendo las normas de envío del servidor de correo. Normalmente esto pasa por no usar un método con autenticación. Debes incluir las siguientes líneas antes de hacer el envío.

          <%
          Mail.Username = sergiosainz@mimail.com
          Mail.Password = P@ssw0rd!
          %>

          Server object, ASP 0178 (0×80070005)
          The call to Server.CreateObject failed while checking permissions. Access is denied to this object.

          Se soluciona dando permisos Control Total a Todos a los .dll.

          Comments No Hay Comentarios »

          Si por cualquier motivo no tienes el archivo de transacciones (.ldf) obtendrás un error de este tipo a la hora de intentar adjuntar una BD desde el Wizard de SQL.

          image

          Suponiendo que el .mdf esté en buenas condiciones puedes adjuntar la BD y forzando la reconstrucción del archivo de transacciones.

          El siguiente ejemplo muestra como adjuntar la BD “sergiosainz” indicando el path a mí .mdf (sustituye esos valores por los que correspondan en tu caso):

          USE [master]
          GO
          CREATE DATABASE [sergiosainz] ON
          (FILENAME = N’C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\sergiosainz.mdf’)
          FOR ATTACH_REBUILD_LOG
          GO

          Comments No Hay Comentarios »

          Al ir a publicar un nuevo post desde Windows Live Writer me he encontrado con el siguiente error:

          image

          Tratando de crearlo desde Firefox e IE no he obtenido mejores resultados, otro error…

          Todo, esto me ha llevado a hacer algún cambio para solucionarlo y de paso escribir un nuevo post ;) .

          La solución pasa por editar el .htaccess e incluir lo siguiente:

          <Files xmlrpc.php>
          SecFilterInheritance Off
          </Files>

          Por lo visto no soy el único que ha tenido este problema, si os pasa espero que esta solución os ayude como me ha ayudado a mí.

          Comments 1 Comentario »