ISPConfig 3.1 Beta installation issues

Discussion in 'Installation/Configuration' started by jdsousa, Apr 23, 2016.

  1. syco

    syco New Member

    I did, now how does one restore?
    EDIT: never been an issue before
     
  2. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    I've not done this yet either, but in looking in a random /var/backup/ispconfig_{date}/ directory there are 3 files:
    Code:
    # ls -1
    etc.tar.gz
    ispconfig_db_backup.sql
    ispconfig_software.tar.gz
    
    ispconfig_db_backup.sql is the dbispconfig database prior to updating, load that with something like 'mysql -u root -p dbispconfig < ispconfig_db_backup.sql'

    ispconfig_software.tar.gz contains the files from /usr/local/ispconfig/, just rename or delete what's there now and restore the backup there.

    etc.tar.gz contains a copy of /etc, which I'd probably just leave untouched for the moment and only pull files from there when needed. After restoring the first two items, I'd pull down an ispconfig 3.0.5p9 tarball, unpack (eg. in /tmp) and run update.sh from there, and let it reconfigure services. You should probably be up and running at this point .. if there are any issues, either troubleshoot or try restoring the /etc/ backup. This may be bad advise, having never tried it, but that's what I'd look at first :).
     
    syco likes this.
  3. syco

    syco New Member

    I tried that but still left me with changes not being written to disk issue, that's the part bugging me right now. server.sh errors.
     
  4. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    See comment #15 for how to debug server.sh
     
    syco likes this.
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Not sure why you installed test software on a real server. If a software is not released as final then this means that the software is known to be not ready for live systems.
     
  6. syco

    syco New Member

    Is my personal server, I will occasionally allow friends to use it too, the ones in actual production are still humming right along.
     
  7. syco

    syco New Member

    Working on that, not sure what the deal is with the so.2 error, that file doesn't exist on any of the machines I have running, maybe a newer imagemagick install? As far as the syntax for the line 209 thing, I am looking into that.
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Just update to the latest git-stable version. As mentioned in my post, we implemented already a workaround for such old PHP versions, so you dont seem to run the latest 3.1 code from git.

    run:

    ispconfig_update.sh

    and choose git-stable as update source.
     
    syco likes this.
  9. syco

    syco New Member

    That is all well but still leaves me with


    /usr/local/ispconfig/server/server.sh
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/imagick.so' - libMagickWand.so.2: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/imagick.so' - libMagickWand.so.2: cannot open shared object file: No such file or directory in Unknown on line 0
    yum update ImageMagick
    No Packages marked for Update
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    This is just a warning and does not harm. Disable imagick.so in the php configuration if you want to stop the warning, most likely the imagick.so fil is from a older php version.
     
    syco likes this.
  11. syco

    syco New Member

    Thanks for all the help, everything looks to be back to normal but still changes are not written to the drive... very strange.
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    run server.sh manually with log level debug on and post the output that you get on the shell.
     
  13. syco

    syco New Member

    /usr/local/ispconfig/server/server.sh
    #!/bin/sh -xv

    PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
    + PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin

    . /etc/profile
    + . /etc/profile
    # /etc/profile

    # System wide environment and startup programs, for login setup
    # Functions and aliases go in /etc/bashrc

    # It's NOT a good idea to change this file unless you know what you
    # are doing. It's much better to create a custom.sh shell script in
    # /etc/profile.d/ to make custom changes to your environment, as this
    # will prevent the need for merging in future updates.

    pathmunge () {
    case ":${PATH}:" in
    *:"$1":*)
    ;;
    *)
    if [ "$2" = "after" ] ; then
    PATH=$PATH:$1
    else
    PATH=$1:$PATH
    fi
    esac
    }


    if [ -x /usr/bin/id ]; then
    if [ -z "$EUID" ]; then
    # ksh workaround
    EUID=`id -u`
    UID=`id -ru`
    fi
    USER="`id -un`"
    LOGNAME=$USER
    MAIL="/var/spool/mail/$USER"
    fi
    ++ '[' -x /usr/bin/id ']'
    ++ '[' -z 0 ']'
    id -un
    +++ id -un
    ++ USER=root
    ++ LOGNAME=root
    ++ MAIL=/var/spool/mail/root

    # Path manipulation
    if [ "$EUID" = "0" ]; then
    pathmunge /sbin
    pathmunge /usr/sbin
    pathmunge /usr/local/sbin
    else
    pathmunge /usr/local/sbin after
    pathmunge /usr/sbin after
    pathmunge /sbin after
    fi
    ++ '[' 0 = 0 ']'
    ++ pathmunge /sbin
    ++ case ":${PATH}:" in
    ++ pathmunge /usr/sbin
    ++ case ":${PATH}:" in
    ++ pathmunge /usr/local/sbin
    ++ case ":${PATH}:" in

    HOSTNAME=`/bin/hostname 2>/dev/null`
    /bin/hostname 2>/dev/null
    +++ /bin/hostname
    ++ HOSTNAME=omitted
    HISTSIZE=1000
    ++ HISTSIZE=1000
    if [ "$HISTCONTROL" = "ignorespace" ] ; then
    export HISTCONTROL=ignoreboth
    else
    export HISTCONTROL=ignoredups
    fi
    ++ '[' ignoredups = ignorespace ']'
    ++ export HISTCONTROL=ignoredups
    ++ HISTCONTROL=ignoredups

    export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL
    ++ export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL

    # By default, we want umask to get set. This sets it for login shell
    # Current threshold for system reserved uid/gids is 200
    # You could check uidgid reservation validity in
    # /usr/share/doc/setup-*/uidgid file
    if [ $UID -gt 199 ] && [ "`id -gn`" = "`id -un`" ]; then
    umask 002
    else
    umask 022
    fi
    ++ '[' 0 -gt 199 ']'
    ++ umask 022

    for i in /etc/profile.d/*.sh ; do
    if [ -r "$i" ]; then
    if [ "${-#*i}" != "$-" ]; then
    . "$i"
    else
    . "$i" >/dev/null 2>&1
    fi
    fi
    done
    ++ for i in '/etc/profile.d/*.sh'
    ++ '[' -r /etc/profile.d/colorls.sh ']'
    ++ '[' hvxB '!=' hvxB ']'
    ++ . /etc/profile.d/colorls.sh
    ++ for i in '/etc/profile.d/*.sh'
    ++ '[' -r /etc/profile.d/cvs.sh ']'
    ++ '[' hvxB '!=' hvxB ']'
    ++ . /etc/profile.d/cvs.sh
    ++ for i in '/etc/profile.d/*.sh'
    ++ '[' -r /etc/profile.d/glib2.sh ']'
    ++ '[' hvxB '!=' hvxB ']'
    ++ . /etc/profile.d/glib2.sh
    ++ for i in '/etc/profile.d/*.sh'
    ++ '[' -r /etc/profile.d/lang.sh ']'
    ++ '[' hvxB '!=' hvxB ']'
    ++ . /etc/profile.d/lang.sh
    ++ for i in '/etc/profile.d/*.sh'
    ++ '[' -r /etc/profile.d/less.sh ']'
    ++ '[' hvxB '!=' hvxB ']'
    ++ . /etc/profile.d/less.sh
    ++ for i in '/etc/profile.d/*.sh'
    ++ '[' -r /etc/profile.d/which2.sh ']'
    ++ '[' hvxB '!=' hvxB ']'
    ++ . /etc/profile.d/which2.sh

    unset i
    ++ unset i
    unset -f pathmunge
    ++ unset -f pathmunge

    umask 022
    + umask 022

    if [ -f /usr/local/ispconfig/server/lib/php.ini ]; then
    PHPINIOWNER=`stat -c %U /usr/local/ispconfig/server/lib/php.ini`
    if [ $PHPINIOWNER == 'root' ] || [ $PHPINIOWNER == 'ispconfig' ]; then
    export PHPRC=/usr/local/ispconfig/server/lib
    fi
    fi
    + '[' -f /usr/local/ispconfig/server/lib/php.ini ']'

    cd /usr/local/ispconfig/server
    + cd /usr/local/ispconfig/server
    /usr/bin/php -q /usr/local/ispconfig/server/server.php
    + /usr/bin/php -q /usr/local/ispconfig/server/server.php
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/imagick.so' - libMagickWand.so.2: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning: Invalid argument supplied for foreach() in /usr/local/ispconfig/server/plugins-available/webserver_plugin.inc.php on line 111
    finished.

    cd /usr/local/ispconfig/security
    + cd /usr/local/ispconfig/security
    /usr/bin/php -q /usr/local/ispconfig/security/check.php
    + /usr/bin/php -q /usr/local/ispconfig/security/check.php
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/imagick.so' - libMagickWand.so.2: cannot open shared object file: No such file or directory in Unknown on line 0
     
  14. syco

    syco New Member

    Note: Just made an interesting discovery, when running it manually it now populates the added mailbox. But only if I run it manually.

    * * * * * /usr/local/ispconfig/server/server.sh &> /dev/null
    30 00 * * * /usr/local/ispconfig/server/cron_daily.sh &> /dev/null
     
  15. till

    till Super Moderator Staff Member ISPConfig Developer

    Then your cron daemon is not running correctly or it does not execute the root crontab.
     
    syco likes this.
  16. syco

    syco New Member

    Found it, turns out it was a combo of issues, one of them I had not noticed, as I mentioned I allow friends to use the sever from time to time to practice and try to learn more about linux. Well one of them had the cron deamon turned off. Is now resolved. Thanks for all the help guys! Totally gona donate on pay day!
     
  17. theWeird

    theWeird Member

    Should be fine anyway. As long as the directory /etc/metronome is there.
    The script just deletes the original config file to replace it with its own.
     

Share This Page