bind and mysql don't start at server move

Discussion in 'Installation/Configuration' started by luchs3, Jun 4, 2008.

  1. luchs3

    luchs3 New Member

    Hi,

    I try to move my ISPconfig installation to an new server.
    The old server runs on ubuntu 7.10.
    The new one is a 8.04 xen guest.

    I followed the instructions and nearly erverthing works fine.
    Accept bind and mysql.
    They don't start.

    bind bives me: rndc: connect failed: 127.0.0.1#953: connection refused

    mysql simply doesn't start
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Which messages do you get in the syslog when you try to start bind and mysql?
     
  3. luchs3

    luchs3 New Member

    I found the source of the problem.

    The new passwd- file has different UIDs for mysql and bind.
    new server install file which will be replaced by the old server file:
    Code:
    ...
    bind:x:107:109::/var/cache/bind:/bin/false
    mysql:x:108:110:MySQL Server,,,:/var/lib/mysql:/bin/false
    postfix:x:109:112::/var/spool/postfix:/bin/false
    ...
    running (old) server file
    Code:
    ...
    bind:x:105:110::/var/cache/bind:/bin/false
    mysql:x:106:111:MySQL Server,,,:/var/lib/mysql:/bin/false
    postfix:x:107:113::/var/spool/postfix:/bin/false
    ...
    When I change the 105 on the new server to 107 does it work.
    But as you can see, ahs the postfix already the 107 so postfix doesn't start.

    The weared thing is, that postfix starts with the different UID but mysql and bind don't.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, this explains the problems. You can not simply coipy over the password and shadow file from the old server to the new one, this wil break the installation.

    Do you have a backup of the original passwd and shadow files from the new server? If yes, restore them. Then copy only the usernames created by ISPConfig from the old passd and shadow file to the new files.
     
  5. luchs3

    luchs3 New Member

    worked really great,

    Thanks

    My last Problem is the system clock.
    The dom0 time ist set correctly.
    When I start the guest, he gives me an hwclock error.
    But my bigger problem is, that he uses UTC and not my local time.
    I tried tzselect but it didn't change anything.
     
  6. falko

    falko Super Moderator ISPConfig Developer

Share This Page