1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

PreUpgrade Checkfile Issue/Bug

Discussion in 'Plesk 11.x for Linux' started by onycro, Jul 6, 2012.

  1. onycro

    onycro Basic Pleskian

    16
    60%
    Joined:
    Jul 6, 2012
    Messages:
    38
    Likes Received:
    0
    Hey Team
    I just found out that your "panel_preupgrade_checker.php" got a bug.

    It failed for my server at check #24 and stopped there:
    Code:
    [2012-07-06 03:20:56][INFO] ==> STEP 24: Checking the availability of Plesk Panel TCP ports...
    [2012-07-06 03:20:56][FATAL_ERROR] Unable to get IP address
    The problem is there on line 3032
    Code:
    if (!preg_match_all('/inet addr:([0-9\.]+)/', $output, $matches)) {
    Because I've got a german version of ifconfig, it isn't "inet addr" it is "inet Adresse".
    Maybe I'm to late or smth. I used this file:
    http://mirror.1und1.de/software/parallels/PSA_11.0.9/examiners/panel_preupgrade_checker.php

    The rest of it worked very well.

    So my fix for that file (only German language):

    line 3032
    Code:
    if (!preg_match_all('/inet addr:([0-9\.]+)/', $output, $matches)) {
    change that to
    Code:
    if (!preg_match_all('/inet Adresse:([0-9\.]+)/', $output, $matches)) {
    line 3061
    Code:
    if (!preg_match_all('/inet6 addr: ?([^ ][^\/]+)/', $output, $matches)) {
    change that to
    Code:
    if (!preg_match_all('/inet6-Adresse: ?([^ ][^\/]+)/', $output, $matches)) {
    line 3071
    Code:
    if (!preg_match_all('/inet addr: ?([^ ]+)/', $output, $matches)) {
    change that to
    Code:
    if (!preg_match_all('/inet Adresse: ?([^ ]+)/', $output, $matches)) {
    Here is the complete code: http://pastebin.com/ebHnHPBi

    Good luck for you guys.
     
  2. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    Interesting, so parallels should provide a checker for almost every major language supported :)
     
  3. onycro

    onycro Basic Pleskian

    16
    60%
    Joined:
    Jul 6, 2012
    Messages:
    38
    Likes Received:
    0
    I suggest a method which would work for every language:
    preg match without a language specific string
     
  4. Pixman59

    Pixman59 New Pleskian

    6
    70%
    Joined:
    Sep 20, 2013
    Messages:
    6
    Likes Received:
    0
    Hello,
    I have the same problem on my centos server with the plesk115_preupgrade_checker.php

    i have change the "/inet addr:" to "/inet adr:"
    and the "inet6:" to "adr inet6:"

    now it's work !
     
Loading...