Results 1 to 7 of 7

Thread: MySQL database setup fails during installation on SLES 11 SP1

  1. #1
    dsodermanns is offline Junior Member
    Join Date
    Dec 2011
    Posts
    5
    Rep Power
    3

    Default MySQL database setup fails during installation on SLES 11 SP1

    Environment:
    ZCS 7.1.3
    SLES 11 SP1 x64, 2 GB ram, 50GB disk
    (virtual machine on ESXi)

    Problem:
    During the installation the setup of the MySQL databases fails.
    Error messages are logged in "/opt/zimbra/log/zmmyinit.log" and give an "errno: 13" on a file with the extension "frm" that should be created in "/opt/zimbra".

    Cause:
    The installation process of the MySQL databases tries to write to "/opt/zimbra" but is has no rights there (the directory is owned by root).

    Workaround:
    During install, after the installation of the RPMs (when the install script asks you if you want to change the domain) do the following:
    - open a second console and login as root
    - run "chown zimbra:zimbra"
    - return to the first console and continue your installation

    Additional info:
    So far I did not find any reason to change the ownership of "/opt/zimbra" back to root

    Caution:
    In another thread here in the forum the was the info to run "chown -R zimbra:zimbra /opt/zimbra" I tried that one after the installation and it did not work for me.

    Regards

    Dieter

    PS: will file a bug as soon as my bugzilla account is ready for use.

  2. #2
    dsodermanns is offline Junior Member
    Join Date
    Dec 2011
    Posts
    5
    Rep Power
    3

    Default

    Hi Masim,

    I logged in as root (no sudo), I tried it from the server console and via ssh / putty.

    The permissions on my system are the same as you listed them.

    SLES11 SP1 was fully patched up to 26.12.2011.

    By the way: I had the same issue when I used your Suse Studio image.

    Maybe there is a bug in the installation routine for the MySQL databases. Why do they try to write to /opt/zimbra and not to a temp dir or the database directory?

    Let's see what the developers they when I open the bug.

    Regards from Germany

    Dieter

  3. #3
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,469
    Rep Power
    56

    Default

    Quote Originally Posted by dsodermanns View Post
    Maybe there is a bug in the installation routine for the MySQL databases.
    I doubt that very much (but it is always possible), I think if that were the case it would have cropped up before now. Do you, by any chance, have AppArmor enabled on this server? If you do, it needs to be disabled.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  4. #4
    dsodermanns is offline Junior Member
    Join Date
    Dec 2011
    Posts
    5
    Rep Power
    3

    Default

    Hi Bill,

    you are right, AppAmor is running on my server.
    After knowing it can cause trouble I searched the documentation and checked google.

    If this causes so much trouble I think it might be a good idea to put a hint into the docs. I checked:
    zcs-os-admin-guide-7.1.2.pdf and zcs-os-single-server-install-7.1.2.pdf

    I am not sure how this is handled at zimbra, shall I write a bug against the documentation?

    Let me know what you think.

    Dieter

  5. #5
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,469
    Rep Power
    56

    Default

    Quote Originally Posted by dsodermanns View Post
    If this causes so much trouble I think it might be a good idea to put a hint into the docs.
    It is mentioned in the documentation, sort of. I believe that it's only mentioned in the documentation that SElinux is disabled for RHEL builds and not AppArmor - so you could infer from that comment in the docs that AppArmor should also be disabled. I would agree that there should be a specific note about this in the documentation as there is for the RHEL installs and SElinux.

    Quote Originally Posted by dsodermanns View Post
    I am not sure how this is handled at zimbra, shall I write a bug against the documentation?
    This would normally be filed in bugzilla, you'll find a 'Tech Docs' entry in the component selection and that should be what this is filed under. If you do file the report, don't forget to vote on it and post the bug number here for others to vote if they want.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #6
    dsodermanns is offline Junior Member
    Join Date
    Dec 2011
    Posts
    5
    Rep Power
    3

    Default

    I entered bug 68757 for this issue.

    Bug 68757 – Documentation should clearly state that AppArmor needs to be disabled

    Greetings,

    Dieter

  7. #7
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,469
    Rep Power
    56

    Default

    Quote Originally Posted by dsodermanns View Post
    I entered bug 68757 for this issue.
    Thanks for filing that report, don't forget to add your vote to it as well. Happy New Year to you.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 08-20-2012, 02:00 PM
  2. Installation FAILS to start on SLES 11
    By pete irvine in forum Installation
    Replies: 11
    Last Post: 08-25-2011, 02:32 PM
  3. System crash leads to major MySQL corruption
    By Glider Guider in forum Administrators
    Replies: 1
    Last Post: 08-01-2011, 11:03 AM
  4. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 AM
  5. Installation fails, possible mysql problem
    By webminster in forum Installation
    Replies: 6
    Last Post: 09-09-2005, 02:41 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •