Archivo

Archive for the ‘cloud computing’ Category

System.IO.FileNotFoundException running Windows Azure PowerShell command

Fuente: http://blogs.msdn.com/b/cie/archive/2014/02/27/system-io-filenotfoundexception-running-windows-azure-powershell-command.aspx

 

I ran into this error using a fresh install of Windows Azure PowerShell (Version:0.7.3, February 2014). There were a few other
people running into this as well, so blogging it here.

Set-AzureStorageBlobContent : Could not load file or assembly ‘Microsoft.WindowsAzure.Storage.DataMovement,
Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies.
The system cannot find the file specified.
+     Set-AzureStorageBlobContent -File $filename -Container $containerName – …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Set-AzureStorageBlobContent], FileNotFoundException
+ FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.WindowsAzure.Commands.Storage.Blob.
SetAzureBlobContentCommand

The snapshot below shows the installed version from “Control Panel\Programs\Programs and Features”

clip_image002

The only place I could find the Microsoft.WindowsAzure.Storage.DataMovement.dll on the machine was the AzCopy folder and even there the version did not match.

clip_image004

Fusion log shows the failure as well.

Looks like C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\Microsoft.WindowsAzure.Commands.Storage.dll has a reference to this Microsoft.WindowsAzure.Storage.DataMovement.dll but the dll is missing.

// Microsoft.WindowsAzure.Storage.DataMovement, Version=2.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

clip_image006

Solution
======
Turns out this was a transient install failure, we were able to resolve this using the steps below.

1) Uninstall the “Windows Azure PowerShell – February 2014” from “Control Panel\Programs\Programs and Features”.
clip_image002[5]

2) Delete the following WebPI cache:
C:\Users\<userAccount>\AppData\Local\Microsoft\Web Platform Installer

3) Reinstall “Windows Azure PowerShell” .
Open WebPlatfom Installer(on a windows8 machine, you can use Start–> type “web platform Installer”) and launch the installer.
Select “Windows Azure PowerShell” and install it.

clip_image004[6]

Check the folder “C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure” to make sure that the dll “Microsoft.WindowsAzure.Storage.DataMovement.dll” is present.

Categorías: cloud computing Etiquetas: ,

download azure diagnostic logs?

Fuente: http://stackoverflow.com/questions/11112272/download-azure-diagnostic-logs

Does anyone know how to download the Azure diagnostic logs? From the control panel, it shows me an ftp link for the logs, but when I click it it prompts me for a username/password. Any username/password I try just results in a «530 User Cannot Login» error.

It looks like the same address that Vis Studio does it’s publishing to, and that had a ‘$’ before my username. I tried that as well, but no-go.

Just curious how to get the logs when you start having errors pop up in the application, or is there something else I should be doing to prepare my app for going on Azure?

Thanks, Mike

 

———

You would need to use FTP client application to access to files instead of using the Webpage as it is designed to use a client app to display the files.

I have configured FileZilla as below to access my Windows Azure websites to access Diagnostics Logs as well as use the same client application to upload/download site specific files:

enter image description here

In my blog Windows Azure Website: Uploading/Downloading files over FTP and collecting Diagnostics logs, I have described all the steps

 

Categorías: cloud computing Etiquetas:

Windows Azure Website: Uploading/Downloading files over FTP and collecting Diagnostics logs

Fuente: http://blogs.msdn.com/b/avkashchauhan/archive/2012/06/19/windows-azure-website-uploading-downloading-files-over-ftp-and-collecting-diagnostics-logs.aspx

Visit to your Go to your Windows Azure Website:

 

In your Windows Azure Website please select the following:

FTP Host Name:  *.ftp.azurewebsites.windows.net
FTP User Login Name: yourwebsitename\yourusername
Password:  your_password

 

Use FileZilla or any FTP client application and configure your FTP access as below:

 

Finally connect to your website and you will see two folders:

1. site  – This is the folder where your website specific files are located
2. Logfiles : This is the folder where your website specific Diagnostics LOG files are located.


Keywords: Windows Azure, Websites, FTP, LogFiles, Site

Categorías: cloud computing Etiquetas:

Running Powershell Web Jobs on Azure websites

Fuente: http://blogs.msdn.com/b/nicktrog/archive/2014/01/22/running-powershell-web-jobs-on-azure-websites.aspx

 

Just last week we announced a series of new features for the Windows Azure platform.  One of those features is Web Jobs support for Windows Azure Web Sites.  Web Jobs enable you to run custom jobs on your web site, either on-demand, scheduled or continuously.  However, some people have already wondered why there is no support for Powershell scripts (.ps1).  In this post I’m going to show how you can use Powershell scripts to run as a Web Job on Windows Azure Web Sites.

Setting up an Azure Web Site

The first step is to quick create an empty Azure Web Site – for the purpose of this post, we don’t need actual web content. So, just create an Azure Web Site through the Azure Management Portal.

image

Once the site is created (amazing it takes less than 10 seconds!), you should now see the ‘Web Jobs’ (preview) section.

image

In this post, we’re going to be using a very basic PowerShell script to be executed on the Web Site – the script will just retrieve the list of actively running processes on the server by invoking the Get-Process cmdlet.

Verifying it doesn’t work

Of course we want to push our luck and upload a .ps1 file to create a Web Job. When you do this, the operation will fail and you’ll be presented with the following error message in the portal:

image

Running a PowerShell Web Job

We now have validated that we cannot use a PowerShell script to create a Web Job, but how can we achieve this?  As you may know, Powershell can be invoked from the commandline, by means of PowerShell.exe.  This is exactly what we’re going to do to use PowerShell as a Web Job.

First step is to create a Windows command file (.cmd or .bat) which will invoke PowerShell.exe and providing it our PowerShell commands. This is the contents of our ListProcessesPS.cmd file:

PowerShell.exe -Command «& {Get-Process}»

After zipping up this file we can now create a Web Job through the Azure Management portal:

image

The Job is created successfully and we are ready to launch it. Once the Last Run Result shows ‘Success’ we can view the outcome of the Job by navigating to the logs.

image

Below screenshot shows the outcome of running the PowerShell command on our Azure Web Site!

image

Using a separate PowerShell script – Take 1

Of course, this solution is not optimal if you have multi-line, complex PowerShell scripts.  Ideally we want to be able to create a PowerShell script file that is separate from the command script. Looking at the PowerShell.exe command-line reference, there is a parameter that allows us to invoke a PowerShell script, namely the –File parameter. So we adapt the command script accordingly:

PowerShell.exe -File Get-Processes.ps1  

We then create a zip file containing both the ps1 and cmd files and upload it to create a new Web Job. However, when you run the Web Job, we don’t get the outcome we expected. We receive an error file, which indicates that the PowerShell script we’re trying to execute is not digitally signed and therefore cannot be executed.

image

Using a separate PowerShell script – Take 2

Reverting back to the PowerShell.exe command-line reference, another command-line parameter comes to the rescue to get around this digital signature issue: –ExecutionPolicy. We update the Windows command file as follows:

PowerShell.exe -ExecutionPolicy RemoteSigned -File Get-Processes.ps1

What’s happening here is that we tell PowerShell to run all local scripts and only require a digital signature for scripts that are being downloaded from the Internet.

We update the zip file with the updated Windows command file and the PowerShell script and create a new Web Job.  When running the Job, we finally get the expected results!

image

Conclusion

As you’ve seen, there is actually a way to run PowerShell scripts as Web Jobs on Windows Azure Web Sites. You currently need to invoke it through an intermediate Windows command file instead of natively supporting .ps1 files, but in the end we got a workable solution.

Did you know that you can try Windows Azure for free?

 

 

Categorías: cloud computing Etiquetas:

Google Idrive: install error 1603 (windows)

1- download ant install Microsoft Visual C++ 2008 SP1 Redistributable Package,  link is to Microsoft (here) and will get you a download link. It is only 4.0MB.

2- Download a different Drive installation file from here: http://dl.google.com/drive/1.0.2891.6813/gsync.msi

3- reboot

Categorías: cloud computing Etiquetas:

Probando ownCloud, el Dropbox libre

Fuente: http://blog.unlugarenelmundo.es/2012/04/29/probando-owncloud-el-dropbox-libre/

Hace algo más de dos años que la gente de KDE anunció un proyecto llamado ownCloud, un sistema de copia y sincronización de archivos “en la nube” basado en un servicio LAMP en la parte del servidor y el uso de csyncen la parte del cliente. El resultado es que cualquiera pueda montarse su propio servicio de sincronización de ficheros similar a Dropbox o SugarSync, pero sin restricciones de espacio y/o tráfico (más allá de lo que le permita su propio servidor o su servicio de hosting) y sin plantearse dilemas de privacidad. El desarrollo ha sido muy rápido (hace dos meses que vió la luz la versión 3 del servidor y la 1 del principal cliente) y realmente, merece la pena probarlo y echarle un vistazo.

El aspecto realmente “potente” de ownCloud es montar tu propio servicio, pero si no tienes medios o prefieres empezar por evaluar si te gusta de forma sencilla, puedes hacerlo a través de algún proveedor externo, que ya los hay. Existen servicios de pago y otros que, al igual que Dropbox y similares, ofrecen una modalidad de entrada gratuita y opciones adicionales por las que hay que pagar (freemiun que lo llaman por ahí). Owncube ofrece cinco Gbytes de espacio gratuito y GetFreeCloud, ofrece seis. Yo te aconsejo que empieces por Owncube puesto que ha actualizado ya su versión a la 3.0.2 y hasta la anterior, la 3.0.1 que es la usada en GetFreeCloud, existen un par de vulnerabilidades que pueden aprovecharse fácilmente a través de Metasploit. (Ver ACTUALIZACIÓN (y II))

Crear una cuenta en cualquiera de ambos servicios es fácil: nombre, contraseña, correo electrónico y listo. Sólo con eso ya tienes un servicio de almacenamiento con un cómodo interfaz web. Interfaz web de owncloud

Pero si realmente le quieres sacar partido a la sincronización automática de archivos entre tu equipo y el servidor y/o entre distintos equipos, necesitas instalarte un software cliente. En el anterior enlace tienes los binarios disponibles para Windows y las principales distribuciones de Linux. Los de Mac y Android (Ver ACTUALIZACIÓN) aún están en fase de desarrollo y no están disponibles. Para distribuciones “marginales” de Linux tienes los fuentes y detalladas instrucciones de compilación, aunque imagino que la mayoría de ellas tendrán ya listos paquetes más o menos oficiales. Yo estoy usando Chakra en estos momentos (y muy contento, ya os hablaré de ello en otra ocasión) y el pkgbuild correspondiente está disponible aquí.

owncloud-client en el system tray de Chakra Linux Una vez instalado tenemos un icono disponible en la bandeja del sistema con un menú contextual bien sencillo: La opción de Configurar nos permite cambiar los datos de conexión con el servidor de sincronización y la opción de Add Folder nos permite añadir un nuevo directorio al servicio. Luego tenemos una entrada por cada directorio que se está sincronizando que nos abre directamente el administrador de archivos por defecto en dicho directorio local y la opción de cerrar el servicio (Quit). Si pulsamos con el botón izquierdo sobre el icono, en lugar de este menú se nos abrirá una ventana con información sobre el estado de sincronización de los directorios y la posibilidad de elmininarlos (del servicio, no de borrarlos), añadir nuevos, parar temporalmente el servicio en uno de ellos o volver a reanudarlo, etc. owncloud-client

En la funcionalidad de “añadir directorios” es donde, quizás, se aprecia mejor la diferencia en la filosofía de uso frente a Dropbox que, tal vez, es su competidor más popular. Aquí no existe un único directorio de sincronización sino que los añadimos de forma individual aunque estos se encuentre en diferentes sitios de nuestro sistema de archivos. En Dropbox solemos resolver este asunto (al menos desde Linux) mediante enlaces simbólicos pero este método es bastante más flexible y cómodo. Además, podemos realizar la sincronización de un directorio en particular no sólo contra el servidor que hemos configurado “en la nube” sino contra otro directorio local o contra cualquier otra URL donde, lógicamente, debemos de tener acceso de escritura. Esto nos abre 1001 posibilidades de salvaguarda de nuestros datos. diferentes modalidades de sincronización disponibles en owncloud-client

Volviendo al interfaz web, este tiene algunos “complementos” bastante útiles que podemos apreciar en el menú de enlaces a la izquierda: bookmarks, calendarios, contactos y dos entradas llamadas Música y Galería donde, automáticamente y de forma similar a como hace Android, se recopilan entradas a este tipo de archivos independientemente del directorio donde se encuentren. Ah, y en la opción de música tenemos un reproductor y todo ;-) galería de imágenes en la interfaz web de owncloud

No he encontrado forma de sincronizar el calendario o los bookmarks con otros servicios externos y los contactos deberían de poder sincronizarse con los de GMail a través de una opción existente en el menú de Ajustes (la rueda dentada que aparece en la parte inferior izquierda) pero no he logrado hacer que funcione.

Para los amigos de la línea de comando, existe un cliente de administración opcional para la consola llamado owncloud-admin. Los ficheros de configuración, al menos en mi distribución, se guardan en el directorio $HOME/.local/share/data/ownCloud/ Allí nos llevaremos la desagradable sorpresa de que el usuario y la contraseña de nuestro servidor de sincronización se guardan en claro dentro del fichero owncloud.cfg. En la instalación del cliente se nos pregunta si queremos que esta no se guarde y se nos pregunte en cada arranque pero, vaya, sería deseable una mayor integración con kwallet, el servicio de gestión de contraseñas propio de KDE.

Está claro que el desarrollo tiene aún muchos detalles por pulir y mejorar. He tenido problemas durante las pruebas con supuestos desajustes horarios entre cliente y servidor (que se han solucionado eliminando el servicio de sincronización y volviéndolo a crear, luego se trata de otra cosa…) y echo de menos que sincronice el contenido de enlaces simbólicos en el equipo local (cosa que no hace). Se echan de menos, además, opciones disponibles en Dropbox desde hace tiempo (como, por ejemplo, la recuperación de versiones anteriores de un archivo). También sería deseable que, ya puestos, pudiéramos sincronizar distintas carpetas contra diferentes servidores de owncloud. Y, desde luego, los clientes móviles deberían de estar disponibles pronto si quieren que el servicio entre a competir con los grandes. Pero de entrada, y a mi juicio, tiene muchas posibilidades y se trata del primer servicio de este tipo verdaderamente libre (y no como Ubuntu One). OpenSuse está particularmente involucrado en sacarlo adelante, asi que esperemos que seguirá evolucionando de forma rápida.

Pronto y en otra entrada, contaremos como puedes montarte tu propio servicio servidor de owncloud.

ACTUALIZACIÓN: Uppps! A los pocos minutos de escribir esto me entero de que ya está disponible el cliente para Android.

ACTUALIZACIÓN (y II): En getfreecloud.com han actualizado ya a la versión 3.03 de la versión servidor de owncloud, así que ya no hay problemas de vulnerabilidades conocidas.

 

Categorías: cloud computing Etiquetas:

Open Source Enterprise Virtual Desktop

Fuente: http://consultasguru.blogspot.com/2009/11/open-source-enterprise-virtual-desktop.html


Mi colega , el Sr. Manuel Noguerol , me ha pasado el siguiente software y la verdad es que se me esta «cayendo la baba»

Se llama ULTEO y se trata de algo muy parecido a un broker de conexion tipo Vmwareview , integrable con active directory , muestra maquinas WINDOWS y LINUX , pero lo mas increible es que sirve las APLICACIONES , es decir se asemeja a un citrix o un Sun Ray.

Por mi parte lo estoy evaluando por que considero interesante poder tener una alternativa a los sistemas de pago , los cuales todos comprendemos que son «la leche» por soporte , garantia etc. , pero para segun quien y que finalidad se le destine a mi me parece un producto con muchas posibilidades.

Web oficial

http://www.ulteo.com

Manualillo:

http://www.ulteo.com/home/ovdi/openvirtualdesktop/documentation/installation?autolang=en

Alli teneis todo para descargar y probar.
OPEN SOURCE

1000 Gracias a Manuel Noguerol por este aporte.

Publicado por Javier Martinez en 13:56
Categorías: cloud computing Etiquetas: , ,