Skip to main content

Eucalyptus problem on Ubuntu 10.04 (Lucid)

Ubuntu 10.04 (Lucid) is out for a while and I wanted to try to install a private UEC on a previously installed Ubuntu 10.04 system only for testing something. I did not want to use the CDInstall method since I like to do the magic not just watching that. So I have decided to install from packages. (Ok you are right I should have tried to do it from Eucalyptus source but I did not have enough time.)
Unfortunately it was not straightforward. During installation of eucalyptus-cloud package I got an error.

...
Setting up eucalyptus-cloud (1.6.2-0ubuntu30.2) ...
restart: Unknown instance:
(Than waiting long....~60 sec)
eucalyptus-cloud stop/post-start, (post-start) process 26868
eucalyptus-cloud-publication start/running, process 27475
...


Hmmm. I have checked whether it is an install issue only or also a runtime problem. Checked the configuration files but they were fine. Eucalyptus start is slow and finally failed without visible error message. The cluster controller web interfaces is not working and service can not be started successfully.
Also stopping the service dropped an error.

root@ubuntu:~# stop eucalyptus-cloud
stop: Unknown instance:


I wanted to check the init scripts but here I faced the problem that SysVinit had been replaced by UpStart which I did not know. So made a trip in that area to get to understand. To be honest it is not a well documented thing and the concept is a bit different than SysVinit. But for a reason.
But back to the track I have realized that the the eucalyptus startup died very early and the command failing is executing eucalyptus-cloud binary. So started it manually and saw that it drops the below error.

root@ubuntu:~# /usr/sbin/eucalyptus-cloud
[error:0185] User 'eucalyptus' validated
[error:0077] Path /usr/lib/jvm/java-6-openjdk is not a directory
[error:0323] Cannot locate Java Home


After I have seen this it was pretty straightforward to solve. I did not have openjdk but I had sun-java6-jdk. I had it from the partner repository anyway. ;) The problem here is that although eucalyptus-cloud depends on some java package the proper one was not installed. So I have installed openjdk6 by hand and than everything was working fine.

root@ubuntu:~# aptitude install openjdk-6-jre-headless

If eucalyptus does not work even after openjdk6 install you can reinstall eucalyptus-cloud after or together with openjdk6.

root@ubuntu:~# aptitude purge eucalyptus-cloud eucalyptus-cc eucalyptus-sc eucalyptus-walrus
root@ubuntu:~# aptitude install openjdk-6-jre-headless eucalyptus-cloud eucalyptus-cc eucalyptus-sc  
eucalyptus-walrus


In theory this works with sun's java also but than you have to define JAVA_HOME in advance starting eucalyptus-cloud  and than can try to use sun (oracle) java version but openjdk is working fine without any problem.
Some useful links if cloud is up:
  • ElasticFox config (Note: Since version 1.7 it does not work with Eucalyptus. But hope it will be corrected soon. In Eucalyptus.)

Comments

Popular posts from this blog

Insufficient Disk Space reported under wine

Did you try to install/setup any Windows Application - actually a Game what else could be necessary - and got a message that you do not have enough free space on your drive meanwhile you had lot of free space on the chosen mounted partition? You will learn the problem and hopefully the solution too. (Of course I suppose it is not the real situation you have no enough space. If so do not read ahead.) The problem is that wine does not check the amount of free space on the mounted partition corresponds to the selected directory but reports the free on the root of the directory the partition mounted to . ;( Probably it is not clean so here is an example: Let say you have / only and something is mounted as /mnt/part1 If you directly select /mnt/part1 during installation wine will check free space in fact on / and does not calculate free on the partition mounted under /mnt/part1. How to solve it you may ask? It is easy. Start winecfg and create a new drive with the directory you want to use.

Ansible: Using multiple tags and untagged tag together

I have lots of Ansible playbooks with many roles in each. However when you are installing different minor version of the same software stack, there are only minor differences between the steps. In this case it does not make much sense to "copy paste" the whole role so I just wanted to use tags. I wanted to use untagged tasks as common tasks and tagged tasks for version specific tasks. To make it clear here is an example. If you have a long os related role which does ssh config, web config, database install and creation and many more but sometimes you need java-6 or java-7 it is easy to add task and tag those according to this. Than my theory was that I can run ansible-playbook --tags=untagged,java6 to install the stack with java6 and ansible-playbook --tags=untagged,java7 to install same stack with java7. However this does not work. I have checked the Ansible source code and found why it is not working. Since I was not sure if this is a bug or by design I have opened a

Python Azure ML SDK issue on Ubuntu 22.04

It has been quite a while since I posted last time. Why? Because simply I did not run into any issue worth to share. But now! I did.  Recently we are doing some Machine Learning on Azure using Azure Machine Learning Python SDK. No problem you might think. Well. As it turned out Ubuntu 22.04 is not supported. And this is clearly said in a message. Which is in fact a lie. The Error message: NotImplementedError: Linux distribution ubuntu 22.04 does not have automatic support. Missing packages: {'liblttng-ust.so.0'} .NET Core 3.1 can still be used via `dotnetcore2` if the required dependencies are installed. Visit https://aka.ms/dotnet-install-linux for Linux distro specific .NET Core install instructions. Follow your distro specific instructions to install `dotnet-runtime-*` and replace `*` with `3.1.23`. Ok but what is this? And why? So as the error mentions dotnetcore2==3.1.23 Python package uses .NET Core 3.1 but Ubuntu 22.04 has only dotnet6 packages. And also Micro