ispconfig does not resopnd on new server after migration

Discussion in 'Installation/Configuration' started by Michel Davoudian, Sep 21, 2024.

  1. Michel Davoudian

    Michel Davoudian New Member HowtoForge Supporter

    FYI, in fact, one of the databases is making the problem and stops the migration. So I will look into it.
    I join the last 200 lines of the log file so it might interest you.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please do not post such logs; they can contain passwords, and yours did. I removed the log file now and I was the first one who viewed it according to the forum software, so it should be ok. If you need help with the migration tool, please email us at support at ispconfig dot org or use the support contact form on the website ispconfig.org. To find out why the new server rejected the mysql dump from the old one, you can us this command on the new server:

    Code:
    gunzip -c /tmp/migrate-import-tmp.sql.gz | mysql --max_allowed_packet=1G -h 'localhost' -D c1arevan -u 'root' -p
    it will ask for the mysql root password.
     
  3. Michel Davoudian

    Michel Davoudian New Member HowtoForge Supporter

    In fact the file /tmp/migrate-import..... does not exist in the /tmp/ folder. But there is a file c1arevan.sql.zip.gz in the /tmp/dumps folder
    so it seems there is a problem with this database.
    But the migration tools has stopped the migration and the other tasks were stopped.
    Once I solve the c1arevan dtb problem, it seems that I need to re-initiate the new server unless there is an option somewhere ?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Then, you might have restarted the server or run the tool again, which cleared the /tmp folder. Or you looked into /tmp on the wrong server, you must check the new server. Run the migration tool again, and when it stops, check /tmp folder on the new server (not the old server).

    That's not from ISPConfig nor the Migration Tool.
     
  5. Michel Davoudian

    Michel Davoudian New Member HowtoForge Supporter

    I think I found something not correct :
    The dump of the databases generates the first record : /*M!999999\- enable the sandbox mode */
    which generates an error when trying to import
    I suspect the versions of mariadb. between Distrib 10.5.26 and 10.22.6 ?
    old server : mariadb Ver 15.1 Distrib 10.5.26-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper
    new server : mariadb Ver 15.1 Distrib 10.11.6-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper
     
  6. pyte

    pyte Well-Known Member HowtoForge Supporter


    This is due to patched versions of mariadb. See here: https://mariadb.org/mariadb-dump-file-compatibility-change/
    Removing the line should fix the issue
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    You seem to be using an old version of the Migration Tool as a workaround for this MariaDB problem has already been implemented. I mentioned in post #18 of this thread a few days ago that you must re-download the tool. Please remove the old version of the Migration Tool by deleting the whole /root/migrate directory, then download the tool again and start it.
     
  8. Michel Davoudian

    Michel Davoudian New Member HowtoForge Supporter

    I have downloaded the tool yesterday before doing the migration.
    please send me another link .
     
  9. Michel Davoudian

    Michel Davoudian New Member HowtoForge Supporter

    Till, I just downloaded again, same problem. I don't think the 19 September version is the latest... or the workaround is not working.
    wget https://www.ispconfig.org/downloads/ispconfig_migration_toolkit-latest.zip
    drwxr-xr-x 2 root root 4096 Sep 26 17:24 ispconfig_migration_toolkit
    -rw-r--r-- 1 root root 9259962 Sep 19 10:57 ispconfig_migration_toolkit-latest.zip
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    The latest version is 2.2.13, and it is from September 19 and several clients already reported that the fix in that version works for this issue. Did you really delete it before downloading it again on the old server? I've seen it several times that people accidentally use an old version again by not fully deleting it.
     
  11. Michel Davoudian

    Michel Davoudian New Member HowtoForge Supporter

    I can confirm that I deleted everything before re-installing the migration tool.
    But in order to double check, I have deleted all once again and restarted a migration.
    Same result.
    2024-09-26 21:37:16 - [INFO] Command gunzip -c /tmp/migrate-import-tmp.sql.gz | mysql --max_allowed_packet=1G -h 'localhost' -D c1arevan -u 'root' -p'xxxxxxx' failed with code 1.
    2024-09-26 21:37:16 - [ERROR] Execution of job failed: array (
    'type' => 'exec',
    'command' => 'gunzip -c /tmp/migrate-import-tmp.sql.gz | mysql --max_allowed_packet=1G -h \'localhost\' -D c1arevan -u \'root\' -p\'xxxxxxx\'',
    'info_message' => 'Propagating database c1arevan',
    'stop_on_error' => true,
    )
    I see that there is a ' missing at the end of the password (I changed the password with xxxxx)
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    Nothing is missing there. That line is fine. What you see there is escaping a char by pretending a backslash.

    We can't really help you when you post here in the forum instead of contacting the Migration Tool support as we require the full logs, everything else is just guesswork. I asked you already in post #22 to do that. Please run the tool with debug mode (add the --debug config option) and then send us an email with the complete migrate.log file the tool created to support at ispconfig dot org so we can see what is causing your issue.
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    Thank you for sending the log; it shows that the command to filter out the line is run, so you use the right version, and it filters out the line from MariaDB documentation, which is what other users have, too. But for some reason, your line seems to be different from what the official MariaDB docs say. May you please double-check that the line in your SQL dump file is this:

    /*M!999999\- enable the sandbox mode */

    the important part that differs is the M inside the string. Is that M really there? because normally and according to mariaDB docs, the line that needs to be filtered out is this:

    /*!999999\- enable the sandbox mode */
     
  14. Michel Davoudian

    Michel Davoudian New Member HowtoForge Supporter

    Here is the first line. Yes there is a "M"
    /*M!999999\- enable the sandbox mode */
     
  15. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, then we will have to adjust the filter. Hopefully they do not come IP with more variations of this without describing them in their docs.
     
  16. pyte

    pyte Well-Known Member HowtoForge Supporter

    The M was added in the last versions of mariadb to make this only parsed by mariadb clients.
     
    till likes this.
  17. till

    till Super Moderator Staff Member ISPConfig Developer

    Just as info, a new version of the Migration Tool has been released which contains a fix for the MariaDB import issue when the source MariaDB version is newer than the target.
     
    Th0m and ahrasis like this.

Share This Page