cancel
Showing results for 
Search instead for 
Did you mean: 

BUG! AlfrescoOne 4.2.x hungs during startup in KVM

vgusev2007
Champ in-the-making
Champ in-the-making
Hi all! Please help me with a strange problem.


So, I have two fresh install of alfresco 4.2.3.1 from bandle:

The first one is on a real hw (ubuntu 14.4 x64)
The second is: on a kvm VM (ubuntu 14.4 x64)

So, my problem is about:

I start alfresco via:

service alfresco start

And I see in catalina.out the following message:
WARNING: [SetContextPropertiesRule]{Context} Setting property 'debug' to '0' did not find a matching property.

On real host it takes about 20 sec - it is a normal situation.
On KVM host it takes about 600 sec. - it is a bad situation… - After that alfresco works as a normal instance without any problem.

There is no any activites from CPU or HDD/RAM during this hangs.

There is no help with reinstall alfresco.



SOLUTION!

Alfresco has told about fully supported ubuntu 12.04. It not seems to be try.

Just for test:

CASE 1:


# lsb_release -a
Description:    Ubuntu 12.04.5 LTS
# uname -ar
Linux alfresco-test 3.13.0-32-generic #57~precise1-Ubuntu SMP Tue Jul 15 03:51:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

(about 5 mins!)
Nov 20, 2014 7:27:17 PM org.apache.catalina.startup.SetContextPropertiesRule begin
WARNING: [SetContextPropertiesRule]{Context} Setting property 'debug' to '0' did not find a matching property.
Nov 20, 2014 7:32:31 PM org.apache.catalina.util.SessionIdGenerator createSecureRandom
….
….
….
Nov 20, 2014 7:33:39 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 382887 ms



CASE 2:


# lsb_release -a
Description:    Ubuntu 12.04.5 LTS

# uname -ar
Linux alfresco-test 3.2.0-70-generic #105-Ubuntu SMP Wed Sep 24 19:49:16 UTC 2014 x86_64 x86_64 x86_64 GNU/LinuxNov 20, 2014 7:38:11 PM org.apache.catalina.startup.SetContextPropertiesRule begin
(4 sec!)
Nov 20, 2014 7:38:11 PM org.apache.catalina.startup.SetContextPropertiesRule begin
WARNING: [SetContextPropertiesRule]{Context} Setting property 'debug' to '0' did not find a matching property.
2014-11-20 19:38:14,906  WARN  [handler.component.SpellCheckComponent] [localhost-startStop-1] No queryConverter defined, using default converter
….
….
….
Nov 20, 2014 7:39:14 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 62796 ms


I think it is a problem with a new linux kernel works under KVM! PLEASE CONFIRM this BUG!
16 REPLIES 16

vgusev2007
Champ in-the-making
Champ in-the-making
Yeah, I'll show my config to you, after 1 or 2 days from now. Just wite Smiley Happy

vgusev2007
Champ in-the-making
Champ in-the-making
Dear linuxyeti,

You can look at into my config:


<domain type='kvm'>
  <name>alfresco-test</name>
  <uuid>05dc0337-cb86-309a-8975-6c957f9cbbe6</uuid>
  <memory unit='KiB'>10485760</memory>
  <currentMemory unit='KiB'>10485760</currentMemory>
  <vcpu placement='static'>4</vcpu>
  <os>
    <type arch='x86_64' machine='pc-i440fx-trusty'>hvm</type>
    <boot dev='hd'/>
    <bootmenu enable='no'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/bin/kvm-spice</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/kvm2-master/alfresco-test.qcow2'/>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>
    <disk type='block' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='1' target='0' unit='0'/>
    </disk>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <controller type='usb' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'/>
    <interface type='network'>
      <mac address='52:54:00:d4:23:93'/>
      <source network='default'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes'/>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </memballoon>
  </devices>
</domain>


I have true to setup 3.16 kernel and also I have setup linux-virtual pkg without any success. If I downgrade my kernel to 3.2 it works fine.

linuxyeti
Champ in-the-making
Champ in-the-making
Hi there

Your config looks pretty sound, theonly real differences between what I have set and what you have set are: -

For the emulator we use qemu-kvm as opposed to kvm-spice, I've read there are issues that surround kvm-spice, so if you can, go back to qemu-kvm and try that.

Also for the pci interface, we have configured bridging pci type 'bridge'

Cheers

Tony

vgusev2007
Champ in-the-making
Champ in-the-making
Thank you for responce to me. It's a default settings comes from virt-manager. I'll switch to qemu-kvm and test it again.

I'm sorry but I didn't catch about pci interface. What did you mean? Did you mean network device pci bridge? There is no diff betwen bridge or NAT for my case. - Plese more explain what you mean.

Thank for you help.

Best regards,
Victor.

vgusev2007
Champ in-the-making
Champ in-the-making
Dear linuxyeti,

There is no real kvm-spice in Ubuntu host KVM system.

Example:


# ll /usr/bin/kvm-spice
lrwxrwxrwx 1 root root 3 oct.   7 06:28 /usr/bin/kvm-spice -> kvm*


And also there is no qemu-kvm:


# lsb_release -a ; echo '———-' ; find / -name qemu-kvm
No LSB modules are available.
Distributor ID:   Ubuntu
Description:   Ubuntu 14.04.1 LTS
Release:   14.04
Codename:   trusty
———-
/etc/default/qemu-kvm
/usr/share/doc/qemu-kvm


I'll glad for any help.




linuxyeti
Champ in-the-making
Champ in-the-making
Hi

I use a bridged newtork interface to make the VM acessible to the whole network. So, what happens if you replace

<emulator>/usr/bin/kvm-spice</emulator>

with

<emulator>/usr/bin/qemu-kvm</emulator>

It may also just be something particular to Ubuntu, we use Centos, althoughthat's probably unlikely.

Cheers

Tony

vgusev2007
Champ in-the-making
Champ in-the-making
There is no /usr/bin/qemu-kvm in ubuntu linux. What kernel version do you use for alfresco in your VM?